driverCertification.vue 38 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390
  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.bankNo) {
  790. _this.dataDetails.hyDriverPayeeInfoList[_this
  791. .index].bankCard = res.data.bankNo
  792. }
  793. if (res.data.bankName) {
  794. _this.dataDetails.hyDriverPayeeInfoList[_this
  795. .index].bankDeposit = res.data.bankName
  796. }
  797. // 开户支行LIst
  798. if (res.data.bankNameZhihang) {
  799. _this.bankType[_this.index].push(res.data
  800. .bankNameZhihang)
  801. }
  802. _this.$forceUpdate()
  803. })
  804. .catch(res => {
  805. uni.$u.toast(res.message);
  806. });
  807. break;
  808. }
  809. }
  810. )
  811. }
  812. });
  813. // } else {
  814. // }
  815. // else {
  816. // switch (this.uploadType) {
  817. // // case 0:
  818. // // console.log('人车合影')
  819. // // break
  820. // case 1:
  821. // uni.$u.route('/pages/mine/camera/idcard/idcard?dotype=idcardface');
  822. // console.log('身份正面')
  823. // break
  824. // case 2:
  825. // uni.$u.route('/pages/mine/camera/idcard/idcard?dotype=badge');
  826. // console.log('身份反面')
  827. // break
  828. // case 3:
  829. // uni.$u.route('/pages/mine/camera/idcard/idcard?dotype=bank');
  830. // console.log('银行卡')
  831. // break
  832. // case 4:
  833. // }
  834. // }
  835. },
  836. //车牌号弹出键盘
  837. handleClick(e) {
  838. this.carNumber = e.value
  839. this.dataDetails.hyDriverCarInfoList[this.index].carNumber = e.value //键盘输入值
  840. },
  841. //车牌号弹出键盘
  842. handleShowKeyboard(index) {
  843. if (this.dataDetails.hyDriverCarInfoList[index].carNumber == '') {
  844. this.carNumber = ''
  845. } else {
  846. this.carNumber = this.dataDetails.hyDriverCarInfoList[index].carNumber
  847. }
  848. if (this.$refs.keyboard.open) {
  849. this.$refs.keyboard.open(false) //true 键盘显示 false 键盘隐藏
  850. } else {
  851. this.$refs.keyboard[0].open(false)
  852. }
  853. this.index = index
  854. if (this.$refs.keyboard.open) {
  855. this.$refs.keyboard.open(true) //true 键盘显示 false 键盘隐藏
  856. } else {
  857. this.$refs.keyboard[0].open(true)
  858. }
  859. },
  860. addCarNumber(val) {
  861. val.push({
  862. carNumber: '',
  863. addressUrl: '',
  864. carNumberColour: '',
  865. carType: '',
  866. carTotalWeight: '',
  867. carApprovedWeight: '',
  868. carLong: '',
  869. carWidth: '',
  870. carHeight: '',
  871. fileList1: []
  872. })
  873. },
  874. delCarNumber(val, index) {
  875. if (val.length > 1) {
  876. val.splice(index, 1)
  877. this.$forceUpdate()
  878. } else {
  879. let params = {
  880. type: 'error',
  881. message: "至少保留一个车牌号!",
  882. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/success.png'
  883. }
  884. this.$refs.uToast.show({
  885. ...params
  886. })
  887. }
  888. },
  889. addBankNumber(val) {
  890. val.push({
  891. payeeAddressUrl: '',
  892. bankCard: '',
  893. bankDeposit: '',
  894. bankDepositBranch: '',
  895. payeeName: this.dataDetails.driverName ? this.dataDetails.driverName : ""
  896. })
  897. },
  898. delBankNumber(val, index) {
  899. if (val.length > 1) {
  900. val.splice(index, 1)
  901. this.$forceUpdate()
  902. } else {
  903. let params = {
  904. type: 'error',
  905. message: "至少保留一张银行卡!",
  906. iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/success.png'
  907. }
  908. this.$refs.uToast.show({
  909. ...params
  910. })
  911. }
  912. },
  913. next(val) {
  914. if (this.validate()) return
  915. for (let i = 0; i < this.dataDetails.hyDriverPayeeInfoList.length; i++) {
  916. if (this.dataDetails.hyDriverPayeeInfoList[i].payeeName != this.dataDetails.driverName) {
  917. this.$refs.uToast.show({
  918. type: 'error',
  919. message: "收款人需与司机本人一致!",
  920. })
  921. return
  922. } else {
  923. // 银行卡验证
  924. this.$request.baseRequest('get', '/driverPayeeInfo/bankCradShibie', {
  925. name: this.dataDetails.hyDriverPayeeInfoList[i].payeeName,
  926. idCard: this.dataDetails.numberCard,
  927. accountNo: this.dataDetails.hyDriverPayeeInfoList[i].bankCard
  928. }).then(
  929. res => {
  930. if (res.data.distinguishNum != "01") { //不等于01 证明银行卡验证不通过
  931. // this.payCheck = false //验证开关
  932. uni.$u.toast(res.data.distinguish);
  933. }else{
  934. uni.$u.route('/pages/mine/driverCertificationNext', {
  935. data: JSON.stringify(this.dataDetails),
  936. });
  937. }
  938. })
  939. }
  940. }
  941. // if (this.payCheck) {
  942. // uni.$u.route('/pages/mine/driverCertificationNext', {
  943. // data: JSON.stringify(this.dataDetails),
  944. // });
  945. // }
  946. },
  947. validate() {
  948. // true 为校验不通过
  949. if (uni.$u.test.isEmpty(this.dataDetails.driverName)) {
  950. this.$refs.uToast.show({
  951. type: 'error',
  952. message: "司机姓名不能为空!",
  953. })
  954. return true
  955. }
  956. if (!uni.$u.test.chinese(this.dataDetails.driverName)) {
  957. this.$refs.uToast.show({
  958. type: 'error',
  959. message: "姓名为汉字!",
  960. })
  961. return true
  962. }
  963. if (uni.$u.test.isEmpty(this.dataDetails.driverPhone)) {
  964. this.$refs.uToast.show({
  965. type: 'error',
  966. message: "联系电话不能为空!",
  967. })
  968. return true
  969. }
  970. if (!uni.$u.test.mobile(this.dataDetails.driverPhone)) {
  971. this.$refs.uToast.show({
  972. type: 'error',
  973. message: "电话号码格式错误!",
  974. })
  975. return true
  976. }
  977. // for (let i = 0; i < this.dataDetails.hyDriverCarInfoList.length; i++) {
  978. // let _item = this.dataDetails.hyDriverCarInfoList[i]
  979. // if (uni.$u.test.isEmpty(_item.carNumber)) {
  980. // this.$refs.uToast.show({
  981. // type: 'error',
  982. // message: "车牌号不能为空!",
  983. // })
  984. // return true
  985. // }
  986. // if (uni.$u.test.isEmpty(_item.fileList1)) {
  987. // this.$refs.uToast.show({
  988. // type: 'error',
  989. // message: "人车合影不能为空!",
  990. // })
  991. // return true
  992. // }
  993. // }
  994. if (uni.$u.test.isEmpty(this.dataDetails.driverPhone)) {
  995. this.$refs.uToast.show({
  996. type: 'error',
  997. message: "身份证人像页不能为空!",
  998. })
  999. return true
  1000. }
  1001. if (uni.$u.test.isEmpty(this.dataDetails.driverPhone)) {
  1002. this.$refs.uToast.show({
  1003. type: 'error',
  1004. message: "身份证国徽页不能为空!",
  1005. })
  1006. return true
  1007. }
  1008. if (uni.$u.test.isEmpty(this.dataDetails.cardValidityDate)) {
  1009. this.$refs.uToast.show({
  1010. type: 'error',
  1011. message: "身份证人有效截止日期不能为空!",
  1012. })
  1013. return true
  1014. }
  1015. if (uni.$u.test.isEmpty(this.dataDetails.cardAddress)) {
  1016. this.$refs.uToast.show({
  1017. type: 'error',
  1018. message: "身份证地址为空!",
  1019. })
  1020. return true
  1021. }
  1022. for (let i = 0; i < this.dataDetails.hyDriverPayeeInfoList.length; i++) {
  1023. let _item = this.dataDetails.hyDriverPayeeInfoList[i]
  1024. if (uni.$u.test.isEmpty(_item.payeeAddressUrl)) {
  1025. this.$refs.uToast.show({
  1026. type: 'error',
  1027. message: "银行卡不能为空!",
  1028. })
  1029. return true
  1030. }
  1031. if (uni.$u.test.isEmpty(_item.bankCard)) {
  1032. this.$refs.uToast.show({
  1033. type: 'error',
  1034. message: "银行卡号码不能为空!",
  1035. })
  1036. return true
  1037. }
  1038. if (uni.$u.test.isEmpty(_item.bankDeposit)) {
  1039. this.$refs.uToast.show({
  1040. type: 'error',
  1041. message: "开户行不能为空!",
  1042. })
  1043. return true
  1044. }
  1045. if (uni.$u.test.isEmpty(_item.bankDepositBranch)) {
  1046. this.$refs.uToast.show({
  1047. type: 'error',
  1048. message: "开户支行不能为空!",
  1049. })
  1050. return true
  1051. }
  1052. if (uni.$u.test.isEmpty(_item.payeeName)) {
  1053. this.$refs.uToast.show({
  1054. type: 'error',
  1055. message: "收款人姓名不能为空!",
  1056. })
  1057. return true
  1058. }
  1059. }
  1060. return false
  1061. }
  1062. },
  1063. };
  1064. </script>
  1065. <style scoped lang="scss">
  1066. /deep/.u-radio {
  1067. margin-bottom: 0 !important;
  1068. }
  1069. .top-head {
  1070. background: #2772FB;
  1071. height: 80rpx;
  1072. width: 100%;
  1073. }
  1074. .container {
  1075. position: relative;
  1076. top: -60rpx;
  1077. margin: 0 20rpx;
  1078. }
  1079. .row4-img {
  1080. width: 32rpx;
  1081. height: 32rpx;
  1082. }
  1083. .content1,
  1084. .content2,
  1085. .content3 {
  1086. .left-text {
  1087. // background: red;
  1088. width: 290rpx;
  1089. color: #333333;
  1090. display: flex;
  1091. align-items: center;
  1092. }
  1093. .row {
  1094. border-bottom: 1px solid #EEEEEE;
  1095. padding-bottom: 28rpx;
  1096. margin-top: 26rpx;
  1097. .ch-style {}
  1098. }
  1099. .row-ch {
  1100. padding-right: 180rpx;
  1101. box-sizing: border-box;
  1102. // background-color: red;
  1103. }
  1104. }
  1105. .content1-car {
  1106. margin-top: 20rpx;
  1107. .left-text {
  1108. // background: red;
  1109. width: 290rpx;
  1110. color: #333333;
  1111. display: flex;
  1112. align-items: center;
  1113. }
  1114. .row {
  1115. border-bottom: 1px solid #EEEEEE;
  1116. padding-bottom: 28rpx;
  1117. margin-top: 26rpx;
  1118. .color {
  1119. // background: blue;
  1120. width: 340rpx;
  1121. }
  1122. }
  1123. }
  1124. .input-ckg {
  1125. height: 86rpx;
  1126. margin-top: 0 !important;
  1127. padding-bottom: 0 !important;
  1128. .u-input {
  1129. height: 100%;
  1130. background: #F7F8FA;
  1131. padding-left: 10rpx !important;
  1132. padding-right: 85rpx !important;
  1133. }
  1134. .star {
  1135. display: flex;
  1136. align-items: center;
  1137. margin: 0 10rpx;
  1138. }
  1139. .input-positon {
  1140. position: relative;
  1141. }
  1142. .position-right {
  1143. position: absolute;
  1144. right: 20rpx;
  1145. top: 0;
  1146. width: 60rpx;
  1147. height: 50rpx;
  1148. bottom: 0;
  1149. margin: auto;
  1150. }
  1151. }
  1152. .picture {
  1153. margin-top: 20rpx;
  1154. background: #F5F6FA;
  1155. width: 212rpx;
  1156. height: 212rpx;
  1157. border-radius: 20rpx;
  1158. display: flex;
  1159. flex-direction: column;
  1160. justify-content: center;
  1161. align-items: center;
  1162. color: #6A7282;
  1163. }
  1164. .add-car {
  1165. background: #FFFFFF;
  1166. margin: 20rpx 50rpx;
  1167. border-radius: 50rpx;
  1168. display: flex;
  1169. justify-content: center;
  1170. align-items: center;
  1171. padding: 20rpx 0;
  1172. .icon {
  1173. margin-right: 20rpx;
  1174. }
  1175. .car-text {
  1176. font-size: 36rpx;
  1177. font-weight: 700;
  1178. color: #2772FB;
  1179. }
  1180. }
  1181. .carlist-item {
  1182. margin-top: 20rpx;
  1183. padding: 0 20rpx 20rpx 20rpx;
  1184. background: white;
  1185. border-radius: 10rpx;
  1186. position: relative;
  1187. .del-car {
  1188. position: absolute;
  1189. top: 0;
  1190. right: 0;
  1191. width: 80rpx;
  1192. height: 80rpx;
  1193. }
  1194. }
  1195. .content2,
  1196. .content3 {
  1197. .del-bank {
  1198. position: absolute;
  1199. top: 0;
  1200. right: 0;
  1201. width: 80rpx;
  1202. height: 80rpx;
  1203. }
  1204. .picture {
  1205. width: 100%;
  1206. height: 440rpx;
  1207. // background: red;
  1208. position: relative;
  1209. .text {
  1210. margin-top: 20rpx;
  1211. }
  1212. }
  1213. .picture1 {
  1214. background: url(../../static/images/mine/zm.png);
  1215. background-size: 100% 100%;
  1216. }
  1217. .picture2 {
  1218. background: url(../../static/images/mine/gh.png);
  1219. background-size: 100% 100%;
  1220. }
  1221. .picture3 {
  1222. background: url(../../static/images/mine/yhkzm.png);
  1223. background-size: 100% 100%;
  1224. }
  1225. .xj-image {
  1226. width: 100rpx;
  1227. height: 100rpx;
  1228. }
  1229. .title {
  1230. color: #999999;
  1231. margin: 20rpx 0;
  1232. }
  1233. }
  1234. .content3 {
  1235. position: relative;
  1236. background: white;
  1237. margin: 20rpx 0 0 0;
  1238. border-radius: 10rpx;
  1239. padding: 20rpx;
  1240. .khzh-styel {
  1241. // width: 350rpx;
  1242. }
  1243. .type {
  1244. background: #2772FB;
  1245. border-radius: 10rpx;
  1246. color: white;
  1247. box-sizing: border-box;
  1248. padding: 4rpx 10rpx;
  1249. font-size: 26rpx;
  1250. display: flex;
  1251. margin-left:4px;
  1252. justify-content: center;
  1253. align-items: center;
  1254. }
  1255. .select-bankzh {
  1256. width: 230rpx;
  1257. height: 48rpx;
  1258. }
  1259. }
  1260. .content4 {
  1261. display: flex;
  1262. justify-content: center;
  1263. background: white;
  1264. padding: 40rpx 20rpx 50rpx 20rpx;
  1265. .next-btn {
  1266. background: #22C572;
  1267. width: 90%;
  1268. padding: 20rpx 20rpx;
  1269. text-align: center;
  1270. color: #FFFFFF;
  1271. border-radius: 50rpx;
  1272. }
  1273. }
  1274. .yzm {}
  1275. .yzm-btn {
  1276. background: #2772FB;
  1277. color: white;
  1278. height: 60rpx;
  1279. }
  1280. .preview-card-img {
  1281. /deep/uni-image>div,
  1282. uni-image>img {
  1283. // transform: scale(1.5) rotate(-90deg);
  1284. }
  1285. }
  1286. .del-card {
  1287. position: absolute;
  1288. top: -10rpx;
  1289. right: -6rpx;
  1290. width: 80rpx;
  1291. height: 80rpx;
  1292. z-index: 9;
  1293. }
  1294. /deep/.u-radio-group--row {
  1295. justify-content: flex-end;
  1296. }
  1297. /deep/.u-textarea{
  1298. padding:9px 0;
  1299. }
  1300. /deep/.u-textarea__field{
  1301. color:#000;
  1302. text-align:right;
  1303. }
  1304. </style>