onlineResume.vue 29 KB

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