driverCertification.vue 38 KB

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