basicInfo.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891
  1. <template>
  2. <view class="basic-info">
  3. <navBar title="基本信息" color="#000" />
  4. <!-- 表单内容 -->
  5. <view class="form-content">
  6. <!-- 头像 -->
  7. <view class="form-item">
  8. <view class="form-label">
  9. <text class="required-mark">*</text>
  10. <text>头像</text>
  11. </view>
  12. <view @click="chooseAvatar" class="avatar-container">
  13. <image :src="avatar?avatar:'../../static/images/logo.jpg'" class="user-avatar" mode="aspectFill"></image>
  14. <view class="tip">重新上传</view>
  15. </view>
  16. </view>
  17. <!-- 姓名 -->
  18. <view class="form-item" style="margin-bottom: 13px;">
  19. <view class="form-label">
  20. <text class="required-mark">*</text>
  21. <text>姓名</text>
  22. </view>
  23. <input class="form-input" type="text" placeholder="请输入姓名" v-model="userName" />
  24. </view>
  25. <!-- 是否匿名展示 -->
  26. <view class="form-item">
  27. <u-checkbox-group class="checkbox">
  28. <u-checkbox v-model="isAnonymous" :label-disabled="false">匿名展示</u-checkbox>
  29. </u-checkbox-group>
  30. </view>
  31. <!-- 性别 -->
  32. <view class="form-item">
  33. <view class="form-label">
  34. <text class="required-mark">*</text>
  35. <text>性别</text>
  36. </view>
  37. <u-radio-group v-model="sex" direction="row">
  38. <u-radio name="1" activeColor="#007AFF">男</u-radio>
  39. <u-radio name="2" activeColor="#007AFF">女</u-radio>
  40. </u-radio-group>
  41. </view>
  42. <!-- 出生年月 -->
  43. <view class="form-item">
  44. <view class="form-label">
  45. <text class="required-mark">*</text>
  46. <text>出生年月</text>
  47. </view>
  48. <view class="date-picker" @click="showDatePicker = true">
  49. <text class="date-text" v-if="birthDateText">{{ birthDateText }}</text>
  50. <text class="placeholder-text" v-else>请选择出生年月</text>
  51. <u-icon name="arrow-down" color="#999" size="24"></u-icon>
  52. </view>
  53. <u-picker :default-time="birthDateText" v-model="showDatePicker" mode="time" :params="dateParams"
  54. @confirm="onDateConfirm"></u-picker>
  55. </view>
  56. <!-- 手机号 -->
  57. <view class="form-item">
  58. <view class="form-label">手机号</view>
  59. <view class="flex align-center justify-between">
  60. <view class="phone-number">{{ hidePhoneNumber }}</view>
  61. <text class="modify-link" @click="showChangeModal = true">修改手机号</text>
  62. </view>
  63. </view>
  64. <!-- 联系方式 -->
  65. <!-- <view class="form-item">
  66. <view class="form-label">联系方式</view>
  67. <input class="form-input" type="text" placeholder="请输入手机号" v-model="phone" />
  68. </view> -->
  69. <!-- 微信号码 -->
  70. <view class="form-item">
  71. <view class="form-label">微信号码</view>
  72. <input class="form-input" type="text" placeholder="请输入微信号码,方便给对方交换微信联系" v-model="weChatNum" />
  73. </view>
  74. <view class="form-item">
  75. <view class="form-label">
  76. <text>邮箱</text>
  77. </view>
  78. <input class="form-input" type="text" placeholder="请输入您的邮箱" v-model="email" />
  79. </view>
  80. <!-- 求职状态 -->
  81. <!-- <view class="form-item">
  82. <view class="form-label">
  83. <text>求职状态</text>
  84. </view>
  85. <view class="select-picker" @click="showJobStatusPicker">
  86. <text class="select-text">{{ jobStatusList[selectedJobStatus].text }}</text>
  87. <u-icon name="arrow-down" color="#999" size="24"></u-icon>
  88. </view>
  89. </view> -->
  90. </view>
  91. <!-- 保存按钮 -->
  92. <view class="button-section">
  93. <!-- 非邀请状态,且没有userType时显示 -->
  94. <view class="link-btn" v-if="!hasUserType && noInvite" @click="handleIgnore">稍后填写</view>
  95. <view class="btn" @click="messagebtn">保存</view>
  96. </view>
  97. <!-- 求职状态选择器 -->
  98. <u-popup v-model="showJobStatusModal" mode="bottom" border-radius="42" height="auto"
  99. :safe-area-inset-bottom="true">
  100. <view class="job-status-picker">
  101. <view class="picker-header">
  102. <text class="picker-title">求职状态</text>
  103. </view>
  104. <view class="picker-content">
  105. <view class="status-option" :class="{ active: selectedJobStatus == item.value }"
  106. v-for="item in jobStatusList" :key="item.value" @click="selectJobStatus(item)">
  107. <view class="option-left">
  108. <view class="radio-btn" :class="{ checked: selectedJobStatus == item.value }">
  109. <u-icon v-if="selectedJobStatus == item.value" name="checkmark" color="#ffffff"
  110. size="28"></u-icon>
  111. </view>
  112. <text class="option-text">{{ item.text }}</text>
  113. <view v-if="item.recommended" class="recommend-tag">
  114. <text>推荐</text>
  115. </view>
  116. </view>
  117. </view>
  118. </view>
  119. </view>
  120. </u-popup>
  121. <!-- 权限说明弹窗 -->
  122. <u-popup mode="top" ref="permission">
  123. <view class="popup-content">
  124. <view class="popup-text-permission">选择/拍摄照片需要相机/相册权限,用于上传用户头像</view>
  125. </view>
  126. </u-popup>
  127. <!-- 变更手机号 -->
  128. <c-modal
  129. :value="showChangeModal"
  130. title="请填写您需要变更的手机号"
  131. @cancel="showChangeModal = false"
  132. @confirm="submitChangePhoneNumber"
  133. >
  134. <view class="input-wrapper" style="margin-top: 30px">
  135. <input v-model="phoneNum" type="number" placeholder="请输入要变更的手机号码" maxlength="11" placeholder-class="placeholder" />
  136. </view>
  137. <view class="input-wrapper flex align-center justify-between" style="margin-bottom: 30px;">
  138. <input v-model="verifyCode" type="number" placeholder="输入验证码" maxlength="6" class="verify-input" placeholder-class="placeholder" />
  139. <view class="verify-btn" @click="getVerifyCode">{{ disabled ? `${countdown}s` : '获取验证码' }}</view>
  140. </view>
  141. </c-modal>
  142. </view>
  143. </template>
  144. <script>
  145. import navBar from "@/components/nav-bar/index.vue";
  146. import cModal from '@/components/c-modal.vue'
  147. export default {
  148. components: {
  149. navBar,
  150. cModal
  151. },
  152. data() {
  153. return {
  154. BarHeight: '',
  155. weChatNum: '',
  156. email:'',
  157. sex: '',
  158. phone: '',
  159. avatar: '',
  160. ifExp: 0,
  161. userName: '',
  162. birthDateText: '', // 显示的日期文本
  163. showDatePicker: false, // 控制日期选择器显示
  164. dateParams: {
  165. year: true,
  166. month: true
  167. },
  168. // 求职状态相关
  169. showJobStatusModal: false,
  170. selectedJobStatus: 0,
  171. jobStatusList: [{
  172. value: '0',
  173. text: '离职-随时到岗',
  174. recommended: true
  175. },
  176. {
  177. value: '1',
  178. text: '在职-月内到岗',
  179. recommended: true
  180. },
  181. {
  182. value: '2',
  183. text: '在职-考虑机会',
  184. recommended: false
  185. },
  186. {
  187. value: '3',
  188. text: '在职-暂不考虑',
  189. recommended: false
  190. },
  191. // {
  192. // value: '4',
  193. // text: '实习',
  194. // recommended: false
  195. // }
  196. ],
  197. isAnonymous: false, // 匿名展示
  198. scene: 0, // 0.默认 1.H5邀请 2.注册进入
  199. showChangeModal: false,
  200. disabled: false,
  201. timer: null,
  202. countdown: 60,
  203. getting: false,
  204. verifyCode: '',
  205. phoneNum: '', // 输入手机号
  206. }
  207. },
  208. computed: {
  209. hidePhoneNumber() {
  210. return String(this.phone).replace(/(\d{3})\d{4}(\d{4})/, '$1****$2');
  211. },
  212. // 判断是否有用户类型userType
  213. hasUserType() {
  214. return this.$queue.getData('userType')
  215. },
  216. noInvite() {
  217. return this.scene != 1
  218. }
  219. },
  220. watch: {
  221. showChangeModal(nValue) {
  222. if (!nValue) {
  223. // 关闭弹窗时清除选择的手机号
  224. this.changePhoneNum = ''
  225. this.verifyCode = ''
  226. this.phoneNum = ''
  227. this.clearCountdownTimer()
  228. }
  229. }
  230. },
  231. onLoad(options) {
  232. // #ifdef APP-PLUS
  233. let systemInfo = uni.getSystemInfoSync();
  234. this.BarHeight = systemInfo.statusBarHeight;
  235. // #endif
  236. if (options && options.resumesStatus)
  237. this.selectedJobStatus = options.resumesStatus
  238. if (options && options.birthday)
  239. this.birthDateText = options.birthday
  240. if (options && options.ifExp)
  241. this.ifExp = options.ifExp
  242. if (options && options.resumesPhone)
  243. this.phone = options.resumesPhone
  244. if (options && options.resumesEmail)
  245. this.email = options.resumesEmail
  246. if (options.scene) {
  247. this.scene = options.scene
  248. }
  249. this.getUserInfo()
  250. },
  251. onUnload() {
  252. this.clearCountdownTimer()
  253. },
  254. methods: {
  255. goBack() {
  256. uni.navigateBack();
  257. },
  258. // 选择头像
  259. async chooseAvatar() {
  260. // 1. 检查权限状态
  261. const hasPermission = await this.$queue.checkPermission(
  262. 'camera',
  263. '选择/拍摄照片需要相机/相册权限,用于上传用户头像',
  264. this
  265. );
  266. // 2. 如果未授权或者用户拒绝,显示提示
  267. if (!hasPermission) {
  268. return;
  269. }
  270. // 3. 调用系统选择图片(系统弹框会出现,让用户授权)
  271. uni.chooseImage({
  272. count: 1,
  273. sizeType: ['compressed'],
  274. sourceType: ['album', 'camera'],
  275. success: (res) => {
  276. // 上传图片
  277. this.$queue.uploadFile(res.tempFilePaths[0], (path) => {
  278. if (path) this.avatar = path;
  279. });
  280. // 上传成功隐藏提示
  281. this.$refs.permission.close();
  282. },
  283. fail: (err) => {
  284. console.log('用户拒绝或取消选择', err);
  285. // 用户拒绝仍然保持提示文字
  286. }
  287. });
  288. },
  289. // 日期选择确认
  290. onDateConfirm(e) {
  291. const {
  292. year,
  293. month,
  294. day
  295. } = e;
  296. this.birthDateText = `${year}-${String(month).padStart(2, '0')}`;
  297. this.showDatePicker = false;
  298. },
  299. // 显示求职状态选择器
  300. showJobStatusPicker() {
  301. this.showJobStatusModal = true;
  302. },
  303. // 选择求职状态
  304. selectJobStatus(item) {
  305. this.selectedJobStatus = item.value;
  306. this.showJobStatusModal = false;
  307. // 可以在这里添加保存状态的逻辑
  308. console.log('选择的求职状态:', item);
  309. },
  310. getUserInfo() {
  311. // 老接口 /app/user/selectUserById
  312. // 新接口 /app/user/getUserInfo
  313. this.$Request.get("/app/user/getUserInfo").then(res => {
  314. // 获取稍后填写的缓存数据
  315. const temp_baseInfo = this.$queue.getData('temp_baseInfo') || {}
  316. if (res.code == 0) {
  317. const data = this.$queue.deepMergeObject(temp_baseInfo, res.data)
  318. this.weChatNum = data.weChatNum
  319. this.sex = data.sex
  320. this.avatar = data.avatar
  321. this.userName = data.userName
  322. this.phone = data.phone
  323. this.isAnonymous = Boolean(data.isAnonymous)
  324. this.selectedJobStatus = data.resumesStatus || 0
  325. this.birthDateText = data.birthday || ''
  326. this.email = data.resumesEmail
  327. this.ifExp = data.ifExp
  328. }
  329. uni.hideLoading();
  330. });
  331. },
  332. // 保存
  333. messagebtn() {
  334. if (!this.userName) {
  335. this.$queue.showToast('请输入用户名');
  336. } else if (!this.sex) {
  337. this.$queue.showToast('请选择性别');
  338. } else if (!this.birthDateText) {
  339. this.$queue.showToast('请选择出生年月');
  340. } else {
  341. uni.showModal({
  342. title: '温馨提示',
  343. content: '确定保存信息',
  344. success: e => {
  345. if (e.confirm) {
  346. // 老接口 /app/user/updateUser
  347. // 新接口 /app/user/updateUserInfo
  348. this.$Request.postJson("/app/user/updateUserInfo", {
  349. userName: this.userName,
  350. avatar: this.avatar,
  351. sex: this.sex,
  352. weChatNum: this.weChatNum,
  353. isAnonymous: this.isAnonymous ? 1 : 0,
  354. resumesStatus: this.selectedJobStatus,
  355. resumesPhone: this.phone,
  356. birthday: this.birthDateText,
  357. resumesEmail: this.email,
  358. ifExp: this.ifExp
  359. }).then(res => {
  360. if (res.code === 0) {
  361. if (this.weChatNum) {
  362. this.$queue.setData('weChatNum', this.weChatNum)
  363. }
  364. uni.showToast({
  365. title: '保存成功',
  366. icon: "none"
  367. })
  368. if (this.scene == 1) {
  369. uni.navigateTo({
  370. url: `/pages/public/improvePrompt?scene=${this.scene}`
  371. });
  372. } else if (!this.$queue.getData('userType')) {
  373. // 没有角色类型
  374. this.toSelectUserType()
  375. } else {
  376. // 实际开发中可以在这里添加跳转逻辑
  377. uni.$emit('updateResume')
  378. setTimeout(function() {
  379. uni.navigateBack()
  380. }, 1000)
  381. }
  382. // this.setResume()
  383. // 保存成功后,删除首次进入“稍后填写”保存的数据
  384. if (this.$queue.getData('temp_baseInfo')) {
  385. this.$queue.remove('temp_baseInfo')
  386. }
  387. } else {
  388. uni.showToast({
  389. title: res.msg,
  390. icon: "none"
  391. })
  392. }
  393. })
  394. }
  395. }
  396. });
  397. }
  398. },
  399. // 注册时跳转选择角色页面
  400. toSelectUserType() {
  401. uni.reLaunch({
  402. url: '/pages/my/jobApplicant/guidePage'
  403. })
  404. },
  405. // 稍后填写
  406. handleIgnore() {
  407. this.$queue.setData('temp_baseInfo', {
  408. userName: this.userName,
  409. avatar: this.avatar,
  410. sex: this.sex,
  411. weChatNum: this.weChatNum,
  412. isAnonymous: this.isAnonymous ? 1 : 0,
  413. resumesStatus: this.selectedJobStatus,
  414. resumesPhone: this.phone,
  415. birthday: this.birthDateText,
  416. resumesEmail: this.email,
  417. ifExp: this.ifExp
  418. })
  419. this.toSelectUserType()
  420. },
  421. // setResume() {
  422. // let data = {
  423. // resumesStatus: this.selectedJobStatus,
  424. // resumesPhone: this.phone,
  425. // birthday: this.birthDateText,
  426. // resumesEmail:this.email,
  427. // ifExp: this.ifExp
  428. // }
  429. // this.$Request.postJson("/app/userFirst/regist", data).then((res) => {
  430. // if (res.code == 0) {
  431. // if (this.scene == 1) {
  432. // uni.redirectTo({
  433. // url: `/pages/public/improvePrompt?scene=${this.scene}`
  434. // });
  435. // } else {
  436. // // 实际开发中可以在这里添加跳转逻辑
  437. // uni.$emit('updateResume')
  438. // setTimeout(function() {
  439. // uni.navigateBack()
  440. // }, 1000)
  441. // }
  442. // } else {
  443. // uni.showToast({
  444. // title: res.msg,
  445. // icon: "none",
  446. // });
  447. // }
  448. // });
  449. // }
  450. // 变更手机号
  451. submitChangePhoneNumber() {
  452. if (this.updating) return
  453. this.updating = true
  454. if (!this.phoneNum) {
  455. uni.showToast({
  456. title: '请输入手机号',
  457. icon: 'none'
  458. })
  459. return
  460. }
  461. if (!this.verifyCode) {
  462. uni.showToast({
  463. title: '请输入验证码',
  464. icon: 'none'
  465. })
  466. return
  467. }
  468. uni.showLoading({ title: '处理中' })
  469. this.$Request.getT('/app/user/updateUserByUserId', {
  470. phone: this.phoneNum,
  471. msg: this.verifyCode,
  472. }).then(res => {
  473. if (res.code == 0) {
  474. this.showChangeModal = false
  475. this.$queue.showToast('更换成功')
  476. this.getUserInfo()
  477. } else {
  478. this.$queue.showToast(res.msg || '出错了,请稍后再试')
  479. }
  480. }).finally(() => {
  481. uni.hideLoading()
  482. this.updating = false
  483. })
  484. },
  485. // 获取验证码
  486. getVerifyCode() {
  487. if (!this.phoneNum) {
  488. uni.showToast({
  489. title: '请输入手机号',
  490. icon: 'none'
  491. })
  492. return
  493. }
  494. if (!/^1[3-9]\d{9}$/.test(this.phoneNum)) {
  495. uni.showToast({
  496. title: '请输入正确的手机号',
  497. icon: 'none'
  498. })
  499. return
  500. }
  501. if (this.disabled || this.getting) return
  502. uni.showLoading({ title: '正在发送验证码' })
  503. this.getting = true
  504. this.$Request
  505. .getT('/app/Login/sendMsg/' + this.phoneNum + '/bind')
  506. .then((res) => {
  507. if (res.code === 0) {
  508. this.startCountdown()
  509. } else {
  510. uni.showModal({
  511. showCancel: false,
  512. title: '短信发送失败',
  513. content: res.msg ? res.msg : '请一分钟后再获取验证码',
  514. });
  515. }
  516. })
  517. .finally(() => {
  518. this.getting = false
  519. uni.hideLoading();
  520. })
  521. },
  522. startCountdown() {
  523. this.disabled = true
  524. this.timer = setInterval(() => {
  525. this.countdown--
  526. if (this.countdown <= 0) {
  527. this.clearCountdownTimer()
  528. }
  529. }, 1000)
  530. },
  531. clearCountdownTimer() {
  532. if (this.timer) {
  533. clearInterval(this.timer)
  534. this.timer = null // 重置定时器实例
  535. this.countdown = 60
  536. this.disabled = false
  537. }
  538. },
  539. }
  540. }
  541. </script>
  542. <style lang="scss" scoped>
  543. .basic-info {
  544. background-color: #fff;
  545. height: 100vh;
  546. display: flex;
  547. flex-direction: column;
  548. }
  549. // 表单内容
  550. .form-content {
  551. padding: 0 40rpx 210rpx;
  552. flex: 1;
  553. display: flex;
  554. flex-direction: column;
  555. overflow: auto;
  556. .form-item {
  557. margin-bottom: 36rpx;
  558. .form-label {
  559. color: var(--Neutral/100, rgba(31, 44, 55, 1));
  560. font-family: DM Sans;
  561. font-size: 28rpx;
  562. font-weight: 500;
  563. line-height: 44rpx;
  564. letter-spacing: 0.5%;
  565. text-align: left;
  566. display: flex;
  567. align-items: center;
  568. margin-bottom: 16rpx;
  569. .required-mark {
  570. color: #FF3B30;
  571. font-size: 18px;
  572. font-weight: 600;
  573. margin-right: 8rpx;
  574. }
  575. text {
  576. color: var(--Neutral/100, rgba(31, 44, 55, 1));
  577. font-family: DM Sans;
  578. font-size: 16px;
  579. font-weight: 500;
  580. line-height: 22px;
  581. letter-spacing: 0.5%;
  582. text-align: left;
  583. }
  584. }
  585. .form-input {
  586. width: 100%;
  587. height: 75rpx;
  588. font-size: 14px;
  589. border: 1px solid rgba(227, 231, 236, 1);
  590. border-radius: 24px;
  591. color: rgba(23, 23, 37, 1);
  592. padding: 0 16px;
  593. box-sizing: border-box;
  594. }
  595. .form-display {
  596. color: rgba(23, 23, 37, 1);
  597. font-family: DM Sans;
  598. font-size: 16px;
  599. font-weight: 400;
  600. line-height: 22px;
  601. letter-spacing: 0%;
  602. text-align: left;
  603. padding: 15px 0px;
  604. }
  605. // 头像样式
  606. .avatar-container {
  607. display: flex;
  608. align-items: center;
  609. .user-avatar {
  610. width: 80rpx;
  611. height: 80rpx;
  612. border-radius: 50%;
  613. margin-right: 24rpx;
  614. }
  615. .tip {
  616. font-size: 20rpx;
  617. line-height: 44rpx;
  618. color: rgba(1, 107, 246, 1);
  619. }
  620. }
  621. // 日期选择器样式
  622. .date-picker {
  623. display: flex;
  624. align-items: center;
  625. justify-content: space-between;
  626. height: 75rpx;
  627. font-size: 14px;
  628. border: 1px solid rgba(227, 231, 236, 1);
  629. border-radius: 24px;
  630. color: rgba(23, 23, 37, 1);
  631. padding: 12px 16px;
  632. .date-text {
  633. color: rgba(23, 23, 37, 1);
  634. font-family: DM Sans;
  635. font-size: 14px;
  636. font-weight: 400;
  637. line-height: 22px;
  638. letter-spacing: 0%;
  639. text-align: left;
  640. }
  641. }
  642. // 下拉选择器样式
  643. .select-picker {
  644. display: flex;
  645. align-items: center;
  646. justify-content: space-between;
  647. height: 75rpx;
  648. font-size: 14px;
  649. border: 1px solid rgba(227, 231, 236, 1);
  650. border-radius: 24px;
  651. color: rgba(23, 23, 37, 1);
  652. padding: 12px 16px;
  653. .select-text {
  654. color: rgba(23, 23, 37, 1);
  655. font-family: DM Sans;
  656. font-size: 14px;
  657. font-weight: 400;
  658. line-height: 22px;
  659. letter-spacing: 0%;
  660. text-align: left;
  661. }
  662. }
  663. .u-checkbox {
  664. padding-bottom: 0;
  665. }
  666. // 手机号
  667. .phone-number {
  668. height: 48rpx;
  669. font-family: DM Sans;
  670. font-size: 24rpx;
  671. font-weight: bold;
  672. color: #333;
  673. line-height: 48rpx;
  674. }
  675. .modify-link {
  676. color: #007AFF;
  677. }
  678. // 出生年月placeholder样式
  679. .placeholder-text {
  680. color: #999;
  681. }
  682. }
  683. }
  684. // 保存按钮
  685. .button-section {
  686. position: fixed;
  687. left: 0;
  688. right: 0;
  689. bottom: 0;
  690. // height: 210rpx;
  691. box-shadow: 0px -4px 16px 0px rgba(0, 0, 0, 0.04);
  692. background: rgba(255, 255, 255, 1);
  693. .link-btn {
  694. font-size: 32rpx;
  695. line-height: 1;
  696. text-align: center;
  697. color: rgba(1, 107, 246, 1);
  698. padding-top: 28rpx;
  699. }
  700. .btn {
  701. width: 600rpx;
  702. height: 88rpx;
  703. border-radius: 100px;
  704. background: var(--线性渐变, linear-gradient(90.00deg, rgba(13, 39, 247, 1),rgba(19, 193, 234, 1) 100%));
  705. font-size: 32rpx;
  706. font-weight: bold;
  707. line-height: 88rpx;
  708. text-align: center;
  709. color: #fff;
  710. margin: 32rpx auto 32rpx;
  711. }
  712. }
  713. // 求职状态选择器样式
  714. .job-status-picker {
  715. background: #fff;
  716. border-radius: 42rpx 42rpx 0 0;
  717. .picker-header {
  718. padding: 40rpx 40rpx 20rpx 40rpx;
  719. text-align: center;
  720. border-bottom: 1px solid #f0f0f0;
  721. .picker-title {
  722. color: rgba(23, 23, 37, 1);
  723. font-family: DM Sans;
  724. font-size: 18px;
  725. font-weight: 600;
  726. line-height: 26px;
  727. letter-spacing: 0%;
  728. text-align: center;
  729. }
  730. }
  731. .picker-content {
  732. padding: 20rpx 40rpx 40rpx 40rpx;
  733. .status-option {
  734. padding: 30rpx 0;
  735. border-bottom: 1px solid #f0f0f0;
  736. &:last-child {
  737. border-bottom: none;
  738. }
  739. &.active {
  740. background-color: rgba(0, 122, 255, 0.05);
  741. }
  742. .option-left {
  743. display: flex;
  744. align-items: center;
  745. .radio-btn {
  746. width: 40rpx;
  747. height: 40rpx;
  748. border-radius: 50%;
  749. border: 2px solid #e0e0e0;
  750. display: flex;
  751. align-items: center;
  752. justify-content: center;
  753. margin-right: 20rpx;
  754. &.checked {
  755. background-color: #007AFF;
  756. border-color: #007AFF;
  757. }
  758. }
  759. .option-text {
  760. flex: 1;
  761. color: rgba(23, 23, 37, 1);
  762. font-family: DM Sans;
  763. font-size: 16px;
  764. font-weight: 400;
  765. line-height: 22px;
  766. letter-spacing: 0%;
  767. text-align: left;
  768. }
  769. .recommend-tag {
  770. background-color: #007AFF;
  771. border-radius: 8rpx;
  772. padding: 4rpx 12rpx;
  773. margin-left: 16rpx;
  774. text {
  775. color: #fff;
  776. font-family: DM Sans;
  777. font-size: 12px;
  778. font-weight: 500;
  779. line-height: 16px;
  780. letter-spacing: 0%;
  781. text-align: center;
  782. }
  783. }
  784. }
  785. }
  786. }
  787. }
  788. // 权限弹窗页面
  789. .popup-content {
  790. height: 100vh;
  791. .popup-text {
  792. font-size: 32rpx;
  793. padding-left: 32rpx;
  794. padding-right: 32rpx;
  795. }
  796. }
  797. // 更换账号弹窗
  798. .input-wrapper {
  799. box-sizing: border-box;
  800. border: 1px solid rgba(242, 242, 242, 1);
  801. border-radius: 6px;
  802. background: rgba(250, 250, 250, 1);
  803. margin-bottom: 16rpx;
  804. padding: 10rpx 24rpx;
  805. font-size: 28rpx;
  806. line-height: 60rpx;
  807. input {
  808. height: 60rpx;
  809. font-size: 28rpx;
  810. color: #1f2c37;
  811. }
  812. .placeholder {
  813. color: rgba(158, 161, 168, 1);
  814. }
  815. .verify-input {
  816. width: 300rpx;
  817. }
  818. .verify-btn {
  819. color: rgba(1, 107, 246, 1);
  820. }
  821. }
  822. </style>