userinfo.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789
  1. <template>
  2. <view class="page-container" :style="{ paddingTop: statusBarHeight + 'px' }">
  3. <!-- 顶部导航栏 -->
  4. <navBar title="基本信息"></navBar>
  5. <!-- <nav-bar title="基本信息"></nav-bar> -->
  6. <view class="usermain">
  7. <view class="usermain-item ">
  8. <view class="form-label">
  9. <text class="required-mark">*</text>
  10. <text class="usermain-item-title">头像</text>
  11. </view>
  12. <view class="avatar-wrapper flex align-center" @click="uploadImg()">
  13. <!-- #ifndef MP-WEIXIN -->
  14. <view>
  15. <image src="../../static/logo.png" v-if="avatar == null"
  16. style="width: 78rpx;height: 78rpx;border-radius: 50%;" mode="aspectFill"></image>
  17. <image v-else :src="avatar" mode="" style="width: 78rpx;height: 78rpx;border-radius: 50%;">
  18. </image>
  19. </view>
  20. <!-- #endif -->
  21. <view class="tip">重新上传</view>
  22. </view>
  23. </view>
  24. <view class="usermain-item item-padding ">
  25. <view class="form-label">
  26. <text class="required-mark">*</text>
  27. <text class="usermain-item-title">姓名</text>
  28. </view>
  29. <view class="cu-form-group">
  30. <input type="nickname" v-model="userName" placeholder="请输入用户名" />
  31. </view>
  32. </view>
  33. <view class="usermain-item item-padding ">
  34. <view class="form-label">
  35. <text class="required-mark">*</text>
  36. <view class="usermain-item-title">性别</view>
  37. </view>
  38. <view>
  39. <view class="cu-form-group">
  40. <u-radio-group v-model="sex">
  41. <u-radio shape="circle" :name="1">男</u-radio>
  42. <u-radio shape="circle" active-color="red" :name="2">女</u-radio>
  43. </u-radio-group>
  44. </view>
  45. </view>
  46. </view>
  47. <!-- <view class="usermain-item item-padding ">
  48. <view class="usermain-item-title">年龄</view>
  49. <view>
  50. <view class="cu-form-group">
  51. <input v-model="age" />
  52. </view>
  53. </view>
  54. </view> -->
  55. <!-- 出生年月 -->
  56. <view class="form-item">
  57. <view class="form-label">
  58. <text class="required-mark">*</text>
  59. <text>出生年月</text>
  60. </view>
  61. <view class="date-picker" @click="showDatePicker = true">
  62. <text class="date-text" v-if="birthDateText">{{ birthDateText }}</text>
  63. <text class="placeholder-text" v-else>请选择出生年月</text>
  64. <u-icon name="arrow-down" color="#999" size="24"></u-icon>
  65. </view>
  66. <u-picker :default-time="birthDateText" v-model="showDatePicker" mode="time" :params="dateParams"
  67. @confirm="onDateConfirm"></u-picker>
  68. </view>
  69. <view class="usermain-item item-padding contact-structure">
  70. <view class="usermain-item-title">联系方式</view>
  71. <view class="contact-wrapper">
  72. <text class="phone-display">{{ phoneWithMask }}</text>
  73. <!-- <text class="modify-link" @click="modifyPhone">修改手机号</text> -->
  74. </view>
  75. </view>
  76. <!-- <view class="usermain-item item-padding">
  77. <view >姓名</view>
  78. <view class="cu-form-group">
  79. <input v-model="realName" placeholder="请填写您的真实姓名" />
  80. </view>
  81. </view> -->
  82. <view class="usermain-item item-padding ">
  83. <view class="usermain-item-title">微信号码</view>
  84. <view>
  85. <view class="cu-form-group">
  86. <input v-model="weChatNum" placeholder="请输入微信号码,方便给求职者交换微信联系" />
  87. </view>
  88. </view>
  89. </view>
  90. <!-- 接收简历邮箱 -->
  91. <view class="usermain-item item-padding">
  92. <view class="usermain-item-title">接收简历邮箱</view>
  93. <view>
  94. <view class="cu-form-group">
  95. <input v-model="hrEmail" placeholder="建议录入企业邮箱" />
  96. </view>
  97. </view>
  98. </view>
  99. <!-- 我的公司 -->
  100. <view class="usermain-item item-padding">
  101. <view class="usermain-item-title">我的公司</view>
  102. <view>
  103. <view class="form-input-selector" @click="selectCompany">
  104. <text v-if="selectedCompany">{{ selectedCompany }}</text>
  105. <text v-else class="placeholder">请选择公司</text>
  106. <u-icon name="arrow-right" color="#999" size="36"></u-icon>
  107. </view>
  108. </view>
  109. </view>
  110. <!-- 我的职务 -->
  111. <view class="usermain-item item-padding">
  112. <view class="usermain-item-title">我的职务</view>
  113. <view>
  114. <view class="form-input-selector">
  115. <!-- <text v-if="selectedPosition">{{ selectedPosition }}</text>
  116. <text v-else class="placeholder">请选择职务</text>
  117. <u-icon name="arrow-down" color="#999" size="36"></u-icon> -->
  118. <input type="text" v-model="hrPosition" placeholder="请输入职务" @input="filterSymbols"
  119. style="width: 100%;" :key='inputKey' />
  120. </view>
  121. </view>
  122. </view>
  123. </view>
  124. <view class="button-section">
  125. <view class="submit-btn" @click="messagebtn()">保存</view>
  126. </view>
  127. <!-- 权限说明弹窗 -->
  128. <u-popup mode="top" ref="permission">
  129. <view class="popup-content">
  130. <view class="popup-text-permission">选择/拍摄照片需要相机/相册权限,用于上传用户头像</view>
  131. </view>
  132. </u-popup>
  133. </view>
  134. </template>
  135. <script>
  136. import configdata from '../../common/config.js';
  137. import navBar from "@/components/nav-bar/index.vue";
  138. export default {
  139. components: {
  140. navBar
  141. },
  142. data() {
  143. return {
  144. statusBarHeight: 0, // 状态栏高度
  145. phone: '',
  146. weChatNum: '', //微信号
  147. email: '', //接收简历邮箱
  148. selectedCompany: '深圳市汉瑞国际猎头服务有限公司', // 我的公司
  149. selectedPosition: '人事总监', // 我的职务
  150. avatar: '../../static/logo.png',
  151. userName: '',
  152. nickName: '',
  153. userId: '',
  154. realName: '',
  155. weChatId: "",
  156. password: '',
  157. platform: '',
  158. createTime: '',
  159. money: '',
  160. jiFen: '',
  161. status: '',
  162. zhiFuBao: '',
  163. zhiFuBaoName: '',
  164. sex: 1,
  165. age: 0,
  166. hrInfo: {},
  167. hrPosition: '',
  168. hrEmail: '',
  169. inputKey: '',
  170. birthDateText: '', // 显示的日期文本
  171. showDatePicker: false, // 控制日期选择器显示
  172. dateParams: {
  173. year: true,
  174. month: true
  175. },
  176. };
  177. },
  178. computed: {
  179. phoneWithMask() {
  180. if (this.phone && this.phone.length >= 11) {
  181. return this.phone.substring(0, 3) + '******' + this.phone.substring(9);
  182. }
  183. return this.phone || '请设置手机号';
  184. }
  185. },
  186. onLoad(e) {
  187. // 获取状态栏高度
  188. let systemInfo = uni.getSystemInfoSync();
  189. this.statusBarHeight = systemInfo.statusBarHeight || 0;
  190. // this.getUserInfo()
  191. // this.getUserHr()
  192. this.inputKey = new Date().getTime()
  193. // this.avatar = uni.getStorageSync('avatar')
  194. },
  195. onShow() {
  196. this.getUserInfo()
  197. this.getUserHr()
  198. },
  199. methods: {
  200. filterSymbols(e) {
  201. // 使用正则表达式过滤掉所有符号(只保留中文、英文、数字)
  202. let value = e.detail.value
  203. // 允许:中文、英文、数字
  204. let filteredValue = value.replace(/[^\u4e00-\u9fa5a-zA-Z0-9]/g, '')
  205. console.log(this.hrPosition);
  206. // 如果值被修改了
  207. this.hrPosition = filteredValue
  208. if (value !== filteredValue) {
  209. this.inputKey = new Date().getTime()
  210. uni.showToast({
  211. title: '禁止输入符号',
  212. icon: "none"
  213. })
  214. }
  215. },
  216. // 返回上一页
  217. goBack() {
  218. uni.navigateBack();
  219. },
  220. // 修改手机号
  221. modifyPhone() {
  222. console.log('点击修改手机号,当前手机号:', this.phone);
  223. const url = `/pages/my/userphone?currentPhone=${this.phone}`;
  224. console.log('跳转路径:', url);
  225. uni.navigateTo({
  226. url: url,
  227. });
  228. },
  229. // 选择公司
  230. selectCompany() {
  231. uni.navigateTo({
  232. url: '/pages/my/myCompany'
  233. });
  234. },
  235. // 选择职务
  236. selectPosition() {
  237. // 这里可以跳转到职务选择页面或显示职务选择弹窗
  238. console.log('选择职务');
  239. },
  240. // 日期选择确认
  241. onDateConfirm(e) {
  242. const {
  243. year,
  244. month,
  245. day
  246. } = e;
  247. this.birthDateText = `${year}-${String(month).padStart(2, '0')}`;
  248. this.showDatePicker = false;
  249. },
  250. onChooseAvatar(e) {
  251. let that = this;
  252. let token = uni.getStorageSync('token');
  253. uni.uploadFile({
  254. url: that.config("APIHOST1") +
  255. '/alioss/upload', //真实的接口地址
  256. filePath: e.detail.avatarUrl,
  257. header: {
  258. token: token
  259. },
  260. name: 'file',
  261. success: uploadFileRes => {
  262. let url = JSON.parse(uploadFileRes.data);
  263. that.avatar = url.data
  264. uni.hideLoading();
  265. }
  266. });
  267. },
  268. goMyAddress() {
  269. uni.navigateTo({
  270. url: '../jifen/myaddress'
  271. });
  272. },
  273. async uploadImg() {
  274. let token = uni.getStorageSync('token')
  275. if (!token) {
  276. this.goLoginInfo();
  277. return;
  278. }
  279. let that = this;
  280. var url = null;
  281. uni.showActionSheet({
  282. // itemList按钮的文字接受的是数组
  283. itemList: ["查看头像", "从相册选择图片"],
  284. async success(e) {
  285. var index = e.tapIndex
  286. if (index === 0) {
  287. // 用户点击了预览当前图片
  288. // 可以自己实现当前头像链接的读取
  289. let url = that.avatar;
  290. let arr = []
  291. arr.push(url)
  292. uni.previewImage({
  293. // 预览功能图片也必须是数组的
  294. urls: arr
  295. })
  296. } else if (index === 1) {
  297. const hasPermission = await that.$queue.checkPermission(
  298. 'camera',
  299. '选择/拍摄照片需要相机/相册权限,用于上传用户头像',
  300. that
  301. );
  302. // 2. 如果未授权或者用户拒绝,显示提示
  303. if (!hasPermission) {
  304. return;
  305. }
  306. uni.chooseImage({
  307. count: 1, //默认9
  308. sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
  309. sourceType: ['album','camera'], //从相册选择
  310. success: function (res) {
  311. uni.showLoading({
  312. title: '上传中...'
  313. });
  314. let token = uni.getStorageSync('token');
  315. let userId = uni.getStorageSync('userId');
  316. uni.uploadFile({
  317. url: that.config("APIHOST1") +
  318. '/alioss/upload', //真实的接口地址
  319. filePath: res.tempFilePaths[0],
  320. header: {
  321. token: token
  322. },
  323. name: 'file',
  324. success: uploadFileRes => {
  325. url = JSON.parse(uploadFileRes.data);
  326. that.avatar = url.data
  327. uni.hideLoading();
  328. }
  329. });
  330. }
  331. });
  332. }
  333. }
  334. })
  335. },
  336. config: function (name) {
  337. var info = null;
  338. if (name) {
  339. var name2 = name.split("."); //字符分割
  340. if (name2.length > 1) {
  341. info = configdata[name2[0]][name2[1]] || null;
  342. } else {
  343. info = configdata[name] || null;
  344. }
  345. if (info == null) {
  346. let web_config = cache.get("web_config");
  347. if (web_config) {
  348. if (name2.length > 1) {
  349. info = web_config[name2[0]][name2[1]] || null;
  350. } else {
  351. info = web_config[name] || null;
  352. }
  353. }
  354. }
  355. }
  356. return info;
  357. },
  358. getUserHr() {
  359. this.$Request.get("/app/HrFirst/getUserHr").then(res => {
  360. if (res.code === 0) {
  361. this.hrInfo = res.data.HrEntity
  362. this.hrPosition = res.data.HrEntity.hrPosition
  363. this.hrEmail = res.data.HrEntity.hrEmail
  364. }
  365. })
  366. },
  367. getUserInfo() {
  368. let userId = uni.getStorageSync('userId')
  369. // /app/user/selectUserById
  370. // /app/user/getUserInfo
  371. // this.$Request.get("/app/user/selectUserById").then(res => {
  372. this.$Request.get("/app/user/getUserInfo").then(res => {
  373. if (res.code == 0) {
  374. this.$queue.setData('avatar', res.data.avatar);
  375. this.$queue.setData('userId', res.data.userId);
  376. this.$queue.setData('userName', res.data.userName);
  377. this.$queue.setData('phone', res.data.phone);
  378. this.$queue.setData('age', res.data.age);
  379. this.$queue.setData('weChatNum', res.data.weChatNum)
  380. this.weChatNum = res.data.weChatNum
  381. this.sex = res.data.sex
  382. this.age = res.data.age
  383. this.phone = res.data.phone;
  384. this.avatar = res.data.avatar;
  385. this.userName = res.data.userName;
  386. this.birthDateText = res.data?.birthday || '';
  387. if (this.userName == null) {
  388. this.userName = res.data.nickName;
  389. } else {
  390. this.userName = res.data.userName;
  391. }
  392. this.selectedCompany = this.$queue.getData('companyName')
  393. }
  394. uni.hideLoading();
  395. });
  396. },
  397. // 保存
  398. messagebtn() {
  399. if (!this.userName) {
  400. // this.$queue.showToast('用户名不能为空');
  401. uni.showToast({
  402. title: "用户名不能为空",
  403. icon: "none"
  404. })
  405. } else if (!this.phone) {
  406. // this.$queue.showToast('用户名不能为空');
  407. uni.showToast({
  408. title: "联系电话不能为空",
  409. icon: "none"
  410. })
  411. } else if (!this.birthDateText) {
  412. this.$queue.showToast('请选择出生年月');
  413. } else {
  414. let that = this
  415. uni.showModal({
  416. title: '温馨提示',
  417. content: '确定保存信息',
  418. success: e => {
  419. if (e.confirm) {
  420. let phone = that.$queue.getData('newPhone') ? this.$queue.getData('newPhone') :
  421. that.phone
  422. that.$Request.postJson("/app/user/updateUserInfo", {
  423. userName: that.userName,
  424. avatar: that.avatar,
  425. phone,
  426. sex: that.sex,
  427. // age: that.age,
  428. birthday: this.birthDateText,
  429. weChatNum: that.weChatNum
  430. }).then(res => {
  431. if (res.code === 0) {
  432. that.$Request.postJson("/app/HrFirst/addHr", {
  433. hrPosition: this.hrPosition,
  434. hrEmail: this.hrEmail,
  435. avatar: this.avatar
  436. }).then(res => {
  437. if (res.code === 0) {
  438. uni.showToast({
  439. title: '保存成功',
  440. icon: "none"
  441. })
  442. that.getUserInfo()
  443. setTimeout(function () {
  444. uni.navigateBack()
  445. }, 1000)
  446. } else {
  447. uni.showToast({
  448. title: res.msg,
  449. icon: "none"
  450. })
  451. }
  452. })
  453. // uni.showToast({
  454. // title: '保存成功',
  455. // icon: "none"
  456. // })
  457. // that.getUserInfo()
  458. // setTimeout(function() {
  459. // uni.navigateBack()
  460. // }, 1000)
  461. } else {
  462. uni.showToast({
  463. title: res.msg,
  464. icon: "none"
  465. })
  466. }
  467. })
  468. }
  469. }
  470. });
  471. }
  472. }
  473. },
  474. // userphone(){
  475. // uni.navigateTo({
  476. // url:'/pages/my/userphone'
  477. // })
  478. // }
  479. };
  480. </script>
  481. <style lang="scss" scoped>
  482. .page-container {
  483. height: 100vh;
  484. display: flex;
  485. flex-direction: column;
  486. box-sizing: border-box;
  487. }
  488. button::after {
  489. border: none;
  490. background-color: none;
  491. }
  492. button {
  493. position: relative;
  494. display: block;
  495. margin-left: auto;
  496. margin-right: auto;
  497. padding-left: 0px;
  498. padding-right: 0px;
  499. box-sizing: border-box;
  500. text-decoration: none;
  501. line-height: 1.35;
  502. overflow: hidden;
  503. color: #666666;
  504. /* background-color: #fff; */
  505. background-color: rgba(255, 255, 255, 0) !important;
  506. width: 100%;
  507. height: 100%;
  508. }
  509. .usermain {
  510. flex: 1;
  511. overflow: auto;
  512. padding-bottom: 40rpx;
  513. }
  514. .usermain-item {
  515. display: flex;
  516. flex-direction: column;
  517. margin: 0 40rpx;
  518. padding: 20rpx 0;
  519. // border-bottom: 1rpx solid rgba(229, 229, 229, 0.3);
  520. gap: 16rpx;
  521. }
  522. .usermain-item-title {
  523. color: rgba(31, 44, 55, 1);
  524. font-family: DM Sans;
  525. font-size: 28rpx;
  526. font-weight: 500;
  527. line-height: 44rpx;
  528. text-align: left;
  529. }
  530. .usermain-item.item-padding {
  531. /* padding: 0; */
  532. }
  533. .cu-form-group {
  534. padding: 0;
  535. background: #ffffff;
  536. text-align: right;
  537. }
  538. .cu-form-group input {
  539. background: #ffffff;
  540. font-size: 28rpx;
  541. /* color: #fff; */
  542. }
  543. /* 姓名字段样式 - 参考basicInfo.vue */
  544. .usermain-item .form-label {
  545. color: rgba(31, 44, 55, 1);
  546. font-family: DM Sans;
  547. font-size: 32rpx;
  548. font-weight: 500;
  549. line-height: 44rpx;
  550. letter-spacing: 0.5%;
  551. text-align: left;
  552. display: flex;
  553. align-items: center;
  554. margin-bottom: 16rpx;
  555. }
  556. .usermain-item .required-mark {
  557. color: #FF3B30;
  558. font-size: 36rpx;
  559. font-weight: 600;
  560. margin-right: 8rpx;
  561. }
  562. .usermain-item .cu-form-group {
  563. background: transparent;
  564. text-align: left;
  565. padding: 0;
  566. }
  567. .usermain-item .cu-form-group input {
  568. width: 100%;
  569. height: 68rpx;
  570. font-size: 28rpx;
  571. border: 1rpx solid rgba(227, 231, 236, 1);
  572. border-radius: 44rpx;
  573. color: rgba(23, 23, 37, 1);
  574. padding: 0 32rpx;
  575. background: #ffffff;
  576. font-family: DM Sans;
  577. font-weight: 400;
  578. }
  579. .usermain-item .cu-form-group input::placeholder {
  580. color: rgba(155, 155, 155, 1);
  581. font-size: 28rpx;
  582. }
  583. /* 联系方式样式 */
  584. .contact-structure {
  585. border-bottom: none !important;
  586. }
  587. .contact-wrapper {
  588. display: flex;
  589. align-items: center;
  590. justify-content: space-between;
  591. padding: 0;
  592. margin-top: 8rpx;
  593. }
  594. .phone-display {
  595. color: rgba(23, 23, 37, 1);
  596. font-family: DM Sans;
  597. font-size: 28rpx;
  598. font-weight: 400;
  599. line-height: 40rpx;
  600. letter-spacing: 0.5%;
  601. }
  602. .modify-link {
  603. color: rgba(24, 144, 255, 1);
  604. font-family: DM Sans;
  605. font-size: 28rpx;
  606. font-weight: 400;
  607. line-height: 40rpx;
  608. letter-spacing: 0.5%;
  609. cursor: pointer;
  610. text-decoration: none;
  611. }
  612. .modify-link:active {
  613. opacity: 0.7;
  614. }
  615. /* 头像编辑图标样式 */
  616. .avatar-wrapper {
  617. .tip {
  618. font-size: 20rpx;
  619. line-height: 44rpx;
  620. color: rgba(1, 107, 246, 1);
  621. margin-left: 24rpx;
  622. }
  623. }
  624. .avatar-button {
  625. position: relative;
  626. padding: 0;
  627. margin: 0;
  628. background: transparent;
  629. border: none;
  630. }
  631. .button-section {
  632. padding: 28rpx 40rpx;
  633. box-shadow: 0px -4px 16px 0px rgba(0, 0, 0, 0.04);
  634. }
  635. .submit-btn {
  636. flex-shrink: 0;
  637. border-radius: 999px;
  638. box-shadow: 0px -4px 16px 0px rgba(0, 0, 0, 0.04);
  639. background: linear-gradient(90deg, rgba(13, 39, 247, 1), rgba(19, 193, 234, 1) 100%);
  640. color: rgba(255, 255, 255, 1);
  641. font-family: DM Sans;
  642. font-size: 32rpx;
  643. font-weight: 400;
  644. line-height: 48rpx;
  645. display: flex;
  646. justify-content: center;
  647. align-items: center;
  648. padding: 16rpx 32rpx;
  649. box-sizing: border-box;
  650. }
  651. /* 选择器样式 - 参考workExperience页面 */
  652. .form-input-selector {
  653. width: 100%;
  654. height: 68rpx;
  655. padding: 0 40rpx;
  656. border: 1px solid rgba(227, 231, 236, 1);
  657. border-radius: 24px;
  658. background: rgba(255, 255, 255, 1);
  659. display: flex;
  660. align-items: center;
  661. justify-content: space-between;
  662. cursor: pointer;
  663. transition: all 0.2s ease;
  664. .placeholder {
  665. color: #999999;
  666. font-family: DM Sans;
  667. font-size: 28rpx;
  668. font-weight: 400;
  669. line-height: 40rpx;
  670. }
  671. text {
  672. color: rgba(23, 23, 37, 1);
  673. font-family: DM Sans;
  674. font-size: 28rpx;
  675. font-weight: 400;
  676. line-height: 40rpx;
  677. }
  678. }
  679. .arrow-down {
  680. color: rgba(96, 98, 102, 1);
  681. font-size: 24rpx;
  682. font-weight: 400;
  683. transform: scale(1.5);
  684. }
  685. .selector-group:active {
  686. background: #f5f7fa !important;
  687. transform: scale(0.99);
  688. }
  689. .form-item {
  690. margin: 0 40rpx 20rpx;
  691. .form-label {
  692. color: var(--Neutral/100, rgba(31, 44, 55, 1));
  693. font-family: DM Sans;
  694. font-size: 28rpx;
  695. font-weight: 500;
  696. line-height: 44rpx;
  697. letter-spacing: 0.5%;
  698. text-align: left;
  699. display: flex;
  700. align-items: center;
  701. margin-bottom: 16rpx;
  702. .required-mark {
  703. color: #FF3B30;
  704. font-size: 18px;
  705. font-weight: 600;
  706. margin-right: 8rpx;
  707. }
  708. }
  709. // 日期选择器样式
  710. .date-picker {
  711. display: flex;
  712. align-items: center;
  713. justify-content: space-between;
  714. height: 75rpx;
  715. font-size: 14px;
  716. border: 1px solid rgba(227, 231, 236, 1);
  717. border-radius: 24px;
  718. color: rgba(23, 23, 37, 1);
  719. padding: 12px 16px;
  720. .date-text {
  721. color: rgba(23, 23, 37, 1);
  722. font-family: DM Sans;
  723. font-size: 14px;
  724. font-weight: 400;
  725. line-height: 22px;
  726. letter-spacing: 0%;
  727. text-align: left;
  728. }
  729. }
  730. // 出生年月placeholder样式
  731. .placeholder-text {
  732. color: #999;
  733. }
  734. }
  735. </style>