index.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825
  1. <template>
  2. <view class="interview-container">
  3. <!-- 职位列表 -->
  4. <view class="job-list-container" v-if="!userInfoFilled">
  5. <view class="job-list-title">可选职位列表</view>
  6. <view class="job-list">
  7. <view v-for="(job, index) in jobList" :key="index" class="job-item"
  8. :class="{'job-selected': selectedJobId === job.id}" @click="selectJob(job)">
  9. <view class="job-name">{{job.title}}</view>
  10. <view class="job-details">
  11. <text class="job-salary">{{job.publish_date}}</text>
  12. <text class="job-location">{{job.location}}</text>
  13. </view>
  14. </view>
  15. </view>
  16. <button class="apply-btn" :disabled="!selectedJobId" @click="applyForJob">申请面试</button>
  17. </view>
  18. <!-- 表单信息 -->
  19. <view class="form-container" v-if="userInfoFilled">
  20. <view class="form-title">请完成验证信息填写</view>
  21. <view class="form-item phone-item">
  22. <view class="country-code">
  23. <text>+86</text>
  24. <!-- <text class="dropdown-icon">▼</text> -->
  25. </view>
  26. <input type="number" v-model="formData.phone" placeholder="请输入手机号" maxlength="11" @input="validatePhone" />
  27. <view class="validation-icon" v-if="formData.phone">
  28. <text class="icon-success" v-if="isPhoneValid">✓</text>
  29. <text class="icon-error" v-else>✗</text>
  30. </view>
  31. </view>
  32. <view class="form-item">
  33. <input type="text" v-model="formData.name" placeholder="请输入姓名" @input="validateName" />
  34. <view class="validation-icon" v-if="formData.name">
  35. <text class="icon-success" v-if="isNameValid">✓</text>
  36. <text class="icon-error" v-else>✗</text>
  37. </view>
  38. </view>
  39. <view class="form-item">
  40. <input type="text" v-model="formData.idCard" placeholder="请输入身份证号" maxlength="18" @input="validateIdCard" />
  41. <view class="validation-icon" v-if="formData.idCard">
  42. <text class="icon-success" v-if="isIdCardValid">✓</text>
  43. <text class="icon-error" v-else>✗</text>
  44. </view>
  45. </view>
  46. <!-- 添加性别选择 -->
  47. <view class="form-item">
  48. <picker @change="genderChange" :value="genderIndex" :range="genderOptions">
  49. <view class="picker-input">
  50. <input type="text" disabled placeholder="请选择性别" :value="formData.gender" />
  51. <view class="dropdown-icon">▼</view>
  52. </view>
  53. </picker>
  54. </view>
  55. <button class="verify-btn" :disabled="!canSubmitSimple" @click="submitForm">确认面试</button>
  56. <view class="agreement">
  57. <checkbox :checked="isAgreed" @tap="toggleAgreement" color="#0039b3" />
  58. <text class="agreement-text">
  59. 我已阅读并同意<text class="agreement-link">《用户协议》</text>和<text class="agreement-link">《隐私政策》</text>
  60. </text>
  61. </view>
  62. </view>
  63. </view>
  64. </template>
  65. <script>
  66. import { apiBaseUrl } from '@/common/config.js';
  67. import {
  68. fillUserInfo,
  69. getUserInfo,
  70. getJobList,
  71. applyJob
  72. } from '@/api/user';
  73. export default {
  74. data() {
  75. return {
  76. formData: {
  77. name: '',
  78. gender: '',
  79. phone: '',
  80. email: '',
  81. idCard: '',
  82. emergencyContact: '',
  83. emergencyPhone: '',
  84. relation: ''
  85. },
  86. relationOptions: ['父母', '配偶', '子女', '兄弟姐妹', '朋友', '其他'],
  87. relationIndex: 0,
  88. isAgreed: false,
  89. userInfoFilled: false,
  90. jobList: [],
  91. selectedJobId: null,
  92. selectedJob: null,
  93. isPhoneValid: false,
  94. isNameValid: false,
  95. isIdCardValid: false,
  96. genderOptions: ['男', '女'],
  97. genderIndex: 0,
  98. genderMapping: {
  99. '男': '1',
  100. '女': '2',
  101. '1': '男',
  102. '2': '女'
  103. }
  104. }
  105. },
  106. onLoad() {
  107. this.checkLogin();
  108. this.checkUserInfo();
  109. this.fetchJobList();
  110. },
  111. computed: {
  112. canSubmit() {
  113. return this.formData.name.trim() &&
  114. this.formData.gender &&
  115. this.formData.phone.trim() &&
  116. (/^1\d{10}$/.test(this.formData.phone)) &&
  117. (!this.formData.email || /^[\w-]+(\.[\w-]+)*@[\w-]+(\.[\w-]+)+$/.test(this.formData.email)) &&
  118. this.formData.idCard.trim() &&
  119. this.formData.emergencyContact.trim() &&
  120. this.formData.emergencyPhone.trim() &&
  121. (/^1\d{10}$/.test(this.formData.emergencyPhone)) &&
  122. this.formData.relation &&
  123. this.isAgreed;
  124. },
  125. canSubmitSimple() {
  126. return this.formData.name.trim() &&
  127. this.formData.phone.trim() &&
  128. this.isPhoneValid &&
  129. this.formData.idCard.trim() &&
  130. this.isIdCardValid &&
  131. this.isAgreed;
  132. }
  133. },
  134. methods: {
  135. checkLogin() {
  136. const userInfo = uni.getStorageSync('userInfo');
  137. if (!userInfo) {
  138. // 未登录时跳转到身份验证登录页面
  139. uni.reLaunch({
  140. url: '/pages/login/login',
  141. success: () => {
  142. console.log('跳转到身份验证登录页面成功');
  143. },
  144. fail: (err) => {
  145. console.error('跳转到身份验证登录页面失败:', err);
  146. uni.showToast({
  147. title: '跳转失败,请重试',
  148. icon: 'none'
  149. });
  150. }
  151. });
  152. return false;
  153. }
  154. try {
  155. const parsedUserInfo = JSON.parse(userInfo);
  156. if (!parsedUserInfo.openid) {
  157. // 没有openid时跳转到身份验证登录页面
  158. uni.navigateTo({
  159. url: '/pages/login/login'
  160. });
  161. return false;
  162. }
  163. return true;
  164. } catch (e) {
  165. console.error('解析用户信息失败:', e);
  166. uni.removeStorageSync('userInfo');
  167. uni.navigateTo({
  168. url: '/pages/login/login'
  169. });
  170. return false;
  171. }
  172. },
  173. goHome() {
  174. uni.navigateBack({
  175. delta: 1
  176. });
  177. },
  178. toggleAgreement() {
  179. this.isAgreed = !this.isAgreed;
  180. },
  181. relationChange(e) {
  182. this.relationIndex = e.detail.value;
  183. this.formData.relation = this.relationOptions[this.relationIndex];
  184. },
  185. checkUserInfo() {
  186. if (!this.checkLogin()) {
  187. return;
  188. }
  189. uni.showLoading({
  190. title: '加载中...'
  191. });
  192. try {
  193. const userInfo = JSON.parse(uni.getStorageSync('userInfo'));
  194. console.log('id:', userInfo.id);
  195. getUserInfo(userInfo.id)
  196. .then(res => {
  197. uni.hideLoading();
  198. const userData = res;
  199. if (!userData.name || !userData.phone) {
  200. this.userInfoFilled = true;
  201. this.formData.name = userData.name || '';
  202. if (userData.gender) {
  203. this.formData.gender = this.genderMapping[userData.gender] || userData.gender;
  204. const index = this.genderOptions.findIndex(item => item === this.formData.gender);
  205. if (index !== -1) {
  206. this.genderIndex = index;
  207. }
  208. } else {
  209. this.formData.gender = '';
  210. }
  211. this.formData.phone = userData.phone || '';
  212. this.formData.idCard = userData.id_card || '';
  213. this.formData.emergencyContact = userData.emergency_contact || '';
  214. this.formData.emergencyPhone = userData.emergency_phone || '';
  215. this.formData.relation = userData.relation || '';
  216. if (userData.relation) {
  217. const index = this.relationOptions.findIndex(item => item === userData.relation);
  218. if (index !== -1) {
  219. this.relationIndex = index;
  220. }
  221. }
  222. }
  223. })
  224. .catch(err => {
  225. uni.hideLoading();
  226. console.error('获取用户信息失败:', err);
  227. uni.showToast({
  228. title: '获取用户信息失败',
  229. icon: 'none'
  230. });
  231. });
  232. } catch (e) {
  233. uni.hideLoading();
  234. console.error('获取用户信息失败:', e);
  235. uni.showToast({
  236. title: '获取用户信息失败',
  237. icon: 'none'
  238. });
  239. uni.navigateTo({
  240. url: '/pages/login/login'
  241. });
  242. }
  243. },
  244. fetchJobList() {
  245. uni.showLoading({
  246. title: '加载职位列表...'
  247. });
  248. getJobList()
  249. .then(res => {
  250. uni.hideLoading();
  251. console.log(res);
  252. this.jobList = res;
  253. })
  254. .catch(err => {
  255. uni.hideLoading();
  256. console.error('获取职位列表失败:', err);
  257. uni.showToast({
  258. title: '网络错误,请稍后重试',
  259. icon: 'none'
  260. });
  261. });
  262. },
  263. selectJob(job) {
  264. this.selectedJobId = job.id;
  265. this.selectedJob = job;
  266. },
  267. applyForJob() {
  268. if (!this.checkLogin()) {
  269. return;
  270. }
  271. if (!this.selectedJobId) {
  272. uni.showToast({
  273. title: '请选择一个职位',
  274. icon: 'none'
  275. });
  276. return;
  277. }
  278. // 保存所选职位信息
  279. uni.setStorageSync('selectedJob', JSON.stringify(this.selectedJob));
  280. applyJob({
  281. job_id: this.selectedJobId,
  282. tenant_id: 1,
  283. openid: JSON.parse(uni.getStorageSync('userInfo')).openid
  284. }).then(res => {
  285. // 保存返回的应用ID到本地存储
  286. if (res && res.id) {
  287. // 将应用ID保存到本地
  288. uni.setStorageSync('appId', res.id);
  289. // 也可以更新已有的userInfo对象
  290. try {
  291. const userInfo = JSON.parse(uni.getStorageSync('userInfo') || '{}');
  292. userInfo.appId = res.id;
  293. uni.setStorageSync('userInfo', JSON.stringify(userInfo));
  294. } catch (e) {
  295. console.error('更新用户信息失败:', e);
  296. }
  297. }
  298. uni.navigateTo({
  299. url: '/pages/interview-notice/interview-notice',
  300. fail: (err) => {
  301. console.error('页面跳转失败:', err);
  302. uni.showToast({
  303. title: '页面跳转失败',
  304. icon: 'none'
  305. });
  306. }
  307. });
  308. }).catch(err => {
  309. console.error('申请职位失败:', err);
  310. uni.showToast({
  311. title: '申请职位失败,请重试',
  312. icon: 'none'
  313. });
  314. });
  315. },
  316. submitForm() {
  317. if (!this.checkLogin()) {
  318. return;
  319. }
  320. if (!this.formData.name.trim()) {
  321. uni.showToast({
  322. title: '请输入姓名',
  323. icon: 'none'
  324. });
  325. return;
  326. }
  327. if (!this.formData.gender) {
  328. uni.showToast({
  329. title: '请选择性别',
  330. icon: 'none'
  331. });
  332. return;
  333. }
  334. if (!this.formData.phone.trim()) {
  335. uni.showToast({
  336. title: '请输入手机号',
  337. icon: 'none'
  338. });
  339. return;
  340. }
  341. if (!/^1\d{10}$/.test(this.formData.phone)) {
  342. uni.showToast({
  343. title: '请输入正确的手机号',
  344. icon: 'none'
  345. });
  346. return;
  347. }
  348. if (!this.formData.idCard.trim()) {
  349. uni.showToast({
  350. title: '请输入身份证号',
  351. icon: 'none'
  352. });
  353. return;
  354. }
  355. const idCardReg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
  356. if (!idCardReg.test(this.formData.idCard)) {
  357. uni.showToast({
  358. title: '请输入正确的身份证号',
  359. icon: 'none'
  360. });
  361. return;
  362. }
  363. if (!this.isAgreed) {
  364. uni.showToast({
  365. title: '请阅读并同意相关协议',
  366. icon: 'none'
  367. });
  368. return;
  369. }
  370. uni.showLoading({
  371. title: '验证身份信息...'
  372. });
  373. // 先调用身份验证接口
  374. uni.request({
  375. url: `${apiBaseUrl}/wechat/identity/verify`,
  376. method: 'POST',
  377. data: {
  378. name: this.formData.name,
  379. id_number: this.formData.idCard,
  380. mobile: this.formData.phone
  381. },
  382. header: {
  383. 'content-type': 'application/x-www-form-urlencoded'
  384. },
  385. success: (res) => {
  386. // 身份验证成功后,继续提交用户信息
  387. console.log(res);
  388. if (res.statusCode === 200) {
  389. if (res.data.code === 200) {
  390. this.submitUserInfo();
  391. } else {
  392. uni.showToast({
  393. title: res.data.data.message,
  394. icon: 'none'
  395. });
  396. }
  397. } else {
  398. uni.hideLoading();
  399. uni.showToast({
  400. title: '身份验证失败,请检查信息是否正确',
  401. icon: 'none'
  402. });
  403. }
  404. },
  405. fail: (err) => {
  406. uni.hideLoading();
  407. console.error('身份验证失败:', err);
  408. uni.showToast({
  409. title: '网络错误,请稍后重试',
  410. icon: 'none'
  411. });
  412. }
  413. });
  414. },
  415. submitUserInfo() {
  416. const genderValue = this.genderMapping[this.formData.gender] || this.formData.gender;
  417. const submitData = {
  418. openid: JSON.parse(uni.getStorageSync('userInfo') || '{}').openid || '',
  419. name: this.formData.name,
  420. phone: this.formData.phone,
  421. id_card: this.formData.idCard,
  422. status: 1,
  423. source: 'mini',
  424. examine: 0,
  425. tenant_id: '1',
  426. /* emergency_contact: this.formData.emergencyContact,
  427. emergency_phone: this.formData.emergencyPhone,
  428. relation: this.formData.relation, */
  429. age: '20',
  430. job_id: this.selectedJobId,
  431. gender: genderValue
  432. };
  433. fillUserInfo(submitData)
  434. .then(res => {
  435. uni.hideLoading();
  436. this.updateLocalUserInfo(res.id);
  437. uni.showToast({
  438. title: '提交成功',
  439. icon: 'success',
  440. duration: 1500,
  441. success: () => {
  442. this.userInfoFilled = false;
  443. // setTimeout(() => {
  444. // }, 1500);
  445. }
  446. });
  447. })
  448. .catch(err => {
  449. uni.hideLoading();
  450. console.error('提交表单失败:', err);
  451. uni.showToast({
  452. title: '网络错误,请稍后重试',
  453. icon: 'none'
  454. });
  455. });
  456. },
  457. updateLocalUserInfo(data) {
  458. getUserInfo(data)
  459. .then(res => {
  460. if (res.code === 200 && res.data) {
  461. let userInfo = {};
  462. try {
  463. userInfo = JSON.parse(uni.getStorageSync('userInfo') || '{}');
  464. } catch (e) {
  465. console.error('解析本地存储用户信息失败:', e);
  466. userInfo = {};
  467. }
  468. const updatedUserInfo = {
  469. ...userInfo,
  470. ...res.data
  471. };
  472. uni.setStorageSync('userInfo', JSON.stringify(updatedUserInfo));
  473. }
  474. })
  475. .catch(err => {
  476. console.error('更新本地用户信息失败:', err);
  477. });
  478. },
  479. validatePhone() {
  480. this.isPhoneValid = /^1\d{10}$/.test(this.formData.phone);
  481. },
  482. validateName() {
  483. this.isNameValid = this.formData.name.trim().length >= 2;
  484. },
  485. validateIdCard() {
  486. const idCardReg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
  487. this.isIdCardValid = idCardReg.test(this.formData.idCard);
  488. },
  489. genderChange(e) {
  490. this.genderIndex = e.detail.value;
  491. const displayGender = this.genderOptions[this.genderIndex];
  492. this.formData.gender = displayGender;
  493. }
  494. }
  495. }
  496. </script>
  497. <style>
  498. .interview-container {
  499. display: flex;
  500. flex-direction: column;
  501. min-height: 100vh;
  502. background-color: #f5f7fa;
  503. }
  504. .nav-bar {
  505. display: flex;
  506. justify-content: space-between;
  507. align-items: center;
  508. padding: 20rpx 30rpx;
  509. background-color: #0039b3;
  510. color: #fff;
  511. }
  512. .scan-btn {
  513. display: flex;
  514. flex-direction: column;
  515. align-items: center;
  516. background-color: #ff9f43;
  517. padding: 10rpx 30rpx;
  518. border-radius: 30rpx;
  519. font-size: 24rpx;
  520. }
  521. .interview-info {
  522. background-color: #0039b3;
  523. color: #fff;
  524. padding: 20rpx 30rpx 40rpx;
  525. }
  526. .info-item {
  527. margin: 10rpx 0;
  528. font-size: 28rpx;
  529. }
  530. .label {
  531. margin-right: 10rpx;
  532. }
  533. .form-container {
  534. flex: 1;
  535. background-color: #fff;
  536. padding: 40rpx 30rpx;
  537. }
  538. .form-title {
  539. font-size: 32rpx;
  540. font-weight: bold;
  541. margin-bottom: 40rpx;
  542. text-align: center;
  543. color: #333;
  544. }
  545. .form-item {
  546. margin-bottom: 30rpx;
  547. position: relative;
  548. }
  549. .validation-icon {
  550. position: absolute;
  551. right: 20rpx;
  552. top: 50%;
  553. transform: translateY(-50%);
  554. font-size: 36rpx;
  555. display: flex;
  556. align-items: center;
  557. justify-content: center;
  558. }
  559. .icon-success {
  560. color: #4cd964;
  561. }
  562. .icon-error {
  563. color: #ff3b30;
  564. }
  565. input {
  566. width: 100%;
  567. height: 80rpx;
  568. border: 1px solid #eee;
  569. border-radius: 8rpx;
  570. padding: 0 60rpx 0 20rpx;
  571. font-size: 28rpx;
  572. box-sizing: border-box;
  573. background-color: #f9f9f9;
  574. }
  575. .phone-item {
  576. display: flex;
  577. align-items: center;
  578. position: relative;
  579. }
  580. .phone-item .validation-icon {
  581. right: 20rpx;
  582. }
  583. .phone-item input {
  584. flex: 1;
  585. border-radius: 0 8rpx 8rpx 0;
  586. }
  587. .verify-btn {
  588. width: 100%;
  589. height: 90rpx;
  590. line-height: 90rpx;
  591. background-color: #0039b3;
  592. color: #fff;
  593. border-radius: 45rpx;
  594. font-size: 32rpx;
  595. margin-top: 60rpx;
  596. }
  597. .verify-btn[disabled] {
  598. background-color: #b2b2b2;
  599. color: #fff;
  600. opacity: 0.7;
  601. }
  602. .agreement {
  603. display: flex;
  604. align-items: center;
  605. margin-top: 30rpx;
  606. }
  607. .agreement-text {
  608. font-size: 24rpx;
  609. color: #666;
  610. line-height: 1.5;
  611. margin-left: 10rpx;
  612. }
  613. .agreement-link {
  614. color: #0039b3;
  615. }
  616. /* 职位列表样式 */
  617. .job-list-container {
  618. flex: 1;
  619. background-color: #fff;
  620. border-radius: 20rpx 20rpx 0 0;
  621. margin-top: -20rpx;
  622. padding: 40rpx 30rpx;
  623. }
  624. .job-list-title {
  625. font-size: 32rpx;
  626. font-weight: bold;
  627. margin-bottom: 30rpx;
  628. }
  629. .job-list {
  630. max-height: 800rpx;
  631. overflow-y: auto;
  632. }
  633. .job-item {
  634. padding: 30rpx;
  635. border-radius: 12rpx;
  636. background-color: #f8f9fa;
  637. margin-bottom: 20rpx;
  638. border: 2rpx solid transparent;
  639. }
  640. .job-selected {
  641. border-color: #0039b3;
  642. background-color: rgba(108, 92, 231, 0.1);
  643. }
  644. .job-name {
  645. font-size: 30rpx;
  646. font-weight: bold;
  647. margin-bottom: 10rpx;
  648. }
  649. .job-details {
  650. display: flex;
  651. justify-content: space-between;
  652. font-size: 24rpx;
  653. color: #666;
  654. }
  655. .job-salary {
  656. color: #ff6b6b;
  657. }
  658. .apply-btn {
  659. width: 100%;
  660. height: 90rpx;
  661. line-height: 90rpx;
  662. background-color: #0039b3;
  663. color: #fff;
  664. border-radius: 45rpx;
  665. font-size: 32rpx;
  666. margin-top: 40rpx;
  667. }
  668. .apply-btn[disabled] {
  669. background-color: #b2b2b2;
  670. color: #fff;
  671. }
  672. /* 修复国家代码样式 */
  673. .country-code {
  674. display: flex;
  675. align-items: center;
  676. justify-content: space-between;
  677. width: 100rpx;
  678. padding: 0 20rpx;
  679. height: 80rpx;
  680. border: 1px solid #eee;
  681. border-radius: 8rpx 0 0 8rpx;
  682. border-right: none;
  683. font-size: 28rpx;
  684. background-color: #f9f9f9;
  685. }
  686. .dropdown-icon {
  687. font-size: 20rpx;
  688. color: #999;
  689. margin-left: 10rpx;
  690. }
  691. /* 修复手机号输入框样式 */
  692. .phone-item {
  693. display: flex;
  694. align-items: center;
  695. position: relative;
  696. }
  697. .phone-item input {
  698. flex: 1;
  699. border-radius: 0 8rpx 8rpx 0;
  700. }
  701. /* 修复验证图标位置 */
  702. .validation-icon {
  703. position: absolute;
  704. right: 20rpx;
  705. top: 50%;
  706. transform: translateY(-50%);
  707. font-size: 36rpx;
  708. display: flex;
  709. align-items: center;
  710. justify-content: center;
  711. z-index: 2;
  712. }
  713. .phone-item .validation-icon {
  714. right: 20rpx;
  715. }
  716. /* 修改图标样式与图片一致 */
  717. .icon-success {
  718. color: #4cd964;
  719. font-weight: bold;
  720. }
  721. .icon-error {
  722. color: #ff3b30;
  723. font-weight: bold;
  724. }
  725. /* 修改性别选择样式,使其看起来像输入框 */
  726. .picker-input {
  727. position: relative;
  728. width: 100%;
  729. }
  730. .picker-input input {
  731. width: 100%;
  732. height: 80rpx;
  733. border: 1px solid #eee;
  734. border-radius: 8rpx;
  735. padding: 0 60rpx 0 20rpx;
  736. font-size: 28rpx;
  737. box-sizing: border-box;
  738. background-color: #f9f9f9;
  739. }
  740. .picker-input .dropdown-icon {
  741. position: absolute;
  742. right: 20rpx;
  743. top: 50%;
  744. transform: translateY(-50%);
  745. font-size: 24rpx;
  746. color: #999;
  747. }
  748. </style>