driverCertification.vue 37 KB

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