driverCertificationNext.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753
  1. <template>
  2. <view class="content">
  3. <view class="top-head"></view>
  4. <view class="container">
  5. <u-radio-group v-model="radiovalue" iconPlacement="row" class='radio-group'>
  6. <u-radio :customStyle="{marginBottom: '8px'}" v-for="(item, index) in radiolist" :key="index"
  7. :label="item.name" :name="item.name" @change="radioChange">
  8. </u-radio>
  9. </u-radio-group>
  10. <view class="level1-title">证件信息</view>
  11. <view class="content1">
  12. <view class="title">上传驾驶证主页</view>
  13. <view @click="uploadImg(1)" class="picture picture1" v-if="!dataDetails.driverLicenseHomePage">
  14. <image class="xj-image" src="@/static/images/mine/ic_shanchuan@2x.png"></image>
  15. <view class="text">上传驾驶证主页</view>
  16. </view>
  17. <view v-if="dataDetails.driverLicenseHomePage" @click.stop="uploadImg(1)"
  18. class="preview-card-img picture">
  19. <view @click.stop="delCard(1)">
  20. <image class='del-card' src="@/static/images/common/quxiao@2x.png">
  21. </image>
  22. </view>
  23. <image class="" :src="dataDetails.driverLicenseHomePage" mode="aspectFit"></image>
  24. </view>
  25. <view class="title">上传驾驶证副页</view>
  26. <view @click="uploadImg(2)" class="picture picture2" v-if="!dataDetails.driverLicenseBackPage">
  27. <image class="xj-image" src="@/static/images/mine/ic_shanchuan@2x.png"></image>
  28. <view class="text">上传驾驶证副页</view>
  29. </view>
  30. <view v-if="dataDetails.driverLicenseBackPage" @click.stop="uploadImg(1)"
  31. class="preview-card-img picture">
  32. <view @click.stop="delCard(1)">
  33. <image class='del-card' src="@/static/images/common/quxiao@2x.png">
  34. </image>
  35. </view>
  36. <image class="" :src="dataDetails.driverLicenseBackPage" mode="aspectFit"></image>
  37. </view>
  38. <view class="flex row flex-space-between">
  39. <view class="left-text">驾驶证有效截止日期</view>
  40. <view class="" @click="selectValidityPeriod(0)">
  41. {{dataDetails.driverLicenseValidityDate?dataDetails.driverLicenseValidityDate:'选择有效截止日期>'}}
  42. </view>
  43. </view>
  44. <view class="title">上传行驶证主页</view>
  45. <view @click="uploadImg(3)" class="picture picture3" v-if="!dataDetails.drivingLicenseHomePage">
  46. <image class="xj-image" src="@/static/images/mine/ic_shanchuan@2x.png"></image>
  47. <view class="text">上传行驶证主页</view>
  48. </view>
  49. <view v-if="dataDetails.drivingLicenseHomePage" @click.stop="uploadImg(1)"
  50. class="preview-card-img picture">
  51. <view @click.stop="delCard(1)">
  52. <image class='del-card' src="@/static/images/common/quxiao@2x.png">
  53. </image>
  54. </view>
  55. <image class="" :src="dataDetails.drivingLicenseHomePage" mode="aspectFit"></image>
  56. </view>
  57. <view class="title">上传行驶证副页</view>
  58. <view @click="uploadImg(4)" class="picture picture4" v-if="!dataDetails.drivingLicenseBackPage">
  59. <image class="xj-image" src="@/static/images/mine/ic_shanchuan@2x.png"></image>
  60. <view class="text">上传行驶证副页</view>
  61. </view>
  62. <view v-if="dataDetails.drivingLicenseBackPage" @click.stop="uploadImg(1)"
  63. class="preview-card-img picture">
  64. <view @click.stop="delCard(1)">
  65. <image class='del-card' src="@/static/images/common/quxiao@2x.png">
  66. </image>
  67. </view>
  68. <image class="" :src="dataDetails.drivingLicenseBackPage" mode="aspectFit"></image>
  69. </view>
  70. <view class="flex row flex-space-between">
  71. <view class="left-text">行驶证档案编号</view>
  72. <u--input placeholder="输入行驶证档案编号" inputAlign='right' border="none" v-model="dataDetails.drivingLicenseNumber">
  73. </u--input>
  74. </view>
  75. <view class="flex row flex-space-between">
  76. <view class="left-text">行驶证有效期</view>
  77. <view class="" @click="selectValidityPeriod(1)">
  78. {{dataDetails.drivingLicenseValidityDate?dataDetails.drivingLicenseValidityDate:'选择有效截止日期>'}}
  79. </view>
  80. </view>
  81. <view class="" v-if="isGCar">
  82. <view class="title">挂车行驶证主页</view>
  83. <view @click="uploadImg(5)" class="picture picture5" v-if="!dataDetails.trailerLicenseHomePage">
  84. <image class="xj-image" src="@/static/images/mine/ic_shanchuan@2x.png"></image>
  85. <view class="text">上传挂车行驶证主页</view>
  86. </view>
  87. <view v-if="dataDetails.trailerLicenseHomePage" @click.stop="uploadImg(1)"
  88. class="preview-card-img picture">
  89. <view @click.stop="delCard(1)">
  90. <image class='del-card' src="@/static/images/common/quxiao@2x.png">
  91. </image>
  92. </view>
  93. <image class="" :src="dataDetails.trailerLicenseHomePage" mode="aspectFit"></image>
  94. </view>
  95. </view>
  96. <view v-if="isGCar">
  97. <view class="title">挂车行驶证副页</view>
  98. <view @click="uploadImg(6)" class="picture picture6" v-if="!dataDetails.trailerLicenseBackPage">
  99. <image class="xj-image" src="@/static/images/mine/ic_shanchuan@2x.png"></image>
  100. <view class="text">上传挂车行驶证副页</view>
  101. </view>
  102. <view v-if="dataDetails.trailerLicenseBackPage" @click.stop="uploadImg(1)"
  103. class="preview-card-img picture">
  104. <view @click.stop="delCard(1)">
  105. <image class='del-card' src="@/static/images/common/quxiao@2x.png">
  106. </image>
  107. </view>
  108. <image class="" :src="dataDetails.trailerLicenseBackPage" mode="aspectFit"></image>
  109. </view>
  110. </view>
  111. <view class="flex row">
  112. <view class="left-text">挂车行驶证档案编号</view>
  113. <u--input placeholder="输入挂车行驶证档案编号" inputAlign='right' border="none" v-model="dataDetails.trailerLicenseNumber">
  114. </u--input>
  115. </view>
  116. <view class="flex row flex-space-between" v-if="isGCar">
  117. <view class="left-text">挂车行驶证有效期</view>
  118. <view class="" @click="selectValidityPeriod(2)">
  119. {{dataDetails.trailerLicenseValidityDate?dataDetails.trailerLicenseValidityDate:'选择有效截止日期>'}}
  120. </view>
  121. </view>
  122. <view class="title">从业资格证</view>
  123. <view @click="uploadImg(7)" class="picture picture7" v-if="!dataDetails.qualificationCertificate">
  124. <image class="xj-image" src="@/static/images/mine/ic_shanchuan@2x.png"></image>
  125. <view class="text">上传从业资格证</view>
  126. </view>
  127. <view v-if="dataDetails.qualificationCertificate" @click.stop="uploadImg(1)"
  128. class="preview-card-img picture">
  129. <view @click.stop="delCard(1)">
  130. <image class='del-card' src="@/static/images/common/quxiao@2x.png">
  131. </image>
  132. </view>
  133. <image class="" :src="dataDetails.qualificationCertificate" mode="aspectFit"></image>
  134. </view>
  135. <view class="flex row flex-space-between">
  136. <view class="left-text">从业资格证有效期</view>
  137. <view></view>
  138. <view class="" @click="selectValidityPeriod(3)">
  139. {{dataDetails.qualificationCertificateValidityDate?dataDetails.qualificationCertificateValidityDate:'选择有效期>'}}
  140. </view>
  141. </view>
  142. <view class="title">道路运输证</view>
  143. <view @click="uploadImg(8)" class="picture picture8" v-if="!dataDetails.operationCertificate">
  144. <image class="xj-image" src="@/static/images/mine/ic_shanchuan@2x.png"></image>
  145. <view class="text">上传道路运输证</view>
  146. </view>
  147. <view v-if="dataDetails.operationCertificate" @click.stop="uploadImg(1)"
  148. class="preview-card-img picture">
  149. <view @click.stop="delCard(1)">
  150. <image class='del-card' src="@/static/images/common/quxiao@2x.png">
  151. </image>
  152. </view>
  153. <image class="" :src="dataDetails.operationCertificate" mode="aspectFit"></image>
  154. </view>
  155. <view class="flex row">
  156. <view class="left-text">道路运输证号</view>
  157. <u--input placeholder="输入道路运输证号" inputAlign='right' border="none" v-model="dataDetails.operationCertificateNumber">
  158. </u--input>
  159. </view>
  160. <view class="flex row flex-space-between">
  161. <view class="left-text">道路运输证有效期</view>
  162. <view class="" @click="selectValidityPeriod(4)">
  163. {{dataDetails.operationCertificateValidityDate?dataDetails.operationCertificateValidityDate:'选择有效期>'}}
  164. </view>
  165. </view>
  166. <view v-if="isGCar">
  167. <view class="title">挂车道路运输证</view>
  168. <view @click="uploadImg(9)" class="picture picture9"
  169. v-if="!dataDetails.trailerOperationCertificate">
  170. <image class="xj-image" src="@/static/images/mine/ic_shanchuan@2x.png"></image>
  171. <view class="text">上传挂车道路运输证</view>
  172. </view>
  173. <view v-if="dataDetails.trailerOperationCertificate" @click.stop="uploadImg(1)"
  174. class="preview-card-img picture">
  175. <view @click.stop="delCard(1)">
  176. <image class='del-card' src="@/static/images/common/quxiao@2x.png">
  177. </image>
  178. </view>
  179. <image class="" :src="dataDetails.trailerOperationCertificate" mode="aspectFit"></image>
  180. </view>
  181. </view>
  182. <view class="flex row">
  183. <view class="left-text">挂车道路运输证号</view>
  184. <u--input placeholder="输入挂车道路运输证号" inputAlign='right' border="none" v-model="dataDetails.trailerOperationCertificateNumber">
  185. </u--input>
  186. </view>
  187. <view class="flex row flex-space-between" v-if="isGCar">
  188. <view class="left-text">挂车道路运输证有效期</view>
  189. <view class="" @click="selectValidityPeriod(5)">
  190. {{dataDetails.trailerOperationCertificateValidityDate?dataDetails.trailerOperationCertificateValidityDate:'选择有效期>'}}
  191. </view>
  192. </view>
  193. </view>
  194. <view class="flex service align-center">
  195. <u--image @click='consent'
  196. :src="consentStatus==true?'../../static/images/mine/duihao@2x.png':'../../static/images/mine/wxz.png'"
  197. width="12px" height="12px"></u--image>
  198. 我已阅读并同意
  199. <navigator
  200. url="/pages/sale/webview?can_share=false&url=https://liangxin.zthymaoyi.com/userAgreement.html"
  201. class="path" hover-class="navigator-hover">《服务协议》</navigator>和<navigator
  202. url="/pages/sale/webview?can_share=false&url=https://liangxin.zthymaoyi.com/screctAgreement.html"
  203. class="path" hover-class="navigator-hover">《隐私政策》</navigator>
  204. </view>
  205. <u-button type="primary" @click="submit">提交</u-button>
  206. <u-toast ref="uToast"></u-toast>
  207. <u-action-sheet :actions="$helper.imgTypeList" :title="$helper.imgType" :show="isShowimgType"
  208. @select="imgTypeSelect" :closeOnClickOverlay="true" :closeOnClickAction="true"
  209. @close="isShowimgType=false">
  210. </u-action-sheet>
  211. <u-picker :show="isShowValidity" ref="uPicker" :columns="validityPeriod" @confirm="confirmValidityPeriod"
  212. :closeOnClickOverlay='true' @close='isShowValidity=false' @cancel='isShowValidity=false'>
  213. </u-picker>
  214. </view>
  215. </view>
  216. </template>
  217. <script>
  218. import uploadImage from '@/components/ossutil/uploadFile.js';
  219. var _this;
  220. export default {
  221. components: {},
  222. data() {
  223. return {
  224. consentStatus: false,
  225. isGCar: true,
  226. ValidityPeriodType: '',
  227. validityPeriod: [],
  228. isShowValidity: false,
  229. uploadType: '',
  230. isShowimgType: false,
  231. dataDetails: {},
  232. radiolist: [{
  233. name: '挂车司机',
  234. disabled: false
  235. },
  236. {
  237. name: '非挂车司机',
  238. disabled: false
  239. }
  240. ],
  241. // u-radio-group的v-model绑定的值如果设置为某个radio的name,就会被默认选中
  242. radiovalue: '挂车司机',
  243. };
  244. },
  245. onLoad(options) {
  246. _this = this;
  247. console.log(options)
  248. this.dataDetails = JSON.parse(options.data)
  249. this.dataDetails.driverType = 1
  250. this.validityPeriod = this.$helper.makeValidityPeriod()
  251. },
  252. methods: {
  253. delCard(type) {
  254. switch (type) {
  255. case 1:
  256. _this.dataDetails.driverLicenseHomePage = ""
  257. break;
  258. case 2:
  259. _this.dataDetails.driverLicenseBackPage = ""
  260. break;
  261. case 3:
  262. _this.dataDetails.drivingLicenseHomePage = ""
  263. break;
  264. case 4:
  265. _this.dataDetails.drivingLicenseBackPage = ""
  266. break;
  267. case 5:
  268. _this.dataDetails.trailerLicenseHomePage = ""
  269. break;
  270. case 6:
  271. _this.dataDetails.trailerLicenseBackPage = ""
  272. break;
  273. case 7:
  274. _this.dataDetails.qualificationCertificate = ""
  275. break;
  276. case 8:
  277. _this.dataDetails.operationCertificate = ""
  278. break;
  279. case 9:
  280. _this.dataDetails.trailerOperationCertificate = ""
  281. break;
  282. }
  283. },
  284. consent() {
  285. this.consentStatus = !this.consentStatus
  286. // uni.setStorage({
  287. // key: 'policyStorageKey',
  288. // data: this.consentStatus
  289. // });
  290. },
  291. validate(data) {},
  292. confirmValidityPeriod(e) {
  293. console.log('confirm', e)
  294. switch (this.ValidityPeriodType) {
  295. case 0:
  296. this.dataDetails.driverLicenseValidityDate = e.value[0] + '-' + e.value[1] + '-' + e.value[2]
  297. break
  298. case 1:
  299. this.dataDetails.drivingLicenseValidityDate = e.value[0] + '-' + e.value[1] + '-' + e.value[2]
  300. break
  301. case 2:
  302. this.dataDetails.trailerLicenseValidityDate = e.value[0] + '-' + e.value[1] + '-' + e.value[2]
  303. break
  304. case 3:
  305. this.dataDetails.qualificationCertificateValidityDate = e.value[0] + '-' + e.value[1] + '-' + e
  306. .value[2]
  307. break
  308. case 4:
  309. this.dataDetails.operationCertificateValidityDate = e.value[0] + '-' + e.value[1] + '-' + e.value[
  310. 2]
  311. break
  312. case 5:
  313. this.dataDetails.trailerOperationCertificateValidityDate = e.value[0] + '-' + e.value[1] + '-' + e
  314. .value[2]
  315. break
  316. }
  317. this.isShowValidity = false
  318. },
  319. selectValidityPeriod(type) {
  320. this.ValidityPeriodType = type
  321. this.isShowValidity = true
  322. },
  323. // 上传图片
  324. imgTypeSelect(val) {
  325. console.log(val)
  326. console.log(this.uploadType)
  327. if (val.name == '相册') {
  328. uni.chooseImage({
  329. count: 1,
  330. sourceType: this.$helper.chooseImage.sourceType,
  331. success: function(res) {
  332. console.log(JSON.stringify(res.tempFilePaths));
  333. uploadImage(res.tempFilePaths[0], 'appData/',
  334. result => {
  335. // 上传成功回调函数
  336. console.log('图片地址-----', result)
  337. switch (_this.uploadType) {
  338. case 1:
  339. _this.dataDetails.driverLicenseHomePage = result
  340. break;
  341. case 2:
  342. _this.dataDetails.driverLicenseBackPage = result
  343. break;
  344. case 3:
  345. _this.dataDetails.drivingLicenseHomePage = result
  346. break;
  347. case 4:
  348. _this.dataDetails.drivingLicenseBackPage = result
  349. break;
  350. case 5:
  351. _this.dataDetails.trailerLicenseHomePage = result
  352. break;
  353. case 6:
  354. _this.dataDetails.trailerLicenseBackPage = result
  355. break;
  356. case 7:
  357. _this.dataDetails.qualificationCertificate = result
  358. break;
  359. case 8:
  360. _this.dataDetails.operationCertificate = result
  361. break;
  362. case 9:
  363. _this.dataDetails.trailerOperationCertificate = result
  364. break;
  365. }
  366. _this.$forceUpdate()
  367. }
  368. )
  369. }
  370. });
  371. } else {
  372. }
  373. },
  374. uploadImg(type) {
  375. this.uploadType = type
  376. this.isShowimgType = true
  377. },
  378. validate() {
  379. // true 为校验不通过
  380. if (uni.$u.test.isEmpty(this.dataDetails.driverLicenseHomePage)) {
  381. this.$refs.uToast.show({
  382. type: 'error',
  383. message: "驾驶证主页不能为空!",
  384. })
  385. return true
  386. }
  387. if (uni.$u.test.isEmpty(this.dataDetails.driverLicenseHomePage)) {
  388. this.$refs.uToast.show({
  389. type: 'error',
  390. message: "驾驶证副页不能为空!",
  391. })
  392. return true
  393. }
  394. if (uni.$u.test.isEmpty(this.dataDetails.driverLicenseValidityDate)) {
  395. this.$refs.uToast.show({
  396. type: 'error',
  397. message: "驾驶证有效期不能为空!",
  398. })
  399. return true
  400. }
  401. if (uni.$u.test.isEmpty(this.dataDetails.drivingLicenseHomePage)) {
  402. this.$refs.uToast.show({
  403. type: 'error',
  404. message: "行驶证主页不能为空!",
  405. })
  406. return true
  407. }
  408. if (uni.$u.test.isEmpty(this.dataDetails.drivingLicenseBackPage)) {
  409. this.$refs.uToast.show({
  410. type: 'error',
  411. message: "行驶证副页不能为空!",
  412. })
  413. return true
  414. }
  415. if (uni.$u.test.isEmpty(this.dataDetails.drivingLicenseValidityDate)) {
  416. this.$refs.uToast.show({
  417. type: 'error',
  418. message: "行驶证有效期不能为空!",
  419. })
  420. return true
  421. }
  422. if (uni.$u.test.isEmpty(this.dataDetails.drivingLicenseNumber)) {
  423. this.$refs.uToast.show({
  424. type: 'error',
  425. message: "行驶证档案编号不能为空!",
  426. })
  427. return true
  428. }
  429. if(this.radiovalue=='挂车司机'){
  430. if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseHomePage)) {
  431. this.$refs.uToast.show({
  432. type: 'error',
  433. message: "挂车行驶证主页不能为空!",
  434. })
  435. return true
  436. }
  437. if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseBackPage)) {
  438. this.$refs.uToast.show({
  439. type: 'error',
  440. message: "挂车行驶证副页不能为空!",
  441. })
  442. return true
  443. }
  444. if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseNumber)) {
  445. this.$refs.uToast.show({
  446. type: 'error',
  447. message: "挂车行驶证档案编号不能为空!",
  448. })
  449. return true
  450. }
  451. if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseValidityDate)) {
  452. this.$refs.uToast.show({
  453. type: 'error',
  454. message: "挂车行驶证有效期不能为空!",
  455. })
  456. return true
  457. }
  458. }
  459. // if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseBackPage)) {
  460. // this.$refs.uToast.show({
  461. // type: 'error',
  462. // message: "行驶证副页不能为空!",
  463. // })
  464. // return true
  465. // }
  466. if (uni.$u.test.isEmpty(this.dataDetails.qualificationCertificate)) {
  467. this.$refs.uToast.show({
  468. type: 'error',
  469. message: "从业资格证不能为空!",
  470. })
  471. return true
  472. }
  473. if (uni.$u.test.isEmpty(this.dataDetails.qualificationCertificateValidityDate)) {
  474. this.$refs.uToast.show({
  475. type: 'error',
  476. message: "从业资格证有效期不能为空!",
  477. })
  478. return true
  479. }
  480. if (uni.$u.test.isEmpty(this.dataDetails.operationCertificate)) {
  481. this.$refs.uToast.show({
  482. type: 'error',
  483. message: "道路运输证不能为空!",
  484. })
  485. return true
  486. }
  487. if (uni.$u.test.isEmpty(this.dataDetails.operationCertificateNumber)) {
  488. this.$refs.uToast.show({
  489. type: 'error',
  490. message: "道路运输证号不能为空!",
  491. })
  492. return true
  493. }
  494. if (uni.$u.test.isEmpty(this.dataDetails.operationCertificateValidityDate)) {
  495. this.$refs.uToast.show({
  496. type: 'error',
  497. message: "道路运输证有效期不能为空!",
  498. })
  499. return true
  500. }
  501. if(this.radiovalue=='挂车司机'){
  502. if (uni.$u.test.isEmpty(this.dataDetails.trailerOperationCertificate)) {
  503. this.$refs.uToast.show({
  504. type: 'error',
  505. message: "挂车道路运输证不能为空!",
  506. })
  507. return true
  508. }
  509. if (uni.$u.test.isEmpty(this.dataDetails.trailerOperationCertificateNumber)) {
  510. this.$refs.uToast.show({
  511. type: 'error',
  512. message: "挂车道路运输证号不能为空!",
  513. })
  514. return true
  515. }
  516. if (uni.$u.test.isEmpty(this.dataDetails.trailerOperationCertificateValidityDate)) {
  517. this.$refs.uToast.show({
  518. type: 'error',
  519. message: "挂车道路运输证有效期不能为空!",
  520. })
  521. return true
  522. }
  523. }
  524. return false
  525. },
  526. submit() {
  527. // 校验
  528. // if (this.validate()) return
  529. // debugger
  530. if(this.dataDetails.driverSex=='男'){
  531. this.dataDetails.driverCall = this.dataDetails.driverCall+'先生'
  532. }else{
  533. this.dataDetails.driverCall = this.dataDetails.driverCall+'女士'
  534. }
  535. if(!this.consentStatus){
  536. this.$refs.uToast.show({
  537. type: 'error',
  538. message: "请勾选协议!",
  539. })
  540. return
  541. }
  542. this.$request.baseRequest('post', '/driverInfo/api/addInfo', this.dataDetails).then(res => {
  543. if(res.code==200){
  544. uni.$u.route('/pages/mine/index');
  545. }else{
  546. uni.$u.toast(res.message);
  547. }
  548. })
  549. .catch(res => {
  550. uni.$u.toast(res.message);
  551. });
  552. },
  553. radioChange(n) {
  554. console.log('radioChange', n);
  555. if (n == '挂车司机') {
  556. this.isGCar = true
  557. this.dataDetails.driverType = 1
  558. } else {
  559. this.dataDetails.driverType = 2
  560. this.isGCar = false
  561. }
  562. },
  563. //设置图片
  564. setImage(e) {
  565. console.log(e);
  566. //显示在页面
  567. //this.imagesrc = e.path;
  568. // if (e.dotype == 'idphoto') {
  569. // _this.zjzClipper(e.path);
  570. // } else if (e.dotype == 'watermark') {
  571. // _this.watermark(e.path);
  572. // } else {
  573. // _this.savePhoto(e.path);
  574. // }
  575. },
  576. }
  577. };
  578. </script>
  579. <style scoped lang="scss">
  580. .u-radio {
  581. margin-bottom: 0px !important;
  582. }
  583. .row4-img {
  584. width: 32rpx;
  585. height: 32rpx;
  586. }
  587. .preview {
  588. width: 100%;
  589. height: 100px;
  590. }
  591. .top-head {
  592. background: #2772FB;
  593. height: 80rpx;
  594. width: 100%;
  595. }
  596. .container {
  597. background: white;
  598. position: relative;
  599. top: -60rpx;
  600. margin: 0 20rpx;
  601. padding: 20rpx;
  602. box-sizing: border-box;
  603. border-radius: 10rpx;
  604. }
  605. .radio-group {
  606. display: flex;
  607. align-items: center;
  608. justify-content: space-between;
  609. }
  610. .level1-title {
  611. margin: 20rpx 0;
  612. border-bottom: 1px solid #EEEEEE;
  613. padding-bottom: 30rpx;
  614. }
  615. .content1 {
  616. .row {
  617. border-bottom: 1px solid #EEEEEE;
  618. padding-bottom: 28rpx;
  619. margin-top: 26rpx;
  620. }
  621. .left-text {
  622. // background: red;
  623. width: 320rpx;
  624. color: #333333;
  625. display: flex;
  626. align-items: center;
  627. }
  628. .picture {
  629. position: relative;
  630. width: 100%;
  631. height: 440rpx;
  632. display: flex;
  633. justify-content: center;
  634. flex-direction: column;
  635. align-items: center;
  636. .text {
  637. margin-top: 20rpx;
  638. }
  639. }
  640. .picture1 {
  641. background: url(../../static/images/mine/jzz.png);
  642. background-size: 100% 100%;
  643. }
  644. .picture2 {
  645. background: url(../../static/images/mine/jzf.png);
  646. background-size: 100% 100%;
  647. }
  648. .picture3 {
  649. background: url(../../static/images/mine/xsz.png);
  650. background-size: 100% 100%;
  651. }
  652. .picture4 {
  653. background: url(../../static/images/mine/xsf.png);
  654. background-size: 100% 100%;
  655. }
  656. .picture5 {
  657. background: url(../../static/images/mine/gcxsz.png);
  658. background-size: 100% 100%;
  659. }
  660. .picture6 {
  661. background: url(../../static/images/mine/gcxsf.png);
  662. background-size: 100% 100%;
  663. }
  664. .picture7 {
  665. background: url(../../static/images/mine/cy.png);
  666. background-size: 100% 100%;
  667. }
  668. .picture8 {
  669. background: url(../../static/images/mine/cy.png);
  670. background-size: 100% 100%;
  671. }
  672. .picture9 {
  673. background: url(../../static/images/mine/cy.png);
  674. background-size: 100% 100%;
  675. }
  676. .xj-image {
  677. width: 100rpx;
  678. height: 100rpx;
  679. }
  680. .title {
  681. color: #999999;
  682. margin: 20rpx 0;
  683. }
  684. }
  685. .service {
  686. font-size: 24rpx;
  687. margin: 20rpx;
  688. justify-content: center;
  689. /deep/.u-image {
  690. margin: 0 20rpx;
  691. }
  692. }
  693. .del-card {
  694. position: absolute;
  695. top: -10rpx;
  696. right: -6rpx;
  697. width: 80rpx;
  698. height: 80rpx;
  699. z-index: 9;
  700. }
  701. .path{
  702. color: #2772FB;
  703. }
  704. </style>