attachment.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029
  1. <template>
  2. <view style="height: 100vh;" class="flex flex-direction">
  3. <!-- 顶部导航栏 -->
  4. <view class="navbar" :style="{ paddingTop: (12 + statusBarHeight) + 'px' }">
  5. <view class="navbar-content">
  6. <view class="navbar-left" @click="goBack">
  7. <u-icon name="arrow-leftward" size="36" color="#333"></u-icon>
  8. </view>
  9. <view class="navbar-title">附件管理</view>
  10. <view class="navbar-right"></view>
  11. </view>
  12. </view>
  13. <!-- <nav-bar title="基本信息"></nav-bar> -->
  14. <view class="contain flex flex-direction">
  15. <scroll-view scroll-with-animation scroll-y>
  16. <!-- 我的公司 -->
  17. <view class="usermain-item item-padding" v-for="item in content">
  18. <view class="usermain-item-title c-flex-center">
  19. <image
  20. :src="item.fileType == 'pdf' ? '../../static/images/pdf.svg' : '../../static/images/docx.svg'"
  21. class="header-icon" mode="aspectFill" />
  22. </view>
  23. <view @click="seekDoc(item)" class="fileContent c-flex-center">
  24. <view class="fileName m-ellipsis">{{ item.attachmentName }}</view>
  25. <view class="filedesc">{{ item.attachmentSize }}kb 更新于{{ item.createTime }}</view>
  26. </view>
  27. <view @click.stop="more(item.resumesAttachmentId)" class="c-flex-center">
  28. <u-icon name="more-dot-fill"></u-icon>
  29. </view>
  30. </view>
  31. <empty :isShow="false" v-if="content.length == 0" />
  32. </scroll-view>
  33. </view>
  34. <view class="footer-btn">
  35. <view class="white-btn" @click="handleWeChatUpload">微信上传</view>
  36. <view class="white-btn" @click="handlUploadFile">附件简历一键识别</view>
  37. <fileSelector title="简历上传" allowType=".doc,.docx,.xls,.xlsx,.pdf" @fileSelected="uploadResumes"
  38. @filesChanged="onFilesChanged" />
  39. </view>
  40. <!-- 简历解析加载 -->
  41. <view class="load-container" v-if="showLoadCard">
  42. <image src="@/static/loading.gif" class="loading-image" mode="aspectFit"></image>
  43. </view>
  44. <!-- 权限说明弹窗 -->
  45. <u-popup mode="top" ref="permission">
  46. <view class="popup-content">
  47. <view class="popup-text-permission">选择/拍摄照片需要相机/相册权限,用于上传用户头像</view>
  48. </view>
  49. </u-popup>
  50. <!-- 同步解析简历数据 -->
  51. <u-popup v-model="showResumesAnalysis" mode="bottom" border-radius="14" :mask-close-able="false">
  52. <view class="resume-popup">
  53. <view class="close-button flex align-center justify-center" @click="showResumesAnalysis = false">
  54. <u-icon name="close" color="#fff" size="22" />
  55. </view>
  56. <view class="title">从附件简历中解析出<text>{{ validInfoCount }}段</text>有效信息</view>
  57. <view class="tip">无需手动填写,可直接添加到在线简历中</view>
  58. <view class="info-list">
  59. <view class="info-item flex align-center" v-for="(item, index) in analysisList" :key="index">
  60. <view class="label">{{ item.title }}</view>
  61. <view class="border"></view>
  62. <view class="content">{{ item.value }}</view>
  63. </view>
  64. </view>
  65. <view class="button" @click="handleSync">立即同步</view>
  66. </view>
  67. </u-popup>
  68. </view>
  69. </template>
  70. <script>
  71. import configdata from '../../common/config.js';
  72. import navBar from "@/components/nav-bar/index.vue";
  73. // 引入组件
  74. import fileSelector from '@/uni_modules/zhouquan-fileSelector/components/zhouquan-fileSelector/file-selector.vue';
  75. import empty from '../../components/empty.vue'
  76. // #ifdef APP-PLUS
  77. import { chooseFileFromModule } from '@/uni_modules/sr-file-choose'
  78. // #endif
  79. let AIResumeData = {}
  80. export default {
  81. components: {
  82. navBar,
  83. fileSelector,
  84. empty
  85. },
  86. data() {
  87. return {
  88. statusBarHeight: 0, // 状态栏高度
  89. phone: '',
  90. weChatNum: '',//微信号
  91. email: '',//接收简历邮箱
  92. selectedCompany: '深圳市汉瑞国际猎头服务有限公司', // 我的公司
  93. selectedPosition: '人事总监', // 我的职务
  94. avatar: '../../static/logo.png',
  95. userName: '',
  96. nickName: '',
  97. userId: '',
  98. realName: '',
  99. weChatId: "",
  100. password: '',
  101. platform: '',
  102. createTime: '',
  103. money: '',
  104. jiFen: '',
  105. status: '',
  106. zhiFuBao: '',
  107. zhiFuBaoName: '',
  108. sex: 1,
  109. age: 0,
  110. content: [],
  111. showLoadCard: false,
  112. showResumesAnalysis: false,
  113. validInfoCount: 0, // 有效信息数量
  114. analysisList: [
  115. {
  116. title: '基本信息',
  117. value: '',
  118. },
  119. {
  120. title: '工作经历',
  121. value: '',
  122. },
  123. {
  124. title: '教育经历',
  125. value: '',
  126. },
  127. {
  128. title: '个人优势',
  129. value: '',
  130. },
  131. ],
  132. loading: false
  133. };
  134. },
  135. computed: {
  136. phoneWithMask() {
  137. if (this.phone && this.phone.length >= 11) {
  138. return this.phone.substring(0, 3) + '******' + this.phone.substring(9);
  139. }
  140. return this.phone || '请设置手机号';
  141. }
  142. },
  143. onLoad(e) {
  144. // 获取状态栏高度
  145. let systemInfo = uni.getSystemInfoSync();
  146. this.statusBarHeight = systemInfo.statusBarHeight || 0;
  147. this.getUserInfo()
  148. // this.avatar = uni.getStorageSync('avatar')
  149. },
  150. methods: {
  151. // 返回上一页
  152. goBack() {
  153. uni.navigateBack();
  154. },
  155. // 修改手机号
  156. modifyPhone() {
  157. console.log('点击修改手机号,当前手机号:', this.phone);
  158. const url = `/pages/my/userphone?currentPhone=${this.phone}`;
  159. console.log('跳转路径:', url);
  160. uni.navigateTo({
  161. url: url,
  162. });
  163. },
  164. // 选择公司
  165. selectCompany() {
  166. uni.navigateTo({
  167. url: '/pages/my/myCompany'
  168. });
  169. },
  170. // 选择职务
  171. selectPosition() {
  172. // 这里可以跳转到职务选择页面或显示职务选择弹窗
  173. console.log('选择职务');
  174. },
  175. onChooseAvatar(e) {
  176. let that = this;
  177. let token = uni.getStorageSync('token');
  178. uni.uploadFile({
  179. url: this.$Request.config("APIHOST1") +
  180. '/alioss/upload', //真实的接口地址
  181. filePath: e.detail.avatarUrl,
  182. header: {
  183. token: token
  184. },
  185. name: 'file',
  186. success: uploadFileRes => {
  187. let url = JSON.parse(uploadFileRes.data);
  188. that.avatar = url.data
  189. uni.hideLoading();
  190. }
  191. });
  192. },
  193. goMyAddress() {
  194. uni.navigateTo({
  195. url: '../jifen/myaddress'
  196. });
  197. },
  198. // uploadImg() {
  199. // let token = uni.getStorageSync('token')
  200. // if (!token) {
  201. // this.goLoginInfo();
  202. // return;
  203. // }
  204. // let that = this;
  205. // var url = null;
  206. // uni.showActionSheet({
  207. // // itemList按钮的文字接受的是数组
  208. // itemList: ["查看头像", "从相册选择图片"],
  209. // async success(e) {
  210. // var index = e.tapIndex
  211. // if (index === 0) {
  212. // // 用户点击了预览当前图片
  213. // // 可以自己实现当前头像链接的读取
  214. // let url = that.avatar;
  215. // let arr = []
  216. // arr.push(url)
  217. // uni.previewImage({
  218. // // 预览功能图片也必须是数组的
  219. // urls: arr
  220. // })
  221. // } else if (index === 1) {
  222. // // 1. 检查权限状态
  223. // const hasPermission = await this.$queue.checkPermission(
  224. // 'camera',
  225. // '选择/拍摄照片需要相机/相册权限,用于上传用户头像',
  226. // this
  227. // );
  228. // // 2. 如果未授权或者用户拒绝,显示提示
  229. // if (!hasPermission) {
  230. // return;
  231. // }
  232. // uni.chooseImage({
  233. // count: 1, //默认9
  234. // sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
  235. // sourceType: ['album'], //从相册选择
  236. // success: function (res) {
  237. // uni.showLoading({
  238. // title: '上传中...'
  239. // });
  240. // let token = uni.getStorageSync('token');
  241. // let userId = uni.getStorageSync('userId');
  242. // uni.uploadFile({
  243. // url: this.$Request.config("APIHOST1") +
  244. // '/alioss/upload', //真实的接口地址
  245. // filePath: res.tempFilePaths[0],
  246. // header: {
  247. // token: token
  248. // },
  249. // name: 'file',
  250. // success: uploadFileRes => {
  251. // url = JSON.parse(uploadFileRes.data);
  252. // that.avatar = url.data
  253. // uni.hideLoading();
  254. // }
  255. // });
  256. // }
  257. // });
  258. // }
  259. // }
  260. // })
  261. // },
  262. // config: function (name) {
  263. // var info = null;
  264. // if (name) {
  265. // var name2 = name.split("."); //字符分割
  266. // if (name2.length > 1) {
  267. // info = configdata[name2[0]][name2[1]] || null;
  268. // } else {
  269. // info = configdata[name] || null;
  270. // }
  271. // if (info == null) {
  272. // let web_config = cache.get("web_config");
  273. // if (web_config) {
  274. // if (name2.length > 1) {
  275. // info = web_config[name2[0]][name2[1]] || null;
  276. // } else {
  277. // info = web_config[name] || null;
  278. // }
  279. // }
  280. // }
  281. // }
  282. // return info;
  283. // },
  284. getUserInfo() {
  285. this.$Request.get("/app/resumes/getAttachment").then(res => {
  286. if (res.code == 0) {
  287. res.data.forEach(function (item) {
  288. const ext = item.attachmentName.split('.').pop().toLowerCase();
  289. item.fileType = ext
  290. })
  291. this.content = res.data
  292. }
  293. uni.hideLoading();
  294. });
  295. },
  296. // 保存
  297. uploadResumes(e) {
  298. var that = this
  299. console.log(e.path)
  300. const validExtensions = ['pdf', 'doc', 'docx'];
  301. const ext = e.name.split('.').pop().toLowerCase();
  302. if (!validExtensions.includes(ext)) {
  303. this.$queue.showToast('仅支持PDF/DOC/DOCX格式')
  304. return;
  305. }
  306. uni.getFileInfo({
  307. filePath: e.path,
  308. success: (info) => {
  309. console.log('文件大小:', info.size); // 单位:字节
  310. let attachment_size = (info.size / 1024).toFixed(1)
  311. that.$queue.uploadFile(e.path, function (path) {
  312. if (path)
  313. that.$Request.postJson("/app/resumes/saveAttachment", {
  314. attachmentAddress: path,
  315. attachmentName: e.name,
  316. attachmentSize: attachment_size
  317. }).then(res => {
  318. if (res.code === 0) {
  319. that.getUserInfo()
  320. uni.$emit('updateAttachmentList')
  321. } else {
  322. uni.showToast({
  323. title: res.msg,
  324. icon: "none"
  325. })
  326. }
  327. })
  328. else
  329. that.$queue.showToast('文件上传失败')
  330. })
  331. },
  332. fail: (err) => {
  333. console.error('获取失败', err);
  334. }
  335. });
  336. },
  337. more(id) {
  338. var that = this
  339. uni.showActionSheet({
  340. itemList: ["删除"],
  341. itemColor: "#3273db",
  342. success(res) {
  343. if (res.tapIndex == 0)
  344. that.deleteAttachment(id)
  345. },
  346. fail(res) {
  347. console.log(res.errMsg);
  348. },
  349. });
  350. },
  351. handleWeChatUpload() {
  352. plus.share.getServices(res => {
  353. let weixinService = null;
  354. for (let i in res) {
  355. if (res[i].id === 'weixin') {
  356. weixinService = res[i];
  357. break;
  358. }
  359. }
  360. console.log('weixinService :>> ', weixinService);
  361. const userId = uni.getStorageSync('userId')
  362. if (weixinService) {
  363. weixinService.launchMiniProgram({
  364. id: 'gh_854ab5288c2d',
  365. path: `/pages/index/index?userId=${userId}`,
  366. type: 2 // 小程序版本类型:0-正式版;1-测试版;2-体验版
  367. });
  368. } else {
  369. console.log('未安装微信或获取微信服务失败');
  370. }
  371. });
  372. },
  373. deleteAttachment(id) {
  374. var that = this;
  375. uni.showModal({
  376. title: '提示',
  377. content: '确定删除?',
  378. success(res) {
  379. if (res.confirm) {
  380. that.$Request.postJson("/app/resumes/deleteAttachment", {
  381. resumesAttachmentId: id
  382. }).then(res => {
  383. if (res.code === 0) {
  384. var info = that.content.filter(function (item) {
  385. return item.resumesAttachmentId != id;
  386. });
  387. that.content = info
  388. uni.$emit('updateAttachmentList')
  389. } else {
  390. uni.showToast({
  391. title: res.msg,
  392. icon: "none"
  393. })
  394. }
  395. })
  396. } else if (res.cancel) {
  397. console.log('用户点击取消')
  398. }
  399. }
  400. })
  401. },
  402. onFilesChanged(e) {
  403. console.log(e)
  404. },
  405. seekDoc(it) {
  406. //#ifdef APP-PLUS
  407. uni.downloadFile({
  408. url: it.attachmentAddress,
  409. success: function (res) {
  410. var filePath = res.tempFilePath;
  411. uni.openDocument({
  412. filePath: filePath,
  413. showMenu: true,
  414. success: function (res) {
  415. console.log('打开文档成功');
  416. }
  417. });
  418. }
  419. });
  420. return;
  421. //#endif
  422. uni.navigateTo({
  423. url: '/pages/index/webView?url=' + it.attachmentAddress + '&title=' + it.attachmentName
  424. });
  425. },
  426. // 附件一键识别
  427. handlUploadFile() {
  428. if (this.content.length >= 3) {
  429. this.$queue.showToast('最多保存三张附件简历,请删除后再试')
  430. return
  431. }
  432. // #ifdef APP-PLUS
  433. chooseFileFromModule({
  434. complete: res => {
  435. let path = res.path
  436. let name = res.name
  437. let fileType = ''
  438. // 如果没有name,默认为:截取最后一个/之后的内容
  439. if (!name) {
  440. let lastIndex = path.lastIndexOf('/');
  441. if (lastIndex !== -1) {
  442. name = path.substring(lastIndex + 1);
  443. } else {
  444. name = Math.random().toString(36).substr(2) + Date.now();
  445. }
  446. }
  447. // 使用 lastIndexOf 方法找到最后一个 . 的位置
  448. let lastDotIndex = name.lastIndexOf('.');
  449. if (lastDotIndex !== -1) {
  450. fileType = name.substring(lastDotIndex + 1);
  451. } else {
  452. console.log('文件路径中没有 .');
  453. }
  454. let file = {
  455. size: res.size,
  456. path,
  457. fileType,
  458. name
  459. }
  460. this.uploadFile(file)
  461. }
  462. })
  463. // #endif
  464. // #ifdef H5
  465. uni.chooseFile({
  466. count: 1,
  467. success: res => {
  468. this.uploadFile({
  469. path: res.tempFilePaths[0],
  470. name: 'file'
  471. })
  472. }
  473. })
  474. // #endif
  475. },
  476. // 上传文件
  477. uploadFile(file) {
  478. this.$queue.uploadFiles({
  479. url: '/app/resumes/aiResumesUpload',
  480. path: file.path,
  481. name: 'file'
  482. }, (res) => {
  483. if (res && res.code === 0) {
  484. const id = res.data?.id
  485. const resumesAttachmentId = res.data?.resumesAttachmentId || ''
  486. if (id) {
  487. this.getAiResumesAnalysis(id, resumesAttachmentId)
  488. }
  489. // 上传成功,获取简历列表数据
  490. this.getUserInfo()
  491. } else {
  492. this.$queue.showToast(res ? res.msg : '文件上传失败')
  493. }
  494. })
  495. },
  496. // 获取简历解析数据
  497. getAiResumesAnalysis(fileId, resumesAttachmentId) {
  498. this.showLoadCard = true
  499. uni.request({
  500. url: this.$Request.config('APIHOST') + '/app/resumes/aiResumesAnalysis',
  501. header: {
  502. 'content-type': 'application/x-www-form-urlencoded', // 模拟 form-data
  503. token: uni.getStorageSync('token'),
  504. },
  505. method: 'post',
  506. data: {
  507. fileId,
  508. resumesAttachmentId
  509. },
  510. timeout: 180000,
  511. success: (res) => {
  512. this.stopLoadStatus()
  513. if (res.data?.code == 0) {
  514. const data = res.data.data.data
  515. // 识别前,先清空数据
  516. this.clearResumeData()
  517. this.setAiResumesAnalysis(data.output)
  518. }
  519. },
  520. fail: (err) => {
  521. this.showModal('解析失败,请稍后重试')
  522. this.stopLoadStatus()
  523. }
  524. })
  525. },
  526. stopLoadStatus() {
  527. this.showLoadCard = false
  528. },
  529. // 获取简历解析数据
  530. setAiResumesAnalysis(data) {
  531. AIResumeData = data || {}
  532. if (data) {
  533. this.showResumesAnalysis = true
  534. // 基本信息
  535. if (data.name || data.age || data.email) {
  536. this.validInfoCount++
  537. let dataArray = []
  538. if (data.name) {
  539. dataArray.push(data.name)
  540. }
  541. if (data.age) {
  542. dataArray.push(data.age)
  543. }
  544. if (data.email) {
  545. dataArray.push(data.email)
  546. }
  547. this.analysisList[0].value = dataArray.join('、')
  548. }
  549. // 工作经历
  550. if (data.workExperience?.length) {
  551. this.validInfoCount++
  552. let dataArray = data.workExperience.map(item => item.company)
  553. this.analysisList[1].value = dataArray.join('、')
  554. }
  555. // 教育经历
  556. if (data.education?.length) {
  557. this.validInfoCount++
  558. let dataArray = data.education.map(item => item.school)
  559. this.analysisList[2].value = dataArray.join('、')
  560. }
  561. // 个人优势
  562. if (data.selfEvaluation) {
  563. this.validInfoCount++
  564. this.analysisList[3].value = data.selfEvaluation
  565. }
  566. }
  567. },
  568. // 同步简历数据
  569. handleSync() {
  570. if (this.loading) return
  571. uni.showLoading({ title: '同步中' })
  572. this.loading = true
  573. this.$Request
  574. .postJson('/app/resumes/syncResumess', AIResumeData)
  575. .then(res => {
  576. if (res.code === 0) {
  577. this.showResumesAnalysis = false
  578. this.$queue.showToast('同步成功')
  579. } else {
  580. this.$queue.showToast('同步失败')
  581. }
  582. })
  583. .finally(() => {
  584. this.loading = false
  585. uni.hideLoading()
  586. })
  587. },
  588. // 清空数据
  589. clearResumeData() {
  590. this.analysisList.forEach(item => {
  591. item.value = ''
  592. })
  593. },
  594. showModal(content) {
  595. uni.showModal({
  596. title: '提示',
  597. content,
  598. showCancel: false
  599. })
  600. }
  601. },
  602. // userphone(){
  603. // uni.navigateTo({
  604. // url:'/pages/my/userphone'
  605. // })
  606. // }
  607. };
  608. </script>
  609. <style lang="scss" scoped>
  610. page {
  611. /* background: #f6f6f6; */
  612. }
  613. .navbar {
  614. padding: 24rpx 32rpx 20rpx 32rpx;
  615. background: #fff;
  616. .navbar-content {
  617. display: flex;
  618. align-items: center;
  619. justify-content: space-between;
  620. height: 60rpx;
  621. .navbar-left {
  622. width: 60rpx;
  623. height: 60rpx;
  624. display: flex;
  625. align-items: center;
  626. justify-content: center;
  627. }
  628. .navbar-title {
  629. color: rgba(23, 23, 37, 1);
  630. font-family: DM Sans;
  631. font-size: 36rpx;
  632. font-weight: 700;
  633. line-height: 52rpx;
  634. letter-spacing: 0%;
  635. text-align: center;
  636. }
  637. .navbar-right {
  638. width: 60rpx;
  639. height: 60rpx;
  640. }
  641. }
  642. }
  643. button::after {
  644. border: none;
  645. background-color: none;
  646. }
  647. button {
  648. position: relative;
  649. display: block;
  650. margin-left: auto;
  651. margin-right: auto;
  652. padding-left: 0px;
  653. padding-right: 0px;
  654. box-sizing: border-box;
  655. text-decoration: none;
  656. line-height: 1.35;
  657. overflow: hidden;
  658. color: #666666;
  659. /* background-color: #fff; */
  660. background-color: rgba(255, 255, 255, 0) !important;
  661. width: 100%;
  662. height: 100%;
  663. }
  664. .contain {
  665. flex: 1;
  666. scroll-view {
  667. height: 100%;
  668. }
  669. }
  670. .usermain-item {
  671. display: flex;
  672. justify-content: space-between;
  673. margin: 0 40rpx;
  674. padding: 30rpx 0;
  675. // border-bottom: 1rpx solid rgba(229, 229, 229, 0.3);
  676. background: #fff;
  677. .fileContent {
  678. width: 85%;
  679. margin: 0 20rpx;
  680. }
  681. .fileName {
  682. color: #222;
  683. font-size: 32rpx;
  684. }
  685. .filedesc {
  686. margin-top: 10rpx;
  687. font-size: 24rpx;
  688. }
  689. .c-flex-center {
  690. align-self: center;
  691. color: #aaa;
  692. flex-shrink: 0;
  693. }
  694. }
  695. .usermain-item-title {
  696. color: rgba(31, 44, 55, 1);
  697. font-family: DM Sans;
  698. font-size: 28rpx;
  699. font-weight: 500;
  700. line-height: 44rpx;
  701. text-align: left;
  702. .header-icon {
  703. width: 50rpx;
  704. height: 50rpx;
  705. display: block;
  706. }
  707. }
  708. .usermain-item.item-padding {
  709. /* padding: 0; */
  710. }
  711. .cu-form-group {
  712. padding: 0;
  713. background: #ffffff;
  714. text-align: right;
  715. }
  716. .cu-form-group input {
  717. background: #ffffff;
  718. font-size: 28rpx;
  719. /* color: #fff; */
  720. }
  721. /* 姓名字段样式 - 参考basicInfo.vue */
  722. .usermain-item .form-label {
  723. color: rgba(31, 44, 55, 1);
  724. font-family: DM Sans;
  725. font-size: 32rpx;
  726. font-weight: 500;
  727. line-height: 44rpx;
  728. letter-spacing: 0.5%;
  729. text-align: left;
  730. display: flex;
  731. align-items: center;
  732. margin-bottom: 16rpx;
  733. }
  734. .usermain-item .required-mark {
  735. color: #FF3B30;
  736. font-size: 36rpx;
  737. font-weight: 600;
  738. margin-right: 8rpx;
  739. }
  740. .usermain-item .cu-form-group {
  741. background: transparent;
  742. text-align: left;
  743. padding: 0;
  744. }
  745. .usermain-item .cu-form-group input {
  746. width: 100%;
  747. height: 68rpx;
  748. font-size: 28rpx;
  749. border: 1rpx solid rgba(227, 231, 236, 1);
  750. border-radius: 44rpx;
  751. color: rgba(23, 23, 37, 1);
  752. padding: 0 32rpx;
  753. background: #ffffff;
  754. font-family: DM Sans;
  755. font-weight: 400;
  756. }
  757. .usermain-item .cu-form-group input::placeholder {
  758. color: rgba(155, 155, 155, 1);
  759. font-size: 28rpx;
  760. }
  761. /* 联系方式样式 */
  762. .contact-structure {
  763. border-bottom: none !important;
  764. }
  765. .contact-wrapper {
  766. display: flex;
  767. align-items: center;
  768. justify-content: space-between;
  769. padding: 0;
  770. margin-top: 8rpx;
  771. }
  772. .phone-display {
  773. color: rgba(23, 23, 37, 1);
  774. font-family: DM Sans;
  775. font-size: 28rpx;
  776. font-weight: 400;
  777. line-height: 40rpx;
  778. letter-spacing: 0.5%;
  779. }
  780. .modify-link {
  781. color: rgba(24, 144, 255, 1);
  782. font-family: DM Sans;
  783. font-size: 28rpx;
  784. font-weight: 400;
  785. line-height: 40rpx;
  786. letter-spacing: 0.5%;
  787. cursor: pointer;
  788. text-decoration: none;
  789. }
  790. .modify-link:active {
  791. opacity: 0.7;
  792. }
  793. /* 头像编辑图标样式 */
  794. .avatar-wrapper {
  795. position: relative;
  796. display: inline-block;
  797. }
  798. .edit-avatar-icon {
  799. position: absolute;
  800. bottom: 10rpx;
  801. right: 2rpx;
  802. width: 24rpx;
  803. height: 24rpx;
  804. // background: #fff;
  805. border-radius: 50%;
  806. display: flex;
  807. align-items: center;
  808. justify-content: center;
  809. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
  810. }
  811. .avatar-button {
  812. position: relative;
  813. padding: 0;
  814. margin: 0;
  815. background: transparent;
  816. border: none;
  817. }
  818. .footer-btn .usermain-btn {
  819. color: rgba(255, 255, 255, 1);
  820. background: rgba(1, 107, 246, 1);
  821. text-align: center;
  822. width: 90%;
  823. height: 80rpx;
  824. font-size: 32rpx;
  825. line-height: 80rpx;
  826. margin: 20rpx auto;
  827. border-radius: 40rpx;
  828. }
  829. /* 选择器样式 - 参考workExperience页面 */
  830. .form-input-selector {
  831. width: 100%;
  832. height: 68rpx;
  833. padding: 0 40rpx;
  834. border: 1px solid rgba(227, 231, 236, 1);
  835. border-radius: 24px;
  836. background: rgba(255, 255, 255, 1);
  837. display: flex;
  838. align-items: center;
  839. justify-content: space-between;
  840. cursor: pointer;
  841. transition: all 0.2s ease;
  842. .placeholder {
  843. color: #999999;
  844. font-family: DM Sans;
  845. font-size: 28rpx;
  846. font-weight: 400;
  847. line-height: 40rpx;
  848. }
  849. text {
  850. color: rgba(23, 23, 37, 1);
  851. font-family: DM Sans;
  852. font-size: 28rpx;
  853. font-weight: 400;
  854. line-height: 40rpx;
  855. }
  856. }
  857. .arrow-down {
  858. color: rgba(96, 98, 102, 1);
  859. font-size: 24rpx;
  860. font-weight: 400;
  861. transform: scale(1.5);
  862. }
  863. .selector-group:active {
  864. background: #f5f7fa !important;
  865. transform: scale(0.99);
  866. }
  867. .white-btn {
  868. width: 600rpx;
  869. font-size: 32rpx;
  870. text-align: center;
  871. color: #016bf6;
  872. background-color: #fff;
  873. border-radius: 88rpx;
  874. margin: 32rpx auto 0;
  875. }
  876. .load-container {
  877. position: fixed;
  878. left: 0;
  879. top: 0;
  880. width: 100%;
  881. height: 100%;
  882. display: flex;
  883. align-items: center;
  884. justify-content: center;
  885. background: rgba(0, 0, 0, 1);
  886. .loading-image {
  887. width: 100%;
  888. height: 100%;
  889. }
  890. }
  891. // 解析简历popup
  892. .resume-popup {
  893. position: relative;
  894. padding: 70rpx 40rpx 40rpx;
  895. .title {
  896. font-size: 40rpx;
  897. font-weight: 700;
  898. line-height: 52rpx;
  899. color: #333;
  900. margin-bottom: 12rpx;
  901. text {
  902. color: #016bf6;
  903. }
  904. }
  905. .tip {
  906. font-size: 28rpx;
  907. line-height: 36rpx;
  908. color: #999999;
  909. }
  910. .info-list {
  911. .info-item {
  912. box-sizing: border-box;
  913. border: 1px solid rgba(242, 242, 242, 1);
  914. border-radius: 6px;
  915. background: rgba(250, 250, 250, 1);
  916. padding: 26rpx 24rpx;
  917. margin-top: 40rpx;
  918. .label {
  919. font-size: 28rpx;
  920. font-weight: 500;
  921. line-height: 1;
  922. color: rgba(51, 51, 51, 1);
  923. }
  924. .border {
  925. width: 1px;
  926. height: 20rpx;
  927. margin: 0 20rpx;
  928. background: rgba(234, 234, 234, 1);
  929. }
  930. .content {
  931. flex: 1;
  932. width: 0;
  933. overflow: hidden;
  934. text-overflow: ellipsis;
  935. white-space: nowrap;
  936. color: rgba(153, 153, 153, 1);
  937. font-size: 28rpx;
  938. line-height: 1;
  939. }
  940. }
  941. }
  942. .button {
  943. width: 600rpx;
  944. height: 88rpx;
  945. border-radius: 88rpx;
  946. background: linear-gradient(90.00deg, rgba(13, 39, 247, 1),rgba(19, 193, 234, 1));
  947. font-size: 32rpx;
  948. font-weight: 500;
  949. line-height: 88rpx;
  950. text-align: center;
  951. color: #fff;
  952. margin: 60rpx auto 0;
  953. }
  954. .close-button {
  955. position: absolute;
  956. top: 30rpx;
  957. right: 40rpx;
  958. width: 40rpx;
  959. height: 40rpx;
  960. border-radius: 40rpx;
  961. background: rgba(230, 230, 230, 1);
  962. }
  963. }
  964. </style>