myJobInformation.vue 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  1. <template>
  2. <view>
  3. <u-navbar back-text="求职信息" back-icon-size="28" back-icon-color="#ffffff"
  4. :background="{backgroundColor: '#2795FD',}" :back-text-style="{color: '#ffffff'}"></u-navbar>
  5. <view class="main">
  6. <!-- 个人信息 -->
  7. <view class="person-infos">
  8. <view class="infos">
  9. <view class="name">
  10. 许慕
  11. </view>
  12. <view class="gender-age">
  13. <text class="text">女</text>|
  14. <text class="text">28</text>
  15. </view>
  16. </view>
  17. <view class="photo" @click="uploadPhoto">
  18. <u-avatar :src="src" size="120" mode="circle"></u-avatar>
  19. <img class="camera" src="@/assets/img/riFill-camera-fill Copy@1x.png" alt="">
  20. </view>
  21. </view>
  22. <u-select v-model="show" :list="list" @confirm="confirm"></u-select>
  23. <!-- 信息填写 -->
  24. <view class="information-group">
  25. <!-- 联系电话 -->
  26. <view class="item">
  27. <view class="title">
  28. 联系电话
  29. </view>
  30. <view class="input">
  31. <u-input v-model="tel" type="text" placeholder=""></u-input>
  32. </view>
  33. </view>
  34. <!-- 意向行业 -->
  35. <view class="item">
  36. <view class="title">
  37. 意向行业
  38. </view>
  39. <view class="input">
  40. <u-input type="select" @click="show=true" placeholder="请选择意向行业"></u-input>
  41. </view>
  42. </view>
  43. <!--意向岗位 -->
  44. <view class="item">
  45. <view class="title">
  46. 意向岗位
  47. </view>
  48. <view class="input">
  49. <u-input type="text" placeholder="请填写想找的工作岗位"></u-input>
  50. </view>
  51. </view>
  52. <!-- 期望薪资 -->
  53. <view class="item">
  54. <view class="title">
  55. 期望薪资
  56. </view>
  57. <view class="input2">
  58. <u-input type="text" placeholder="请填写期望薪资"></u-input>
  59. </view>
  60. <view class="unit">
  61. 元/天
  62. </view>
  63. </view>
  64. <!-- 结算方式 -->
  65. <view class="item">
  66. <view class="title">
  67. 结算方式
  68. </view>
  69. <view class="input">
  70. <u-input type="select" @click="show=true" placeholder="请选择结算方式"></u-input>
  71. </view>
  72. </view>
  73. <!-- 工作经验 -->
  74. <view class="item">
  75. <view class="title">
  76. 工作经验
  77. </view>
  78. <view class="input">
  79. <u-input type="select" @click="show=true" placeholder="请选择工作经验"></u-input>
  80. </view>
  81. </view>
  82. <!-- 学历 -->
  83. <view class="item">
  84. <view class="title">
  85. 学历
  86. </view>
  87. <view class="input">
  88. <u-input type="select" @click="show=true" placeholder="请选择学历"></u-input>
  89. </view>
  90. </view>
  91. </view>
  92. </view>
  93. <view class="service-description">
  94. <view class="title">
  95. <text>*</text>服务描述
  96. </view>
  97. <textarea class="textarea" placeholder="请描述您能提供哪些服务,或者是您擅长的,有足浴您更快、更准确的找到工作。"></textarea>
  98. </view>
  99. <button class="save" type="default">保存</button>
  100. </view>
  101. </template>
  102. <script>
  103. import * as API from '@/apis/pagejs/packages.js'
  104. export default {
  105. data() {
  106. return {
  107. src: '',
  108. tel: '15011110000',
  109. show: false,
  110. list: [],
  111. form: {},
  112. }
  113. },
  114. methods: {
  115. saveRecordConfirmMethod(fileData) {
  116. var token = this.carhelp.getToken()
  117. uni.uploadFile({
  118. url: process.car.BASE_URL + "uploadPicture", //仅为示例,非真实的接口地址
  119. filePath:fileData,
  120. header: {
  121. 'Authorization': token,
  122. //'Content-Type': 'multipart/form-data',
  123. 'X-Requested-With': 'XMLHttpRequest',
  124. // 'content-type': 'multipart/form-data'
  125. },
  126. name: 'photoFile',
  127. formData: {
  128. subFolder: "headimg"
  129. },
  130. success: (uploadFileRes) => {
  131. var obj = JSON.parse(uploadFileRes.data)
  132. console.log(obj);
  133. this.src = obj.data;
  134. // uni.hideLoading();
  135. }
  136. });
  137. },
  138. confirm() {
  139. this.show = false;
  140. },
  141. uploadPhoto() {
  142. let _self = this;
  143. const crop = {
  144. quality: 100,
  145. width: 600,
  146. height: 600,
  147. resize: true
  148. };
  149. // 上传图片
  150. uni.chooseImage({
  151. count: 1,
  152. crop,
  153. success: async (res) => {
  154. //(res);
  155. let tempFile = res.tempFiles[0];
  156. var filePath = res.tempFilePaths[0]
  157. let fileData = await new Promise((callback) => {
  158. uni.navigateTo({
  159. url: './cropImage?path=' + filePath +
  160. `&options=${JSON.stringify(crop)}`,
  161. animationType: "fade-in",
  162. events: {
  163. success: url => {
  164. callback(url)
  165. }
  166. }
  167. });
  168. })
  169. this.saveRecordConfirmMethod(fileData);
  170. }
  171. });
  172. },
  173. }
  174. }
  175. </script>
  176. <style>
  177. page {
  178. background: #F0F0F2;
  179. padding-bottom: 150px;
  180. }
  181. </style>
  182. <style lang="scss" scoped>
  183. .main {
  184. margin: 24rpx 32rpx;
  185. background-color: #fff;
  186. padding: 40rpx 32rpx 0;
  187. border-radius: 12px;
  188. .person-infos {
  189. display: flex;
  190. justify-content: space-between;
  191. .infos {
  192. .name {
  193. color: rgba(51, 51, 51, 1);
  194. font-size: 20px;
  195. font-family: 'PingFangSC-medium';
  196. }
  197. .gender-age {
  198. color: rgba(119, 119, 119, 1);
  199. margin-top: 8rpx;
  200. .text {
  201. margin: 0 8rpx;
  202. }
  203. .text:nth-of-type(1) {
  204. margin-left: 0;
  205. }
  206. }
  207. }
  208. .photo {
  209. position: relative;
  210. img {
  211. width: 60px;
  212. height: 60px;
  213. }
  214. .camera {
  215. width: 48rpx;
  216. height: 48rpx;
  217. position: absolute;
  218. top: 36rpx;
  219. left: 36rpx;
  220. z-index: 999;
  221. }
  222. }
  223. }
  224. .information-group {
  225. .item {
  226. display: flex;
  227. align-items: center;
  228. padding: 12rpx 0;
  229. border-bottom: 1px solid #f1f1f1;
  230. .title {
  231. color: rgba(51, 51, 51, 1);
  232. font-size: 32rpx;
  233. width: 140rpx;
  234. }
  235. .input2 {
  236. width: 360rpx;
  237. margin-left: 24rpx;
  238. /deep/.uni-input-input {
  239. color: rgba(51, 51, 51, 1);
  240. }
  241. }
  242. .input {
  243. width: 460rpx;
  244. margin-left: 24rpx;
  245. /deep/.uni-input-input {
  246. color: rgba(51, 51, 51, 1);
  247. }
  248. }
  249. .icon {
  250. margin-left: auto;
  251. }
  252. .unit {
  253. margin-left: auto;
  254. color: #333333;
  255. font-size: 24rpx;
  256. }
  257. }
  258. }
  259. }
  260. // 服务描述
  261. .service-description {
  262. margin: 24rpx 32rpx;
  263. background-color: #fff;
  264. border-radius: 12px;
  265. padding: 24rpx 32rpx;
  266. .title {
  267. color: #333333;
  268. font-size: 18px;
  269. font-family: 'PingFangSC-medium';
  270. }
  271. text {
  272. color: #FF0000;
  273. }
  274. .textarea {
  275. margin-top: 24rpx;
  276. line-height: 40rpx;
  277. width: 100%;
  278. height: 240rpx;
  279. }
  280. }
  281. .save {
  282. background-color: rgba(34, 149, 255, 1);
  283. color: rgba(241, 241, 241, 1);
  284. font-size: 18px;
  285. height: 96rpx;
  286. line-height: 96rpx;
  287. border-radius: 50px;
  288. position: fixed;
  289. left: 32rpx;
  290. right: 32rpx;
  291. bottom: 20rpx;
  292. z-index: 999;
  293. }
  294. </style>