driverCertification.vue 39 KB

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