basicInfo.vue 22 KB

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