driverCertification.vue 39 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426
  1. <template>
  2. <view class="content">
  3. <view class="top-head"></view>
  4. <view class="container">
  5. <view class="content2 content-other">
  6. <view class="title">上传身份证人像面</view>
  7. <view @click.stop="uploadImg(1,index)" class="picture picture1" v-if="!dataDetails.cardAddressUrl">
  8. <image class="xj-image" src="@/static/images/mine/ic_shanchuan@2x.png"></image>
  9. <view class="text">上传身份证人像面</view>
  10. </view>
  11. <view v-if="dataDetails.cardAddressUrl" @click.stop="uploadImg(1,index)"
  12. class="preview-card-img picture">
  13. <!-- <image class="card-img" :src="dataDetails.cardAddressUrl"></image> -->
  14. <view @click.stop="delCard(1)">
  15. <image class='del-card' src="@/static/images/common/quxiao@2x.png">
  16. </image>
  17. </view>
  18. <image class="" :src="dataDetails.cardAddressUrl" mode="aspectFit" style=""></image>
  19. </view>
  20. <view class="title">上传身份证国徽面</view>
  21. <view @click="uploadImg(2,index)" class="picture picture2" v-if="!dataDetails.cardBackAddressUrl">
  22. <image class="xj-image" src="@/static/images/mine/ic_shanchuan@2x.png"></image>
  23. <view class="text">上传身份证国徽面</view>
  24. </view>
  25. <view v-if="dataDetails.cardBackAddressUrl" @click.stop="uploadImg(2,index)"
  26. class="preview-card-img picture">
  27. <!-- <image class="card-img" :src="dataDetails.cardAddressUrl"></image> -->
  28. <view @click.stop="delCard(2)">
  29. <image class='del-card' src="@/static/images/common/quxiao@2x.png">
  30. </image>
  31. </view>
  32. <image class="" :src="dataDetails.cardBackAddressUrl" mode="aspectFit"></image>
  33. </view>
  34. <view class="flex row">
  35. <view class="left-text">身份证号</view>
  36. <u--input placeholder="请输入身份证号" inputAlign='right' border="none" v-model="dataDetails.numberCard"
  37. maxlength="18">
  38. </u--input>
  39. </view>
  40. <view class="flex row flex-space-between">
  41. <view class="left-text">身份证截止日期</view>
  42. <view class="" @click="selectValidityPeriod">
  43. {{dataDetails.cardValidityDate?dataDetails.cardValidityDate:'选择身份证截止日期>'}}
  44. </view>
  45. </view>
  46. <view class="flex row">
  47. <view class="left-text">身份证地址</view>
  48. <!-- <u--input placeholder="请输入身份证地址" inputAlign='right' border="none" v-model="dataDetails.cardAddress" maxlength="18">
  49. </u--input> -->
  50. <u--textarea v-model="dataDetails.cardAddress" border="none" placeholder="请输入身份证地址" autoHeight
  51. maxlength="30"></u--textarea>
  52. </view>
  53. <u-picker :show="isShowcardValidity" ref="uPicker" :columns="validityPeriod"
  54. @cancel='isShowcardValidity=false' @confirm="confirmValidityPeriod" @change="changeHandler">
  55. </u-picker>
  56. </view>
  57. <view class="content1 content-other">
  58. <view class="flex row">
  59. <view class="left-text">姓名</view>
  60. <u--input placeholder="输入姓名" inputAlign='right' border="none" v-model="dataDetails.driverName">
  61. </u--input>
  62. </view>
  63. <view class="flex row">
  64. <view class="left-text">性别</view>
  65. <u-radio-group v-model="dataDetails.driverSex" placement="row">
  66. <u-radio :customStyle="{marginBottom: '8px'}" v-for="(item, index) in radiolist1" :key="index"
  67. :label="item.name" :name="item.name" @change="radioChange" style="margin: 0 0 0 20rpx;">
  68. </u-radio>
  69. </u-radio-group>
  70. </view>
  71. <view class="flex row">
  72. <view class="left-text">称呼</view>
  73. <view class="flex">
  74. <u--input placeholder="输入姓氏" class="ch-style" inputAlign='right' border="none"
  75. v-model="dataDetails.driverCall" maxlength="1">
  76. </u--input>
  77. <view style='margin-left:4px;font-size:15px;' class="flex align-center"
  78. v-if="dataDetails.driverSex=='男'">先生</view>
  79. <view style='margin-left:4px;font-size:15px;' class="flex align-center" v-else>女士</view>
  80. </view>
  81. </view>
  82. <view class="flex row noborder">
  83. <view class="left-text">联系电话</view>
  84. <u--input placeholder="请输入联系电话" inputAlign='right' border="none" v-model="dataDetails.driverPhone"
  85. maxlength="11">
  86. </u--input>
  87. </view>
  88. <view class="flex row noborder" v-if="dataDetails.driverPhone!=userInfo.phone">
  89. <view class="left-text">验证码</view>
  90. <u--input v-model="dataDetails.verifyCode" border="none" placeholder="请填写验证码"></u--input>
  91. <view class="yzm">
  92. <u-code :seconds="seconds" @end="end" @start="start" ref="uCode" @change="codeChange"></u-code>
  93. <u-button class="yzm-btn" @tap="getCode">{{tips}}</u-button>
  94. </view>
  95. </view>
  96. </view>
  97. <view v-if="isFirstAuthentication" class="content1-car">
  98. <!--<view class="flex s-row carlist-item" v-for="(item,index) in dataDetails.hyDriverCarInfoList"
  99. :key='index'>
  100. <view class="flex row">
  101. <view class="left left-text">
  102. 车牌号-{{index+1}}
  103. </view>
  104. <view class="right flex">
  105. <input class="car-uumber" v-model='item.carNumber' @click.stop="handleShowKeyboard(index)"
  106. :disabled="true" placeholder="输入车牌号" name="input"></input>
  107. <view @click="delCarNumber(dataDetails.hyDriverCarInfoList,index)" class="" v-if="index!=0">
  108. <image class='del-car' src="@/static/images/common/quxiao@2x.png">
  109. </image>
  110. </view>
  111. </view>
  112. </view>
  113. <view class="flex row">
  114. <view class="left-text">车牌颜色</view>
  115. <view class="color" @click="selectNoColor">{{item.carNumberColour}}
  116. </view>
  117. <view>></view>
  118. <u-picker :show="carColor" :columns="colorColumns" :closeOnClickOverlay='true'
  119. @close='colorClose' @cancel='colorClose' @confirm='confirmColor($event,item)'></u-picker>
  120. </view>
  121. <view class="flex row">
  122. <view class="left-text">车型</view>
  123. <view class="color" @click="selectCarModel">{{item.carType}}</view>
  124. <view>></view>
  125. <u-picker ref="carTypePicker" :show="carModel" :columns="carModelColumns"
  126. :closeOnClickOverlay='true' @close='carModelClose' @cancel='carModelClose'
  127. @confirm='confirmCarModel($event,item)' @change="changeCarModel"></u-picker>
  128. </view>
  129. <view class="flex row">
  130. <view class="left-text">总质量(千克)</view>
  131. <u--input placeholder="输入总质量" inputAlign='left' type="number" border="none" v-model="item.carTotalWeight">
  132. </u--input>
  133. </view>
  134. <view class="flex row">
  135. <view class="left-text">核定载质量(千克)</view>
  136. <u--input placeholder="输入核定载质量" inputAlign='left' type="number" border="none"
  137. v-model="item.carApprovedWeight">
  138. </u--input>
  139. </view>
  140. <view class="flex row noborder">
  141. <view class="left-text">外廓尺寸</view>
  142. </view>
  143. <view class="flex row noborder input-ckg">
  144. <view class="input-positon">
  145. <u--input class="input" placeholder="长" type="number" inputAlign='left' border="none"
  146. v-model="item.carLong">
  147. </u--input>
  148. <view class="position-right">
  149. mm
  150. </view>
  151. </view>
  152. <view class="star">*</view>
  153. <view class="input-positon">
  154. <u--input placeholder="宽" type="number" inputAlign='left' border="none" v-model="item.carWidth">
  155. </u--input>
  156. <view class="position-right">
  157. mm
  158. </view>
  159. </view>
  160. <view class="star">*</view>
  161. <view class="input-positon">
  162. <u--input placeholder="高" inputAlign='left' type="number" border="none" v-model="item.carHeight">
  163. </u--input>
  164. <view class="position-right">
  165. mm
  166. </view>
  167. </view>
  168. </view>
  169. <view class="flex row noborder s-row">
  170. <view class="left-text">人车合影-{{index+1}}</view>
  171. <u-upload class="uview-upload" :fileList="item.fileList1" @afterRead="afterRead($event,item)"
  172. @delete="deletePic" name="1" multiple :maxCount="1"></u-upload>
  173. <!-- <view @click="uploadImg(0,index)" class="picture" v-if='!item.addressUrl'>
  174. <image class="xj-image" src="@/static/images/common/tianjiazhaopian@2x.png"
  175. ></image>
  176. </view> -->
  177. <!-- <image class="preview-img" :src="item.addressUrl" v-if='item.addressUrl'></image> -->
  178. <!--</view>
  179. </view> -->
  180. </view>
  181. <!-- <view v-if="isFirstAuthentication" @click="addCarNumber(dataDetails.hyDriverCarInfoList)" class="add-car">
  182. <u-icon class="icon" name="plus-circle-fill" color="#2979ff" size="28"></u-icon>
  183. <view class="car-text">
  184. 添加车辆
  185. </view>
  186. </view> -->
  187. <view class="" style="color: red;font-size: 26rpx;margin-top: 20rpx;">*收款人须为司机本人</view>
  188. <view class="content3 flex s-row" v-for="(item,index) in dataDetails.hyDriverPayeeInfoList" :key='index'>
  189. <view class="flex">
  190. 银行卡-{{index+1}}
  191. </view>
  192. <view @click="delBankNumber(dataDetails.hyDriverPayeeInfoList,index)" class="" v-if="index!=0">
  193. <image class='del-bank' src="@/static/images/common/quxiao@2x.png">
  194. </image>
  195. </view>
  196. <view class="title">上传银行卡卡号页</view>
  197. <view @click="uploadImg(3,index)" class="picture picture3" v-if="!item.payeeAddressUrl">
  198. <image class="xj-image" src="@/static/images/mine/ic_shanchuan@2x.png"></image>
  199. <view class="text">上传银行卡卡号页</view>
  200. </view>
  201. <view v-if="item.payeeAddressUrl" @click.stop="uploadImg(3,index)" class="preview-card-img picture">
  202. <!-- <image class="card-img" :src="dataDetails.cardAddressUrl"></image> -->
  203. <view @click.stop="delCard(3)">
  204. <image class='del-card' src="@/static/images/common/quxiao@2x.png">
  205. </image>
  206. </view>
  207. <image class="" :src="item.payeeAddressUrl" mode="aspectFit"></image>
  208. </view>
  209. <view class="flex row flex-space-between">
  210. <view class="left-text">银行卡卡号</view>
  211. <view class="flex">
  212. <u--input placeholder="输入银行卡号码" inputAlign='right' border="none" v-model="item.bankCard">
  213. </u--input>
  214. </view>
  215. </view>
  216. <view class="flex row">
  217. <view class="left-text">开户行</view>
  218. <u--input placeholder="输入开户行" inputAlign='right' border="none" v-model="item.bankDeposit">
  219. </u--input>
  220. </view>
  221. <view class="flex row">
  222. <view class="left-text khzh-styel">开户支行</view>
  223. <view class="flex" v-if="isShowManualInput">
  224. <u--input class="select-bankzh" placeholder="输入开户支行" inputAlign='right' border="none"
  225. v-model="item.bankDepositBranch">
  226. </u--input>
  227. <view @click="manualInput(index)" class="type">选择支行</view>
  228. </view>
  229. <view class="flex" v-if="!isShowManualInput">
  230. <u--input class="select-bankzh" placeholder="选择开户支行" inputAlign='right' border="none"
  231. v-model="item.bankDepositBranch">
  232. </u--input>
  233. <!-- <view class="select-bankzh point" @click="selectZhbank">
  234. {{item.bankDepositBranch?item.bankDepositBranch:'选择开户支行'}}
  235. </view> -->
  236. <view @click="manualInput" class="type">手动输入</view>
  237. </view>
  238. </view>
  239. <view class="flex row flex-space-between">
  240. <view class="left-text">收款人</view>
  241. <view class="flex">
  242. <u--input placeholder="自动获取,不可编辑" inputAlign='right' border="none" v-model="item.payeeName" disabled>
  243. </u--input>
  244. </view>
  245. </view>
  246. <u-picker :show="isShowBank" :columns="bankType[index]" :closeOnClickOverlay='true' @close='zhBankClose'
  247. @cancel='zhBankClose' @confirm='confirmBank'></u-picker>
  248. </u-picker>
  249. </view>
  250. <!-- <view @click="addBankNumber(dataDetails.hyDriverPayeeInfoList)" class="add-car">
  251. <u-icon class="icon" name="plus-circle-fill" color="#2979ff" size="28"></u-icon>
  252. <view class="car-text">
  253. 添加银行卡
  254. </view>
  255. </view> -->
  256. <master-keyboard ref="keyboard" keyboardtype="car" :show="keyShow" :randomNumber="true" :newCar="false"
  257. :defaultValue="carNumber" @keyboardClick="handleClick"></master-keyboard>
  258. <u-action-sheet :actions="$helper.imgTypeList" :title="$helper.imgType" :show="isShowimgType"
  259. @select="imgTypeSelect" :closeOnClickOverlay="true" :closeOnClickAction="true"
  260. @close="isShowimgType=false">
  261. </u-action-sheet>
  262. <u-toast ref="uToast"></u-toast>
  263. </view>
  264. <view class="content4">
  265. <view class="next-btn" @click="next()">下一步</view>
  266. </view>
  267. </view>
  268. </template>
  269. <script>
  270. import keyboard from "@/components/master-keyboard/master-keyboard.vue";
  271. import permision from "@/js_sdk/wa-permission/permission.js"
  272. import upload from '@/components/upload.vue';
  273. import uploadImage from '@/components/ossutil/uploadFile.js';
  274. var _this
  275. import {
  276. mapState
  277. } from 'vuex';
  278. export default {
  279. components: {
  280. keyboard,
  281. upload
  282. },
  283. data() {
  284. return {
  285. canvasSiz: {
  286. width: 188,
  287. height: 273
  288. },
  289. tips: '',
  290. // refCode: null,
  291. seconds: 30,
  292. carModelColumns: [
  293. ['挂车', '非挂车'],
  294. ['高栏', '集装箱', '自卸车']
  295. ],
  296. carModelColumnData: [
  297. ['高栏', '集装箱', '自卸车'],
  298. ['重型仓栏']
  299. ],
  300. colorColumns: [
  301. ['黄色', '蓝色']
  302. ],
  303. carColor: false,
  304. carModel: false,
  305. radiolist1: [{
  306. name: '男',
  307. disabled: false
  308. },
  309. {
  310. name: '女',
  311. disabled: false
  312. },
  313. ],
  314. isFirstAuthentication: true,
  315. bankType: [],
  316. isShowBank: false,
  317. isShowManualInput: false,
  318. index: '',
  319. validityPeriod: [],
  320. isShowcardValidity: false,
  321. uploadType: '',
  322. isShowimgType: false,
  323. // uploadOptions1: {
  324. // "text": "上传身份证头像页",
  325. // "bgc": "https://taohaoliang.oss-cn-beijing.aliyuncs.com/app/tmp/identityup%282%29.png"
  326. // },
  327. // uploadOptions2: {
  328. // "text": "上传身份证国徽页",
  329. // "bgc": "https://taohaoliang.oss-cn-beijing.aliyuncs.com/app/tmp/identitylow%282%29.png"
  330. // },
  331. // uploadOptions3: {
  332. // "text": "上传银行卡正面",
  333. // "bgc": "https://taohaoliang.oss-cn-beijing.aliyuncs.com/app/tmp/bankup%282%29.png"
  334. // },
  335. dataDetails: {
  336. commonId: '',
  337. driverName: '',
  338. driverSex: '男',
  339. driverCall: '',
  340. driverPhone: '',
  341. numberCard: '',
  342. cardAddressUrl: '',
  343. cardBackAddressUrl: '',
  344. cardValidityDate: '',
  345. driverType: '',
  346. driverLicenseHomePage: '',
  347. driverLicenseBackPage: '',
  348. driverLicenseValidityDate: '',
  349. drivingLicenseHomePage: '',
  350. drivingLicenseBackPage: '',
  351. drivingLicenseValidityDate: '',
  352. trailerLicenseHomePage: '',
  353. trailerLicenseBackPage: '',
  354. trailerLicenseValidityDate: '',
  355. qualificationCertificate: '',
  356. qualificationCertificateValidityDate: '',
  357. operationCertificate: '',
  358. operationCertificateValidityDate: '',
  359. trailerOperationCertificate: '',
  360. trailerOperationCertificateValidityDate: '',
  361. hyDriverCarInfoList: [{
  362. carNumber: '',
  363. addressUrl: '',
  364. carNumberColour: '黄色',
  365. carType: '',
  366. carTotalWeight: '',
  367. carApprovedWeight: '',
  368. carLong: '',
  369. carWidth: '',
  370. carHeight: '',
  371. fileList1: []
  372. }],
  373. hyDriverPayeeInfoList: [{
  374. payeeAddressUrl: '',
  375. bankCard: '',
  376. bankDeposit: '',
  377. bankDepositBranch: '',
  378. payeeName: ''
  379. }],
  380. },
  381. keyShow: false,
  382. carNumber: '',
  383. action: this.$helper.ossUploadUrl,
  384. // maxSize: 50 * 1024 * 1024, //限制文件大小 50M
  385. // isAdd: true,
  386. imagesrc: null,
  387. };
  388. },
  389. onLoad() {
  390. _this = this;
  391. this.get_camera_permission()
  392. console.log(this.userInfo)
  393. //获取截止日期List数据
  394. this.validityPeriod = this.$helper.makeValidityPeriod(0)
  395. this.dataDetails.driverPhone = this.userInfo.phone
  396. this.dataDetails.commonId = this.userInfo.id
  397. //获取认证状态
  398. this.getAuthenticationStatus()
  399. },
  400. computed: {
  401. ...mapState(['hasLogin', 'userInfo']),
  402. },
  403. methods: {
  404. async get_camera_permission() {
  405. var photol = await permision.requestAndroidPermission("android.permission.CAMERA")
  406. if (photol == false) {
  407. uni.showModal({
  408. title: '提示',
  409. content: '您已经关闭相册权限,去设置',
  410. success: function(res) {
  411. if (res.confirm) {
  412. permision.gotoAppPermissionSetting()
  413. // plus.runtime.openURL("app-settings:");
  414. } else if (res.cancel) {
  415. console.log('用户点击取消');
  416. }
  417. }
  418. });
  419. }
  420. },
  421. delCard(type) {
  422. switch (type) {
  423. // 人车合影
  424. // case 0:
  425. // //赋值上传图片图片路径
  426. // _this.dataDetails.driverCarInfoList[_this.index].addressUrl =
  427. // result
  428. // break
  429. // 身份正面
  430. case 1:
  431. _this.dataDetails.cardAddressUrl = ''
  432. break
  433. // 身份反面
  434. case 2:
  435. _this.dataDetails.cardBackAddressUrl = ''
  436. break
  437. // 银行卡
  438. case 3:
  439. _this.dataDetails.hyDriverPayeeInfoList[_this.index].payeeAddressUrl = ''
  440. break;
  441. }
  442. },
  443. // 删除图片
  444. deletePic(event, val) {
  445. val[`fileList${event.name}`].splice(event.index, 1)
  446. },
  447. // 新增图片
  448. async afterRead(event, val) {
  449. // 当设置 mutiple 为 true 时, file 为数组格式,否则为对象格式
  450. let lists = [].concat(event.file)
  451. let fileListLen = val[`fileList${event.name}`].length
  452. lists.map((item) => {
  453. val[`fileList${event.name}`].push({
  454. ...item,
  455. status: 'uploading',
  456. message: '上传中'
  457. })
  458. })
  459. for (let i = 0; i < lists.length; i++) {
  460. const result = await this.uploadFilePromise(lists[i].url, val)
  461. let item = val[`fileList${event.name}`][fileListLen]
  462. val[`fileList${event.name}`].splice(fileListLen, 1, Object.assign(item, {
  463. status: 'success',
  464. message: '',
  465. url: result
  466. }))
  467. fileListLen++
  468. }
  469. },
  470. uploadFilePromise(url, val) {
  471. uploadImage(url, 'appData/',
  472. result => {
  473. // 上传成功回调函数
  474. console.log('图片地址', result)
  475. val.addressUrl += result
  476. }
  477. )
  478. // return new Promise((resolve, reject) => {
  479. // let a = uploadImage()
  480. // let a = uni.uploadFile({
  481. // url: 'http://192.168.2.21:7001/upload', // 仅为示例,非真实的接口地址
  482. // filePath: url,
  483. // name: 'file',
  484. // formData: {
  485. // user: 'test'
  486. // },
  487. // success: (res) => {
  488. // setTimeout(() => {
  489. // resolve(res.data.data)
  490. // }, 1000)
  491. // }
  492. // });
  493. // })
  494. },
  495. // 车型切换
  496. changeCarModel(e) {
  497. const {
  498. columnIndex,
  499. index,
  500. // 微信小程序无法将picker实例传出来,只能通过ref操作
  501. picker = this.$refs.carTypePicker
  502. } = e
  503. if (columnIndex === 0) {
  504. // 模拟网络请求
  505. picker.setColumnValues(1, this.carModelColumnData[index])
  506. }
  507. },
  508. codeChange(text) {
  509. this.tips = text;
  510. },
  511. getCode() {
  512. if (/^0?1[3|4|5|6|7|8][0-9]\d{8}$/.test(this.dataDetails.driverPhone)) {
  513. if (this.$refs.uCode.canGetCode) {
  514. // 模拟向后端请求验证码
  515. uni.showLoading({
  516. title: '正在获取验证码'
  517. })
  518. _this.$request.baseRequest('get', '/commonUser/sendVerifyCode', {
  519. phone: this.dataDetails.driverPhone
  520. }).then(res => {
  521. uni.hideLoading();
  522. // 这里此提示会被this.start()方法中的提示覆盖
  523. uni.$u.toast('验证码已发送');
  524. // 通知验证码组件内部开始倒计时
  525. this.$refs.uCode.start();
  526. })
  527. .catch(res => {
  528. uni.$u.toast(res.message);
  529. });
  530. // setTimeout(() => {
  531. // }, 2000);
  532. } else {
  533. uni.$u.toast('倒计时结束后再发送');
  534. }
  535. } else {
  536. uni.$u.toast('请输入正确手机号');
  537. }
  538. },
  539. end() {
  540. // uni.$u.toast('倒计时结束');
  541. },
  542. start() {
  543. // uni.$u.toast('倒计时开始');
  544. },
  545. // 确认颜色
  546. confirmColor(val, val1) {
  547. console.log(val)
  548. val1.carNumberColour = val.value[0]
  549. this.carColor = false
  550. },
  551. colorClose() {
  552. this.carColor = false
  553. },
  554. //选择车牌号颜色
  555. selectNoColor() {
  556. this.carColor = true
  557. },
  558. confirmCarModel(val, val1) {
  559. val1.carType = val.value[0] + ' ' + val.value[1]
  560. this.carModel = false
  561. },
  562. carModelClose() {
  563. this.carModel = false
  564. },
  565. selectCarModel() {
  566. this.carModel = true
  567. },
  568. // 性别切换
  569. radioChange(n) {
  570. console.log('radioChange', n);
  571. this.dataDetails.driverSex = n
  572. },
  573. //判断是否是初次认证
  574. getAuthenticationStatus() {
  575. this.$request.baseRequest('', '/driverInfo/firstAuthentication', {
  576. driverPhone: this.userInfo.phone,
  577. }).then(res => {
  578. if (res.data) {
  579. this.isFirstAuthentication = false
  580. } else {
  581. this.isFirstAuthentication = true
  582. }
  583. //
  584. //
  585. })
  586. .catch(res => {
  587. uni.$u.toast(res.message);
  588. });
  589. },
  590. zhBankClose() {
  591. this.isShowBank = false
  592. },
  593. // 选择支行
  594. selectZhbank() {
  595. if (uni.$u.test.isEmpty(this.bankType[this.index])) {
  596. this.$refs.uToast.show({
  597. type: 'error',
  598. message: "请选择手动输入!",
  599. })
  600. return true
  601. }
  602. this.isShowBank = true
  603. },
  604. confirmBank(e) {
  605. console.log(e)
  606. this.dataDetails.hyDriverPayeeInfoList[this.index].bankDepositBranch = e.value[0]
  607. this.isShowBank = false
  608. },
  609. manualInput(val) {
  610. this.index = val
  611. if (this.isShowManualInput) {
  612. if (!this.dataDetails.hyDriverPayeeInfoList[this.index].payeeAddressUrl) {
  613. this.$refs.uToast.show({
  614. type: 'error',
  615. message: "请先上传银行卡!",
  616. })
  617. return true
  618. } else if (this.dataDetails.hyDriverPayeeInfoList[this.index].payeeAddressUrl && uni.$u.test.isEmpty(
  619. this.bankType[this.index])) {
  620. this.$refs.uToast.show({
  621. type: 'error',
  622. message: "请选择手动输入开户支行!",
  623. })
  624. return true
  625. }
  626. this.isShowBank = true
  627. } else {
  628. this.isShowBank = false
  629. }
  630. this.isShowManualInput = !this.isShowManualInput
  631. },
  632. changeHandler(e) {
  633. const {
  634. columnIndex,
  635. value,
  636. values,
  637. index,
  638. picker = this.$refs.uPicker
  639. } = e
  640. // if (columnIndex === 0) {
  641. // debugger
  642. // if (e.index != 0) {
  643. // picker.setColumnValues(1, this.validityPeriod[1].shift())
  644. // }
  645. // } else if (columnIndex === 1) {
  646. // if (e.index != 0) {
  647. // picker.setColumnValues(2, this.validityPeriod[2].shift())
  648. // }
  649. // }
  650. },
  651. // 回调参数为包含columnIndex、value、values
  652. confirmValidityPeriod(e) {
  653. console.log('confirm', e)
  654. if (e.value[0] == '长期') {
  655. if (e.value[1] || e.value[2]) {
  656. this.$refs.uToast.show({
  657. type: 'error',
  658. message: "选择长期不允许选择月日!",
  659. })
  660. return
  661. }
  662. this.dataDetails.cardValidityDate = e.value[0]
  663. } else {
  664. if (!e.value[1] || !e.value[2]) {
  665. this.$refs.uToast.show({
  666. type: 'error',
  667. message: "日期格式错误,请重新选择!",
  668. })
  669. return
  670. }
  671. var date = new Date()
  672. if (e.value[0] < date.getFullYear()) {
  673. this.$refs.uToast.show({
  674. type: 'error',
  675. message: "身份证已过期!",
  676. })
  677. return
  678. }
  679. if (e.value[0] == date.getFullYear() && Number(e.value[1]) < (date.getMonth() + 1)) {
  680. this.$refs.uToast.show({
  681. type: 'error',
  682. message: "身份证已过期!",
  683. })
  684. return
  685. }
  686. if (e.value[0] == date.getFullYear() && Number(e.value[1]) == (date.getMonth() + 1) && Number(e.value[
  687. 2]) <= (date.getDate())) {
  688. this.$refs.uToast.show({
  689. type: 'error',
  690. message: "身份证已过期!",
  691. })
  692. return
  693. }
  694. this.dataDetails.cardValidityDate = e.value[0] + '-' + e.value[1] + '-' + e.value[2]
  695. }
  696. this.isShowcardValidity = false
  697. },
  698. selectValidityPeriod() {
  699. this.isShowcardValidity = true
  700. },
  701. //设置图片
  702. setImage(e) {
  703. console.log(e);
  704. //显示在页面
  705. //this.imagesrc = e.path;
  706. if (e.dotype == 'idphoto') {
  707. _this.zjzClipper(e.path);
  708. } else if (e.dotype == 'watermark') {
  709. _this.watermark(e.path);
  710. } else {
  711. _this.savePhoto(e.path);
  712. }
  713. },
  714. //保存图片到相册,方便核查
  715. savePhoto(path) {
  716. this.imagesrc = path;
  717. // this.dataDetails.cardAddressUrl = path
  718. uploadImage(path, 'appData/',
  719. result => {
  720. // 上传成功
  721. console.log('图片地址', result)
  722. this.dataDetails.cardAddressUrl = result
  723. }
  724. )
  725. },
  726. uploadImg(type, index) {
  727. this.uploadType = type
  728. // this.isShowimgType = true
  729. // this.imgTypeSelect()
  730. this.index = index
  731. this.imgTypeSelect()
  732. },
  733. // 上传图片
  734. imgTypeSelect() {
  735. var _this = this
  736. // console.log(val)
  737. uni.chooseImage({
  738. count: 1,
  739. // sourceType: this.$helper.chooseImage.sourceType,
  740. success: function(res) {
  741. console.log(JSON.stringify(res.tempFilePaths));
  742. uploadImage('image', res.tempFilePaths[0], 'appData/',
  743. result => {
  744. // 上传成功回调函数
  745. console.log('图片地址', result)
  746. switch (_this.uploadType) {
  747. // 身份正面
  748. case 1:
  749. _this.dataDetails.cardAddressUrl = result
  750. // 识别
  751. _this.$request.baseRequest('get',
  752. '/driverInfo/personShibie', {
  753. personImg: result,
  754. flag: 1
  755. }).then(res => {
  756. if (res.data) {
  757. _this.dataDetails.cardAddress = res.data
  758. .recPersonAddr
  759. _this.dataDetails.numberCard = res.data.recPersonNo
  760. if (res.data.recPerson) {
  761. _this.dataDetails.driverName = res.data
  762. .recPerson
  763. _this.dataDetails.driverCall = res.data
  764. .recPerson.substring(0, 1)
  765. for (let i = 0; i < _this.dataDetails
  766. .hyDriverPayeeInfoList.length; i++
  767. ) { //收款人需与司机本人一致
  768. _this.dataDetails.hyDriverPayeeInfoList[i]
  769. .payeeName = res.data.recPerson
  770. }
  771. console.log()
  772. }
  773. _this.dataDetails.driverBirthday = res.data
  774. .recPersonBrithday
  775. }
  776. })
  777. .catch(res => {
  778. uni.$u.toast(res.message);
  779. });
  780. break
  781. // 身份反面
  782. case 2:
  783. _this.dataDetails.cardBackAddressUrl = result
  784. // 识别
  785. _this.$request.baseRequest('get',
  786. '/driverInfo/personShibie', {
  787. personImg: result,
  788. flag: 2
  789. }).then(res => {
  790. if (res.data.idCardValidity) {
  791. let date = res.data.idCardValidity.split("-")[1]
  792. _this.dataDetails.cardValidityDate = date.replace(
  793. '.', '-').replace('.', '-')
  794. }
  795. })
  796. .catch(res => {
  797. uni.$u.toast(res.message);
  798. });
  799. break
  800. // 银行卡
  801. case 3:
  802. _this.bankType[_this.index] = []
  803. _this.$request.baseRequest('get',
  804. '/driverInfo/bankShibie', {
  805. bankImg: result,
  806. }).then(res => {
  807. _this.dataDetails.hyDriverPayeeInfoList[_this.index]
  808. .payeeAddressUrl = result
  809. if (res.data) {
  810. if (res.data.bankNo) {
  811. _this.dataDetails.hyDriverPayeeInfoList[_this
  812. .index].bankCard = res.data.bankNo
  813. }
  814. if (res.data.bankName) {
  815. _this.dataDetails.hyDriverPayeeInfoList[_this
  816. .index].bankDeposit = res.data.bankName
  817. }
  818. // 开户支行LIst
  819. if (res.data.bankNameZhihang) {
  820. _this.bankType[_this.index].push(res.data
  821. .bankNameZhihang)
  822. }
  823. }
  824. _this.$forceUpdate()
  825. })
  826. .catch(res => {
  827. uni.$u.toast(res.message);
  828. });
  829. break;
  830. }
  831. }
  832. )
  833. }
  834. });
  835. // } else {
  836. // }
  837. // else {
  838. // switch (this.uploadType) {
  839. // // case 0:
  840. // // console.log('人车合影')
  841. // // break
  842. // case 1:
  843. // uni.$u.route('/pages/mine/camera/idcard/idcard?dotype=idcardface');
  844. // console.log('身份正面')
  845. // break
  846. // case 2:
  847. // uni.$u.route('/pages/mine/camera/idcard/idcard?dotype=badge');
  848. // console.log('身份反面')
  849. // break
  850. // case 3:
  851. // uni.$u.route('/pages/mine/camera/idcard/idcard?dotype=bank');
  852. // console.log('银行卡')
  853. // break
  854. // case 4:
  855. // }
  856. // }
  857. },
  858. //车牌号弹出键盘
  859. handleClick(e) {
  860. this.carNumber = e.value
  861. this.dataDetails.hyDriverCarInfoList[this.index].carNumber = e.value //键盘输入值
  862. },
  863. //车牌号弹出键盘
  864. handleShowKeyboard(index) {
  865. if (this.dataDetails.hyDriverCarInfoList[index].carNumber == '') {
  866. this.carNumber = ''
  867. } else {
  868. this.carNumber = this.dataDetails.hyDriverCarInfoList[index].carNumber
  869. }
  870. if (this.$refs.keyboard.open) {
  871. this.$refs.keyboard.open(false) //true 键盘显示 false 键盘隐藏
  872. } else {
  873. this.$refs.keyboard[0].open(false)
  874. }
  875. this.index = index
  876. if (this.$refs.keyboard.open) {
  877. this.$refs.keyboard.open(true) //true 键盘显示 false 键盘隐藏
  878. } else {
  879. this.$refs.keyboard[0].open(true)
  880. }
  881. },
  882. addCarNumber(val) {
  883. val.push({
  884. carNumber: '',
  885. addressUrl: '',
  886. carNumberColour: '',
  887. carType: '',
  888. carTotalWeight: '',
  889. carApprovedWeight: '',
  890. carLong: '',
  891. carWidth: '',
  892. carHeight: '',
  893. fileList1: []
  894. })
  895. },
  896. delCarNumber(val, index) {
  897. if (val.length > 1) {
  898. val.splice(index, 1)
  899. this.$forceUpdate()
  900. } else {
  901. let params = {
  902. type: 'error',
  903. message: "至少保留一个车牌号!",
  904. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/success.png'
  905. }
  906. this.$refs.uToast.show({
  907. ...params
  908. })
  909. }
  910. },
  911. addBankNumber(val) {
  912. val.push({
  913. payeeAddressUrl: '',
  914. bankCard: '',
  915. bankDeposit: '',
  916. bankDepositBranch: '',
  917. payeeName: this.dataDetails.driverName ? this.dataDetails.driverName : ""
  918. })
  919. },
  920. delBankNumber(val, index) {
  921. if (val.length > 1) {
  922. val.splice(index, 1)
  923. this.$forceUpdate()
  924. } else {
  925. let params = {
  926. type: 'error',
  927. message: "至少保留一张银行卡!",
  928. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/success.png'
  929. }
  930. this.$refs.uToast.show({
  931. ...params
  932. })
  933. }
  934. },
  935. next(val) {
  936. if (this.validate()) return
  937. for (let i = 0; i < this.dataDetails.hyDriverPayeeInfoList.length; i++) {
  938. if (this.dataDetails.hyDriverPayeeInfoList[i].payeeName != this.dataDetails.driverName) {
  939. this.$refs.uToast.show({
  940. type: 'error',
  941. message: "收款人需与司机本人一致!",
  942. })
  943. return
  944. } else {
  945. // 银行卡验证
  946. this.$request.baseRequest('get', '/driverPayeeInfo/bankCradShibie', {
  947. name: this.dataDetails.hyDriverPayeeInfoList[i].payeeName,
  948. idCard: this.dataDetails.numberCard,
  949. accountNo: this.dataDetails.hyDriverPayeeInfoList[i].bankCard
  950. }).then(
  951. res => {
  952. if (res.data.distinguishNum != "01") { //不等于01 证明银行卡验证不通过
  953. // this.payCheck = false //验证开关
  954. uni.$u.toast(res.data.distinguish);
  955. } else {
  956. uni.$u.route('/pages/mine/driverCertificationNext', {
  957. data: JSON.stringify(this.dataDetails),
  958. });
  959. }
  960. })
  961. }
  962. }
  963. // if (this.payCheck) {
  964. // uni.$u.route('/pages/mine/driverCertificationNext', {
  965. // data: JSON.stringify(this.dataDetails),
  966. // });
  967. // }
  968. },
  969. validate() {
  970. // true 为校验不通过
  971. if (uni.$u.test.isEmpty(this.dataDetails.driverName)) {
  972. this.$refs.uToast.show({
  973. type: 'error',
  974. message: "司机姓名不能为空!",
  975. })
  976. return true
  977. }
  978. if (!uni.$u.test.chinese(this.dataDetails.driverName)) {
  979. this.$refs.uToast.show({
  980. type: 'error',
  981. message: "姓名为汉字!",
  982. })
  983. return true
  984. }
  985. if (uni.$u.test.isEmpty(this.dataDetails.driverCall)) {
  986. this.$refs.uToast.show({
  987. type: 'error',
  988. message: "司机称呼不能为空!",
  989. })
  990. return true
  991. }
  992. if (!uni.$u.test.chinese(this.dataDetails.driverCall)) {
  993. this.$refs.uToast.show({
  994. type: 'error',
  995. message: "称呼为汉字!",
  996. })
  997. return true
  998. }
  999. if (uni.$u.test.isEmpty(this.dataDetails.driverPhone)) {
  1000. this.$refs.uToast.show({
  1001. type: 'error',
  1002. message: "联系电话不能为空!",
  1003. })
  1004. return true
  1005. }
  1006. if (!uni.$u.test.mobile(this.dataDetails.driverPhone)) {
  1007. this.$refs.uToast.show({
  1008. type: 'error',
  1009. message: "电话号码格式错误!",
  1010. })
  1011. return true
  1012. }
  1013. // for (let i = 0; i < this.dataDetails.hyDriverCarInfoList.length; i++) {
  1014. // let _item = this.dataDetails.hyDriverCarInfoList[i]
  1015. // if (uni.$u.test.isEmpty(_item.carNumber)) {
  1016. // this.$refs.uToast.show({
  1017. // type: 'error',
  1018. // message: "车牌号不能为空!",
  1019. // })
  1020. // return true
  1021. // }
  1022. // if (uni.$u.test.isEmpty(_item.fileList1)) {
  1023. // this.$refs.uToast.show({
  1024. // type: 'error',
  1025. // message: "人车合影不能为空!",
  1026. // })
  1027. // return true
  1028. // }
  1029. // }
  1030. if (uni.$u.test.isEmpty(this.dataDetails.cardAddressUrl)) {
  1031. this.$refs.uToast.show({
  1032. type: 'error',
  1033. message: "身份证人像页不能为空!",
  1034. })
  1035. return true
  1036. }
  1037. if (uni.$u.test.isEmpty(this.dataDetails.cardBackAddressUrl)) {
  1038. this.$refs.uToast.show({
  1039. type: 'error',
  1040. message: "身份证国徽页不能为空!",
  1041. })
  1042. return true
  1043. }
  1044. if (uni.$u.test.isEmpty(this.dataDetails.cardValidityDate)) {
  1045. this.$refs.uToast.show({
  1046. type: 'error',
  1047. message: "身份证人有效截止日期不能为空!",
  1048. })
  1049. return true
  1050. }
  1051. if (uni.$u.test.isEmpty(this.dataDetails.cardAddress)) {
  1052. this.$refs.uToast.show({
  1053. type: 'error',
  1054. message: "身份证地址为空!",
  1055. })
  1056. return true
  1057. }
  1058. for (let i = 0; i < this.dataDetails.hyDriverPayeeInfoList.length; i++) {
  1059. let _item = this.dataDetails.hyDriverPayeeInfoList[i]
  1060. if (uni.$u.test.isEmpty(_item.payeeAddressUrl)) {
  1061. this.$refs.uToast.show({
  1062. type: 'error',
  1063. message: "银行卡不能为空!",
  1064. })
  1065. return true
  1066. }
  1067. if (uni.$u.test.isEmpty(_item.bankCard)) {
  1068. this.$refs.uToast.show({
  1069. type: 'error',
  1070. message: "银行卡号码不能为空!",
  1071. })
  1072. return true
  1073. }
  1074. if (uni.$u.test.isEmpty(_item.bankDeposit)) {
  1075. this.$refs.uToast.show({
  1076. type: 'error',
  1077. message: "开户行不能为空!",
  1078. })
  1079. return true
  1080. }
  1081. if (uni.$u.test.isEmpty(_item.bankDepositBranch)) {
  1082. this.$refs.uToast.show({
  1083. type: 'error',
  1084. message: "开户支行不能为空!",
  1085. })
  1086. return true
  1087. }
  1088. if (uni.$u.test.isEmpty(_item.payeeName)) {
  1089. this.$refs.uToast.show({
  1090. type: 'error',
  1091. message: "收款人姓名不能为空!",
  1092. })
  1093. return true
  1094. }
  1095. }
  1096. return false
  1097. }
  1098. },
  1099. };
  1100. </script>
  1101. <style scoped lang="scss">
  1102. /deep/.u-radio {
  1103. margin-bottom: 0 !important;
  1104. }
  1105. .top-head {
  1106. background: #2772FB;
  1107. height: 80rpx;
  1108. width: 100%;
  1109. }
  1110. .container {
  1111. position: relative;
  1112. top: -60rpx;
  1113. margin: 0 20rpx;
  1114. }
  1115. .row4-img {
  1116. width: 32rpx;
  1117. height: 32rpx;
  1118. }
  1119. .content1,
  1120. .content2,
  1121. .content3 {
  1122. .left-text {
  1123. // background: red;
  1124. width: 290rpx;
  1125. color: #333333;
  1126. display: flex;
  1127. align-items: center;
  1128. }
  1129. .row {
  1130. border-bottom: 1px solid #EEEEEE;
  1131. padding-bottom: 28rpx;
  1132. margin-top: 26rpx;
  1133. .ch-style {}
  1134. }
  1135. .row-ch {
  1136. padding-right: 180rpx;
  1137. box-sizing: border-box;
  1138. // background-color: red;
  1139. }
  1140. }
  1141. .content1-car {
  1142. margin-top: 20rpx;
  1143. .left-text {
  1144. // background: red;
  1145. width: 290rpx;
  1146. color: #333333;
  1147. display: flex;
  1148. align-items: center;
  1149. }
  1150. .row {
  1151. border-bottom: 1px solid #EEEEEE;
  1152. padding-bottom: 28rpx;
  1153. margin-top: 26rpx;
  1154. .color {
  1155. // background: blue;
  1156. width: 340rpx;
  1157. }
  1158. }
  1159. }
  1160. .input-ckg {
  1161. height: 86rpx;
  1162. margin-top: 0 !important;
  1163. padding-bottom: 0 !important;
  1164. .u-input {
  1165. height: 100%;
  1166. background: #F7F8FA;
  1167. padding-left: 10rpx !important;
  1168. padding-right: 85rpx !important;
  1169. }
  1170. .star {
  1171. display: flex;
  1172. align-items: center;
  1173. margin: 0 10rpx;
  1174. }
  1175. .input-positon {
  1176. position: relative;
  1177. }
  1178. .position-right {
  1179. position: absolute;
  1180. right: 20rpx;
  1181. top: 0;
  1182. width: 60rpx;
  1183. height: 50rpx;
  1184. bottom: 0;
  1185. margin: auto;
  1186. }
  1187. }
  1188. .picture {
  1189. margin-top: 20rpx;
  1190. background: #F5F6FA;
  1191. width: 212rpx;
  1192. height: 212rpx;
  1193. border-radius: 20rpx;
  1194. display: flex;
  1195. flex-direction: column;
  1196. justify-content: center;
  1197. align-items: center;
  1198. color: #6A7282;
  1199. }
  1200. .add-car {
  1201. background: #FFFFFF;
  1202. margin: 20rpx 50rpx;
  1203. border-radius: 50rpx;
  1204. display: flex;
  1205. justify-content: center;
  1206. align-items: center;
  1207. padding: 20rpx 0;
  1208. .icon {
  1209. margin-right: 20rpx;
  1210. }
  1211. .car-text {
  1212. font-size: 36rpx;
  1213. font-weight: 700;
  1214. color: #2772FB;
  1215. }
  1216. }
  1217. .carlist-item {
  1218. margin-top: 20rpx;
  1219. padding: 0 20rpx 20rpx 20rpx;
  1220. background: white;
  1221. border-radius: 10rpx;
  1222. position: relative;
  1223. .del-car {
  1224. position: absolute;
  1225. top: 0;
  1226. right: 0;
  1227. width: 80rpx;
  1228. height: 80rpx;
  1229. }
  1230. }
  1231. .content2,
  1232. .content3 {
  1233. .del-bank {
  1234. position: absolute;
  1235. top: 0;
  1236. right: 0;
  1237. width: 80rpx;
  1238. height: 80rpx;
  1239. }
  1240. .picture {
  1241. width: 100%;
  1242. height: 440rpx;
  1243. // background: red;
  1244. position: relative;
  1245. .text {
  1246. margin-top: 20rpx;
  1247. }
  1248. }
  1249. .picture1 {
  1250. background: url(../../static/images/mine/zm.png);
  1251. background-size: 100% 100%;
  1252. }
  1253. .picture2 {
  1254. background: url(../../static/images/mine/gh.png);
  1255. background-size: 100% 100%;
  1256. }
  1257. .picture3 {
  1258. background: url(../../static/images/mine/yhkzm.png);
  1259. background-size: 100% 100%;
  1260. }
  1261. .xj-image {
  1262. width: 100rpx;
  1263. height: 100rpx;
  1264. }
  1265. .title {
  1266. color: #999999;
  1267. margin: 20rpx 0;
  1268. }
  1269. }
  1270. .content3 {
  1271. position: relative;
  1272. background: white;
  1273. margin: 20rpx 0 0 0;
  1274. border-radius: 10rpx;
  1275. padding: 20rpx;
  1276. .khzh-styel {
  1277. // width: 350rpx;
  1278. }
  1279. .type {
  1280. background: #2772FB;
  1281. border-radius: 10rpx;
  1282. color: white;
  1283. box-sizing: border-box;
  1284. padding: 4rpx 10rpx;
  1285. font-size: 26rpx;
  1286. display: flex;
  1287. margin-left: 26rpx;
  1288. justify-content: center;
  1289. align-items: center;
  1290. }
  1291. .select-bankzh {
  1292. width: 230rpx;
  1293. height: 48rpx;
  1294. }
  1295. }
  1296. .content4 {
  1297. display: flex;
  1298. justify-content: center;
  1299. background: white;
  1300. padding: 40rpx 20rpx 50rpx 20rpx;
  1301. .next-btn {
  1302. background: #22C572;
  1303. width: 90%;
  1304. padding: 20rpx 20rpx;
  1305. text-align: center;
  1306. color: #FFFFFF;
  1307. border-radius: 50rpx;
  1308. }
  1309. }
  1310. .yzm {}
  1311. .yzm-btn {
  1312. background: #2772FB;
  1313. color: white;
  1314. height: 60rpx;
  1315. }
  1316. .preview-card-img {
  1317. /deep/uni-image>div,
  1318. uni-image>img {
  1319. // transform: scale(1.5) rotate(-90deg);
  1320. }
  1321. }
  1322. .del-card {
  1323. position: absolute;
  1324. top: -10rpx;
  1325. right: -6rpx;
  1326. width: 80rpx;
  1327. height: 80rpx;
  1328. z-index: 9;
  1329. }
  1330. /deep/.u-radio-group--row {
  1331. justify-content: flex-end;
  1332. }
  1333. /deep/.u-textarea {
  1334. padding: 9px 0;
  1335. }
  1336. /deep/.u-textarea__field {
  1337. color: #000;
  1338. text-align: right;
  1339. }
  1340. </style>