attachment.vue 21 KB

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