onlineResume.vue 30 KB

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