driverCertification.vue 38 KB

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