driverCertification.vue 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428
  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">
  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" v-if="!isShowManualInput">
  231. <u--input class="select-bankzh" placeholder="选择开户支行" inputAlign='right' border="none"
  232. v-model="item.bankDepositBranch">
  233. </u--input>
  234. <!-- <view class="select-bankzh point" @click="selectZhbank">
  235. {{item.bankDepositBranch?item.bankDepositBranch:'选择开户支行'}}
  236. </view> -->
  237. <view @click="manualInput" class="type">手动输入</view>
  238. </view>
  239. </view>
  240. <view class="flex row flex-space-between">
  241. <view class="left-text">收款人</view>
  242. <view class="flex">
  243. <u--input placeholder="自动获取,不可编辑" inputAlign='right' border="none" v-model="item.payeeName" disabled>
  244. </u--input>
  245. </view>
  246. </view>
  247. <u-picker :show="isShowBank" :columns="bankType[index]" :closeOnClickOverlay='true' @close='zhBankClose'
  248. @cancel='zhBankClose' @confirm='confirmBank'></u-picker>
  249. </u-picker>
  250. </view>
  251. <!-- <view @click="addBankNumber(dataDetails.hyDriverPayeeInfoList)" class="add-car">
  252. <u-icon class="icon" name="plus-circle-fill" color="#2979ff" size="28"></u-icon>
  253. <view class="car-text">
  254. 添加银行卡
  255. </view>
  256. </view> -->
  257. <master-keyboard ref="keyboard" keyboardtype="car" :show="keyShow" :randomNumber="true" :newCar="false"
  258. :defaultValue="carNumber" @keyboardClick="handleClick"></master-keyboard>
  259. <u-action-sheet :actions="$helper.imgTypeList" :title="$helper.imgType" :show="isShowimgType"
  260. @select="imgTypeSelect" :closeOnClickOverlay="true" :closeOnClickAction="true"
  261. @close="isShowimgType=false">
  262. </u-action-sheet>
  263. <u-toast ref="uToast"></u-toast>
  264. </view>
  265. <view class="content4">
  266. <view class="next-btn" @click="next()">下一步</view>
  267. </view>
  268. </view>
  269. </template>
  270. <script>
  271. import keyboard from "@/components/master-keyboard/master-keyboard.vue";
  272. import permision from "@/js_sdk/wa-permission/permission.js"
  273. import upload from '@/components/upload.vue';
  274. import uploadImage from '@/components/ossutil/uploadFile.js';
  275. var _this
  276. import {
  277. mapState
  278. } from 'vuex';
  279. export default {
  280. components: {
  281. keyboard,
  282. upload
  283. },
  284. data() {
  285. return {
  286. canvasSiz: {
  287. width: 188,
  288. height: 273
  289. },
  290. tips: '',
  291. status:1,
  292. // refCode: null,
  293. seconds: 30,
  294. carModelColumns: [
  295. ['挂车', '非挂车'],
  296. ['高栏', '集装箱', '自卸车']
  297. ],
  298. carModelColumnData: [
  299. ['高栏', '集装箱', '自卸车'],
  300. ['重型仓栏']
  301. ],
  302. colorColumns: [
  303. ['黄色', '蓝色']
  304. ],
  305. carColor: false,
  306. carModel: false,
  307. radiolist1: [{
  308. name: '男',
  309. disabled: false
  310. },
  311. {
  312. name: '女',
  313. disabled: false
  314. },
  315. ],
  316. isFirstAuthentication: true,
  317. bankType: [],
  318. isShowBank: false,
  319. isShowManualInput: false,
  320. index: '',
  321. validityPeriod: [],
  322. isShowcardValidity: false,
  323. uploadType: '',
  324. isShowimgType: false,
  325. // uploadOptions1: {
  326. // "text": "上传身份证头像页",
  327. // "bgc": "https://taohaoliang.oss-cn-beijing.aliyuncs.com/app/tmp/identityup%282%29.png"
  328. // },
  329. // uploadOptions2: {
  330. // "text": "上传身份证国徽页",
  331. // "bgc": "https://taohaoliang.oss-cn-beijing.aliyuncs.com/app/tmp/identitylow%282%29.png"
  332. // },
  333. // uploadOptions3: {
  334. // "text": "上传银行卡正面",
  335. // "bgc": "https://taohaoliang.oss-cn-beijing.aliyuncs.com/app/tmp/bankup%282%29.png"
  336. // },
  337. dataDetails: {
  338. commonId: '',
  339. driverName: '',
  340. driverSex: '男',
  341. driverCall: '',
  342. driverPhone: '',
  343. numberCard: '',
  344. cardAddressUrl: '',
  345. cardBackAddressUrl: '',
  346. cardValidityDate: '',
  347. driverType: '',
  348. driverLicenseHomePage: '',
  349. driverLicenseBackPage: '',
  350. driverLicenseValidityDate: '',
  351. drivingLicenseHomePage: '',
  352. drivingLicenseBackPage: '',
  353. drivingLicenseValidityDate: '',
  354. trailerLicenseHomePage: '',
  355. trailerLicenseBackPage: '',
  356. trailerLicenseValidityDate: '',
  357. qualificationCertificate: '',
  358. qualificationCertificateValidityDate: '',
  359. operationCertificate: '',
  360. operationCertificateValidityDate: '',
  361. trailerOperationCertificate: '',
  362. trailerOperationCertificateValidityDate: '',
  363. hyDriverCarInfoList: [{
  364. carNumber: '',
  365. addressUrl: '',
  366. carNumberColour: '黄色',
  367. carType: '',
  368. carTotalWeight: '',
  369. carApprovedWeight: '',
  370. carLong: '',
  371. carWidth: '',
  372. carHeight: '',
  373. fileList1: []
  374. }],
  375. hyDriverPayeeInfoList: [{
  376. payeeAddressUrl: '',
  377. bankCard: '',
  378. bankDeposit: '',
  379. bankDepositBranch: '',
  380. payeeName: ''
  381. }],
  382. },
  383. keyShow: false,
  384. carNumber: '',
  385. action: this.$helper.ossUploadUrl,
  386. // maxSize: 50 * 1024 * 1024, //限制文件大小 50M
  387. // isAdd: true,
  388. imagesrc: null,
  389. };
  390. },
  391. onLoad() {
  392. _this = this;
  393. this.get_camera_permission()
  394. console.log(this.userInfo)
  395. //获取截止日期List数据
  396. this.validityPeriod = this.$helper.makeValidityPeriod(0)
  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) {
  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. this.index = val
  613. if (this.isShowManualInput) {
  614. if (!this.dataDetails.hyDriverPayeeInfoList[this.index].payeeAddressUrl) {
  615. this.$refs.uToast.show({
  616. type: 'error',
  617. message: "请先上传银行卡!",
  618. })
  619. return true
  620. } else if (this.dataDetails.hyDriverPayeeInfoList[this.index].payeeAddressUrl && uni.$u.test.isEmpty(
  621. this.bankType[this.index])) {
  622. this.$refs.uToast.show({
  623. type: 'error',
  624. message: "请选择手动输入开户支行!",
  625. })
  626. return true
  627. }
  628. this.isShowBank = true
  629. } else {
  630. this.isShowBank = false
  631. }
  632. this.isShowManualInput = !this.isShowManualInput
  633. },
  634. changeHandler(e) {
  635. const {
  636. columnIndex,
  637. value,
  638. values,
  639. index,
  640. picker = this.$refs.uPicker
  641. } = e
  642. // if (columnIndex === 0) {
  643. // debugger
  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(e) {
  655. console.log('confirm', e)
  656. if (e.value[0] == '长期') {
  657. if (e.value[1] || e.value[2]) {
  658. this.$refs.uToast.show({
  659. type: 'error',
  660. message: "选择长期不允许选择月日!",
  661. })
  662. return
  663. }
  664. this.dataDetails.cardValidityDate = e.value[0]
  665. } else {
  666. if (!e.value[1] || !e.value[2]) {
  667. this.$refs.uToast.show({
  668. type: 'error',
  669. message: "日期格式错误,请重新选择!",
  670. })
  671. return
  672. }
  673. var date = new Date()
  674. if (e.value[0] < date.getFullYear()) {
  675. this.$refs.uToast.show({
  676. type: 'error',
  677. message: "身份证已过期!",
  678. })
  679. return
  680. }
  681. if (e.value[0] == date.getFullYear() && Number(e.value[1]) < (date.getMonth() + 1)) {
  682. this.$refs.uToast.show({
  683. type: 'error',
  684. message: "身份证已过期!",
  685. })
  686. return
  687. }
  688. if (e.value[0] == date.getFullYear() && Number(e.value[1]) == (date.getMonth() + 1) && Number(e.value[
  689. 2]) <= (date.getDate())) {
  690. this.$refs.uToast.show({
  691. type: 'error',
  692. message: "身份证已过期!",
  693. })
  694. return
  695. }
  696. this.dataDetails.cardValidityDate = e.value[0] + '-' + e.value[1] + '-' + e.value[2]
  697. }
  698. this.isShowcardValidity = false
  699. },
  700. selectValidityPeriod() {
  701. this.isShowcardValidity = true
  702. },
  703. //设置图片
  704. setImage(e) {
  705. console.log(e);
  706. //显示在页面
  707. //this.imagesrc = e.path;
  708. if (e.dotype == 'idphoto') {
  709. _this.zjzClipper(e.path);
  710. } else if (e.dotype == 'watermark') {
  711. _this.watermark(e.path);
  712. } else {
  713. _this.savePhoto(e.path);
  714. }
  715. },
  716. //保存图片到相册,方便核查
  717. savePhoto(path) {
  718. this.imagesrc = path;
  719. // this.dataDetails.cardAddressUrl = path
  720. uploadImage(path, 'appData/',
  721. result => {
  722. // 上传成功
  723. console.log('图片地址', result)
  724. this.dataDetails.cardAddressUrl = result
  725. }
  726. )
  727. },
  728. uploadImg(type, index) {
  729. this.uploadType = type
  730. // this.isShowimgType = true
  731. // this.imgTypeSelect()
  732. this.index = index
  733. this.imgTypeSelect()
  734. },
  735. // 上传图片
  736. imgTypeSelect() {
  737. var _this = this
  738. // console.log(val)
  739. uni.chooseImage({
  740. count: 1,
  741. // sourceType: this.$helper.chooseImage.sourceType,
  742. success: function(res) {
  743. console.log(JSON.stringify(res.tempFilePaths));
  744. uploadImage('image', res.tempFilePaths[0], 'appData/',
  745. result => {
  746. // 上传成功回调函数
  747. console.log('图片地址', result)
  748. switch (_this.uploadType) {
  749. // 身份正面
  750. case 1:
  751. _this.dataDetails.cardAddressUrl = result
  752. // 识别
  753. _this.$request.baseRequest('get',
  754. '/driverInfo/personShibie', {
  755. personImg: result,
  756. flag: 1
  757. }).then(res => {
  758. if (res.data) {
  759. _this.dataDetails.cardAddress = res.data
  760. .recPersonAddr
  761. _this.dataDetails.numberCard = res.data.recPersonNo
  762. if (res.data.recPerson) {
  763. _this.dataDetails.driverName = res.data
  764. .recPerson
  765. _this.dataDetails.driverCall = res.data
  766. .recPerson.substring(0, 1)
  767. for (let i = 0; i < _this.dataDetails
  768. .hyDriverPayeeInfoList.length; i++
  769. ) { //收款人需与司机本人一致
  770. _this.dataDetails.hyDriverPayeeInfoList[i]
  771. .payeeName = res.data.recPerson
  772. }
  773. console.log()
  774. }
  775. _this.dataDetails.driverBirthday = res.data
  776. .recPersonBrithday
  777. }
  778. })
  779. .catch(res => {
  780. uni.$u.toast(res.message);
  781. });
  782. break
  783. // 身份反面
  784. case 2:
  785. _this.dataDetails.cardBackAddressUrl = result
  786. // 识别
  787. _this.$request.baseRequest('get',
  788. '/driverInfo/personShibie', {
  789. personImg: result,
  790. flag: 2
  791. }).then(res => {
  792. if (res.data.idCardValidity) {
  793. let date = res.data.idCardValidity.split("-")[1]
  794. _this.dataDetails.cardValidityDate = date.replace(
  795. '.', '-').replace('.', '-')
  796. }
  797. })
  798. .catch(res => {
  799. uni.$u.toast(res.message);
  800. });
  801. break
  802. // 银行卡
  803. case 3:
  804. _this.bankType[_this.index] = []
  805. _this.$request.baseRequest('get',
  806. '/driverInfo/bankShibie', {
  807. bankImg: result,
  808. }).then(res => {
  809. _this.dataDetails.hyDriverPayeeInfoList[_this.index]
  810. .payeeAddressUrl = result
  811. if (res.data) {
  812. if (res.data.bankNo) {
  813. _this.dataDetails.hyDriverPayeeInfoList[_this
  814. .index].bankCard = res.data.bankNo
  815. }
  816. if (res.data.bankName) {
  817. _this.dataDetails.hyDriverPayeeInfoList[_this
  818. .index].bankDeposit = res.data.bankName
  819. }
  820. // 开户支行LIst
  821. if (res.data.bankNameZhihang) {
  822. _this.bankType[_this.index].push(res.data
  823. .bankNameZhihang)
  824. }
  825. }
  826. _this.$forceUpdate()
  827. })
  828. .catch(res => {
  829. uni.$u.toast(res.message);
  830. });
  831. break;
  832. }
  833. }
  834. )
  835. }
  836. });
  837. // } else {
  838. // }
  839. // else {
  840. // switch (this.uploadType) {
  841. // // case 0:
  842. // // console.log('人车合影')
  843. // // break
  844. // case 1:
  845. // uni.$u.route('/pages/mine/camera/idcard/idcard?dotype=idcardface');
  846. // console.log('身份正面')
  847. // break
  848. // case 2:
  849. // uni.$u.route('/pages/mine/camera/idcard/idcard?dotype=badge');
  850. // console.log('身份反面')
  851. // break
  852. // case 3:
  853. // uni.$u.route('/pages/mine/camera/idcard/idcard?dotype=bank');
  854. // console.log('银行卡')
  855. // break
  856. // case 4:
  857. // }
  858. // }
  859. },
  860. //车牌号弹出键盘
  861. handleClick(e) {
  862. this.carNumber = e.value
  863. this.dataDetails.hyDriverCarInfoList[this.index].carNumber = e.value //键盘输入值
  864. },
  865. //车牌号弹出键盘
  866. handleShowKeyboard(index) {
  867. if (this.dataDetails.hyDriverCarInfoList[index].carNumber == '') {
  868. this.carNumber = ''
  869. } else {
  870. this.carNumber = this.dataDetails.hyDriverCarInfoList[index].carNumber
  871. }
  872. if (this.$refs.keyboard.open) {
  873. this.$refs.keyboard.open(false) //true 键盘显示 false 键盘隐藏
  874. } else {
  875. this.$refs.keyboard[0].open(false)
  876. }
  877. this.index = index
  878. if (this.$refs.keyboard.open) {
  879. this.$refs.keyboard.open(true) //true 键盘显示 false 键盘隐藏
  880. } else {
  881. this.$refs.keyboard[0].open(true)
  882. }
  883. },
  884. addCarNumber(val) {
  885. val.push({
  886. carNumber: '',
  887. addressUrl: '',
  888. carNumberColour: '',
  889. carType: '',
  890. carTotalWeight: '',
  891. carApprovedWeight: '',
  892. carLong: '',
  893. carWidth: '',
  894. carHeight: '',
  895. fileList1: []
  896. })
  897. },
  898. delCarNumber(val, index) {
  899. if (val.length > 1) {
  900. val.splice(index, 1)
  901. this.$forceUpdate()
  902. } else {
  903. let params = {
  904. type: 'error',
  905. message: "至少保留一个车牌号!",
  906. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/success.png'
  907. }
  908. this.$refs.uToast.show({
  909. ...params
  910. })
  911. }
  912. },
  913. addBankNumber(val) {
  914. val.push({
  915. payeeAddressUrl: '',
  916. bankCard: '',
  917. bankDeposit: '',
  918. bankDepositBranch: '',
  919. payeeName: this.dataDetails.driverName ? this.dataDetails.driverName : ""
  920. })
  921. },
  922. delBankNumber(val, index) {
  923. if (val.length > 1) {
  924. val.splice(index, 1)
  925. this.$forceUpdate()
  926. } else {
  927. let params = {
  928. type: 'error',
  929. message: "至少保留一张银行卡!",
  930. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/success.png'
  931. }
  932. this.$refs.uToast.show({
  933. ...params
  934. })
  935. }
  936. },
  937. next(val) {
  938. if (this.validate()) return
  939. for (let i = 0; i < this.dataDetails.hyDriverPayeeInfoList.length; i++) {
  940. if (this.dataDetails.hyDriverPayeeInfoList[i].payeeName != this.dataDetails.driverName) {
  941. this.$refs.uToast.show({
  942. type: 'error',
  943. message: "收款人需与司机本人一致!",
  944. })
  945. return
  946. } else {
  947. // 银行卡验证
  948. this.$request.baseRequest('get', '/driverPayeeInfo/bankCradShibie', {
  949. name: this.dataDetails.hyDriverPayeeInfoList[i].payeeName,
  950. idCard: this.dataDetails.numberCard,
  951. accountNo: this.dataDetails.hyDriverPayeeInfoList[i].bankCard
  952. }).then(
  953. res => {
  954. if (res.data.distinguishNum != "01") { //不等于01 证明银行卡验证不通过
  955. // this.payCheck = false //验证开关
  956. uni.$u.toast(res.data.distinguish);
  957. } else {
  958. uni.$u.route('/pages/mine/driverCertificationNext', {
  959. data: JSON.stringify(this.dataDetails),
  960. });
  961. }
  962. })
  963. }
  964. }
  965. // if (this.payCheck) {
  966. // uni.$u.route('/pages/mine/driverCertificationNext', {
  967. // data: JSON.stringify(this.dataDetails),
  968. // });
  969. // }
  970. },
  971. validate() {
  972. // true 为校验不通过
  973. if (uni.$u.test.isEmpty(this.dataDetails.driverName)) {
  974. this.$refs.uToast.show({
  975. type: 'error',
  976. message: "司机姓名不能为空!",
  977. })
  978. return true
  979. }
  980. if (!uni.$u.test.chinese(this.dataDetails.driverName)) {
  981. this.$refs.uToast.show({
  982. type: 'error',
  983. message: "姓名为汉字!",
  984. })
  985. return true
  986. }
  987. if (uni.$u.test.isEmpty(this.dataDetails.driverCall)) {
  988. this.$refs.uToast.show({
  989. type: 'error',
  990. message: "司机称呼不能为空!",
  991. })
  992. return true
  993. }
  994. if (!uni.$u.test.chinese(this.dataDetails.driverCall)) {
  995. this.$refs.uToast.show({
  996. type: 'error',
  997. message: "称呼为汉字!",
  998. })
  999. return true
  1000. }
  1001. if (uni.$u.test.isEmpty(this.dataDetails.driverPhone)) {
  1002. this.$refs.uToast.show({
  1003. type: 'error',
  1004. message: "联系电话不能为空!",
  1005. })
  1006. return true
  1007. }
  1008. if (!uni.$u.test.mobile(this.dataDetails.driverPhone)) {
  1009. this.$refs.uToast.show({
  1010. type: 'error',
  1011. message: "电话号码格式错误!",
  1012. })
  1013. return true
  1014. }
  1015. // for (let i = 0; i < this.dataDetails.hyDriverCarInfoList.length; i++) {
  1016. // let _item = this.dataDetails.hyDriverCarInfoList[i]
  1017. // if (uni.$u.test.isEmpty(_item.carNumber)) {
  1018. // this.$refs.uToast.show({
  1019. // type: 'error',
  1020. // message: "车牌号不能为空!",
  1021. // })
  1022. // return true
  1023. // }
  1024. // if (uni.$u.test.isEmpty(_item.fileList1)) {
  1025. // this.$refs.uToast.show({
  1026. // type: 'error',
  1027. // message: "人车合影不能为空!",
  1028. // })
  1029. // return true
  1030. // }
  1031. // }
  1032. if (uni.$u.test.isEmpty(this.dataDetails.cardAddressUrl)) {
  1033. this.$refs.uToast.show({
  1034. type: 'error',
  1035. message: "身份证人像页不能为空!",
  1036. })
  1037. return true
  1038. }
  1039. if (uni.$u.test.isEmpty(this.dataDetails.cardBackAddressUrl)) {
  1040. this.$refs.uToast.show({
  1041. type: 'error',
  1042. message: "身份证国徽页不能为空!",
  1043. })
  1044. return true
  1045. }
  1046. if (uni.$u.test.isEmpty(this.dataDetails.cardValidityDate)) {
  1047. this.$refs.uToast.show({
  1048. type: 'error',
  1049. message: "身份证人有效截止日期不能为空!",
  1050. })
  1051. return true
  1052. }
  1053. if (uni.$u.test.isEmpty(this.dataDetails.cardAddress)) {
  1054. this.$refs.uToast.show({
  1055. type: 'error',
  1056. message: "身份证地址为空!",
  1057. })
  1058. return true
  1059. }
  1060. for (let i = 0; i < this.dataDetails.hyDriverPayeeInfoList.length; i++) {
  1061. let _item = this.dataDetails.hyDriverPayeeInfoList[i]
  1062. if (uni.$u.test.isEmpty(_item.payeeAddressUrl)) {
  1063. this.$refs.uToast.show({
  1064. type: 'error',
  1065. message: "银行卡不能为空!",
  1066. })
  1067. return true
  1068. }
  1069. if (uni.$u.test.isEmpty(_item.bankCard)) {
  1070. this.$refs.uToast.show({
  1071. type: 'error',
  1072. message: "银行卡号码不能为空!",
  1073. })
  1074. return true
  1075. }
  1076. if (uni.$u.test.isEmpty(_item.bankDeposit)) {
  1077. this.$refs.uToast.show({
  1078. type: 'error',
  1079. message: "开户行不能为空!",
  1080. })
  1081. return true
  1082. }
  1083. if (uni.$u.test.isEmpty(_item.bankDepositBranch)) {
  1084. this.$refs.uToast.show({
  1085. type: 'error',
  1086. message: "开户支行不能为空!",
  1087. })
  1088. return true
  1089. }
  1090. if (uni.$u.test.isEmpty(_item.payeeName)) {
  1091. this.$refs.uToast.show({
  1092. type: 'error',
  1093. message: "收款人姓名不能为空!",
  1094. })
  1095. return true
  1096. }
  1097. }
  1098. return false
  1099. }
  1100. },
  1101. };
  1102. </script>
  1103. <style scoped lang="scss">
  1104. /deep/.u-radio {
  1105. margin-bottom: 0 !important;
  1106. }
  1107. .top-head {
  1108. background: #2772FB;
  1109. height: 80rpx;
  1110. width: 100%;
  1111. }
  1112. .container {
  1113. position: relative;
  1114. top: -60rpx;
  1115. margin: 0 20rpx;
  1116. }
  1117. .row4-img {
  1118. width: 32rpx;
  1119. height: 32rpx;
  1120. }
  1121. .content1,
  1122. .content2,
  1123. .content3 {
  1124. .left-text {
  1125. // background: red;
  1126. width: 290rpx;
  1127. color: #333333;
  1128. display: flex;
  1129. align-items: center;
  1130. }
  1131. .row {
  1132. border-bottom: 1px solid #EEEEEE;
  1133. padding-bottom: 28rpx;
  1134. margin-top: 26rpx;
  1135. .ch-style {}
  1136. }
  1137. .row-ch {
  1138. padding-right: 180rpx;
  1139. box-sizing: border-box;
  1140. // background-color: red;
  1141. }
  1142. }
  1143. .content1-car {
  1144. margin-top: 20rpx;
  1145. .left-text {
  1146. // background: red;
  1147. width: 290rpx;
  1148. color: #333333;
  1149. display: flex;
  1150. align-items: center;
  1151. }
  1152. .row {
  1153. border-bottom: 1px solid #EEEEEE;
  1154. padding-bottom: 28rpx;
  1155. margin-top: 26rpx;
  1156. .color {
  1157. // background: blue;
  1158. width: 340rpx;
  1159. }
  1160. }
  1161. }
  1162. .input-ckg {
  1163. height: 86rpx;
  1164. margin-top: 0 !important;
  1165. padding-bottom: 0 !important;
  1166. .u-input {
  1167. height: 100%;
  1168. background: #F7F8FA;
  1169. padding-left: 10rpx !important;
  1170. padding-right: 85rpx !important;
  1171. }
  1172. .star {
  1173. display: flex;
  1174. align-items: center;
  1175. margin: 0 10rpx;
  1176. }
  1177. .input-positon {
  1178. position: relative;
  1179. }
  1180. .position-right {
  1181. position: absolute;
  1182. right: 20rpx;
  1183. top: 0;
  1184. width: 60rpx;
  1185. height: 50rpx;
  1186. bottom: 0;
  1187. margin: auto;
  1188. }
  1189. }
  1190. .picture {
  1191. margin-top: 20rpx;
  1192. background: #F5F6FA;
  1193. width: 212rpx;
  1194. height: 212rpx;
  1195. border-radius: 20rpx;
  1196. display: flex;
  1197. flex-direction: column;
  1198. justify-content: center;
  1199. align-items: center;
  1200. color: #6A7282;
  1201. }
  1202. .add-car {
  1203. background: #FFFFFF;
  1204. margin: 20rpx 50rpx;
  1205. border-radius: 50rpx;
  1206. display: flex;
  1207. justify-content: center;
  1208. align-items: center;
  1209. padding: 20rpx 0;
  1210. .icon {
  1211. margin-right: 20rpx;
  1212. }
  1213. .car-text {
  1214. font-size: 36rpx;
  1215. font-weight: 700;
  1216. color: #2772FB;
  1217. }
  1218. }
  1219. .carlist-item {
  1220. margin-top: 20rpx;
  1221. padding: 0 20rpx 20rpx 20rpx;
  1222. background: white;
  1223. border-radius: 10rpx;
  1224. position: relative;
  1225. .del-car {
  1226. position: absolute;
  1227. top: 0;
  1228. right: 0;
  1229. width: 80rpx;
  1230. height: 80rpx;
  1231. }
  1232. }
  1233. .content2,
  1234. .content3 {
  1235. .del-bank {
  1236. position: absolute;
  1237. top: 0;
  1238. right: 0;
  1239. width: 80rpx;
  1240. height: 80rpx;
  1241. }
  1242. .picture {
  1243. width: 100%;
  1244. height: 440rpx;
  1245. // background: red;
  1246. position: relative;
  1247. .text {
  1248. margin-top: 20rpx;
  1249. }
  1250. }
  1251. .picture1 {
  1252. background: url(../../static/images/mine/zm.png);
  1253. background-size: 100% 100%;
  1254. }
  1255. .picture2 {
  1256. background: url(../../static/images/mine/gh.png);
  1257. background-size: 100% 100%;
  1258. }
  1259. .picture3 {
  1260. background: url(../../static/images/mine/yhkzm.png);
  1261. background-size: 100% 100%;
  1262. }
  1263. .xj-image {
  1264. width: 100rpx;
  1265. height: 100rpx;
  1266. }
  1267. .title {
  1268. color: #999999;
  1269. margin: 20rpx 0;
  1270. }
  1271. }
  1272. .content3 {
  1273. position: relative;
  1274. background: white;
  1275. margin: 20rpx 0 0 0;
  1276. border-radius: 10rpx;
  1277. padding: 20rpx;
  1278. .khzh-styel {
  1279. // width: 350rpx;
  1280. }
  1281. .type {
  1282. background: #2772FB;
  1283. border-radius: 10rpx;
  1284. color: white;
  1285. box-sizing: border-box;
  1286. padding: 4rpx 10rpx;
  1287. font-size: 26rpx;
  1288. display: flex;
  1289. margin-left: 26rpx;
  1290. justify-content: center;
  1291. align-items: center;
  1292. }
  1293. .select-bankzh {
  1294. width: 230rpx;
  1295. height: 48rpx;
  1296. }
  1297. }
  1298. .content4 {
  1299. display: flex;
  1300. justify-content: center;
  1301. background: white;
  1302. padding: 40rpx 20rpx 50rpx 20rpx;
  1303. .next-btn {
  1304. background: #22C572;
  1305. width: 90%;
  1306. padding: 20rpx 20rpx;
  1307. text-align: center;
  1308. color: #FFFFFF;
  1309. border-radius: 50rpx;
  1310. }
  1311. }
  1312. .yzm {}
  1313. .yzm-btn {
  1314. background: #2772FB;
  1315. color: white;
  1316. height: 60rpx;
  1317. }
  1318. .preview-card-img {
  1319. /deep/uni-image>div,
  1320. uni-image>img {
  1321. // transform: scale(1.5) rotate(-90deg);
  1322. }
  1323. }
  1324. .del-card {
  1325. position: absolute;
  1326. top: -10rpx;
  1327. right: -6rpx;
  1328. width: 80rpx;
  1329. height: 80rpx;
  1330. z-index: 9;
  1331. }
  1332. /deep/.u-radio-group--row {
  1333. justify-content: flex-end;
  1334. }
  1335. /deep/.u-textarea {
  1336. padding: 9px 0;
  1337. }
  1338. /deep/.u-textarea__field {
  1339. color: #000;
  1340. text-align: right;
  1341. }
  1342. </style>