onlineResume.vue 29 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252
  1. <template>
  2. <view class="online-resume">
  3. <navBar title="在线简历" color="#000" />
  4. <view class="page-content">
  5. <!-- 用户信息区域 -->
  6. <view class="user-profile">
  7. <view class="avatar-container">
  8. <image
  9. :src="detail.userEntity && detail.userEntity.avatar ? detail.userEntity.avatar : '../../static/logo.png'"
  10. class="user-avatar" mode="aspectFill"></image>
  11. <view class="edit-avatar-icon" @click="goToBasicInfo">
  12. <image src="../../static/images/index/Combined-Shape.svg" style="width: 32rpx;height: 32rpx;"
  13. mode=""></image>
  14. </view>
  15. </view>
  16. <view class="user-name">{{ detail.userEntity && detail.userEntity.userName || '匿名' }}</view>
  17. <view class="user-info">
  18. {{ detail.workExpTimes }}年经验·{{ detail.userEntity && detail.userEntity.age }}岁·{{ detail.degree }}·{{ detail.userEntity && detail.userEntity.sex == 1 ? '男' : '女' }}
  19. </view>
  20. <view class="contact-info">
  21. <view class="contact-item">
  22. <image src="../../static/images/index/phone.svg" style="width: 24rpx;height: 24rpx;" mode="">
  23. </image>
  24. <text class="contact-text">{{ detail.resumeList && detail.resumeList.resumesPhone }}</text>
  25. </view>
  26. <view class="contact-item">
  27. <image src="../../static/images/index/wx.svg" style="width: 24rpx;height: 24rpx;" mode="">
  28. </image>
  29. <text class="contact-text">{{ detail.userEntity && detail.userEntity.weChatNum }}</text>
  30. </view>
  31. </view>
  32. <view class="availability">
  33. <text
  34. class="status-text">{{ detail.resumeList && detail.resumeList.resumesStatus ? statusList[detail.resumeList.resumesStatus].text : statusList[0].text }}</text>
  35. <view class="status-dot"></view>
  36. </view>
  37. </view>
  38. <!-- 内容区域 -->
  39. <view class="content-section">
  40. <!-- 跨境电商工作经验 -->
  41. <view class="switch-section">
  42. <view class="switch-left">
  43. <view class="flex justify-between">
  44. <view class="switch-title">是否有跨境电商工作经验</view>
  45. <view class="template-text">不同简历模版</view>
  46. </view>
  47. <view class="section-status" v-if="hasEcommerceExperience">
  48. 是,有跨境电商工作经验
  49. </view>
  50. </view>
  51. <u-switch @change="setResume" v-model="hasEcommerceExperience" active-color="#007AFF"
  52. size="60"></u-switch>
  53. </view>
  54. <!-- 个人优势 -->
  55. <view class="section-item">
  56. <view class="section-header">
  57. <view class="section-title">个人优势</view>
  58. <!-- 右侧编辑按钮 -->
  59. <view @click="toggleEdit">
  60. <template v-if="isEditing">
  61. <text class="save-btn">保存</text>
  62. </template>
  63. <template v-else>
  64. <image class="edit-icon"
  65. src="../../static/images/index/Combined-Shape.svg"
  66. style="width: 48rpx; height: 48rpx;"
  67. mode=""
  68. />
  69. </template>
  70. </view>
  71. </view>
  72. <view class="advantage-content">
  73. <textarea
  74. ref="advInput"
  75. :disabled="!isEditing"
  76. auto-height
  77. placeholder="请输入个人优势"
  78. v-model="detail.resumeList && detail.resumeList.adv"
  79. @blur="setResume"
  80. ></textarea>
  81. </view>
  82. </view>
  83. <!-- 全职期望卡片 -->
  84. <view class="expectation-card">
  85. <view class="card-header">
  86. <view class="header-left">
  87. <image src="../../static/images/index/lingdai.svg" class="header-icon" />
  88. <text class="header-title">全职期望</text>
  89. </view>
  90. <text class="progress-text">{{ detail.intentions && detail.intentions.length }}/3</text>
  91. </view>
  92. <view class="job-list">
  93. <view @longpress="commonDelete(item.intentionId, 'intentions')"
  94. @click="addExpectation(item.intentionId)" class="job-item"
  95. v-for="(item, index) in detail.intentions">
  96. <view class="job-info">
  97. <view>
  98. <text class="job-title">{{ item.ruleClassifyName }}</text>
  99. <view @click.stop="goToPreferenceSetting(item)">
  100. <view class="preference-btn">
  101. <text>设置跨境标签</text>
  102. </view>
  103. <u-icon name="arrow-right" color="rgba(29, 33, 41, 1)" size="28"></u-icon>
  104. </view>
  105. </view>
  106. <text class="job-details">{{ item.salaryRange }}・{{ item.industry || '不限' }}</text>
  107. <text class="job-location">{{ item.citys }}</text>
  108. </view>
  109. </view>
  110. </view>
  111. <view class="add-expectation-btn" @click="addExpectation('')">
  112. <text>添加求职期望</text>
  113. </view>
  114. </view>
  115. <!-- 工作经历 -->
  116. <view class="work-experience-section">
  117. <view class="section-header">
  118. <view class="section-title">
  119. <text class="required-mark">*</text>
  120. <text class="required-title">工作经历</text>
  121. <view class="section-desc">请填写专属跨境行业的工作经验</view>
  122. </view>
  123. <view class="edit-icon" @click="goToWorkExperience('')">
  124. <image src="../../static/images/index/Combined-Shape.svg"
  125. style="width: 48rpx;height: 48rpx;" mode=""></image>
  126. </view>
  127. </view>
  128. <view class="experience-list">
  129. <view class="experience-item" v-for="item in detail.workExps">
  130. <view class="company-logo">
  131. <image src="../../static/images/index/changsha.svg" class="logo-img" mode="aspectFit">
  132. </image>
  133. </view>
  134. <view class="experience-content">
  135. <view class="experience-box" v-for="it in item.workExpDetails" @click.stop="goToWorkExperience(item.workExpId)">
  136. <view class="job-info-row">
  137. <view class="job-title">{{ it.position }}</view>
  138. <view class="job-department">{{ it.department }}</view>
  139. </view>
  140. <view class="company-period-row">
  141. <view class="company-name">{{ item.companyName }}</view>
  142. <view class="work-period">{{ it.startTime }}-{{ it.endTime }}</view>
  143. </view>
  144. <view style="margin-bottom: 10rpx;font-size: 22rpx;">工作内容</view>
  145. <view class="job-description">
  146. {{ it.workContent }}
  147. </view>
  148. <view style="margin: 12rpx 0;font-size: 22rpx;">工作业绩</view>
  149. <view class="job-description">
  150. {{it.workPerformance}}
  151. </view>
  152. <view class="skill-tags">
  153. <view class="tag" v-for="skill in it.skills">{{ skill }}</view>
  154. </view>
  155. </view>
  156. <view class="flex align-center justify-between">
  157. <view style="color: #78828a;font-size: 22rpx;">不对该公司展示</view>
  158. <u-switch v-model="item.isShield" @change="changeIsDisplay(item)"></u-switch>
  159. </view>
  160. </view>
  161. <view @click.stop="commonDelete(item.workExpId, 'workExps')">
  162. <image src="../../static/images/index/delete.svg" class="delete-icon" />
  163. </view>
  164. </view>
  165. </view>
  166. </view>
  167. <!-- 教育经历 -->
  168. <view class="education-section">
  169. <view class="section-header">
  170. <view class="section-title">
  171. <text>教育经历</text>
  172. </view>
  173. <view class="edit-icon" @click="goToEducationExperience('')">
  174. <image src="../../static/images/index/Combined-Shape.svg"
  175. style="width: 48rpx;height: 48rpx;" mode=""></image>
  176. </view>
  177. </view>
  178. <view class="education-list">
  179. <view class="education-item" @click.stop="goToEducationExperience(item.eduId)"
  180. v-for="(item, index) in detail.eduList">
  181. <view class="school-logo">
  182. <image src="../../static/images/index/wuhan.svg" class="logo-img" mode="aspectFit">
  183. </image>
  184. </view>
  185. <view class="education-content">
  186. <view class="school-name">{{ item.school }}</view>
  187. <view class="degree-info">{{ item.degree }} • {{ item.profession }} •
  188. {{ new Date(item.startTime).getFullYear() }}-{{ new Date(item.endTime).getFullYear() }}
  189. </view>
  190. <view class="education-description">
  191. {{ item.detail }}
  192. </view>
  193. </view>
  194. <view @click.stop="commonDelete(item.eduId, 'eduList')">
  195. <image src="../../static/images/index/delete.svg" class="delete-icon" />
  196. </view>
  197. </view>
  198. </view>
  199. </view>
  200. <!-- 技能 -->
  201. <view class="skills-section">
  202. <view class="section-header">
  203. <view class="section-title">
  204. <text>技能</text>
  205. </view>
  206. <view class="edit-icon" @click="goToJobSkills">
  207. <image src="../../static/images/index/Combined-Shape.svg"
  208. style="width: 48rpx;height: 48rpx;" mode=""></image>
  209. </view>
  210. </view>
  211. <view class="skills-grid">
  212. <view class="skill-tag" v-for="(skill, skillIndex) in detail.skills" :key="skillIndex">
  213. {{ skill.skillName }}</view>
  214. </view>
  215. </view>
  216. </view>
  217. </view>
  218. </view>
  219. </template>
  220. <script>
  221. import navBar from "@/components/nav-bar/index.vue";
  222. var intentionId = 0
  223. export default {
  224. components: {
  225. navBar,
  226. },
  227. data() {
  228. return {
  229. isEditing: false,
  230. hasEcommerceExperience: false,
  231. detail: {},
  232. statusList: [{
  233. value: 'unemployed_available',
  234. text: '离职-随时到岗',
  235. },
  236. {
  237. value: 'employed_monthly',
  238. text: '在职-月内到岗',
  239. },
  240. {
  241. value: 'employed_considering',
  242. text: '在职-考虑机会',
  243. },
  244. {
  245. value: 'employed_not_considering',
  246. text: '在职-暂不考虑',
  247. },
  248. {
  249. value: 'internship',
  250. text: '实习',
  251. }
  252. ]
  253. }
  254. },
  255. onLoad() {
  256. this.getData()
  257. var that = this
  258. uni.$on('updateResume', () => {
  259. console.log(2222222222222)
  260. that.getData()
  261. })
  262. // 监听技能设置更新
  263. uni.$on('skillsUpdated', (data) => {
  264. if (data.set != 1)
  265. return
  266. that.changeSkill(data.selectedTags)
  267. })
  268. uni.$on('preferenceUpdated', (data) => {
  269. if (data.set != 1)
  270. return
  271. that.changePreference(data.preferences)
  272. })
  273. },
  274. onUnload() {
  275. uni.$off('updateResume')
  276. uni.$off('preferenceUpdated')
  277. uni.$off('skillsUpdated')
  278. },
  279. methods: {
  280. toggleEdit(){
  281. this.isEditing = !this.isEditing;
  282. },
  283. // 是否屏蔽该公司
  284. changeIsDisplay(item){
  285. let data = {
  286. workExp:{
  287. isShield:item.isShield?1:0,
  288. workExpId:item.workExpId
  289. }
  290. }
  291. this.$Request.postJson("/app/userFirst/addWorkExp", data).then((res) => {
  292. if (res.code == 0) {
  293. uni.showToast({
  294. title: "修改成功",
  295. icon: "none"
  296. });
  297. } else {
  298. uni.showToast({
  299. title: res.msg,
  300. icon: "none",
  301. });
  302. }
  303. });
  304. },
  305. goBack() {
  306. uni.navigateBack();
  307. },
  308. getData() {
  309. var that = this
  310. this.$Request.getT("/app/userFirst/getUserResumes", {}).then((res) => {
  311. if (res.code == 0) {
  312. that.detail = res.data
  313. that.hasEcommerceExperience = res.data.resumeList && res.data.resumeList.ifExp ? true :
  314. false
  315. that.detail.degree = that.$queue.getHighestEducation(res.data.eduList)
  316. res.data.workExps.forEach(function (item) {
  317. console.log(item.type);
  318. try {
  319. if (typeof item.type === 'string' && (item.type.startsWith('[') || item
  320. .type.startsWith('{'))) {
  321. item.type = JSON.parse(item.type);
  322. }
  323. } catch (e) {
  324. console.warn('item.type JSON解析失败:', item.type);
  325. }
  326. item.isShield = item.isShield == 1?true:false
  327. item.workExpDetails = [];
  328. res.data.workExpList.forEach(function (it) {
  329. console.log(it.skills);
  330. try {
  331. if (typeof it.skills === 'string' && (it.skills.startsWith(
  332. '[') || it.skills.startsWith('{'))) {
  333. it.skills = JSON.parse(it.skills);
  334. }
  335. } catch (e) {
  336. console.warn('it.skills JSON解析失败:', it.skills);
  337. }
  338. it.startTime = it.startTime ? it.startTime.slice(0, 7) : '';
  339. if (that.$queue.isCurrentMonth(new Date(it.endTime)))
  340. it.endTime = '至今';
  341. else
  342. it.endTime = it.endTime ? it.endTime.slice(0, 7) : '';
  343. if (it.workExpId == item.workExpId)
  344. item.workExpDetails.push(it);
  345. });
  346. });
  347. console.log('最终数据')
  348. console.log(res.data.workExps);
  349. that.detail.workExps = res.data.workExps
  350. } else {
  351. uni.showToast({
  352. title: res.msg,
  353. icon: "none",
  354. });
  355. }
  356. });
  357. },
  358. addExpectation(id = '') {
  359. uni.navigateTo({
  360. url: '/package/jobIntention/addExpectation?id=' + id
  361. })
  362. },
  363. goToPreferenceSetting(item) {
  364. intentionId = item.intentionId
  365. if (item.ruleClassifyId == '' || item.ruleClassifyId == 0)
  366. return this.$queue.showToast('请先选择岗位')
  367. uni.navigateTo({
  368. url: '/package/jobIntention/preferenceSetting?set=1&jobId=' + item.ruleClassifyId +
  369. '&jobTitle=' + item.ruleClassifyName + '&selectedPreferences=' + encodeURIComponent(JSON
  370. .stringify(item.industry == '' || item.industry == null ? [] : item.industry.split(
  371. '/')))
  372. })
  373. },
  374. goToJobSkills() {
  375. uni.navigateTo({
  376. url: '/package/jobIntention/jobSkills?set=1&jobTitle=我的&skill=' + encodeURIComponent(JSON
  377. .stringify(this.detail.skills == null ? [] : this.$queue.array_column(this.detail
  378. .skills, 'skillName')))
  379. })
  380. },
  381. goToWorkExperience(id = '') {
  382. // 获取业务类型数据
  383. const businessTypes = this.getBusinessTypes()
  384. console.log('传递给工作经历页面的业务类型:', businessTypes)
  385. console.log('当前hasEcommerceExperience状态:', this.hasEcommerceExperience)
  386. uni.navigateTo({
  387. url: `/pages/my/workExperience?id=${id}&businessTypes=${encodeURIComponent(JSON.stringify(businessTypes))}`
  388. })
  389. },
  390. goToEducationExperience(id = '') {
  391. uni.navigateTo({
  392. url: `/pages/my/educationExperience?id=${id}`
  393. })
  394. },
  395. goToBasicInfo() {
  396. uni.navigateTo({
  397. url: '/package/jobIntention/basicInfo?resumesStatus=' + (this.detail.resumeList && this.detail
  398. .resumeList.resumesStatus || 0) + '&birthday=' + (this.detail.resumeList && this.detail
  399. .resumeList.birthday || '') + '&ifExp=' + (this.detail.resumeList && this.detail
  400. .resumeList.ifExp || 0) + '&resumesPhone=' + (this.detail.resumeList && this.detail
  401. .resumeList.resumesPhone || '') + '&resumesEmail=' + (this.detail.resumeList && this.detail
  402. .resumeList.resumesEmail || '')
  403. })
  404. },
  405. getBusinessTypes() {
  406. // 根据是否有跨境电商经验返回业务类型
  407. if (this.hasEcommerceExperience) {
  408. return ['0']
  409. } else {
  410. return []
  411. }
  412. },
  413. // 设置
  414. setResume() {
  415. let data = {
  416. ifExp: this.hasEcommerceExperience ? 1 : 0,
  417. adv: this.detail.resumeList && this.detail.resumeList.adv || '',
  418. }
  419. uni.showLoading({
  420. title: "提交中..."
  421. });
  422. this.$Request.postJson("/app/userFirst/regist", data).then((res) => {
  423. uni.hideLoading();
  424. if (res.code == 0) {
  425. // 实际开发中可以在这里添加跳转逻辑
  426. } else {
  427. uni.showToast({
  428. title: res.msg,
  429. icon: "none",
  430. });
  431. }
  432. });
  433. },
  434. changeSkill(skill) {
  435. var skills = []
  436. for (var i in skill) {
  437. skills[i] = {
  438. "userId": "",
  439. "skillId": "",
  440. "skillName": skill[i],
  441. "isuse": 1
  442. }
  443. }
  444. let data = {
  445. skills
  446. }
  447. var that = this
  448. this.$Request.postJson("/app/userFirst/updateSkill", skills).then((res) => {
  449. if (res.code == 0) {
  450. // 实际开发中可以在这里添加跳转逻辑
  451. that.getData()
  452. } else {
  453. uni.showToast({
  454. title: res.msg,
  455. icon: "none",
  456. });
  457. }
  458. });
  459. },
  460. changePreference(preference) {
  461. if (intentionId == 0)
  462. return;
  463. var industry = preference == '' || preference == null ? '' : preference.join('/')
  464. let data = {
  465. intentionId,
  466. industry
  467. }
  468. var that = this
  469. this.$Request.postJson("/app/intention/saveUpdate", data).then((res) => {
  470. if (res.code == 0) {
  471. // 实际开发中可以在这里添加跳转逻辑
  472. that.getData()
  473. } else {
  474. uni.showToast({
  475. title: res.msg,
  476. icon: "none",
  477. });
  478. }
  479. });
  480. },
  481. commonDelete(id, modules) {
  482. var that = this
  483. var action = 'userFirst/deleteEdu'
  484. var params = {
  485. eduId: id
  486. }
  487. if (modules == 'workExps') {
  488. action = 'userFirst/deleteWorkExp'
  489. params = {
  490. workExpId: id
  491. }
  492. }
  493. if (modules == 'intentions') {
  494. action = 'intention/deleteIntention'
  495. params = {
  496. intentionId: id
  497. }
  498. }
  499. this.$queue.appConfirm('确认删除该条内容么?', function (res) {
  500. if (!res)
  501. return;
  502. that.$Request.postJson("/app/" + action, params).then((res) => {
  503. if (res.code == 0) {
  504. // 实际开发中可以在这里添加跳转逻辑
  505. var info = that.detail[modules].filter(function (item) {
  506. return item[modules == 'workExps' ? 'workExpId' : (modules ==
  507. 'intentions' ? 'intentionId' : 'eduId')] != id;
  508. });
  509. that.detail[modules] = info
  510. } else {
  511. uni.showToast({
  512. title: res.msg,
  513. icon: "none",
  514. });
  515. }
  516. });
  517. })
  518. },
  519. },
  520. watch: {
  521. hasEcommerceExperience(newVal, oldVal) {
  522. console.log('hasEcommerceExperience 变化:', oldVal, '->', newVal)
  523. // 只有有效的布尔值才保存到缓存
  524. }
  525. }
  526. }
  527. </script>
  528. <style lang="scss" scoped>
  529. .delete-icon {
  530. width: 40rpx;
  531. height: 40rpx;
  532. }
  533. .online-resume {
  534. height: 100vh;
  535. display: flex;
  536. flex-direction: column;
  537. }
  538. .fixed-nav {
  539. position: fixed;
  540. top: 0;
  541. left: 0;
  542. right: 0;
  543. z-index: 9999;
  544. background-color: #ffffff;
  545. padding: 0 32rpx;
  546. // padding-top 已改为动态计算,在模板中通过 :style 设置
  547. }
  548. .page-content {
  549. flex: 1;
  550. display: flex;
  551. flex-direction: column;
  552. overflow: auto;
  553. }
  554. // 用户信息区域
  555. .user-profile {
  556. background: #fff;
  557. padding: 60rpx 30rpx 40rpx;
  558. text-align: center;
  559. border-bottom: 2px solid rgba(227, 231, 236, 1);
  560. .avatar-container {
  561. position: relative;
  562. display: inline-block;
  563. margin-bottom: 30rpx;
  564. .user-avatar {
  565. width: 180rpx;
  566. height: 180rpx;
  567. border-radius: 50%;
  568. }
  569. .edit-avatar-icon {
  570. position: absolute;
  571. bottom: 10rpx;
  572. right: 10rpx;
  573. width: 48rpx;
  574. height: 48rpx;
  575. background: #fff;
  576. border-radius: 50%;
  577. display: flex;
  578. align-items: center;
  579. justify-content: center;
  580. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
  581. }
  582. }
  583. .user-name {
  584. color: rgba(21, 21, 23, 1);
  585. font-family: DM Sans;
  586. font-size: 24px;
  587. font-weight: 700;
  588. line-height: 26px;
  589. letter-spacing: 0%;
  590. text-align: center;
  591. }
  592. .user-info {
  593. color: rgba(102, 112, 122, 1);
  594. font-family: DM Sans;
  595. font-size: 28rpx;
  596. line-height: 44rpx;
  597. font-weight: 400;
  598. letter-spacing: 0%;
  599. text-align: center;
  600. margin: 30rpx auto;
  601. }
  602. .contact-info {
  603. display: flex;
  604. justify-content: center;
  605. gap: 40rpx;
  606. margin-bottom: 30rpx;
  607. .contact-item {
  608. display: flex;
  609. align-items: center;
  610. gap: 10rpx;
  611. .contact-text {
  612. color: rgba(116, 116, 116, 1);
  613. font-family: DM Sans;
  614. font-size: 16rpx;
  615. font-weight: 400;
  616. line-height: 20rpx;
  617. letter-spacing: 0%;
  618. text-align: center;
  619. }
  620. }
  621. }
  622. .availability {
  623. display: flex;
  624. align-items: center;
  625. justify-content: center;
  626. gap: 10rpx;
  627. .status-text {
  628. color: rgba(156, 164, 171, 1);
  629. font-family: DM Sans;
  630. font-size: 24rpx;
  631. font-weight: 400;
  632. line-height: 32rpx;
  633. letter-spacing: 0%;
  634. text-align: left;
  635. }
  636. .status-dot {
  637. width: 18rpx;
  638. height: 18rpx;
  639. background: rgba(0, 204, 154, 1);
  640. border-radius: 50%;
  641. }
  642. }
  643. }
  644. // 内容区域
  645. .content-section {
  646. // background: #F2F6FC;
  647. padding: 30rpx;
  648. // 开关部分样式
  649. .switch-section {
  650. display: flex;
  651. align-items: center;
  652. justify-content: space-between;
  653. background: #fff;
  654. border-radius: 12rpx;
  655. padding: 24rpx;
  656. margin-bottom: 16rpx;
  657. .switch-left {
  658. flex: 1;
  659. .switch-title {
  660. color: rgba(21, 22, 26, 1);
  661. font-family: DM Sans;
  662. font-size: 28rpx;
  663. font-weight: 500;
  664. line-height: 52rpx;
  665. letter-spacing: 0%;
  666. text-align: left;
  667. margin-bottom: 12rpx;
  668. }
  669. .template-text {
  670. color: rgba(153, 153, 153, 1);
  671. font-family: DM Sans;
  672. font-size: 20rpx;
  673. font-weight: 400;
  674. line-height: 52rpx;
  675. letter-spacing: 0%;
  676. text-align: right;
  677. }
  678. .section-status {
  679. color: rgba(1, 107, 246, 1);
  680. font-family: DM Sans;
  681. font-size: 24rpx;
  682. font-weight: 400;
  683. line-height: 40rpx;
  684. letter-spacing: 0%;
  685. text-align: left;
  686. }
  687. }
  688. }
  689. .section-item {
  690. background: #fff;
  691. border-radius: 16rpx;
  692. padding: 30rpx;
  693. margin-bottom: 20rpx;
  694. box-sizing: border-box;
  695. border: 1px solid rgba(227, 231, 236, 1);
  696. border-radius: 12px;
  697. .section-header {
  698. display: flex;
  699. align-items: center;
  700. justify-content: space-between;
  701. margin-bottom: 20rpx;
  702. .section-title {
  703. color: rgba(23, 23, 37, 1);
  704. font-family: Inter;
  705. font-size: 32rpx;
  706. font-weight: 600;
  707. line-height: 48rpx;
  708. letter-spacing: 0%;
  709. text-align: left;
  710. }
  711. .template-text {
  712. color: rgba(120, 130, 138, 1);
  713. font-family: DM Sans;
  714. font-size: 24rpx;
  715. font-weight: 400;
  716. line-height: 32rpx;
  717. letter-spacing: 0%;
  718. text-align: left;
  719. }
  720. .edit-icon {
  721. width: 40rpx;
  722. height: 40rpx;
  723. display: flex;
  724. align-items: center;
  725. justify-content: center;
  726. }
  727. }
  728. .section-status {
  729. font-size: 28rpx;
  730. color: #007AFF;
  731. font-weight: 500;
  732. }
  733. .advantage-content {
  734. font-size: 14px;
  735. color: #666;
  736. line-height: 1.6;
  737. textarea {
  738. width: 100%;
  739. height: fit-content;
  740. min-height: 44rpx;
  741. }
  742. }
  743. }
  744. // 全职期望卡片样式
  745. .expectation-card {
  746. background: #ffffff;
  747. border-radius: 12rpx;
  748. padding: 30rpx;
  749. margin-bottom: 20rpx;
  750. box-sizing: border-box;
  751. border: 0.5px solid rgba(227, 231, 236, 1);
  752. border-radius: 6px;
  753. background: rgba(253, 253, 253, 1);
  754. .card-header {
  755. display: flex;
  756. justify-content: space-between;
  757. align-items: center;
  758. .header-left {
  759. display: flex;
  760. align-items: center;
  761. .header-icon {
  762. width: 40rpx;
  763. height: 40rpx;
  764. margin-right: 20rpx;
  765. }
  766. .header-title {
  767. color: rgba(29, 33, 41, 1);
  768. font-family: DM Sans;
  769. font-size: 28rpx;
  770. font-weight: 500;
  771. line-height: 16px;
  772. letter-spacing: 0%;
  773. text-align: left;
  774. }
  775. }
  776. .progress-text {
  777. font-family: DM Sans;
  778. font-size: 24rpx;
  779. font-weight: 700;
  780. line-height: 13px;
  781. letter-spacing: 0%;
  782. text-align: right;
  783. }
  784. }
  785. .job-list {
  786. margin-bottom: 10rpx;
  787. .job-item {
  788. display: flex;
  789. justify-content: space-between;
  790. align-items: center;
  791. padding: 20rpx 0;
  792. &:last-child {
  793. border-bottom: none;
  794. }
  795. .job-info {
  796. flex: 1;
  797. >view:first-child {
  798. display: flex;
  799. justify-content: space-between;
  800. align-items: center;
  801. margin-bottom: 4rpx;
  802. }
  803. .job-title {
  804. color: rgba(29, 33, 41, 1);
  805. font-family: DM Sans;
  806. font-size: 28rpx;
  807. font-weight: 500;
  808. line-height: 16px;
  809. letter-spacing: 0%;
  810. text-align: left;
  811. }
  812. .job-details {
  813. display: block;
  814. font-size: 24rpx;
  815. color: rgba(153, 153, 153, 1);
  816. margin-bottom: 4rpx;
  817. }
  818. .job-location {
  819. font-size: 24rpx;
  820. color: rgba(153, 153, 153, 1);
  821. }
  822. }
  823. .preference-btn {
  824. display: flex;
  825. align-items: center;
  826. padding: 8rpx;
  827. border: 0.5rpx solid #007AFF;
  828. border-radius: 12rpx;
  829. margin-right: 10rpx;
  830. text {
  831. font-size: 18rpx;
  832. color: #007AFF;
  833. }
  834. }
  835. .job-info>view:first-child>view:last-child {
  836. display: flex;
  837. align-items: center;
  838. }
  839. }
  840. }
  841. .add-expectation-btn {
  842. width: 100%;
  843. height: 70rpx;
  844. border: 1rpx solid #007AFF;
  845. border-radius: 42rpx;
  846. display: flex;
  847. align-items: center;
  848. justify-content: center;
  849. text {
  850. font-size: 28rpx;
  851. color: #007AFF;
  852. font-weight: 500;
  853. }
  854. }
  855. }
  856. // 工作经历部分样式
  857. .work-experience-section {
  858. background: #fff;
  859. border-radius: 12px;
  860. padding: 30rpx;
  861. margin-bottom: 20rpx;
  862. box-sizing: border-box;
  863. border: 1px solid rgba(1, 107, 246, 1);
  864. .section-header {
  865. display: flex;
  866. align-items: center;
  867. justify-content: space-between;
  868. margin-bottom: 30rpx;
  869. .section-title {
  870. display: flex;
  871. align-items: center;
  872. .required-mark {
  873. color: #FF3B30;
  874. font-size: 18px;
  875. font-weight: 600;
  876. margin-right: 8rpx;
  877. }
  878. .required-title {
  879. font-family: DM Sans;
  880. font-size: 28rpx;
  881. font-weight: 700;
  882. line-height: 52rpx;
  883. letter-spacing: 0%;
  884. text-align: left;
  885. margin-right: 12rpx;
  886. }
  887. text {
  888. color: rgba(23, 23, 37, 1);
  889. font-family: Inter;
  890. font-size: 20px;
  891. font-weight: 600;
  892. line-height: 24px;
  893. }
  894. }
  895. .section-desc {
  896. color: rgba(1, 107, 246, 1);
  897. font-family: DM Sans;
  898. font-size: 20rpx;
  899. font-weight: 400;
  900. line-height: 44rpx;
  901. letter-spacing: 0%;
  902. text-align: left;
  903. }
  904. }
  905. .experience-list {
  906. .experience-item {
  907. display: flex;
  908. padding: 24rpx 0;
  909. border-bottom: 1rpx solid #F0F0F0;
  910. &:last-child {
  911. border-bottom: none;
  912. }
  913. .company-logo {
  914. width: 90rpx;
  915. height: 90rpx;
  916. margin-right: 24rpx;
  917. flex-shrink: 0;
  918. border-radius: 8px;
  919. background: rgba(246, 246, 246, 1);
  920. display: flex;
  921. flex-direction: column;
  922. align-items: center;
  923. justify-content: center;
  924. .logo-img {
  925. width: 50rpx;
  926. height: 50rpx;
  927. border-radius: 8rpx;
  928. }
  929. }
  930. .experience-content {
  931. flex: 1;
  932. .experience-box {
  933. margin-bottom: 20rpx;
  934. }
  935. .job-info-row {
  936. display: flex;
  937. align-items: center;
  938. margin-bottom: 4rpx;
  939. }
  940. .job-title {
  941. color: rgba(23, 23, 37, 1);
  942. font-family: DM Sans;
  943. font-size: 28rpx;
  944. font-weight: 400;
  945. line-height: 44rpx;
  946. letter-spacing: 0%;
  947. text-align: left;
  948. margin-right: 12rpx;
  949. }
  950. .job-department {
  951. color: rgba(120, 130, 138, 1);
  952. font-family: DM Sans;
  953. font-size: 20rpx;
  954. font-weight: 400;
  955. line-height: 44rpx;
  956. letter-spacing: 0%;
  957. text-align: left;
  958. }
  959. .company-period-row {
  960. display: flex;
  961. align-items: center;
  962. justify-content: flex-start;
  963. margin-bottom: 12rpx;
  964. gap: 12rpx;
  965. padding: 12rpx 0;
  966. }
  967. .company-name {
  968. color: rgba(120, 130, 138, 1);
  969. font-family: DM Sans;
  970. font-size: 20rpx;
  971. font-weight: 400;
  972. line-height: 10px;
  973. letter-spacing: 0.5%;
  974. text-align: left;
  975. }
  976. .work-period {
  977. color: rgba(120, 130, 138, 1);
  978. font-family: DM Sans;
  979. font-size: 20rpx;
  980. font-weight: 400;
  981. line-height: 10px;
  982. letter-spacing: 0.5%;
  983. text-align: left;
  984. }
  985. .job-description {
  986. color: rgba(120, 130, 138, 1);
  987. font-family: DM Sans;
  988. font-size: 16rpx;
  989. font-weight: 400;
  990. line-height: 24rpx;
  991. letter-spacing: 0%;
  992. text-align: left;
  993. white-space: pre-wrap;
  994. }
  995. .skill-tags {
  996. display: flex;
  997. flex-wrap: wrap;
  998. gap: 8rpx;
  999. margin-top: 12rpx;
  1000. .tag {
  1001. background: rgba(153, 153, 153, 0.1);
  1002. border-radius: 12rpx;
  1003. padding: 6rpx;
  1004. color: rgba(102, 102, 102, 1);
  1005. font-family: DM Sans;
  1006. font-size: 16rpx;
  1007. font-weight: 400;
  1008. letter-spacing: 0%;
  1009. text-align: left;
  1010. }
  1011. }
  1012. }
  1013. }
  1014. }
  1015. }
  1016. // 教育经历部分样式
  1017. .education-section {
  1018. background: #fff;
  1019. border-radius: 12px;
  1020. padding: 30rpx;
  1021. margin-bottom: 20rpx;
  1022. box-sizing: border-box;
  1023. border: 1px solid rgba(227, 231, 236, 1);
  1024. .section-header {
  1025. display: flex;
  1026. align-items: center;
  1027. justify-content: space-between;
  1028. margin-bottom: 30rpx;
  1029. .section-title {
  1030. text {
  1031. color: rgba(23, 23, 37, 1);
  1032. font-family: Inter;
  1033. font-size: 20px;
  1034. font-weight: 600;
  1035. line-height: 24px;
  1036. }
  1037. }
  1038. }
  1039. .education-list {
  1040. .education-item {
  1041. display: flex;
  1042. padding: 24rpx 0;
  1043. border-bottom: 1rpx solid #F0F0F0;
  1044. &:last-child {
  1045. border-bottom: none;
  1046. }
  1047. .school-logo {
  1048. width: 90rpx;
  1049. height: 90rpx;
  1050. margin-right: 24rpx;
  1051. flex-shrink: 0;
  1052. border-radius: 8px;
  1053. background: rgba(246, 246, 246, 1);
  1054. display: flex;
  1055. flex-direction: column;
  1056. align-items: center;
  1057. justify-content: center;
  1058. .logo-img {
  1059. width: 54rpx;
  1060. height: 50rpx;
  1061. border-radius: 8rpx;
  1062. }
  1063. }
  1064. .education-content {
  1065. flex: 1;
  1066. .school-name {
  1067. color: rgba(23, 23, 37, 1);
  1068. font-family: DM Sans;
  1069. font-size: 18px;
  1070. font-weight: 400;
  1071. line-height: 22px;
  1072. letter-spacing: 0%;
  1073. text-align: left;
  1074. }
  1075. .degree-info {
  1076. color: rgba(120, 130, 138, 1);
  1077. font-family: DM Sans;
  1078. font-size: 20rpx;
  1079. font-weight: 500;
  1080. line-height: 24px;
  1081. letter-spacing: 0%;
  1082. text-align: left;
  1083. padding: 12rpx 0;
  1084. }
  1085. .education-description {
  1086. color: rgba(120, 130, 138, 1);
  1087. font-family: DM Sans;
  1088. font-size: 20rpx;
  1089. font-weight: 400;
  1090. line-height: 16px;
  1091. letter-spacing: 0%;
  1092. text-align: left;
  1093. white-space: pre-wrap;
  1094. }
  1095. }
  1096. }
  1097. }
  1098. }
  1099. // 技能部分样式
  1100. .skills-section {
  1101. background: #fff;
  1102. border-radius: 12px;
  1103. padding: 30rpx;
  1104. margin-bottom: 20rpx;
  1105. box-sizing: border-box;
  1106. border: 1px solid rgba(227, 231, 236, 1);
  1107. .section-header {
  1108. display: flex;
  1109. align-items: center;
  1110. justify-content: space-between;
  1111. margin-bottom: 30rpx;
  1112. .section-title {
  1113. text {
  1114. color: rgba(23, 23, 37, 1);
  1115. font-family: Inter;
  1116. font-size: 20px;
  1117. font-weight: 600;
  1118. line-height: 24px;
  1119. }
  1120. }
  1121. }
  1122. .skills-grid {
  1123. display: flex;
  1124. flex-wrap: wrap;
  1125. gap: 16rpx;
  1126. .skill-tag {
  1127. padding: 32rpx;
  1128. border: 1px solid rgba(236, 241, 246, 1);
  1129. border-radius: 64rpx;
  1130. color: rgba(23, 23, 37, 1);
  1131. font-family: DM Sans;
  1132. font-size: 14px;
  1133. font-weight: 400;
  1134. line-height: 20px;
  1135. letter-spacing: 0.5%;
  1136. text-align: right;
  1137. }
  1138. }
  1139. }
  1140. }
  1141. </style>