attachment.vue 22 KB

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