driverCertification.vue 39 KB

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