driverCertification.vue 38 KB

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