addEditPatient.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792
  1. <template>
  2. <view class="content">
  3. <view class="inner">
  4. <u-alert title="国家卫健委要求,就医行为必须实名登记" type = "info" ></u-alert>
  5. <view class="form-box">
  6. <view class="form-item">
  7. <text class="label">姓名</text>
  8. <input class="input-width" type="text" v-model="form.patientName" placeholder="请输入真实姓名" placeholder-class="form-input" />
  9. </view>
  10. <view class="form-item">
  11. <text class="label">性别</text>
  12. <radio-group style="display: flex;align-items: center;">
  13. <label style="margin-right:30rpx;">
  14. <radio @click="genderChange(1)" color="#FF5C03" value="1" :checked="form.sex===1" style="margin-right: 16upx;" />
  15. <text class="option-text">男</text>
  16. </label>
  17. <label>
  18. <radio @click="genderChange(2)" color="#FF5C03" value="2" :checked="form.sex===2" style="margin-right: 16upx;" />
  19. <text class="option-text">女</text>
  20. </label>
  21. </radio-group>
  22. </view>
  23. <view class="form-item">
  24. <text class="label">联系方式</text>
  25. <input class="input-width" type="phone" v-model="form.mobile" placeholder="请输入联系方式" placeholder-class="form-input" />
  26. </view>
  27. <view class="form-item">
  28. <text class="label">身份证号</text>
  29. <input class="input-width" type="idcard" @blur="idcardChange()" v-model="form.idCard" placeholder="请输入身份证号" placeholder-class="form-input" />
  30. </view>
  31. <view class="form-item" @click="dblclick">
  32. <text class="label">出生年月</text>
  33. <!-- <picker :value="form.birthday" start="1900-01-01" class="birth-picker" mode="date" @change="birthdayChange"> -->
  34. <view class="right-box">
  35. <view class="input-box">
  36. <input type="text" :value="form.birthday" placeholder="请选择出生年月" placeholder-class="form-input" disabled="disabled" />
  37. </view>
  38. <image class="arrow" src="../../static/images/arrow_gray.png" mode=""></image>
  39. </view>
  40. <!-- </picker> -->
  41. </view>
  42. <uni-popup ref="popup" type="bottom" background-color="#fff">
  43. <view class="popup-header x-bc">
  44. <text style="color: #888;" @click="colse">取消</text>
  45. <text style="color: #007aff;" @click="confirm">完成</text>
  46. </view>
  47. <picker-view :indicator-style="indicatorStyle" :value="value" @change="bindChange" class="picker-view">
  48. <picker-view-column>
  49. <view class="x-c" v-for="(item,index) in years" :key="index">{{item}}年</view>
  50. </picker-view-column>
  51. <picker-view-column>
  52. <view class="x-c" v-for="(item,index) in months" :key="index">{{item}}月</view>
  53. </picker-view-column>
  54. <picker-view-column>
  55. <view class="x-c" v-for="(item,index) in days" :key="index">{{item}}日</view>
  56. </picker-view-column>
  57. </picker-view>
  58. </uni-popup>
  59. </view>
  60. <view class="form-box" @click="relationShow=true">
  61. <view class="form-item" >
  62. <text class="label">与本人关系</text>
  63. <view class="right-box" >
  64. <view class="input-box">
  65. <input type="text" :value="form.relation" placeholder="请选择" placeholder-class="form-input" disabled="disabled" />
  66. </view>
  67. <image class="arrow" src="../../static/images/arrow_gray.png" mode=""></image>
  68. </view>
  69. </view>
  70. </view>
  71. <view class="form-box">
  72. <view class="form-item">
  73. <text class="label">肝功能</text>
  74. <radio-group @change="liverUnusualChange" style="display: flex;align-items: center;">
  75. <label style="margin-right:30rpx;">
  76. <radio color="#FF5C03" value="正常" :checked="form.liverUnusual==='正常'" style="margin-right: 16upx;" />
  77. <text class="option-text">正常</text>
  78. </label>
  79. <label>
  80. <radio color="#FF5C03" value="异常" :checked="form.liverUnusual==='异常'" style="margin-right: 16upx;" />
  81. <text class="option-text">异常</text>
  82. </label>
  83. </radio-group>
  84. </view>
  85. <view class="form-item">
  86. <text class="label">肾功能</text>
  87. <radio-group @change="renalUnusualChange" style="display: flex;align-items: center;">
  88. <label style="margin-right:30rpx;">
  89. <radio color="#FF5C03" value="正常" :checked="form.renalUnusual==='正常'" style="margin-right: 16upx;" />
  90. <text class="option-text">正常</text>
  91. </label>
  92. <label>
  93. <radio color="#FF5C03" value="异常" :checked="form.renalUnusual==='异常'" style="margin-right: 16upx;" />
  94. <text class="option-text">异常</text>
  95. </label>
  96. </radio-group>
  97. </view>
  98. <view class="form-item">
  99. <text class="label">过敏史</text>
  100. <radio-group @change="historyAllergicChange" style="display: flex;align-items: center;justify-content: flex-end;margin: 5rpx 0rpx;">
  101. <label style="margin-right:30rpx;">
  102. <radio color="#FF5C03" value="无" :checked="form.historyAllergic==='无'" style="margin-right: 16upx;" />
  103. <text class="option-text">无</text>
  104. </label>
  105. <label>
  106. <radio color="#FF5C03" value="有" :checked="form.historyAllergic==='有'" style="margin-right: 16upx;" />
  107. <text class="option-text">有</text>
  108. </label>
  109. </radio-group>
  110. </view>
  111. <view class="form-item" v-if="form.historyAllergic=='有'" >
  112. <view class="option-box" style="margin: 5rpx 0rpx;" >
  113. <view class="option" v-for="(item,index) in historyAllergics" >
  114. <u-tag @click="historyAllergicOptionChange(item)" :borderColor="item.checked==1?'#ffffff':'#FF5C03'" :bgColor="item.checked==1?'#FF5C03':'#ffffff'" :color="item.checked==1?'#ffffff':'#FF5C03'" shape="circle" :text="item.name"></u-tag>
  115. </view>
  116. </view>
  117. </view>
  118. <view class="form-item">
  119. <text class="label">个人病史</text>
  120. <radio-group @change="selfMedHistoryChange" style="display: flex;align-items: center;">
  121. <label style="margin-right:30rpx;">
  122. <radio color="#FF5C03" value="无" :checked="form.selfMedHistory==='无'" style="margin-right: 16upx;" />
  123. <text class="option-text">无</text>
  124. </label>
  125. <label>
  126. <radio color="#FF5C03" value="有" :checked="form.selfMedHistory==='有'" style="margin-right: 16upx;" />
  127. <text class="option-text">有</text>
  128. </label>
  129. </radio-group>
  130. </view>
  131. <view class="form-item" v-if="form.selfMedHistory=='有'" >
  132. <view class="option-box" style="margin: 5rpx 0rpx;" >
  133. <view class="option" v-for="(item,index) in selfMedHistorys" >
  134. <u-tag @click="selfMedHistoryOptionChange(item)" :borderColor="item.checked==1?'#ffffff':'#FF5C03'" :bgColor="item.checked==1?'#FF5C03':'#ffffff'" :color="item.checked==1?'#ffffff':'#FF5C03'" shape="circle" :text="item.name"></u-tag>
  135. </view>
  136. </view>
  137. </view>
  138. <view class="form-item">
  139. <text class="label">家庭病史</text>
  140. <radio-group @change="familyMedHistoryChange" style="display: flex;align-items: center;">
  141. <label style="margin-right:30rpx;">
  142. <radio color="#FF5C03" value="无" :checked="form.familyMedHistory==='无'" style="margin-right: 16upx;" />
  143. <text class="option-text">无</text>
  144. </label>
  145. <label>
  146. <radio color="#FF5C03" value="有" :checked="form.familyMedHistory==='有'" style="margin-right: 16upx;" />
  147. <text class="option-text">有</text>
  148. </label>
  149. </radio-group>
  150. </view>
  151. <view class="form-item" v-if="form.familyMedHistory=='有'" >
  152. <view class="option-box" style="margin: 5rpx 0rpx;" >
  153. <view class="option" v-for="(item,index) in familyMedHistorys" >
  154. <u-tag @click="familyMedHistoryOptionChange(item)" :borderColor="item.checked==1?'#ffffff':'#FF5C03'" :bgColor="item.checked==1?'#FF5C03':'#ffffff'" :color="item.checked==1?'#ffffff':'#FF5C03'" shape="circle" :text="item.name"></u-tag>
  155. </view>
  156. </view>
  157. </view>
  158. </view>
  159. </view>
  160. <view class="btn-box">
  161. <view class="sub-btn" @click="submit()">保存就诊人</view>
  162. </view>
  163. <u-action-sheet
  164. :show="relationShow"
  165. :actions="relations"
  166. title="请选择"
  167. @close="relationShow = false"
  168. @select="relationSelect"
  169. >
  170. </u-action-sheet>
  171. </view>
  172. </template>
  173. <script>
  174. import {getPatientById,addPatient,editPatient} from '@/api/patient'
  175. export default {
  176. data() {
  177. return {
  178. years: [],
  179. year: new Date().getFullYear(),
  180. months: [],
  181. month: new Date().getMonth() + 1,
  182. days: [],
  183. day: new Date().getDate(),
  184. value: [],
  185. visible: true,
  186. indicatorStyle: `height: 34px;`,
  187. relationShow:false,
  188. relations: [
  189. {
  190. name: '本人',
  191. },
  192. {
  193. name: '配偶',
  194. },
  195. {
  196. name: '父母',
  197. },
  198. {
  199. name: '子女',
  200. },
  201. {
  202. name: '朋友',
  203. },
  204. {
  205. name: '亲戚',
  206. },
  207. {
  208. name: '其他',
  209. },
  210. ],
  211. historyAllergics: [
  212. {
  213. name: '阿司匹林',
  214. checked: 0,
  215. },
  216. {
  217. name: '磺胺类',
  218. checked: 0,
  219. },
  220. {
  221. name: '头孢类',
  222. checked: 0,
  223. },
  224. {
  225. name: '青毒素类',
  226. checked: 0,
  227. },
  228. {
  229. name: '奶制品',
  230. checked: 0,
  231. },
  232. {
  233. name: '其他',
  234. checked: 0,
  235. },
  236. ],
  237. selfMedHistorys: [
  238. {
  239. name: '糖尿病',
  240. checked: 0,
  241. },
  242. {
  243. name: '哮喘',
  244. checked: 0,
  245. },
  246. {
  247. name: '恶性肿瘤',
  248. checked: 0,
  249. },
  250. {
  251. name: '高血压',
  252. checked: 0,
  253. },
  254. {
  255. name: '其他',
  256. checked: 0,
  257. },
  258. ],
  259. familyMedHistorys: [
  260. {
  261. name: '糖尿病',
  262. checked: 0,
  263. },
  264. {
  265. name: '哮喘',
  266. checked: 0,
  267. },
  268. {
  269. name: '恶性肿瘤',
  270. checked: 0,
  271. },
  272. {
  273. name: '高血压',
  274. checked: 0,
  275. },
  276. {
  277. name: '其他',
  278. checked: 0,
  279. },
  280. ],
  281. type:null,
  282. patientId:null,
  283. form: {
  284. sex: 1,
  285. birthday: '',
  286. idCard:"",
  287. relation:"", // 与本人关系
  288. liverUnusual:"正常", // 肝功能是否异常
  289. renalUnusual:"正常", // 肾功能是否异常
  290. historyAllergic:"无", // 过敏史
  291. familyMedHistory:"无", // 家族病史
  292. selfMedHistory:"无", // 个人病史
  293. },
  294. birthdayDisabled: true,
  295. lastTapTime: 0, // 上一次点击的时间戳
  296. lastTapTimeoutFunc: null // 单击事件的延时函数
  297. };
  298. },
  299. onLoad(option) {
  300. this.type=option.type;
  301. this.resetDay()
  302. if(this.type=='edit'){
  303. this.patientId=option.patientId;
  304. this.getPatientById();
  305. uni.setNavigationBarTitle({
  306. title: '编辑就诊人'
  307. });
  308. }
  309. else{
  310. uni.setNavigationBarTitle({
  311. title: '新增就诊人'
  312. });
  313. }
  314. },
  315. methods:{
  316. resetDay() {
  317. const date = new Date()
  318. const year = date.getFullYear();
  319. const month = date.getMonth();
  320. const daysInMonth = new Date(year, month + 1, 0).getDate();
  321. for (let i = 1875; i <= date.getFullYear(); i++) {
  322. this.years.push(i)
  323. }
  324. for (let i = 1; i <= 12; i++) {
  325. this.months.push((i < 10 ? '0' : '') + i)
  326. }
  327. for (let i = 1; i <= daysInMonth; i++) {
  328. this.days.push((i < 10 ? '0' : '') + i)
  329. }
  330. },
  331. dblclick(e) {
  332. // 当前点击的时间戳
  333. const currentTime = e.timeStamp;
  334. const lastTapTime = this.lastTapTime;
  335. // 更新最后一次点击时间
  336. this.lastTapTime = currentTime;
  337. // 如果两次点击时间在300毫秒内,则认为是双击事件
  338. if (currentTime - lastTapTime < 400) {
  339. // 成功触发双击事件时,取消单击事件的执行
  340. clearTimeout(this.lastTapTimeoutFunc);
  341. // 在这里处理双击事件的逻辑
  342. if(!this.form.birthday) {
  343. const date = new Date()
  344. this.year = date.getFullYear()
  345. const month = date.getMonth() + 1
  346. const day = date.getDate()
  347. this.value = [this.years.length-1, month - 1, day - 1]
  348. this.month = month < 10 ? '0'+month : month
  349. this.day = day < 10 ? '0'+day : day
  350. } else {
  351. const birthdayArry = this.form.birthday.split('-')
  352. this.year = birthdayArry[0]
  353. this.month = birthdayArry[1]
  354. this.day = birthdayArry[2]
  355. const y = this.years.indexOf(Number(this.year))
  356. this.value = [y, Number(this.month) - 1, Number(this.day) - 1]
  357. }
  358. this.$refs.popup.open()
  359. } else {
  360. // 如果不是双击事件,则设置一个延时函数,用于判断是否触发单击事件
  361. this.lastTapTimeoutFunc = setTimeout(() => {
  362. // 在这里处理单击事件的逻辑
  363. }, 400);
  364. }
  365. },
  366. bindChange(e) {
  367. const val = e.detail.value
  368. this.year = this.years[val[0]]
  369. this.month = this.months[val[1]]
  370. this.day = this.days[val[2]]
  371. },
  372. confirm() {
  373. this.form.birthday = `${this.year}-${this.month}-${this.day}`
  374. this.colse()
  375. },
  376. colse() {
  377. this.$refs.popup.close()
  378. },
  379. liverUnusualChange(item){
  380. console.log(item)
  381. this.form.liverUnusual=item.detail.value;
  382. },
  383. renalUnusualChange(item){
  384. console.log(item)
  385. this.form.renalUnusual=item.detail.value;
  386. },
  387. historyAllergicOptionChange(item){
  388. item.checked=item.checked==1?0:1
  389. },
  390. selfMedHistoryOptionChange(item){
  391. item.checked=item.checked==1?0:1
  392. },
  393. familyMedHistoryOptionChange(item){
  394. item.checked=item.checked==1?0:1
  395. },
  396. historyAllergicChange(item){
  397. console.log(item)
  398. this.form.historyAllergic=item.detail.value;
  399. },
  400. selfMedHistoryChange(item){
  401. console.log(item)
  402. this.form.selfMedHistory=item.detail.value;
  403. },
  404. familyMedHistoryChange(item){
  405. console.log(item)
  406. this.form.familyMedHistory=item.detail.value;
  407. },
  408. relationSelect(e){
  409. this.form.relation = e.name
  410. },
  411. idcardChange(){
  412. if(this.form.idCard.length==18){
  413. var json=this.$parseIDCardInfo(this.form.idCard)
  414. this.form.birthday=json.birthday
  415. console.log(json)
  416. }
  417. },
  418. genderChange(type){
  419. this.form.sex=type
  420. },
  421. getPatientById(){
  422. var data={patientId:this.patientId};
  423. getPatientById(data).then(
  424. res => {
  425. if(res.code==200){
  426. this.form=res.data;
  427. this.date=this.form.birthday;
  428. if(this.form.historyAllergic!=null&&this.form.historyAllergic!="无"){
  429. var options=this.form.historyAllergic.split(',');
  430. this.historyAllergics.forEach(item =>{
  431. for(var i=0;i<options.length;i++){
  432. if(item.name==options[i]){
  433. item.checked=1;
  434. }
  435. }
  436. })
  437. this.form.historyAllergic="有";
  438. }
  439. if(this.form.selfMedHistory!=null&&this.form.selfMedHistory!="无"){
  440. var options=this.form.selfMedHistory.split(',');
  441. this.selfMedHistorys.forEach(item =>{
  442. for(var i=0;i<options.length;i++){
  443. if(item.name==options[i]){
  444. item.checked=1;
  445. }
  446. }
  447. })
  448. this.form.selfMedHistory="有";
  449. }
  450. if(this.form.familyMedHistory!=null&&this.form.familyMedHistory!="无"){
  451. var options=this.form.familyMedHistory.split(',');
  452. this.familyMedHistorys.forEach(item =>{
  453. for(var i=0;i<options.length;i++){
  454. if(item.name==options[i]){
  455. item.checked=1;
  456. }
  457. }
  458. })
  459. this.form.familyMedHistory="有";
  460. }
  461. }else{
  462. uni.showToast({
  463. title: res.msg,
  464. });
  465. }
  466. },
  467. rej => {}
  468. );
  469. },
  470. submit(){
  471. if(this.type=="add"){
  472. this.addPatient()
  473. }
  474. else if(this.type=="edit"){
  475. this.editPatient()
  476. }
  477. },
  478. editPatient(){
  479. var data={
  480. patientId:this.patientId,
  481. patientName:this.form.patientName,
  482. mobile:this.form.mobile,
  483. sex: this.form.sex,
  484. birthday: this.form.birthday,
  485. idCard:this.form.idCard,
  486. relation:this.form.relation, // 与本人关系
  487. liverUnusual:this.form.liverUnusual, // 肝功能是否异常
  488. renalUnusual:this.form.renalUnusual, // 肾功能是否异常
  489. }
  490. if(this.form.historyAllergic=="有"){
  491. var options=[];
  492. this.historyAllergics.forEach(item =>{
  493. if(item.checked==1){
  494. options.push(item.name);
  495. }
  496. })
  497. data.historyAllergic=options.toString();
  498. }
  499. else{
  500. data.historyAllergic=this.form.historyAllergic;
  501. }
  502. if(this.form.selfMedHistory=="有"){
  503. var options=[];
  504. this.selfMedHistorys.forEach(item =>{
  505. if(item.checked==1){
  506. options.push(item.name);
  507. }
  508. })
  509. data.selfMedHistory=options.toString();
  510. }
  511. else{
  512. data.selfMedHistory=this.form.selfMedHistory;
  513. }
  514. if(this.form.familyMedHistory=="有"){
  515. var options=[];
  516. this.familyMedHistorys.forEach(item =>{
  517. if(item.checked==1){
  518. options.push(item.name);
  519. }
  520. })
  521. data.familyMedHistory=options.toString();
  522. }
  523. else{
  524. data.familyMedHistory=this.form.familyMedHistory;
  525. }
  526. editPatient(data).then(
  527. res => {
  528. if(res.code==200){
  529. uni.showToast({
  530. icon:'success',
  531. title: "操作成功",
  532. });
  533. setTimeout(function() {
  534. uni.$emit('refreshPatient');
  535. uni.navigateBack({
  536. delta: 1
  537. })
  538. }, 500);
  539. }else{
  540. uni.showToast({
  541. icon:'none',
  542. title: res.msg,
  543. });
  544. }
  545. },
  546. rej => {}
  547. );
  548. },
  549. addPatient(){
  550. var data={
  551. patientName:this.form.patientName,
  552. mobile:this.form.mobile,
  553. sex: this.form.sex,
  554. birthday: this.form.birthday,
  555. idCard:this.form.idCard,
  556. relation:this.form.relation, // 与本人关系
  557. liverUnusual:this.form.liverUnusual, // 肝功能是否异常
  558. renalUnusual:this.form.renalUnusual, // 肾功能是否异常
  559. }
  560. if(this.form.historyAllergic=="有"){
  561. var options=[];
  562. this.historyAllergics.forEach(item =>{
  563. if(item.checked==1){
  564. options.push(item.name);
  565. }
  566. })
  567. data.historyAllergic=options.toString();
  568. }
  569. else{
  570. data.historyAllergic=this.form.historyAllergic;
  571. }
  572. if(this.form.selfMedHistory=="有"){
  573. var options=[];
  574. this.selfMedHistorys.forEach(item =>{
  575. if(item.checked==1){
  576. options.push(item.name);
  577. }
  578. })
  579. data.selfMedHistory=options.toString();
  580. }
  581. else{
  582. data.selfMedHistory=this.form.selfMedHistory;
  583. }
  584. if(this.form.familyMedHistory=="有"){
  585. var options=[];
  586. this.familyMedHistorys.forEach(item =>{
  587. if(item.checked==1){
  588. options.push(item.name);
  589. }
  590. })
  591. data.familyMedHistory=options.toString();
  592. }
  593. else{
  594. data.familyMedHistory=this.form.familyMedHistory;
  595. }
  596. addPatient(data).then(
  597. res => {
  598. if(res.code==200){
  599. uni.showToast({
  600. icon:'success',
  601. title: "操作成功",
  602. });
  603. setTimeout(function() {
  604. uni.$emit('refreshPatient');
  605. uni.navigateBack({
  606. delta: 1
  607. })
  608. }, 500);
  609. }else{
  610. uni.showToast({
  611. icon:'none',
  612. title: res.msg,
  613. });
  614. }
  615. },
  616. rej => {}
  617. );
  618. },
  619. // 出生日期选择
  620. birthdayChange(e) {
  621. this.form.birthday = e.detail.value
  622. },
  623. }
  624. }
  625. </script>
  626. <style lang="scss">
  627. page{
  628. height: 100%;
  629. }
  630. .content{
  631. height: 100%;
  632. .inner{
  633. padding: 20upx 20rpx 200rpx;
  634. .form-box{
  635. margin-bottom: 15rpx;
  636. padding: 0upx 30upx;
  637. background: #FFFFFF;
  638. border-radius: 16upx;
  639. .form-item{
  640. min-height: 103upx;
  641. display: flex;
  642. align-items: center;
  643. justify-content: space-between;
  644. border-bottom: 1px solid #F1F1F1;
  645. &:last-child{
  646. border-bottom: none;
  647. }
  648. .label{
  649. min-width: 200upx;
  650. font-size: 30upx;
  651. font-family: PingFang SC;
  652. font-weight: 500;
  653. color: #222222;
  654. }
  655. .option-box{
  656. display: flex;
  657. flex-wrap: wrap;
  658. align-items: flex-start;
  659. justify-content: flex-start;
  660. .option{
  661. margin: 5rpx;
  662. }
  663. }
  664. .input-width{
  665. width: calc(100% - 200upx);
  666. text-align: right;
  667. }
  668. .form-input{
  669. font-size: 30upx;
  670. font-family: PingFang SC;
  671. font-weight: 500;
  672. color: #999999;
  673. text-align: right;
  674. }
  675. .option-text{
  676. font-size: 30upx;
  677. font-family: PingFang SC;
  678. font-weight: 500;
  679. color: #111111;
  680. line-height: 30upx;
  681. }
  682. .right-box{
  683. display: flex;
  684. align-items: center;
  685. .input-box{
  686. width: 400upx;
  687. display: flex;
  688. align-items: center;
  689. justify-content: flex-end;
  690. input{
  691. text-align: right;
  692. }
  693. }
  694. .arrow{
  695. width: 13upx;
  696. height: 23upx;
  697. margin-left: 20upx;
  698. }
  699. }
  700. .birth-picker {
  701. display: flex;
  702. align-items: center;
  703. .right-box{
  704. display: flex;
  705. align-items: center;
  706. .input-box{
  707. width: 400upx;
  708. display: flex;
  709. align-items: center;
  710. justify-content: flex-end;
  711. input{
  712. text-align: right;
  713. }
  714. }
  715. .arrow{
  716. width: 13upx;
  717. height: 23upx;
  718. margin-left: 20upx;
  719. }
  720. }
  721. }
  722. }
  723. }
  724. }
  725. .btn-box{
  726. position: fixed;
  727. bottom: 0rpx;
  728. left:0rpx;
  729. width: 100%;
  730. height: 120upx;
  731. padding: 0 30upx;
  732. display: flex;
  733. align-items: center;
  734. justify-content: center;
  735. background: #FFFFFF;
  736. .sub-btn{
  737. width: 100%;
  738. height: 88upx;
  739. line-height: 88upx;
  740. text-align: center;
  741. font-size: 30upx;
  742. font-family: PingFang SC;
  743. font-weight: bold;
  744. color: #FFFFFF;
  745. background: #FF5C03;
  746. border-radius: 44upx;
  747. }
  748. }
  749. }
  750. .popup-header {
  751. width: 100%;
  752. text-align: center;
  753. width: 100%;
  754. height: 45px;
  755. padding: 0 28rpx;
  756. box-sizing: border-box;
  757. font-size: 34rpx;
  758. position: relative;
  759. &::after {
  760. content: '';
  761. position: absolute;
  762. left: 0;
  763. bottom: 0;
  764. right: 0;
  765. height: 1px;
  766. clear: both;
  767. border-bottom: 1px solid #e5e5e5;
  768. color: #e5e5e5;
  769. transform-origin: 0 100%;
  770. transform: scaleY(0.5);
  771. }
  772. }
  773. .picker-view {
  774. width: 100%;
  775. height: 476rpx;
  776. }
  777. </style>