driverCertification.vue 39 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400
  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" maxlength="19">
  214. </u--input>
  215. </view>
  216. </view>
  217. <view class="flex row">
  218. <view class="left-text">开户行</view>
  219. <u--input placeholder="输入开户行" inputAlign='right' border="none" v-model="item.bankDeposit">
  220. </u--input>
  221. </view>
  222. <view class="flex row">
  223. <view class="left-text khzh-styel">开户支行</view>
  224. <view class="flex" v-if="isShowManualInput">
  225. <u--input class="select-bankzh" placeholder="输入开户支行" inputAlign='right' border="none"
  226. v-model="item.bankDepositBranch">
  227. </u--input>
  228. <view @click="manualInput(index)" class="type">选择支行</view>
  229. </view>
  230. <view class="flex align-center" v-if="!isShowManualInput">
  231. <!-- <u--input class="select-bankzh" placeholder="选择开户支行" inputAlign='right' border="none"
  232. v-model="item.bankDepositBranch">
  233. </u--input> -->
  234. <view
  235. :style="{'color':item.bankDepositBranch?'#000':'#C6CBD5'}" style='font-size:15px;text-align:right;' class="select-bankzh point" @click="selectZhbank">
  236. {{item.bankDepositBranch?item.bankDepositBranch:'选择开户支行'}}
  237. </view>
  238. <view @click="manualInput" class="type">手动输入</view>
  239. </view>
  240. </view>
  241. <view class="flex row flex-space-between">
  242. <view class="left-text">收款人</view>
  243. <view class="flex">
  244. <u--input placeholder="自动获取,不可编辑" inputAlign='right' border="none" v-model="item.payeeName" readonly>
  245. </u--input>
  246. </view>
  247. </view>
  248. <u-picker :show="isShowBank" :columns="bankType[index]" :closeOnClickOverlay='true' @close='zhBankClose'
  249. @cancel='zhBankClose' @confirm='confirmBank'></u-picker>
  250. </u-picker>
  251. </view>
  252. <!-- <view @click="addBankNumber(dataDetails.hyDriverPayeeInfoList)" class="add-car">
  253. <u-icon class="icon" name="plus-circle-fill" color="#2979ff" size="28"></u-icon>
  254. <view class="car-text">
  255. 添加银行卡
  256. </view>
  257. </view> -->
  258. <master-keyboard ref="keyboard" keyboardtype="car" :show="keyShow" :randomNumber="true" :newCar="false"
  259. :defaultValue="carNumber" @keyboardClick="handleClick"></master-keyboard>
  260. <u-action-sheet :actions="$helper.imgTypeList" :title="$helper.imgType" :show="isShowimgType"
  261. @select="imgTypeSelect" :closeOnClickOverlay="true" :closeOnClickAction="true"
  262. @close="isShowimgType=false">
  263. </u-action-sheet>
  264. <u-toast ref="uToast"></u-toast>
  265. </view>
  266. <view class="content4">
  267. <view class="next-btn" @click="next()">下一步</view>
  268. </view>
  269. </view>
  270. </template>
  271. <script>
  272. import keyboard from "@/components/master-keyboard/master-keyboard.vue";
  273. import permision from "@/js_sdk/wa-permission/permission.js"
  274. import upload from '@/components/upload.vue';
  275. import uploadImage from '@/components/ossutil/uploadFile.js';
  276. var _this
  277. import {
  278. mapState
  279. } from 'vuex';
  280. export default {
  281. components: {
  282. keyboard,
  283. upload
  284. },
  285. data() {
  286. return {
  287. canvasSiz: {
  288. width: 188,
  289. height: 273
  290. },
  291. tips: '',
  292. status:1,
  293. // refCode: null,
  294. seconds: 30,
  295. carModelColumns: [
  296. ['挂车', '非挂车'],
  297. ['高栏', '集装箱', '自卸车']
  298. ],
  299. carModelColumnData: [
  300. ['高栏', '集装箱', '自卸车'],
  301. ['重型仓栏']
  302. ],
  303. colorColumns: [
  304. ['黄色', '蓝色']
  305. ],
  306. carColor: false,
  307. carModel: false,
  308. radiolist1: [{
  309. name: '男',
  310. disabled: false
  311. },
  312. {
  313. name: '女',
  314. disabled: false
  315. },
  316. ],
  317. isFirstAuthentication: true,
  318. bankType: [],
  319. isShowBank: false,
  320. isShowManualInput: false,
  321. index: '',
  322. validityPeriod: [],
  323. isShowcardValidity: false,
  324. uploadType: '',
  325. isShowimgType: false,
  326. // uploadOptions1: {
  327. // "text": "上传身份证头像页",
  328. // "bgc": "https://taohaoliang.oss-cn-beijing.aliyuncs.com/app/tmp/identityup%282%29.png"
  329. // },
  330. // uploadOptions2: {
  331. // "text": "上传身份证国徽页",
  332. // "bgc": "https://taohaoliang.oss-cn-beijing.aliyuncs.com/app/tmp/identitylow%282%29.png"
  333. // },
  334. // uploadOptions3: {
  335. // "text": "上传银行卡正面",
  336. // "bgc": "https://taohaoliang.oss-cn-beijing.aliyuncs.com/app/tmp/bankup%282%29.png"
  337. // },
  338. dataDetails: {
  339. commonId: '',
  340. driverName: '',
  341. driverSex: '男',
  342. driverCall: '',
  343. driverPhone: '',
  344. numberCard: '',
  345. cardAddressUrl: '',
  346. cardBackAddressUrl: '',
  347. cardValidityDate: '',
  348. driverType: '',
  349. driverLicenseHomePage: '',
  350. driverLicenseBackPage: '',
  351. driverLicenseValidityDate: '',
  352. drivingLicenseHomePage: '',
  353. drivingLicenseBackPage: '',
  354. drivingLicenseValidityDate: '',
  355. trailerLicenseHomePage: '',
  356. trailerLicenseBackPage: '',
  357. trailerLicenseValidityDate: '',
  358. qualificationCertificate: '',
  359. qualificationCertificateValidityDate: '',
  360. operationCertificate: '',
  361. operationCertificateValidityDate: '',
  362. trailerOperationCertificate: '',
  363. trailerOperationCertificateValidityDate: '',
  364. hyDriverCarInfoList: [{
  365. carNumber: '',
  366. addressUrl: '',
  367. carNumberColour: '黄色',
  368. carType: '',
  369. carTotalWeight: '',
  370. carApprovedWeight: '',
  371. carLong: '',
  372. carWidth: '',
  373. carHeight: '',
  374. fileList1: []
  375. }],
  376. hyDriverPayeeInfoList: [{
  377. payeeAddressUrl: '',
  378. bankCard: '',
  379. bankDeposit: '',
  380. bankDepositBranch: '',
  381. payeeName: '',
  382. }],
  383. },
  384. keyShow: false,
  385. carNumber: '',
  386. action: this.$helper.ossUploadUrl,
  387. // maxSize: 50 * 1024 * 1024, //限制文件大小 50M
  388. // isAdd: true,
  389. imagesrc: null,
  390. };
  391. },
  392. onLoad() {
  393. _this = this;
  394. this.get_camera_permission()
  395. console.log(this.userInfo)
  396. //获取截止日期List数据
  397. this.dataDetails.driverPhone = this.userInfo.phone
  398. this.dataDetails.commonId = this.userInfo.id
  399. //获取认证状态
  400. this.getAuthenticationStatus()
  401. },
  402. computed: {
  403. ...mapState(['hasLogin', 'userInfo']),
  404. },
  405. methods: {
  406. async get_camera_permission() {
  407. var photol = await permision.requestAndroidPermission("android.permission.CAMERA")
  408. if (photol == false) {
  409. uni.showModal({
  410. title: '提示',
  411. content: '您已经关闭相册权限,去设置',
  412. success: function(res) {
  413. if (res.confirm) {
  414. permision.gotoAppPermissionSetting()
  415. // plus.runtime.openURL("app-settings:");
  416. } else if (res.cancel) {
  417. console.log('用户点击取消');
  418. }
  419. }
  420. });
  421. }
  422. },
  423. delCard(type) {
  424. switch (type) {
  425. // 人车合影
  426. // case 0:
  427. // //赋值上传图片图片路径
  428. // _this.dataDetails.driverCarInfoList[_this.index].addressUrl =
  429. // result
  430. // break
  431. // 身份正面
  432. case 1:
  433. _this.dataDetails.cardAddressUrl = ''
  434. break
  435. // 身份反面
  436. case 2:
  437. _this.dataDetails.cardBackAddressUrl = ''
  438. break
  439. // 银行卡
  440. case 3:
  441. _this.dataDetails.hyDriverPayeeInfoList[_this.index].payeeAddressUrl = ''
  442. break;
  443. }
  444. },
  445. // 删除图片
  446. deletePic(event, val) {
  447. val[`fileList${event.name}`].splice(event.index, 1)
  448. },
  449. // 新增图片
  450. async afterRead(event, val) {
  451. // 当设置 mutiple 为 true 时, file 为数组格式,否则为对象格式
  452. let lists = [].concat(event.file)
  453. let fileListLen = val[`fileList${event.name}`].length
  454. lists.map((item) => {
  455. val[`fileList${event.name}`].push({
  456. ...item,
  457. status: 'uploading',
  458. message: '上传中'
  459. })
  460. })
  461. for (let i = 0; i < lists.length; i++) {
  462. const result = await this.uploadFilePromise(lists[i].url, val)
  463. let item = val[`fileList${event.name}`][fileListLen]
  464. val[`fileList${event.name}`].splice(fileListLen, 1, Object.assign(item, {
  465. status: 'success',
  466. message: '',
  467. url: result
  468. }))
  469. fileListLen++
  470. }
  471. },
  472. uploadFilePromise(url, val) {
  473. uploadImage(url, 'appData/',
  474. result => {
  475. // 上传成功回调函数
  476. console.log('图片地址', result)
  477. val.addressUrl += result
  478. }
  479. )
  480. // return new Promise((resolve, reject) => {
  481. // let a = uploadImage()
  482. // let a = uni.uploadFile({
  483. // url: 'http://192.168.2.21:7001/upload', // 仅为示例,非真实的接口地址
  484. // filePath: url,
  485. // name: 'file',
  486. // formData: {
  487. // user: 'test'
  488. // },
  489. // success: (res) => {
  490. // setTimeout(() => {
  491. // resolve(res.data.data)
  492. // }, 1000)
  493. // }
  494. // });
  495. // })
  496. },
  497. // 车型切换
  498. changeCarModel(e) {
  499. const {
  500. columnIndex,
  501. index,
  502. // 微信小程序无法将picker实例传出来,只能通过ref操作
  503. picker = this.$refs.carTypePicker
  504. } = e
  505. if (columnIndex === 0) {
  506. // 模拟网络请求
  507. picker.setColumnValues(1, this.carModelColumnData[index])
  508. }
  509. },
  510. codeChange(text) {
  511. this.tips = text;
  512. },
  513. getCode() {
  514. if (/^0?1[3|4|5|6|7|8][0-9]\d{8}$/.test(this.dataDetails.driverPhone)) {
  515. if (this.$refs.uCode.canGetCode) {
  516. // 模拟向后端请求验证码
  517. uni.showLoading({
  518. title: '正在获取验证码'
  519. })
  520. _this.$request.baseRequest('get', '/commonUser/sendVerifyCode', {
  521. phone: this.dataDetails.driverPhone
  522. }).then(res => {
  523. uni.hideLoading();
  524. // 这里此提示会被this.start()方法中的提示覆盖
  525. uni.$u.toast('验证码已发送');
  526. // 通知验证码组件内部开始倒计时
  527. this.$refs.uCode.start();
  528. })
  529. .catch(res => {
  530. uni.$u.toast(res.message);
  531. });
  532. // setTimeout(() => {
  533. // }, 2000);
  534. } else {
  535. uni.$u.toast('倒计时结束后再发送');
  536. }
  537. } else {
  538. uni.$u.toast('请输入正确手机号');
  539. }
  540. },
  541. end() {
  542. // uni.$u.toast('倒计时结束');
  543. },
  544. start() {
  545. // uni.$u.toast('倒计时开始');
  546. },
  547. // 确认颜色
  548. confirmColor(val, val1) {
  549. console.log(val)
  550. val1.carNumberColour = val.value[0]
  551. this.carColor = false
  552. },
  553. colorClose() {
  554. this.carColor = false
  555. },
  556. //选择车牌号颜色
  557. selectNoColor() {
  558. this.carColor = true
  559. },
  560. confirmCarModel(val, val1) {
  561. val1.carType = val.value[0] + ' ' + val.value[1]
  562. this.carModel = false
  563. },
  564. carModelClose() {
  565. this.carModel = false
  566. },
  567. selectCarModel() {
  568. this.carModel = true
  569. },
  570. // 性别切换
  571. radioChange(n) {
  572. console.log('radioChange', n);
  573. this.dataDetails.driverSex = n
  574. },
  575. //判断是否是初次认证
  576. getAuthenticationStatus() {
  577. this.$request.baseRequest('', '/driverInfo/firstAuthentication', {
  578. driverPhone: this.userInfo.phone,
  579. }).then(res => {
  580. if (res.data.passOnce==1) {
  581. this.isFirstAuthentication = false
  582. } else {
  583. this.isFirstAuthentication = true
  584. }
  585. //
  586. //
  587. })
  588. .catch(res => {
  589. uni.$u.toast(res.message);
  590. });
  591. },
  592. zhBankClose() {
  593. this.isShowBank = false
  594. },
  595. // 选择支行
  596. selectZhbank() {
  597. if (uni.$u.test.isEmpty(this.bankType[this.index])) {
  598. this.$refs.uToast.show({
  599. type: 'error',
  600. message: "请选择手动输入!",
  601. })
  602. return true
  603. }
  604. this.isShowBank = true
  605. },
  606. confirmBank(e) {
  607. console.log(e)
  608. this.dataDetails.hyDriverPayeeInfoList[this.index].bankDepositBranch = e.value[0]
  609. this.isShowBank = false
  610. },
  611. manualInput(val) {
  612. console.log(1111111111111)
  613. this.index = val
  614. if (this.isShowManualInput) {
  615. if (!this.dataDetails.hyDriverPayeeInfoList[this.index].payeeAddressUrl) {
  616. this.$refs.uToast.show({
  617. type: 'error',
  618. message: "请先上传银行卡!",
  619. })
  620. return true
  621. } else if (this.dataDetails.hyDriverPayeeInfoList[this.index].payeeAddressUrl && uni.$u.test.isEmpty(
  622. this.bankType[this.index])) {
  623. this.$refs.uToast.show({
  624. type: 'error',
  625. message: "请选择手动输入开户支行!",
  626. })
  627. return true
  628. }
  629. this.isShowBank = true
  630. } else {
  631. this.isShowBank = false
  632. }
  633. this.isShowManualInput = !this.isShowManualInput
  634. },
  635. changeHandler(e) {
  636. const {
  637. columnIndex,
  638. value,
  639. values,
  640. index,
  641. picker = this.$refs.uPicker
  642. } = e
  643. // if (columnIndex === 0) {
  644. // debugger
  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. console.log(index,"sdfjkahfi")
  689. this.uploadType = type
  690. // this.isShowimgType = true
  691. // this.imgTypeSelect()
  692. this.index = index
  693. this.dataDetails.hyDriverPayeeInfoList[index].bankDepositBranch=''
  694. this.imgTypeSelect()
  695. },
  696. // 上传图片
  697. imgTypeSelect() {
  698. var _this = this
  699. // console.log(val)
  700. uni.chooseImage({
  701. count: 1,
  702. // sourceType: this.$helper.chooseImage.sourceType,
  703. success: function(res) {
  704. console.log(JSON.stringify(res.tempFilePaths));
  705. uploadImage('image', res.tempFilePaths[0], 'appData/',
  706. result => {
  707. // 上传成功回调函数
  708. console.log('图片地址', result)
  709. switch (_this.uploadType) {
  710. // 身份正面
  711. case 1:
  712. _this.dataDetails.cardAddressUrl = result
  713. // 识别
  714. _this.$request.baseRequest('get',
  715. '/driverInfo/personShibie', {
  716. personImg: result,
  717. flag: 1
  718. }).then(res => {
  719. if (res.data) {
  720. _this.dataDetails.cardAddress = res.data
  721. .recPersonAddr
  722. _this.dataDetails.numberCard = res.data.recPersonNo
  723. if(res.data.recPersonNo && res.data.recPersonNo.length == 18){ //自动获取性别
  724. let sex = res.data.recPersonNo.substr(-2,1)
  725. if(sex % 2 == 0){
  726. _this.dataDetails.driverSex = "女"
  727. }else{
  728. _this.dataDetails.driverSex = "男"
  729. }
  730. }
  731. if (res.data.recPerson) {
  732. _this.dataDetails.driverName = res.data
  733. .recPerson
  734. _this.dataDetails.driverCall = res.data
  735. .recPerson.substring(0, 1)
  736. for (let i = 0; i < _this.dataDetails
  737. .hyDriverPayeeInfoList.length; i++
  738. ) { //收款人需与司机本人一致
  739. _this.dataDetails.hyDriverPayeeInfoList[i]
  740. .payeeName = res.data.recPerson
  741. }
  742. }
  743. _this.dataDetails.driverBirthday = res.data
  744. .recPersonBrithday
  745. }
  746. })
  747. .catch(res => {
  748. uni.$u.toast(res.message);
  749. });
  750. break
  751. // 身份反面
  752. case 2:
  753. _this.dataDetails.cardBackAddressUrl = result
  754. // 识别
  755. _this.$request.baseRequest('get',
  756. '/driverInfo/personShibie', {
  757. personImg: result,
  758. flag: 2
  759. }).then(res => {
  760. if (res.data.idCardValidity) {
  761. let date = res.data.idCardValidity.split("-")[1]
  762. _this.dataDetails.cardValidityDate = date.replace(
  763. '.', '-').replace('.', '-')
  764. }
  765. })
  766. .catch(res => {
  767. uni.$u.toast(res.message);
  768. });
  769. break
  770. // 银行卡
  771. case 3:
  772. _this.bankType[_this.index] = []
  773. _this.$request.baseRequest('get',
  774. '/driverInfo/bankShibie', {
  775. bankImg: result,
  776. }).then(res => {
  777. _this.dataDetails.hyDriverPayeeInfoList[_this.index]
  778. .payeeAddressUrl = result
  779. if (res.data) {
  780. if (res.data.bankNo) {
  781. _this.dataDetails.hyDriverPayeeInfoList[_this
  782. .index].bankCard = res.data.bankNo
  783. }
  784. if (res.data.bankName) {
  785. _this.dataDetails.hyDriverPayeeInfoList[_this
  786. .index].bankDeposit = res.data.bankName
  787. }
  788. // 开户支行LIst
  789. if (res.data.bankNameZhihang) {
  790. _this.bankType[_this.index].push(res.data
  791. .bankNameZhihang)
  792. }
  793. }
  794. _this.$forceUpdate()
  795. })
  796. .catch(res => {
  797. uni.$u.toast(res.message);
  798. });
  799. break;
  800. }
  801. }
  802. )
  803. }
  804. });
  805. // } else {
  806. // }
  807. // else {
  808. // switch (this.uploadType) {
  809. // // case 0:
  810. // // console.log('人车合影')
  811. // // break
  812. // case 1:
  813. // uni.$u.route('/pages/mine/camera/idcard/idcard?dotype=idcardface');
  814. // console.log('身份正面')
  815. // break
  816. // case 2:
  817. // uni.$u.route('/pages/mine/camera/idcard/idcard?dotype=badge');
  818. // console.log('身份反面')
  819. // break
  820. // case 3:
  821. // uni.$u.route('/pages/mine/camera/idcard/idcard?dotype=bank');
  822. // console.log('银行卡')
  823. // break
  824. // case 4:
  825. // }
  826. // }
  827. },
  828. //车牌号弹出键盘
  829. handleClick(e) {
  830. this.carNumber = e.value
  831. this.dataDetails.hyDriverCarInfoList[this.index].carNumber = e.value //键盘输入值
  832. },
  833. //车牌号弹出键盘
  834. handleShowKeyboard(index) {
  835. if (this.dataDetails.hyDriverCarInfoList[index].carNumber == '') {
  836. this.carNumber = ''
  837. } else {
  838. this.carNumber = this.dataDetails.hyDriverCarInfoList[index].carNumber
  839. }
  840. if (this.$refs.keyboard.open) {
  841. this.$refs.keyboard.open(false) //true 键盘显示 false 键盘隐藏
  842. } else {
  843. this.$refs.keyboard[0].open(false)
  844. }
  845. this.index = index
  846. if (this.$refs.keyboard.open) {
  847. this.$refs.keyboard.open(true) //true 键盘显示 false 键盘隐藏
  848. } else {
  849. this.$refs.keyboard[0].open(true)
  850. }
  851. },
  852. addCarNumber(val) {
  853. val.push({
  854. carNumber: '',
  855. addressUrl: '',
  856. carNumberColour: '',
  857. carType: '',
  858. carTotalWeight: '',
  859. carApprovedWeight: '',
  860. carLong: '',
  861. carWidth: '',
  862. carHeight: '',
  863. fileList1: []
  864. })
  865. },
  866. delCarNumber(val, index) {
  867. if (val.length > 1) {
  868. val.splice(index, 1)
  869. this.$forceUpdate()
  870. } else {
  871. let params = {
  872. type: 'error',
  873. message: "至少保留一个车牌号!",
  874. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/success.png'
  875. }
  876. this.$refs.uToast.show({
  877. ...params
  878. })
  879. }
  880. },
  881. addBankNumber(val) {
  882. val.push({
  883. payeeAddressUrl: '',
  884. bankCard: '',
  885. bankDeposit: '',
  886. bankDepositBranch: '',
  887. payeeName: this.dataDetails.driverName ? this.dataDetails.driverName : ""
  888. })
  889. },
  890. delBankNumber(val, index) {
  891. if (val.length > 1) {
  892. val.splice(index, 1)
  893. this.$forceUpdate()
  894. } else {
  895. let params = {
  896. type: 'error',
  897. message: "至少保留一张银行卡!",
  898. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/success.png'
  899. }
  900. this.$refs.uToast.show({
  901. ...params
  902. })
  903. }
  904. },
  905. next(val) {
  906. if (this.validate()) return
  907. for (let i = 0; i < this.dataDetails.hyDriverPayeeInfoList.length; i++) {
  908. if (this.dataDetails.hyDriverPayeeInfoList[i].payeeName != this.dataDetails.driverName) {
  909. this.$refs.uToast.show({
  910. type: 'error',
  911. message: "收款人需与司机本人一致!",
  912. })
  913. return
  914. } else {
  915. // 银行卡验证
  916. this.$request.baseRequest('get', '/driverPayeeInfo/bankCradShibie', {
  917. name: this.dataDetails.hyDriverPayeeInfoList[i].payeeName,
  918. idCard: this.dataDetails.numberCard,
  919. accountNo: this.dataDetails.hyDriverPayeeInfoList[i].bankCard
  920. }).then(
  921. res => {
  922. if (res.data.distinguishNum != "01") { //不等于01 证明银行卡验证不通过
  923. // this.payCheck = false //验证开关
  924. // uni.$u.toast(res.data.distinguish);
  925. this.$refs.uToast.show({
  926. type: 'error',
  927. message: res.data.distinguish,
  928. duration:4000
  929. })
  930. } else {
  931. uni.$u.route('/pages/mine/driverCertificationNext', {
  932. data: JSON.stringify(this.dataDetails),
  933. });
  934. }
  935. })
  936. }
  937. }
  938. // if (this.payCheck) {
  939. // uni.$u.route('/pages/mine/driverCertificationNext', {
  940. // data: JSON.stringify(this.dataDetails),
  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: #2772FB;
  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: #2772FB;
  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: #2772FB;
  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: #2772FB;
  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>