editDriverCertification.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878
  1. <template>
  2. <view class="content">
  3. <view class="top-head"></view>
  4. <view class="container">
  5. <view class="content1 content-other">
  6. <view class="flex row">
  7. <view class="left-text">姓名</view>
  8. <u--input placeholder="输入姓名" inputAlign='right' border="none" v-model="dataDetails.driverName">
  9. </u--input>
  10. </view>
  11. <view class="flex row">
  12. <view class="left-text">性别</view>
  13. <u-radio-group v-model="dataDetails.driverSex" placement="row">
  14. <u-radio :customStyle="{marginBottom: '8px'}" v-for="(item, index) in radiolist1" :key="index"
  15. :label="item.name" :name="item.name" @change="radioChange">
  16. </u-radio>
  17. </u-radio-group>
  18. </view>
  19. <view class="flex row">
  20. <view class="left-text">称呼</view>
  21. <u--input placeholder="输入姓氏" class="ch-style" inputAlign='right' border="none"
  22. v-model="dataDetails.driverCall" maxlength="1">
  23. </u--input>
  24. <view style='margin-left:4px;font-size:15px;' class="flex align-center" v-if="dataDetails.driverSex=='男'">先生</view>
  25. <view style='margin-left:4px;font-size:15px;' class="flex align-center" v-else>女士</view>
  26. </view>
  27. <view class="flex row noborder">
  28. <view class="left-text">联系电话</view>
  29. <u--input placeholder="请输入联系电话" inputAlign='right' border="none" v-model="dataDetails.driverPhone">
  30. </u--input>
  31. </view>
  32. <view class="flex row noborder" v-if="dataDetails.driverPhone!=userInfo.phone">
  33. <view class="left-text">验证码</view>
  34. <u--input v-model="dataDetails.verifyCode" border="none" placeholder="请填写验证码"></u--input>
  35. <view class="yzm">
  36. <u-code :seconds="seconds" @end="end" @start="start" ref="uCode" @change="codeChange"></u-code>
  37. <u-button class="yzm-btn" @tap="getCode">{{tips}}</u-button>
  38. </view>
  39. </view>
  40. </view>
  41. <view class="content2 content-other">
  42. <view class="title">上传身份证人像面</view>
  43. <view @click.stop="uploadImg(1,1)" class="picture picture1" v-if="!dataDetails.cardAddressUrl">
  44. <image class="xj-image" src="@/static/images/mine/ic_shanchuan@2x.png"></image>
  45. <view class="text">上传身份证人像面</view>
  46. </view>
  47. <view v-if="dataDetails.cardAddressUrl" @click.stop="uploadImg(1,1)"
  48. class="preview-card-img picture">
  49. <image class="" :src="dataDetails.cardAddressUrl" mode="aspectFit" style=""></image>
  50. </view>
  51. <view class="title">上传身份证国徽面</view>
  52. <view @click="uploadImg(2,2)" class="picture picture2" v-if="!dataDetails.cardBackAddressUrl">
  53. <image class="xj-image" src="@/static/images/mine/ic_shanchuan@2x.png"></image>
  54. <view class="text">上传身份证国徽面</view>
  55. </view>
  56. <view v-if="dataDetails.cardBackAddressUrl" @click.stop="uploadImg(2,2)"
  57. class="preview-card-img picture">
  58. <image class="" :src="dataDetails.cardBackAddressUrl" mode="aspectFit" style=""></image>
  59. </view>
  60. <view class="flex row">
  61. <view class="left-text">身份证号</view>
  62. <u--input disabled placeholder="请输入身份证号" inputAlign='right' border="none" v-model="dataDetails.numberCard" maxlength="18">
  63. </u--input>
  64. </view>
  65. <view class="flex row flex-space-between">
  66. <view class="left-text">身份证截止日期</view>
  67. <view class="" @click="selectValidityPeriod">
  68. {{dataDetails.cardValidityDate?dataDetails.cardValidityDate:'选择身份证截止日期>'}}
  69. </view>
  70. </view>
  71. <view class="flex row noborder">
  72. <view class="left-text">身份证地址</view>
  73. <u--textarea v-model="dataDetails.cardAddress" border="none" placeholder="请输入身份证地址" autoHeight maxlength="30"></u--textarea>
  74. <!-- <u--input placeholder="请输入身份证地址" inputAlign='right' border="none" >
  75. </u--input>-->
  76. </view>
  77. </view>
  78. <u-picker :show="isShowcardValidity" ref="uPicker" :columns="validityPeriod"
  79. @confirm="confirmValidityPeriod" @change="changeHandler" @cancel='isShowcardValidity= false'>
  80. </u-picker>
  81. <u-action-sheet :actions="$helper.imgTypeList" :title="$helper.imgType" :show="isShowimgType"
  82. @select="imgTypeSelect" :closeOnClickOverlay="true" :closeOnClickAction="true"
  83. @close="isShowimgType=false">
  84. </u-action-sheet>
  85. <u-toast ref="uToast"></u-toast>
  86. </view>
  87. <view class="content4">
  88. <view class="next-btn" @click="next()">
  89. 下一步
  90. </view>
  91. </view>
  92. </view>
  93. </template>
  94. <script>
  95. import upload from '@/components/upload.vue';
  96. import permision from "@/js_sdk/wa-permission/permission.js"
  97. import uploadImage from '@/components/ossutil/uploadFile.js';
  98. var _this
  99. import {
  100. mapState
  101. } from 'vuex';
  102. export default {
  103. components: {
  104. upload
  105. },
  106. data() {
  107. return {
  108. canvasSiz: {
  109. width: 188,
  110. height: 273
  111. },
  112. tips: '',
  113. // refCode: null,
  114. seconds: 30,
  115. radiolist1: [{
  116. name: '男',
  117. disabled: false
  118. },
  119. {
  120. name: '女',
  121. disabled: false
  122. },
  123. ],
  124. validityPeriod: [],
  125. isShowcardValidity: false,
  126. uploadType: '',
  127. isShowimgType: false,
  128. dataDetails: {
  129. commonId: '',
  130. driverName: '',
  131. driverSex: '',
  132. driverCall: '',
  133. driverPhone: '',
  134. numberCard: '',
  135. cardAddressUrl: '',
  136. cardBackAddressUrl: '',
  137. cardValidityDate: '',
  138. driverType: '',
  139. driverLicenseHomePage: '',
  140. driverLicenseBackPage: '',
  141. driverLicenseValidityDate: '',
  142. drivingLicenseHomePage: '',
  143. drivingLicenseBackPage: '',
  144. drivingLicenseValidityDate: '',
  145. trailerLicenseHomePage: '',
  146. trailerLicenseBackPage: '',
  147. trailerLicenseValidityDate: '',
  148. qualificationCertificate: '',
  149. qualificationCertificateValidityDate: '',
  150. operationCertificate: '',
  151. operationCertificateValidityDate: '',
  152. trailerOperationCertificate: '',
  153. trailerOperationCertificateValidityDate: '',
  154. },
  155. action: this.$helper.ossUploadUrl,
  156. // maxSize: 50 * 1024 * 1024, //限制文件大小 50M
  157. // isAdd: true,
  158. imagesrc: null
  159. };
  160. },
  161. onLoad() {
  162. _this = this;
  163. console.log(this.userInfo)
  164. this.get_camera_permission()
  165. //获取截止日期List数据
  166. this.validityPeriod = this.$helper.makeValidityPeriod(0)
  167. // this.dataDetails.driverPhone = this.userInfo.phone
  168. this.dataDetails.commonId = this.userInfo.id
  169. //获取认证状态
  170. this.getAuthenticationStatus()
  171. },
  172. computed: {
  173. ...mapState(['hasLogin', 'userInfo']),
  174. },
  175. methods: {
  176. async get_camera_permission() {
  177. var photol=await permision.requestAndroidPermission("android.permission.CAMERA")
  178. if(photol == false){
  179. uni.showModal({
  180. title: '提示',
  181. content: '您已经关闭相册权限,去设置',
  182. success: function (res) {
  183. if (res.confirm) {
  184. permision.gotoAppPermissionSetting()
  185. // plus.runtime.openURL("app-settings:");
  186. } else if (res.cancel) {
  187. console.log('用户点击取消');
  188. }
  189. }
  190. });
  191. }
  192. },
  193. changeHandler(e) {
  194. const {
  195. columnIndex,
  196. value,
  197. values,
  198. index,
  199. picker = this.$refs.uPicker
  200. } = e
  201. // if (columnIndex === 0) {
  202. // debugger
  203. // if (e.index != 0) {
  204. // picker.setColumnValues(1, this.validityPeriod[1].shift())
  205. // }
  206. // } else if (columnIndex === 1) {
  207. // if (e.index != 0) {
  208. // picker.setColumnValues(2, this.validityPeriod[2].shift())
  209. // }
  210. // }
  211. },
  212. codeChange(text) {
  213. this.tips = text;
  214. },
  215. getCode() {
  216. if (/^0?1[3|4|5|6|7|8][0-9]\d{8}$/.test(this.dataDetails.driverPhone)) {
  217. if (this.$refs.uCode.canGetCode) {
  218. // 模拟向后端请求验证码
  219. uni.showLoading({
  220. title: '正在获取验证码'
  221. })
  222. _this.$request.baseRequest('get', '/commonUser/sendVerifyCode', {
  223. phone: this.dataDetails.driverPhone
  224. }).then(res => {
  225. uni.hideLoading();
  226. // 这里此提示会被this.start()方法中的提示覆盖
  227. uni.$u.toast('验证码已发送');
  228. // 通知验证码组件内部开始倒计时
  229. this.$refs.uCode.start();
  230. })
  231. .catch(res => {
  232. uni.$u.toast(res.message);
  233. });
  234. // setTimeout(() => {
  235. // }, 2000);
  236. } else {
  237. uni.$u.toast('倒计时结束后再发送');
  238. }
  239. } else {
  240. uni.$u.toast('请输入正确手机号');
  241. }
  242. },
  243. end() {
  244. // uni.$u.toast('倒计时结束');
  245. },
  246. start() {
  247. // uni.$u.toast('倒计时开始');
  248. },
  249. // 性别切换
  250. radioChange(n) {
  251. console.log('radioChange', n);
  252. this.dataDetails.driverSex = n
  253. },
  254. //判断是否是初次认证
  255. getAuthenticationStatus() {
  256. this.$request.baseRequest('', '/driverInfo/firstAuthentication', {
  257. driverPhone: this.userInfo.phone,
  258. }).then(res => {
  259. if (res.code == 200) {
  260. this.dataDetails = res.data
  261. // this.dataDetails.driverName = res.data.driverName
  262. // this.dataDetails.driverSex = res.data.driverSex
  263. // this.dataDetails.driverCall = res.data.driverCall
  264. // this.dataDetails.driverPhone = res.data.driverPhone
  265. // this.dataDetails.cardAddressUrl = res.data.cardAddressUrl
  266. // this.dataDetails.cardBackAddressUrl = res.data.cardBackAddressUrl
  267. // this.dataDetails.numberCard = res.data.numberCard
  268. // this.dataDetails.cardValidityDate = res.data.cardValidityDate
  269. }
  270. })
  271. .catch(res => {
  272. uni.$u.toast(res.message);
  273. });
  274. },
  275. confirmValidityPeriod(e) {
  276. console.log('confirm', e)
  277. if (e.value[0] == '长期') {
  278. this.dataDetails.cardValidityDate = e.value[0]
  279. if (e.value[1] || e.value[2]) {
  280. this.$refs.uToast.show({
  281. type: 'error',
  282. message: "选择长期不允许选择月日!",
  283. })
  284. return
  285. }
  286. } else {
  287. if (!e.value[1] || !e.value[2]) {
  288. this.$refs.uToast.show({
  289. type: 'error',
  290. message: "日期格式错误,请重新选择!",
  291. })
  292. return
  293. }
  294. var date=new Date()
  295. if(e.value[0]<date.getFullYear()){
  296. this.$refs.uToast.show({
  297. type: 'error',
  298. message: "身份证已过期!",
  299. })
  300. return
  301. }
  302. if(e.value[0]==date.getFullYear()&&Number(e.value[1])<(date.getMonth()+1)){
  303. this.$refs.uToast.show({
  304. type: 'error',
  305. message: "身份证已过期!",
  306. })
  307. return
  308. }
  309. if(e.value[0]==date.getFullYear()&&Number(e.value[1])==(date.getMonth()+1)&&Number(e.value[2])<=(date.getDate())){
  310. this.$refs.uToast.show({
  311. type: 'error',
  312. message: "身份证已过期!",
  313. })
  314. return
  315. }
  316. this.dataDetails.cardValidityDate = e.value[0] + '-' + e.value[1] + '-' + e.value[2]
  317. }
  318. this.isShowcardValidity = false
  319. },
  320. selectValidityPeriod() {
  321. this.isShowcardValidity = true
  322. },
  323. //设置图片
  324. setImage(e) {
  325. console.log(e);
  326. //显示在页面
  327. //this.imagesrc = e.path;
  328. if (e.dotype == 'idphoto') {
  329. _this.zjzClipper(e.path);
  330. } else if (e.dotype == 'watermark') {
  331. _this.watermark(e.path);
  332. } else {
  333. _this.savePhoto(e.path);
  334. }
  335. },
  336. //保存图片到相册,方便核查
  337. savePhoto(path) {
  338. this.imagesrc = path;
  339. // this.dataDetails.cardAddressUrl = path
  340. uploadImage(path, 'appData/',
  341. result => {
  342. // 上传成功
  343. console.log('图片地址', result)
  344. this.dataDetails.cardAddressUrl = result
  345. }
  346. )
  347. },
  348. uploadImg(type, index) {
  349. this.uploadType = type
  350. // this.isShowimgType = true
  351. this.index = index
  352. this.imgTypeSelect()
  353. },
  354. // 上传图片
  355. imgTypeSelect() {
  356. // console.log(val)
  357. console.log(this.uploadType)
  358. // if (val.name == '相册') {
  359. uni.chooseImage({
  360. count: 1,
  361. // sourceType: this.$helper.chooseImage.sourceType,
  362. success: function(res) {
  363. console.log(JSON.stringify(res.tempFilePaths));
  364. uploadImage('image',res.tempFilePaths[0], 'appData/',
  365. result => {
  366. // 上传成功回调函数
  367. console.log('图片地址', result)
  368. switch (_this.uploadType) {
  369. // 身份正面
  370. case 1:
  371. _this.dataDetails.cardAddressUrl = result
  372. // 识别
  373. _this.$request.baseRequest('get',
  374. '/driverInfo/personShibie', {
  375. personImg: result,
  376. flag:1
  377. }).then(res => {
  378. if(res.data){
  379. _this.dataDetails.cardAddress=res.data.recPersonAddr
  380. // _this.dataDetails.numberCard = res.data.recPersonNo
  381. if (res.data.recPerson) {
  382. _this.dataDetails.driverName = res.data.recPerson
  383. _this.dataDetails.driverCall = res.data.recPerson.substring(0,1)
  384. }
  385. _this.dataDetails.driverBirthday=res.data.recPersonBrithday
  386. }
  387. })
  388. .catch(res => {
  389. uni.$u.toast(res.message);
  390. });
  391. break
  392. // 身份反面
  393. case 2:
  394. _this.dataDetails.cardBackAddressUrl = result
  395. // 识别
  396. _this.$request.baseRequest('get',
  397. '/driverInfo/personShibie', {
  398. personImg: result,
  399. flag:2
  400. }).then(res => {
  401. if(res.data.idCardValidity){
  402. let date = res.data.idCardValidity.split("-")[1]
  403. _this.dataDetails.cardValidityDate = date.replace('.', '-').replace('.', '-')
  404. }
  405. })
  406. .catch(res => {
  407. uni.$u.toast(res.message);
  408. });
  409. break
  410. case 3:
  411. break;
  412. }
  413. }
  414. )
  415. }
  416. });
  417. // } else {
  418. // switch (this.uploadType) {
  419. // case 0:
  420. // break
  421. // case 1:
  422. // uni.$u.route('/pages/mine/camera/idcard/idcard?dotype=idcardface');
  423. // console.log('身份正面')
  424. // break
  425. // case 2:
  426. // uni.$u.route('/pages/mine/camera/idcard/idcard?dotype=badge');
  427. // console.log('身份反面')
  428. // break
  429. // case 3:
  430. // break
  431. // case 4:
  432. // }
  433. // }
  434. },
  435. next(val) {
  436. if (this.validate()) return
  437. uni.$u.route('/pages/mine/editDriverCertificationNext', {
  438. data: JSON.stringify(this.dataDetails),
  439. });
  440. },
  441. validate() {
  442. // true 为校验不通过
  443. if (uni.$u.test.isEmpty(this.dataDetails.driverName)) {
  444. this.$refs.uToast.show({
  445. type: 'error',
  446. message: "司机姓名不能为空!",
  447. })
  448. return true
  449. }
  450. if (!uni.$u.test.chinese(this.dataDetails.driverName)) {
  451. this.$refs.uToast.show({
  452. type: 'error',
  453. message: "姓名为汉字!",
  454. })
  455. return true
  456. }
  457. if (uni.$u.test.isEmpty(this.dataDetails.driverCall)) {
  458. this.$refs.uToast.show({
  459. type: 'error',
  460. message: "司机称呼不能为空!",
  461. })
  462. return true
  463. }
  464. if (!uni.$u.test.chinese(this.dataDetails.driverCall)) {
  465. this.$refs.uToast.show({
  466. type: 'error',
  467. message: "称呼为汉字!",
  468. })
  469. return true
  470. }
  471. if (uni.$u.test.isEmpty(this.dataDetails.driverPhone)) {
  472. this.$refs.uToast.show({
  473. type: 'error',
  474. message: "联系电话不能为空!",
  475. })
  476. return true
  477. }
  478. if (!uni.$u.test.mobile(this.dataDetails.driverPhone)) {
  479. this.$refs.uToast.show({
  480. type: 'error',
  481. message: "电话号码格式错误!",
  482. })
  483. return true
  484. }
  485. // for (let i = 0; i < this.dataDetails.hyDriverCarInfoList.length; i++) {
  486. // let _item = this.dataDetails.hyDriverCarInfoList[i]
  487. // if (uni.$u.test.isEmpty(_item.carNumber)) {
  488. // this.$refs.uToast.show({
  489. // type: 'error',
  490. // message: "车牌号不能为空!",
  491. // })
  492. // return true
  493. // }
  494. // if (uni.$u.test.isEmpty(_item.fileList1)) {
  495. // this.$refs.uToast.show({
  496. // type: 'error',
  497. // message: "人车合影不能为空!",
  498. // })
  499. // return true
  500. // }
  501. // }
  502. if (uni.$u.test.isEmpty(this.dataDetails.cardAddressUrl)) {
  503. this.$refs.uToast.show({
  504. type: 'error',
  505. message: "身份证人像页不能为空!",
  506. })
  507. return true
  508. }
  509. if (uni.$u.test.isEmpty(this.dataDetails.cardBackAddressUrl)) {
  510. this.$refs.uToast.show({
  511. type: 'error',
  512. message: "身份证国徽页不能为空!",
  513. })
  514. return true
  515. }
  516. if (uni.$u.test.isEmpty(this.dataDetails.cardValidityDate)) {
  517. this.$refs.uToast.show({
  518. type: 'error',
  519. message: "身份证人有效截止日期不能为空!",
  520. })
  521. return true
  522. }
  523. if (uni.$u.test.isEmpty(this.dataDetails.cardAddress)) {
  524. this.$refs.uToast.show({
  525. type: 'error',
  526. message: "身份证地址为空!",
  527. })
  528. return true
  529. }
  530. for (let i = 0; i < this.dataDetails.hyDriverPayeeInfoList.length; i++) {
  531. let _item = this.dataDetails.hyDriverPayeeInfoList[i]
  532. if (uni.$u.test.isEmpty(_item.payeeAddressUrl)) {
  533. this.$refs.uToast.show({
  534. type: 'error',
  535. message: "银行卡不能为空!",
  536. })
  537. return true
  538. }
  539. if (uni.$u.test.isEmpty(_item.bankCard)) {
  540. this.$refs.uToast.show({
  541. type: 'error',
  542. message: "银行卡号码不能为空!",
  543. })
  544. return true
  545. }
  546. if (uni.$u.test.isEmpty(_item.bankDeposit)) {
  547. this.$refs.uToast.show({
  548. type: 'error',
  549. message: "开户行不能为空!",
  550. })
  551. return true
  552. }
  553. if (uni.$u.test.isEmpty(_item.bankDepositBranch)) {
  554. this.$refs.uToast.show({
  555. type: 'error',
  556. message: "开户支行不能为空!",
  557. })
  558. return true
  559. }
  560. if (uni.$u.test.isEmpty(_item.payeeName)) {
  561. this.$refs.uToast.show({
  562. type: 'error',
  563. message: "收款人姓名不能为空!",
  564. })
  565. return true
  566. }
  567. }
  568. return false
  569. }
  570. },
  571. };
  572. </script>
  573. <style scoped lang="scss">
  574. /deep/.u-radio {
  575. margin-bottom: 0 !important;
  576. }
  577. .top-head {
  578. background: #2772FB;
  579. height: 80rpx;
  580. width: 100%;
  581. }
  582. .container {
  583. position: relative;
  584. top: -60rpx;
  585. margin: 0 20rpx;
  586. }
  587. .row4-img {
  588. width: 32rpx;
  589. height: 32rpx;
  590. }
  591. .content1,
  592. .content2,
  593. .content3 {
  594. .left-text {
  595. width: 290rpx;
  596. color: #333333;
  597. display: flex;
  598. align-items: center;
  599. }
  600. .row {
  601. border-bottom: 1px solid #EEEEEE;
  602. padding-bottom: 28rpx;
  603. margin-top: 26rpx;
  604. .ch-style {}
  605. }
  606. .row-ch {
  607. padding-right: 180rpx;
  608. box-sizing: border-box;
  609. }
  610. }
  611. .content1-car {
  612. margin-top: 20rpx;
  613. .left-text {
  614. width: 290rpx;
  615. color: #333333;
  616. display: flex;
  617. align-items: center;
  618. }
  619. .row {
  620. border-bottom: 1px solid #EEEEEE;
  621. padding-bottom: 28rpx;
  622. margin-top: 26rpx;
  623. .color {
  624. // background: blue;
  625. width: 340rpx;
  626. }
  627. }
  628. }
  629. .input-ckg {
  630. height: 86rpx;
  631. margin-top: 0 !important;
  632. padding-bottom: 0 !important;
  633. .u-input {
  634. height: 100%;
  635. background: #F7F8FA;
  636. padding-left: 10rpx !important;
  637. padding-right: 85rpx !important;
  638. }
  639. .star {
  640. display: flex;
  641. align-items: center;
  642. margin: 0 10rpx;
  643. }
  644. .input-positon {
  645. position: relative;
  646. }
  647. .position-right {
  648. position: absolute;
  649. right: 20rpx;
  650. top: 0;
  651. width: 60rpx;
  652. height: 50rpx;
  653. bottom: 0;
  654. margin: auto;
  655. }
  656. }
  657. .picture {
  658. margin-top: 20rpx;
  659. background: #F5F6FA;
  660. width: 212rpx;
  661. height: 212rpx;
  662. border-radius: 20rpx;
  663. display: flex;
  664. flex-direction: column;
  665. justify-content: center;
  666. align-items: center;
  667. color: #6A7282;
  668. }
  669. .add-car {
  670. background: #FFFFFF;
  671. margin: 20rpx 50rpx;
  672. border-radius: 50rpx;
  673. display: flex;
  674. justify-content: center;
  675. align-items: center;
  676. padding: 20rpx 0;
  677. .icon {
  678. margin-right: 20rpx;
  679. }
  680. .car-text {
  681. font-size: 36rpx;
  682. font-weight: 700;
  683. color: #2772FB;
  684. }
  685. }
  686. .carlist-item {
  687. margin-top: 20rpx;
  688. padding: 0 20rpx 20rpx 20rpx;
  689. background: white;
  690. border-radius: 10rpx;
  691. position: relative;
  692. .del-car {
  693. position: absolute;
  694. top: 0;
  695. right: 0;
  696. width: 80rpx;
  697. height: 80rpx;
  698. }
  699. }
  700. .content2,
  701. .content3 {
  702. .del-bank {
  703. position: absolute;
  704. top: 0;
  705. right: 0;
  706. width: 80rpx;
  707. height: 80rpx;
  708. }
  709. .picture {
  710. width: 100%;
  711. height: 440rpx;
  712. position: relative;
  713. .text {
  714. margin-top: 20rpx;
  715. }
  716. }
  717. .picture1 {
  718. background: url(../../static/images/mine/zm.png);
  719. background-size: 100% 100%;
  720. }
  721. .picture2 {
  722. background: url(../../static/images/mine/gh.png);
  723. background-size: 100% 100%;
  724. }
  725. .picture3 {
  726. background: url(../../static/images/mine/yhkzm.png);
  727. background-size: 100% 100%;
  728. }
  729. .xj-image {
  730. width: 100rpx;
  731. height: 100rpx;
  732. }
  733. .title {
  734. color: #999999;
  735. margin: 20rpx 0;
  736. }
  737. }
  738. .content3 {
  739. position: relative;
  740. background: white;
  741. margin: 20rpx 0 0 0;
  742. border-radius: 10rpx;
  743. padding: 20rpx;
  744. .khzh-styel {
  745. // width: 350rpx;
  746. }
  747. .type {
  748. background: #2772FB;
  749. border-radius: 10rpx;
  750. color: white;
  751. box-sizing: border-box;
  752. padding: 4rpx 10rpx;
  753. font-size: 26rpx;
  754. display: flex;
  755. justify-content: center;
  756. align-items: center;
  757. }
  758. .select-bankzh {
  759. width: 230rpx;
  760. height: 48rpx;
  761. }
  762. }
  763. .content4 {
  764. display: flex;
  765. justify-content: center;
  766. background: white;
  767. padding: 40rpx 20rpx 50rpx 20rpx;
  768. .next-btn {
  769. background: rgb(39, 114, 251);
  770. width: 90%;
  771. padding: 20rpx 20rpx;
  772. text-align: center;
  773. color: #fff;
  774. border-radius: 50rpx;
  775. }
  776. }
  777. .yzm {}
  778. .yzm-btn {
  779. background: #2772FB;
  780. color: white;
  781. height: 60rpx;
  782. }
  783. .preview-card-img {
  784. // /deep/uni-image>div,
  785. // uni-image>img {
  786. // transform: scale(1.5) rotate(-90deg);
  787. // }
  788. }
  789. .del-card {
  790. position: absolute;
  791. top: -10rpx;
  792. right: -6rpx;
  793. width: 80rpx;
  794. height: 80rpx;
  795. z-index: 9;
  796. }
  797. /deep/.u-radio{
  798. margin-left:10px;
  799. }
  800. /deep/.uni-input-input:disabled {
  801. background: #fff;
  802. }
  803. /deep/.u-radio-group--row {
  804. justify-content: flex-end;
  805. }
  806. /deep/.u-textarea{
  807. padding:9px 0;
  808. }
  809. /deep/.u-textarea__field{
  810. color:#000;
  811. text-align:right;
  812. }
  813. </style>