driverCertification.vue 38 KB

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