editDriverCertification.vue 21 KB

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