driverCertificationNext.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746
  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">
  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">
  71. <view class="left-text">行驶证档案编号</view>
  72. <u--input placeholder="输入行驶证档案编号" inputAlign='left' border="none" v-model="dataDetails.drivingLicenseNumber">
  73. </u--input>
  74. </view>
  75. <view class="flex row">
  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 row flex">挂车行驶证主页</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 row flex">挂车行驶证副页</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='left' border="none" v-model="dataDetails.trailerLicenseNumber">
  114. </u--input>
  115. </view>
  116. <view class="flex row" 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">
  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='left' border="none" v-model="dataDetails.operationCertificateNumber">
  158. </u--input>
  159. </view>
  160. <view class="flex row">
  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 row flex">挂车道路运输证</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='left' border="none" v-model="dataDetails.trailerOperationCertificateNumber">
  185. </u--input>
  186. </view>
  187. <view class="flex row" 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 (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseHomePage)) {
  430. this.$refs.uToast.show({
  431. type: 'error',
  432. message: "挂车行驶证主页不能为空!",
  433. })
  434. return true
  435. }
  436. if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseBackPage)) {
  437. this.$refs.uToast.show({
  438. type: 'error',
  439. message: "挂车行驶证副页不能为空!",
  440. })
  441. return true
  442. }
  443. if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseBackPage)) {
  444. this.$refs.uToast.show({
  445. type: 'error',
  446. message: "行驶证副页不能为空!",
  447. })
  448. return true
  449. }
  450. if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseNumber)) {
  451. this.$refs.uToast.show({
  452. type: 'error',
  453. message: "挂车行驶证档案编号不能为空!",
  454. })
  455. return true
  456. }
  457. if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseValidityDate)) {
  458. this.$refs.uToast.show({
  459. type: 'error',
  460. message: "挂车行驶证有效期不能为空!",
  461. })
  462. return true
  463. }
  464. if (uni.$u.test.isEmpty(this.dataDetails.qualificationCertificate)) {
  465. this.$refs.uToast.show({
  466. type: 'error',
  467. message: "从业资格证不能为空!",
  468. })
  469. return true
  470. }
  471. if (uni.$u.test.isEmpty(this.dataDetails.qualificationCertificateValidityDate)) {
  472. this.$refs.uToast.show({
  473. type: 'error',
  474. message: "从业资格证有效期不能为空!",
  475. })
  476. return true
  477. }
  478. if (uni.$u.test.isEmpty(this.dataDetails.operationCertificate)) {
  479. this.$refs.uToast.show({
  480. type: 'error',
  481. message: "道路运输证不能为空!",
  482. })
  483. return true
  484. }
  485. if (uni.$u.test.isEmpty(this.dataDetails.operationCertificateNumber)) {
  486. this.$refs.uToast.show({
  487. type: 'error',
  488. message: "道路运输证号不能为空!",
  489. })
  490. return true
  491. }
  492. if (uni.$u.test.isEmpty(this.dataDetails.operationCertificateValidityDate)) {
  493. this.$refs.uToast.show({
  494. type: 'error',
  495. message: "道路运输证有效期不能为空!",
  496. })
  497. return true
  498. }
  499. if (uni.$u.test.isEmpty(this.dataDetails.trailerOperationCertificate)) {
  500. this.$refs.uToast.show({
  501. type: 'error',
  502. message: "挂车道路运输证不能为空!",
  503. })
  504. return true
  505. }
  506. if (uni.$u.test.isEmpty(this.dataDetails.trailerOperationCertificateNumber)) {
  507. this.$refs.uToast.show({
  508. type: 'error',
  509. message: "挂车道路运输证号不能为空!",
  510. })
  511. return true
  512. }
  513. if (uni.$u.test.isEmpty(this.dataDetails.trailerOperationCertificateValidityDate)) {
  514. this.$refs.uToast.show({
  515. type: 'error',
  516. message: "挂车道路运输证有效期不能为空!",
  517. })
  518. return true
  519. }
  520. return false
  521. },
  522. submit() {
  523. // 校验
  524. if (this.validate()) return
  525. debugger
  526. if(this.dataDetails.driverSex=='男'){
  527. this.dataDetails.driverCall = this.dataDetails.driverCall+'先生'
  528. }else{
  529. this.dataDetails.driverCall = this.dataDetails.driverCall+'女士'
  530. }
  531. if(!this.consentStatus){
  532. this.$refs.uToast.show({
  533. type: 'error',
  534. message: "请勾选协议!",
  535. })
  536. return
  537. }
  538. this.$request.baseRequest('post', '/driverInfo/api/addInfo', this.dataDetails).then(res => {
  539. if(res.data.code==200){
  540. uni.$u.route('/pages/mine/index');
  541. }
  542. })
  543. .catch(res => {
  544. uni.$u.toast(res.message);
  545. });
  546. },
  547. radioChange(n) {
  548. console.log('radioChange', n);
  549. if (n == '挂车司机') {
  550. this.isGCar = true
  551. this.dataDetails.driverType = 1
  552. } else {
  553. this.dataDetails.driverType = 2
  554. this.isGCar = false
  555. }
  556. },
  557. //设置图片
  558. setImage(e) {
  559. console.log(e);
  560. //显示在页面
  561. //this.imagesrc = e.path;
  562. // if (e.dotype == 'idphoto') {
  563. // _this.zjzClipper(e.path);
  564. // } else if (e.dotype == 'watermark') {
  565. // _this.watermark(e.path);
  566. // } else {
  567. // _this.savePhoto(e.path);
  568. // }
  569. },
  570. }
  571. };
  572. </script>
  573. <style scoped lang="scss">
  574. .u-radio {
  575. margin-bottom: 0px !important;
  576. }
  577. .row4-img {
  578. width: 32rpx;
  579. height: 32rpx;
  580. }
  581. .preview {
  582. width: 100%;
  583. height: 100px;
  584. }
  585. .top-head {
  586. background: #2772FB;
  587. height: 80rpx;
  588. width: 100%;
  589. }
  590. .container {
  591. background: white;
  592. position: relative;
  593. top: -60rpx;
  594. margin: 0 20rpx;
  595. padding: 20rpx;
  596. box-sizing: border-box;
  597. border-radius: 10rpx;
  598. }
  599. .radio-group {
  600. display: flex;
  601. align-items: center;
  602. justify-content: space-between;
  603. }
  604. .level1-title {
  605. margin: 20rpx 0;
  606. border-bottom: 1px solid #EEEEEE;
  607. padding-bottom: 30rpx;
  608. }
  609. .content1 {
  610. .row {
  611. border-bottom: 1px solid #EEEEEE;
  612. padding-bottom: 28rpx;
  613. margin-top: 26rpx;
  614. }
  615. .left-text {
  616. // background: red;
  617. width: 320rpx;
  618. color: #333333;
  619. display: flex;
  620. align-items: center;
  621. }
  622. .picture {
  623. position: relative;
  624. width: 100%;
  625. height: 440rpx;
  626. display: flex;
  627. justify-content: center;
  628. flex-direction: column;
  629. align-items: center;
  630. .text {
  631. margin-top: 20rpx;
  632. }
  633. }
  634. .picture1 {
  635. background: url(../../static/images/mine/jzz.png);
  636. background-size: 100% 100%;
  637. }
  638. .picture2 {
  639. background: url(../../static/images/mine/jzf.png);
  640. background-size: 100% 100%;
  641. }
  642. .picture3 {
  643. background: url(../../static/images/mine/xsz.png);
  644. background-size: 100% 100%;
  645. }
  646. .picture4 {
  647. background: url(../../static/images/mine/xsf.png);
  648. background-size: 100% 100%;
  649. }
  650. .picture5 {
  651. background: url(../../static/images/mine/gcxsz.png);
  652. background-size: 100% 100%;
  653. }
  654. .picture6 {
  655. background: url(../../static/images/mine/gcxsf.png);
  656. background-size: 100% 100%;
  657. }
  658. .picture7 {
  659. background: url(../../static/images/mine/cy.png);
  660. background-size: 100% 100%;
  661. }
  662. .picture8 {
  663. background: url(../../static/images/mine/cy.png);
  664. background-size: 100% 100%;
  665. }
  666. .picture9 {
  667. background: url(../../static/images/mine/cy.png);
  668. background-size: 100% 100%;
  669. }
  670. .xj-image {
  671. width: 100rpx;
  672. height: 100rpx;
  673. }
  674. .title {
  675. color: #999999;
  676. margin: 20rpx 0;
  677. }
  678. }
  679. .service {
  680. font-size: 24rpx;
  681. margin: 20rpx;
  682. justify-content: center;
  683. /deep/.u-image {
  684. margin: 0 20rpx;
  685. }
  686. }
  687. .del-card {
  688. position: absolute;
  689. top: -10rpx;
  690. right: -6rpx;
  691. width: 80rpx;
  692. height: 80rpx;
  693. z-index: 9;
  694. }
  695. .path{
  696. color: #2772FB;
  697. }
  698. </style>