driverCertification.vue 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392
  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)" 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)"
  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)" 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)"
  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. // if (e.index != 0) {
  645. // picker.setColumnValues(1, this.validityPeriod[1].shift())
  646. // }
  647. // } else if (columnIndex === 1) {
  648. // if (e.index != 0) {
  649. // picker.setColumnValues(2, this.validityPeriod[2].shift())
  650. // }
  651. // }
  652. },
  653. // 回调参数为包含columnIndex、value、values
  654. confirmValidityPeriod(date) {
  655. this.dataDetails.cardValidityDate = date.date
  656. },
  657. selectValidityPeriod() {
  658. this.$refs.dateEl.show()
  659. // this.isShowcardValidity = true
  660. },
  661. //设置图片
  662. setImage(e) {
  663. console.log(e);
  664. //显示在页面
  665. //this.imagesrc = e.path;
  666. if (e.dotype == 'idphoto') {
  667. _this.zjzClipper(e.path);
  668. } else if (e.dotype == 'watermark') {
  669. _this.watermark(e.path);
  670. } else {
  671. _this.savePhoto(e.path);
  672. }
  673. },
  674. //保存图片到相册,方便核查
  675. savePhoto(path) {
  676. this.imagesrc = path;
  677. // this.dataDetails.cardAddressUrl = path
  678. uploadImage(path, 'appData/',
  679. result => {
  680. // 上传成功
  681. console.log('图片地址', result)
  682. this.dataDetails.cardAddressUrl = result
  683. }
  684. )
  685. },
  686. uploadImg(type, index) {
  687. this.uploadType = type
  688. // this.isShowimgType = true
  689. // this.imgTypeSelect()
  690. if(index >=0){
  691. this.index = index
  692. this.dataDetails.hyDriverPayeeInfoList[index].bankDepositBranch=''
  693. }
  694. this.imgTypeSelect()
  695. },
  696. // 上传图片
  697. imgTypeSelect() {
  698. var _this = this
  699. // console.log(val)
  700. uni.chooseImage({
  701. count: 1,
  702. // sourceType: this.$helper.chooseImage.sourceType,
  703. success: function(res) {
  704. console.log(JSON.stringify(res.tempFilePaths));
  705. uploadImage('image', res.tempFilePaths[0], 'appData/',
  706. result => {
  707. // 上传成功回调函数
  708. console.log('图片地址', result)
  709. switch (_this.uploadType) {
  710. // 身份正面
  711. case 1:
  712. _this.dataDetails.cardAddressUrl = result
  713. // 识别
  714. _this.$request.baseRequest('get',
  715. '/driverInfo/personShibie', {
  716. personImg: result,
  717. flag: 1
  718. }).then(res => {
  719. if (res.data) {
  720. _this.dataDetails.cardAddress = res.data
  721. .recPersonAddr
  722. _this.dataDetails.numberCard = res.data.recPersonNo
  723. if(res.data.recPersonNo && res.data.recPersonNo.length == 18){ //自动获取性别
  724. let sex = res.data.recPersonNo.substr(-2,1)
  725. if(sex % 2 == 0){
  726. _this.dataDetails.driverSex = "女"
  727. }else{
  728. _this.dataDetails.driverSex = "男"
  729. }
  730. }
  731. if (res.data.recPerson) {
  732. _this.dataDetails.driverName = res.data
  733. .recPerson
  734. _this.dataDetails.driverCall = res.data
  735. .recPerson.substring(0, 1)
  736. for (let i = 0; i < _this.dataDetails
  737. .hyDriverPayeeInfoList.length; i++
  738. ) { //收款人需与司机本人一致
  739. _this.dataDetails.hyDriverPayeeInfoList[i]
  740. .payeeName = res.data.recPerson
  741. }
  742. }
  743. _this.dataDetails.driverBirthday = res.data
  744. .recPersonBrithday
  745. }
  746. })
  747. .catch(res => {
  748. uni.$u.toast(res.message);
  749. });
  750. break
  751. // 身份反面
  752. case 2:
  753. _this.dataDetails.cardBackAddressUrl = result
  754. // 识别
  755. _this.$request.baseRequest('get',
  756. '/driverInfo/personShibie', {
  757. personImg: result,
  758. flag: 2
  759. }).then(res => {
  760. if (res.data.idCardValidity) {
  761. let date = res.data.idCardValidity.split("-")[1]
  762. _this.dataDetails.cardValidityDate = date.replace(
  763. '.', '-').replace('.', '-')
  764. }
  765. })
  766. .catch(res => {
  767. uni.$u.toast(res.message);
  768. });
  769. break
  770. // 银行卡
  771. case 3:
  772. _this.bankType[_this.index] = []
  773. _this.$request.baseRequest('get',
  774. '/driverInfo/bankShibie', {
  775. bankImg: result,
  776. }).then(res => {
  777. _this.dataDetails.hyDriverPayeeInfoList[_this.index]
  778. .payeeAddressUrl = result
  779. if (res.data) {
  780. if (res.data.bankNo) {
  781. _this.dataDetails.hyDriverPayeeInfoList[_this
  782. .index].bankCard = res.data.bankNo
  783. }
  784. if (res.data.bankName) {
  785. _this.dataDetails.hyDriverPayeeInfoList[_this
  786. .index].bankDeposit = res.data.bankName
  787. }
  788. // 开户支行LIst
  789. if (res.data.bankNameZhihang) {
  790. _this.bankType[_this.index].push(res.data
  791. .bankNameZhihang)
  792. }
  793. }
  794. _this.$forceUpdate()
  795. })
  796. .catch(res => {
  797. uni.$u.toast(res.message);
  798. });
  799. break;
  800. }
  801. }
  802. )
  803. }
  804. });
  805. // } else {
  806. // }
  807. // else {
  808. // switch (this.uploadType) {
  809. // // case 0:
  810. // // console.log('人车合影')
  811. // // break
  812. // case 1:
  813. // uni.$u.route('/pages/mine/camera/idcard/idcard?dotype=idcardface');
  814. // console.log('身份正面')
  815. // break
  816. // case 2:
  817. // uni.$u.route('/pages/mine/camera/idcard/idcard?dotype=badge');
  818. // console.log('身份反面')
  819. // break
  820. // case 3:
  821. // uni.$u.route('/pages/mine/camera/idcard/idcard?dotype=bank');
  822. // console.log('银行卡')
  823. // break
  824. // case 4:
  825. // }
  826. // }
  827. },
  828. //车牌号弹出键盘
  829. handleClick(e) {
  830. this.carNumber = e.value
  831. this.dataDetails.hyDriverCarInfoList[this.index].carNumber = e.value //键盘输入值
  832. },
  833. //车牌号弹出键盘
  834. handleShowKeyboard(index) {
  835. if (this.dataDetails.hyDriverCarInfoList[index].carNumber == '') {
  836. this.carNumber = ''
  837. } else {
  838. this.carNumber = this.dataDetails.hyDriverCarInfoList[index].carNumber
  839. }
  840. if (this.$refs.keyboard.open) {
  841. this.$refs.keyboard.open(false) //true 键盘显示 false 键盘隐藏
  842. } else {
  843. this.$refs.keyboard[0].open(false)
  844. }
  845. this.index = index
  846. if (this.$refs.keyboard.open) {
  847. this.$refs.keyboard.open(true) //true 键盘显示 false 键盘隐藏
  848. } else {
  849. this.$refs.keyboard[0].open(true)
  850. }
  851. },
  852. addCarNumber(val) {
  853. val.push({
  854. carNumber: '',
  855. addressUrl: '',
  856. carNumberColour: '',
  857. carType: '',
  858. carTotalWeight: '',
  859. carApprovedWeight: '',
  860. carLong: '',
  861. carWidth: '',
  862. carHeight: '',
  863. fileList1: []
  864. })
  865. },
  866. delCarNumber(val, index) {
  867. if (val.length > 1) {
  868. val.splice(index, 1)
  869. this.$forceUpdate()
  870. } else {
  871. let params = {
  872. type: 'error',
  873. message: "至少保留一个车牌号!",
  874. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/success.png'
  875. }
  876. this.$refs.uToast.show({
  877. ...params
  878. })
  879. }
  880. },
  881. addBankNumber(val) {
  882. val.push({
  883. payeeAddressUrl: '',
  884. bankCard: '',
  885. bankDeposit: '',
  886. bankDepositBranch: '',
  887. payeeName: this.dataDetails.driverName ? this.dataDetails.driverName : ""
  888. })
  889. },
  890. delBankNumber(val, index) {
  891. if (val.length > 1) {
  892. val.splice(index, 1)
  893. this.$forceUpdate()
  894. } else {
  895. let params = {
  896. type: 'error',
  897. message: "至少保留一张银行卡!",
  898. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/success.png'
  899. }
  900. this.$refs.uToast.show({
  901. ...params
  902. })
  903. }
  904. },
  905. next(val) {
  906. if (this.validate()) return
  907. for (let i = 0; i < this.dataDetails.hyDriverPayeeInfoList.length; i++) {
  908. if (this.dataDetails.hyDriverPayeeInfoList[i].payeeName != this.dataDetails.driverName) {
  909. this.$refs.uToast.show({
  910. type: 'error',
  911. message: "收款人需与司机本人一致!",
  912. })
  913. return
  914. } else {
  915. // 银行卡验证
  916. this.$request.baseRequest('get', '/driverPayeeInfo/bankCradShibie', {
  917. name: this.dataDetails.hyDriverPayeeInfoList[i].payeeName,
  918. idCard: this.dataDetails.numberCard,
  919. accountNo: this.dataDetails.hyDriverPayeeInfoList[i].bankCard
  920. }).then(
  921. res => {
  922. if (res.data.distinguishNum != "01") { //不等于01 证明银行卡验证不通过
  923. // this.payCheck = false //验证开关
  924. // uni.$u.toast(res.data.distinguish);
  925. this.$refs.uToast.show({
  926. type: 'error',
  927. message: res.data.distinguish,
  928. duration:4000
  929. })
  930. } else {
  931. uni.$u.route('/pages/mine/driverCertificationNext', {
  932. data: JSON.stringify(this.dataDetails),
  933. });
  934. }
  935. })
  936. }
  937. }
  938. },
  939. validate() {
  940. // true 为校验不通过
  941. if (uni.$u.test.isEmpty(this.dataDetails.driverName)) {
  942. this.$refs.uToast.show({
  943. type: 'error',
  944. message: "司机姓名不能为空!",
  945. })
  946. return true
  947. }
  948. if (!uni.$u.test.chinese(this.dataDetails.driverName)) {
  949. this.$refs.uToast.show({
  950. type: 'error',
  951. message: "姓名为汉字!",
  952. })
  953. return true
  954. }
  955. if (uni.$u.test.isEmpty(this.dataDetails.driverCall)) {
  956. this.$refs.uToast.show({
  957. type: 'error',
  958. message: "司机称呼不能为空!",
  959. })
  960. return true
  961. }
  962. if (!uni.$u.test.chinese(this.dataDetails.driverCall)) {
  963. this.$refs.uToast.show({
  964. type: 'error',
  965. message: "称呼为汉字!",
  966. })
  967. return true
  968. }
  969. if (uni.$u.test.isEmpty(this.dataDetails.driverPhone)) {
  970. this.$refs.uToast.show({
  971. type: 'error',
  972. message: "联系电话不能为空!",
  973. })
  974. return true
  975. }
  976. if (!uni.$u.test.mobile(this.dataDetails.driverPhone)) {
  977. this.$refs.uToast.show({
  978. type: 'error',
  979. message: "电话号码格式错误!",
  980. })
  981. return true
  982. }
  983. // for (let i = 0; i < this.dataDetails.hyDriverCarInfoList.length; i++) {
  984. // let _item = this.dataDetails.hyDriverCarInfoList[i]
  985. // if (uni.$u.test.isEmpty(_item.carNumber)) {
  986. // this.$refs.uToast.show({
  987. // type: 'error',
  988. // message: "车牌号不能为空!",
  989. // })
  990. // return true
  991. // }
  992. // if (uni.$u.test.isEmpty(_item.fileList1)) {
  993. // this.$refs.uToast.show({
  994. // type: 'error',
  995. // message: "人车合影不能为空!",
  996. // })
  997. // return true
  998. // }
  999. // }
  1000. if (uni.$u.test.isEmpty(this.dataDetails.cardAddressUrl)) {
  1001. this.$refs.uToast.show({
  1002. type: 'error',
  1003. message: "身份证人像页不能为空!",
  1004. })
  1005. return true
  1006. }
  1007. if (uni.$u.test.isEmpty(this.dataDetails.cardBackAddressUrl)) {
  1008. this.$refs.uToast.show({
  1009. type: 'error',
  1010. message: "身份证国徽页不能为空!",
  1011. })
  1012. return true
  1013. }
  1014. if (uni.$u.test.isEmpty(this.dataDetails.cardValidityDate)) {
  1015. this.$refs.uToast.show({
  1016. type: 'error',
  1017. message: "身份证人有效截止日期不能为空!",
  1018. })
  1019. return true
  1020. }
  1021. if (uni.$u.test.isEmpty(this.dataDetails.cardAddress)) {
  1022. this.$refs.uToast.show({
  1023. type: 'error',
  1024. message: "身份证地址为空!",
  1025. })
  1026. return true
  1027. }
  1028. for (let i = 0; i < this.dataDetails.hyDriverPayeeInfoList.length; i++) {
  1029. let _item = this.dataDetails.hyDriverPayeeInfoList[i]
  1030. if (uni.$u.test.isEmpty(_item.payeeAddressUrl)) {
  1031. this.$refs.uToast.show({
  1032. type: 'error',
  1033. message: "银行卡不能为空!",
  1034. })
  1035. return true
  1036. }
  1037. if (uni.$u.test.isEmpty(_item.bankCard)) {
  1038. this.$refs.uToast.show({
  1039. type: 'error',
  1040. message: "银行卡号码不能为空!",
  1041. })
  1042. return true
  1043. }
  1044. if (uni.$u.test.isEmpty(_item.bankDeposit)) {
  1045. this.$refs.uToast.show({
  1046. type: 'error',
  1047. message: "开户行不能为空!",
  1048. })
  1049. return true
  1050. }
  1051. if (uni.$u.test.isEmpty(_item.bankDepositBranch)) {
  1052. this.$refs.uToast.show({
  1053. type: 'error',
  1054. message: "开户支行不能为空!",
  1055. })
  1056. return true
  1057. }
  1058. if (uni.$u.test.isEmpty(_item.payeeName)) {
  1059. this.$refs.uToast.show({
  1060. type: 'error',
  1061. message: "收款人姓名不能为空!",
  1062. })
  1063. return true
  1064. }
  1065. }
  1066. return false
  1067. }
  1068. },
  1069. };
  1070. </script>
  1071. <style scoped lang="scss">
  1072. /deep/.u-radio {
  1073. margin-bottom: 0 !important;
  1074. }
  1075. .top-head {
  1076. background: #2772FB;
  1077. height: 80rpx;
  1078. width: 100%;
  1079. }
  1080. .container {
  1081. position: relative;
  1082. top: -60rpx;
  1083. margin: 0 20rpx;
  1084. }
  1085. .row4-img {
  1086. width: 32rpx;
  1087. height: 32rpx;
  1088. }
  1089. .content1,
  1090. .content2,
  1091. .content3 {
  1092. .left-text {
  1093. // background: red;
  1094. width: 290rpx;
  1095. color: #333333;
  1096. display: flex;
  1097. align-items: center;
  1098. }
  1099. .row {
  1100. border-bottom: 1px solid #EEEEEE;
  1101. padding-bottom: 28rpx;
  1102. margin-top: 26rpx;
  1103. .ch-style {}
  1104. }
  1105. .row-ch {
  1106. padding-right: 180rpx;
  1107. box-sizing: border-box;
  1108. // background-color: red;
  1109. }
  1110. }
  1111. .content1-car {
  1112. margin-top: 20rpx;
  1113. .left-text {
  1114. // background: red;
  1115. width: 290rpx;
  1116. color: #333333;
  1117. display: flex;
  1118. align-items: center;
  1119. }
  1120. .row {
  1121. border-bottom: 1px solid #EEEEEE;
  1122. padding-bottom: 28rpx;
  1123. margin-top: 26rpx;
  1124. .color {
  1125. // background: blue;
  1126. width: 340rpx;
  1127. }
  1128. }
  1129. }
  1130. .input-ckg {
  1131. height: 86rpx;
  1132. margin-top: 0 !important;
  1133. padding-bottom: 0 !important;
  1134. .u-input {
  1135. height: 100%;
  1136. background: #F7F8FA;
  1137. padding-left: 10rpx !important;
  1138. padding-right: 85rpx !important;
  1139. }
  1140. .star {
  1141. display: flex;
  1142. align-items: center;
  1143. margin: 0 10rpx;
  1144. }
  1145. .input-positon {
  1146. position: relative;
  1147. }
  1148. .position-right {
  1149. position: absolute;
  1150. right: 20rpx;
  1151. top: 0;
  1152. width: 60rpx;
  1153. height: 50rpx;
  1154. bottom: 0;
  1155. margin: auto;
  1156. }
  1157. }
  1158. .picture {
  1159. margin-top: 20rpx;
  1160. background: #F5F6FA;
  1161. width: 212rpx;
  1162. height: 212rpx;
  1163. border-radius: 20rpx;
  1164. display: flex;
  1165. flex-direction: column;
  1166. justify-content: center;
  1167. align-items: center;
  1168. color: #6A7282;
  1169. }
  1170. .add-car {
  1171. background: #FFFFFF;
  1172. margin: 20rpx 50rpx;
  1173. border-radius: 50rpx;
  1174. display: flex;
  1175. justify-content: center;
  1176. align-items: center;
  1177. padding: 20rpx 0;
  1178. .icon {
  1179. margin-right: 20rpx;
  1180. }
  1181. .car-text {
  1182. font-size: 36rpx;
  1183. font-weight: 700;
  1184. color: #2772FB;
  1185. }
  1186. }
  1187. .carlist-item {
  1188. margin-top: 20rpx;
  1189. padding: 0 20rpx 20rpx 20rpx;
  1190. background: white;
  1191. border-radius: 10rpx;
  1192. position: relative;
  1193. .del-car {
  1194. position: absolute;
  1195. top: 0;
  1196. right: 0;
  1197. width: 80rpx;
  1198. height: 80rpx;
  1199. }
  1200. }
  1201. .content2,
  1202. .content3 {
  1203. .del-bank {
  1204. position: absolute;
  1205. top: 0;
  1206. right: 0;
  1207. width: 80rpx;
  1208. height: 80rpx;
  1209. }
  1210. .picture {
  1211. width: 100%;
  1212. height: 440rpx;
  1213. // background: red;
  1214. position: relative;
  1215. .text {
  1216. margin-top: 20rpx;
  1217. }
  1218. }
  1219. .picture1 {
  1220. background: url(../../static/images/mine/zm.png);
  1221. background-size: 100% 100%;
  1222. }
  1223. .picture2 {
  1224. background: url(../../static/images/mine/gh.png);
  1225. background-size: 100% 100%;
  1226. }
  1227. .picture3 {
  1228. background: url(../../static/images/mine/yhkzm.png);
  1229. background-size: 100% 100%;
  1230. }
  1231. .xj-image {
  1232. width: 100rpx;
  1233. height: 100rpx;
  1234. }
  1235. .title {
  1236. color: #999999;
  1237. margin: 20rpx 0;
  1238. }
  1239. }
  1240. .content3 {
  1241. position: relative;
  1242. background: white;
  1243. margin: 20rpx 0 0 0;
  1244. border-radius: 10rpx;
  1245. padding: 20rpx;
  1246. .khzh-styel {
  1247. // width: 350rpx;
  1248. }
  1249. .type {
  1250. background: #2772FB;
  1251. border-radius: 10rpx;
  1252. color: white;
  1253. box-sizing: border-box;
  1254. padding: 4rpx 10rpx;
  1255. font-size: 26rpx;
  1256. display: flex;
  1257. margin-left: 26rpx;
  1258. justify-content: center;
  1259. align-items: center;
  1260. }
  1261. .select-bankzh {
  1262. width: 230rpx;
  1263. // height: 48rpx;
  1264. }
  1265. }
  1266. .content4 {
  1267. display: flex;
  1268. justify-content: center;
  1269. background: white;
  1270. padding: 40rpx 20rpx 50rpx 20rpx;
  1271. .next-btn {
  1272. background: #22C572;
  1273. width: 90%;
  1274. padding: 20rpx 20rpx;
  1275. text-align: center;
  1276. color: #FFFFFF;
  1277. border-radius: 50rpx;
  1278. }
  1279. }
  1280. .yzm {}
  1281. .yzm-btn {
  1282. background: #2772FB;
  1283. color: white;
  1284. height: 60rpx;
  1285. }
  1286. .preview-card-img {
  1287. /deep/uni-image>div,
  1288. uni-image>img {
  1289. // transform: scale(1.5) rotate(-90deg);
  1290. }
  1291. }
  1292. .del-card {
  1293. position: absolute;
  1294. top: -10rpx;
  1295. right: -6rpx;
  1296. width: 80rpx;
  1297. height: 80rpx;
  1298. z-index: 9;
  1299. }
  1300. /deep/.u-radio-group--row {
  1301. justify-content: flex-end;
  1302. }
  1303. /deep/.u-textarea {
  1304. padding: 9px 0;
  1305. }
  1306. /deep/.u-textarea__field {
  1307. color: #000;
  1308. text-align: right;
  1309. }
  1310. </style>