index.vue 18 KB

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