driverIdentityEdit.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825
  1. <template>
  2. <view class="center">
  3. <view>
  4. <view>
  5. <view style="margin: 0 auto;" v-if="id != ''" @click="idUp">
  6. <image v-bind:src="id1" class="picture"></image>
  7. </view>
  8. <view style="margin: 0 auto;" v-if="id2 != ''" @click="idLow">
  9. <image v-bind:src="id2" class="picture"></image>
  10. </view>
  11. </view>
  12. <view class="personalcss">
  13. <view class="c-row b-b">
  14. <text class="tit">姓名</text>
  15. <view class="con-list">
  16. <input placeholder="请填写姓名" name="input" v-model="DriverViewInfo.driverName"></input>
  17. </view>
  18. </view>
  19. <view class="c-row b-b">
  20. <text class="tit">身份证号</text>
  21. <view class="con-list">
  22. <input placeholder="请填写身份证号" name="input" v-model="DriverViewInfo.numberCard"></input>
  23. </view>
  24. </view>
  25. <view class="c-row b-b">
  26. <text class="tit">手机号</text>
  27. <view class="con-list">
  28. <input placeholder="请填写手机号" name="input" v-model="DriverViewInfo.driverPhone"></input>
  29. </view>
  30. </view>
  31. <view style='width:100%;border-bottom:1px solid #E8E9ED;position:relative;padding:10px;' class="flex">
  32. <button :class='!sendDisabled?"getcode active":"getcode"' @click='getcode'
  33. >{{sendText}}</button>
  34. <view style='width:70%;position:relative;margin-left: 200rpx;'>
  35. <view class="con-list">
  36. <!-- style='width:70%;position:relative;margin-left: 200px;' -->
  37. <input v-model='verifyCode' placeholder="请输入验证码" type="text">
  38. </view>
  39. </view>
  40. </view>
  41. <view class="c-row ">
  42. <text class="tit">常驻城市</text>
  43. <view class="con-list">
  44. <view @click='regionchange'>{{region}}</view>
  45. <u-picker :params='params1' @confirm='regionpicker' mode="region" v-model="show1"></u-picker>
  46. </view>
  47. </view>
  48. </view>
  49. </view>
  50. <!-- 车辆信息 -->
  51. <view class="information">
  52. <view class="c-row">
  53. <text class="tit" style="line-height: 36px;">货车信息</text>
  54. <view class="con-list">
  55. <image v-bind:src="opencar" class="open" @click="opencarclick"></image>
  56. </view>
  57. </view>
  58. </view>
  59. <view class="informations" v-if="opencarboolean == true" v-for="(item , index) in driverCarInfoList"
  60. :Key="index">
  61. <view class="c-row ">
  62. <text class="tit">车辆 -{{index+1}}</text>
  63. <view class="con-list">
  64. <image src="../../static/img/jiaoyi/shanchu@2x.png" class="eliminate" @click="carDel(index)">
  65. </image>
  66. </view>
  67. </view>
  68. <view class="c-row b-b">
  69. <text class="tit">车牌号</text>
  70. <view class="con-list">
  71. <input placeholder="请填写车牌号" name="input" v-model="item.carNumber"></input>
  72. </view>
  73. </view>
  74. <view class="c-row b-b">
  75. <text class="tit">车型</text>
  76. <picker @change="ModelChange" :value="ModelIndex" :range="ModelType" class="con-list">
  77. <view class="picker " v-model="item.carModel">
  78. {{ModelIndex>-1?ModelType[ModelIndex]:'请选择车型'}}
  79. </view>
  80. </picker>
  81. <!-- </view> -->
  82. </view>
  83. <view class="c-row b-b">
  84. <text class="tit">不含车头车长(米)</text>
  85. <picker @change="carLongChange" :value="carLongIndex" :range="carLongType" class="con-list"
  86. v-if="carchength">
  87. <view class="picker" v-model="item.carLength">
  88. {{carLongIndex>-1?carLongType[carLongIndex]:'请选择车长'}}
  89. </view>
  90. </picker>
  91. <view v-else class="con-list">
  92. <input placeholder="请填写车长(米)" name="input" v-model="item.carLength"></input>
  93. </view>
  94. <button v-if="carchength" class='cu-btn bg-green shadow' @click="changeCarChength">填写</button>
  95. <button v-else class='cu-btn bg-green shadow' @click="changeCarChength">选择</button>
  96. </view>
  97. <view class="c-row b-b">
  98. <text class="tit">载重(吨)</text>
  99. <view class="con-list">
  100. <input placeholder="请填写载重(吨)" name="input" v-model="item.carLoad"></input>
  101. </view>
  102. </view>
  103. <view class="c-row ">
  104. <text class="tit">出厂年份</text>
  105. <view class="con-list">
  106. <view @click='yearchange'>{{item.yearManufacture == null?"请选择出厂年份":item.yearManufacture}}</view>
  107. <u-picker :params='params' @confirm='yearpicker($event,index)' v-model="show" mode="time"
  108. :start-year="startData" :end-year="endData">
  109. </u-picker>
  110. </view>
  111. </view>
  112. </view>
  113. <button class="btn" v-if="opencarboolean == true" @click="carAdd">
  114. <image src="../../static/img/jiaoyi/ic_fabu@3x.png" class="add" style="top: 8px;"></image>
  115. <texe>添加车辆</texe>
  116. </button>
  117. <!-- 账户信息 -->
  118. <view class="information">
  119. <view class="c-row">
  120. <text class="tit" style="line-height: 36px;">账户信息</text>
  121. <view class="con-list">
  122. <image v-bind:src="openuser" class="open" openuserboolean @click="openuserclick"></image>
  123. </view>
  124. </view>
  125. </view>
  126. <view class="informations" v-if="openuserboolean == true" v-for="(items , index) in driverPayeeInfoList"
  127. :Key="index">
  128. <!-- <view class="labels"> 账户 -?</view> -->
  129. <view class="c-row ">
  130. <text class="tit">账户 -{{index+1}}</text>
  131. <view class="con-list">
  132. <image src="../../static/img/jiaoyi/shanchu@2x.png" class="eliminate" @click="userDel(index)">
  133. </image>
  134. </view>
  135. </view>
  136. <view class="c-row b-b">
  137. <text class="tit">账户类型</text>
  138. <view class="con-list">
  139. <input placeholder="请填写账户类型" name="input" v-model="items.accountType"></input>
  140. </view>
  141. </view>
  142. <view class="c-row b-b">
  143. <text class="tit">银行卡照片(可选)</text>
  144. <view class="con-list">
  145. <!-- <input placeholder="请上传照片" name="input" v-model="items.payeeAddressUrl" @clisk="bankimg(items)"></input> -->
  146. <view v-if="bankimg == ''" @click="bankimgs(index)">请上传照片</view>
  147. <view v-if="bankimg != ''" @click="bankimgs(index)">
  148. <image v-bind:src="bankimg" style="width: 40px; height: 40px;"></image>
  149. </view>
  150. </view>
  151. </view>
  152. <view class="c-row b-b">
  153. <text class="tit">银行卡号</text>
  154. <view class="con-list">
  155. <input placeholder="请输入银行卡号" name="input" v-model="items.bankCard"></input>
  156. </view>
  157. </view>
  158. <view class="c-row b-b">
  159. <text class="tit">开户行</text>
  160. <view class="con-list">
  161. <input placeholder="请输入开户行" name="input" v-model="items.bankDeposit"></input>
  162. </view>
  163. </view>
  164. <view class="c-row b-b">
  165. <text class="tit">开户支行</text>
  166. <picker @change="bankChange" :value="bankIndex" :range="bankType" class="con-list">
  167. <view class="con-list">
  168. {{bankIndex>-1?bankType[bankIndex]:'请选择开户支行'}}
  169. </view>
  170. </picker>
  171. </view>
  172. <view class="c-row b-b">
  173. <text class="tit">收款人姓名</text>
  174. <view class="con-list">
  175. <input placeholder="请输入收款人姓名" name="input" v-model="items.payeeName"></input>
  176. </view>
  177. </view>
  178. <view class="c-row ">
  179. <text class="tit">收款人身份证号</text>
  180. <view class="con-list">
  181. <input placeholder="请输入收款人身份证号" name="input" v-model="items.payeeNumberCard"></input>
  182. </view>
  183. </view>
  184. </view>
  185. <button class="btn" v-if="openuserboolean == true" @click="userAdd()">
  186. <image src="../../static/img/jiaoyi/ic_fabu@3x.png" class="add" style="top: 8px;"></image>
  187. <text style="margin-top: -2px;">添加账户</text>
  188. </button>
  189. <view class="fujians" v-if="travels != ''" @click="travel">
  190. <view class="c-row b-b">
  191. <text class="picturebiaoti">行驶证</text>
  192. </view>
  193. <image v-bind:src="travels" class="picture"></image>
  194. </view>
  195. <view class="fujians" v-if="drives != ''" @click="drive">
  196. <view class="c-row b-b">
  197. <text class="picturebiaoti">驾驶证</text>
  198. </view>
  199. <image v-bind:src="drives" class="picture"></image>
  200. </view>
  201. <view class="fujians" v-if="operates != ''" @click="operate">
  202. <view class="c-row b-b">
  203. <text class="picturebiaoti">道路运营证</text>
  204. </view>
  205. <image v-bind:src="operates" class="picture"></image>
  206. </view>
  207. <view class="fujians" v-if="practices != ''" @click="practice">
  208. <view class="c-row b-b">
  209. <text class="picturebiaoti">从业资格证</text>
  210. </view>
  211. <image v-bind:src="practices" class="picture"></image>
  212. </view>
  213. <button class="btn btns" @click="commitEdit">修改</button>
  214. </view>
  215. </view>
  216. </template>
  217. <script>
  218. import {
  219. mapState
  220. } from 'vuex';
  221. export default {
  222. data() {
  223. return {
  224. goods: {},
  225. ModelIndex: '高栏',
  226. Model: '',
  227. ModelType: ["高栏", "集装箱", "自卸车"],
  228. carLong: '',
  229. carLongType: ['13', '9.6', '8.2', '8.7', '11.7', '12.5', '13.7', '15', '16', '17.5'],
  230. id: [],
  231. id1: "",
  232. id2: "",
  233. travels: "",
  234. drives: "",
  235. operates: "",
  236. practices: "",
  237. // bank1:"",
  238. // bank2:"",
  239. // bankid:[],
  240. sendText: '获取验证码',
  241. sendDisabled: false,
  242. sendText: '获取验证码',
  243. ModelIndex: '高栏',
  244. Model: '',
  245. ModelType: ["高栏", "集装箱", "自卸车"],
  246. carLong: '',
  247. carLongIndex: 0,
  248. carLongType: ['13', '9.6', '8.2', '8.7', '11.7', '12.5', '13.7', '15', '16', '17.5'],
  249. driverCarInfoList: [],
  250. driverPayeeInfoList: [],
  251. DriverViewInfo: {
  252. driverCarInfoList: [],
  253. driverPayeeInfoList: [],
  254. },
  255. params: {
  256. year: true,
  257. },
  258. params1: {
  259. province: true,
  260. city: true,
  261. },
  262. verifyCode: "",
  263. codestatus: false,
  264. customerPhone: '',
  265. addressUrl: [],
  266. opencarboolean: false,
  267. openuserboolean: false,
  268. carchength: true,
  269. show: false,
  270. show1: false,
  271. opencar: "../../static/img/authentication/down2@3x.png",
  272. openuser: "../../static/img/authentication/down2@3x.png",
  273. bankimg: "",
  274. bankImgs1: {},
  275. bankIndex: -1,
  276. bankType: [],
  277. year:[],
  278. region:"请选择常驻城市",
  279. }
  280. },
  281. computed: {
  282. ...mapState(['hasLogin', 'userInfo'])
  283. },
  284. computed:{
  285. yearchange() {
  286. this.show = true
  287. },
  288. startData(){
  289. var data = new Date()
  290. return data.getFullYear() - 30
  291. },
  292. endData(){
  293. var data = new Date()
  294. return data.getFullYear()
  295. }
  296. },
  297. onLoad(option) {
  298. this.getList(option.id)
  299. },
  300. methods: {
  301. regionchange() {
  302. this.show1 = true
  303. },
  304. regionpicker(e) {
  305. // this.deptList.outputPrivate = e.province.label
  306. // this.deptList.outputCity = e.city.label
  307. this.region = e.province.label + '-' + e.city.label
  308. this.DriverViewInfo.residentCityProvincial = e.province.label + e.city.label
  309. },
  310. yearpicker(e, index) {
  311. this.year[index] = e.year
  312. this.driverCarInfoList[index].yearManufacture = e.year
  313. },
  314. changeCarChength() {
  315. this.carchength = !this.carchength
  316. },
  317. carAdd() {
  318. this.driverCarInfoList.push({
  319. carNumber: '',
  320. carModel: "",
  321. carLength: "",
  322. carLoad: "",
  323. yearManufacture: "",
  324. })
  325. },
  326. userAdd() {
  327. this.driverPayeeInfoList.push({
  328. accountType: "",
  329. cardAddressUrl: "",
  330. bankCard: "",
  331. bankDeposit: "",
  332. bankDepositBranch: "",
  333. payeeName: "",
  334. payeeNumberCard: "",
  335. })
  336. },
  337. carDel(index) {
  338. if (this.driverCarInfoList.length > 1) {
  339. this.driverCarInfoList.splice(index, 1)
  340. }
  341. },
  342. userDel(index) {
  343. if (this.driverPayeeInfoList.length > 1) {
  344. this.driverPayeeInfoList.splice(index, 1)
  345. }
  346. },
  347. opencarclick() {
  348. if (this.opencarboolean == false) {
  349. this.opencarboolean = true;
  350. this.opencar = "../../static/img/authentication/up2%20(3).png"
  351. } else if (this.opencarboolean == true) {
  352. this.opencarboolean = false;
  353. this.opencar = "../../static/img/authentication/down2@3x.png"
  354. }
  355. },
  356. openuserclick() {
  357. if (this.openuserboolean == false) {
  358. this.openuserboolean = true;
  359. this.openuser = "../../static/img/authentication/up2%20(3).png"
  360. } else if (this.openuserboolean == true) {
  361. this.openuserboolean = false;
  362. this.openuser = "../../static/img/authentication/down2@3x.png"
  363. }
  364. },
  365. openfujianclick() {
  366. if (this.openfujianboolean == false) {
  367. this.openfujianboolean = true;
  368. this.openfujian = "../../static/img/authentication/up2%20(3).png"
  369. } else if (this.openfujianboolean == true) {
  370. this.openfujianboolean = false;
  371. this.openfujian = "../../static/img/authentication/down2@3x.png"
  372. }
  373. },
  374. bankChange(e) {
  375. this.bankIndex = e.detail.value
  376. this.Model = this.bankType[this.bankIndex];
  377. this.driverPayeeInfoList[index].bankDepositBranch = this.bankType[this.bankIndex];
  378. },
  379. getList(ids) {
  380. this.$api.doRequest('get', '/driverViewInfo/getDriver', {
  381. id: ids
  382. }, 'application/json;charset=UTF-8').then(res => {
  383. this.procurementPlanInfos = res.data.data
  384. this.DriverViewInfo = res.data.data
  385. this.driverCarInfoList = this.DriverViewInfo.driverCarInfoList
  386. this.driverPayeeInfoList = this.DriverViewInfo.driverPayeeInfoList
  387. this.addressUrl = this.DriverViewInfo.addressUrl.split(",")
  388. this.drivers = res.data.data
  389. if (this.drivers.cardAddressUrl != "") {
  390. this.id = this.drivers.cardAddressUrl.split(","),
  391. this.id1 = this.id[0]
  392. this.id2 = this.id[1]
  393. }
  394. if (this.drivers.addressUrl != "") {
  395. this.address = this.drivers.addressUrl.split(","),
  396. this.travels = this.address[0]
  397. this.drives = this.address[1]
  398. this.operates = this.address[2]
  399. this.practices = this.address[3]
  400. }
  401. this.region = this.DriverViewInfo.residentCityProvincial
  402. })
  403. .catch(res => {
  404. if(res.errmsg){
  405. uni.showToast({
  406. title: res.errmsg,
  407. icon: 'none',
  408. duration: 2000
  409. })
  410. }
  411. else{
  412. uni.showToast({
  413. title: "系统异常,请联系管理员",
  414. icon: 'none',
  415. duration: 2000
  416. })
  417. }
  418. });
  419. },
  420. commitEdit() {
  421. console.log(this.addressUrl, "数组")
  422. this.DriverViewInfo.addressUrl = this.addressUrl.toString()
  423. console.log(this.DriverViewInfo.addressUrl, "字符串")
  424. this.DriverViewInfo.driverCarInfoList = this.driverCarInfoList
  425. this.DriverViewInfo.driverPayeeInfoList = this.driverPayeeInfoList
  426. this.DriverViewInfo.commonId = this.userInfo.id
  427. this.DriverViewInfo.cardAddressUrl = this.id.toString()
  428. this.DriverViewInfo.pcFlag = 0
  429. this.DriverViewInfo.compId = "2710b21efc1e4393930c5dc800010dc4"
  430. console.log(this.DriverViewInfo, "司机对象")
  431. this.$api.doRequest('post', '/driverViewInfo/api/editInfo', this.DriverViewInfo).then(res => {}).catch(
  432. res => {
  433. uni.showToast({
  434. title: res.data.message,
  435. icon: 'none',
  436. duration: 2000
  437. })
  438. })
  439. },
  440. bankimgs(items) {
  441. console.log(items)
  442. var that = this
  443. uni.chooseImage({
  444. success: function(res) {
  445. uni.uploadFile({
  446. url: 'https://www.zthymaoyi.com/upload/admin',
  447. filePath: res.tempFilePaths[0],
  448. name: 'file',
  449. success(res) {
  450. var data = res.data
  451. var strToObj = JSON.parse(data)
  452. // that.id[0] = strToObj.url
  453. that.bankimg = strToObj.url
  454. that.bankImgs1.bankImg = strToObj.url
  455. that.$api.doRequest('get', '/driverViewInfo/bankShibie', that
  456. .bankImgs1).then(res => {
  457. console.log(res)
  458. that.$set(that.driverPayeeInfoList[items], 'bankCard', res
  459. .data.data.bankNo)
  460. that.$set(that.driverPayeeInfoList[items], 'bankDeposit',
  461. res.data.data.bankName)
  462. that.bankType = res.data.data.bankNameZhihang
  463. console.log(that.ban)
  464. }).catch(res => {
  465. uni.showToast({
  466. title: res.data.message,
  467. icon: 'none',
  468. duration: 2000
  469. })
  470. })
  471. }
  472. })
  473. }
  474. })
  475. },
  476. idUp() {
  477. var that = this
  478. uni.chooseImage({
  479. success: function(res) {
  480. uni.uploadFile({
  481. url: 'https://www.zthymaoyi.com/upload/admin',
  482. filePath: res.tempFilePaths[0],
  483. name: 'file',
  484. success(res) {
  485. var data = res.data
  486. var strToObj = JSON.parse(data)
  487. that.id[0] = strToObj.url
  488. that.id1 = strToObj.url
  489. }
  490. })
  491. }
  492. })
  493. },
  494. idLow() {
  495. var that = this
  496. uni.chooseImage({
  497. success: function(res) {
  498. uni.uploadFile({
  499. url: 'https://www.zthymaoyi.com/upload/admin',
  500. filePath: res.tempFilePaths[0],
  501. name: 'file',
  502. success(res) {
  503. var data = res.data
  504. var strToObj = JSON.parse(data)
  505. that.id[1] = strToObj.url
  506. that.id2 = strToObj.url
  507. }
  508. })
  509. }
  510. })
  511. },
  512. travel() {
  513. var that = this
  514. uni.chooseImage({
  515. success: function(res) {
  516. uni.uploadFile({
  517. url: 'https://www.zthymaoyi.com/upload/admin',
  518. filePath: res.tempFilePaths[0],
  519. name: 'file',
  520. success(res) {
  521. var data = res.data
  522. var strToObj = JSON.parse(data)
  523. that.travels = strToObj.url
  524. that.addressUrl[0] = strToObj.url
  525. console.log(that.addressUrl)
  526. }
  527. })
  528. }
  529. })
  530. },
  531. drive(){
  532. var that = this
  533. uni.chooseImage({
  534. success: function(res) {
  535. uni.uploadFile({
  536. url: 'https://www.zthymaoyi.com/upload/admin',
  537. filePath: res.tempFilePaths[0],
  538. name: 'file',
  539. success(res) {
  540. var data = res.data
  541. var strToObj = JSON.parse(data)
  542. that.drives = strToObj.url
  543. that.addressUrl[1] = strToObj.url
  544. console.log(that.addressUrl)
  545. }
  546. })
  547. }
  548. })
  549. },
  550. operate(){
  551. var that = this
  552. uni.chooseImage({
  553. success: function(res) {
  554. uni.uploadFile({
  555. url: 'https://www.zthymaoyi.com/upload/admin',
  556. filePath: res.tempFilePaths[0],
  557. name: 'file',
  558. success(res) {
  559. var data = res.data
  560. var strToObj = JSON.parse(data)
  561. that.operates = strToObj.url
  562. that.addressUrl[2] = strToObj.url
  563. console.log(that.addressUrl)
  564. }
  565. })
  566. }
  567. })
  568. },
  569. practice(){
  570. var that = this
  571. uni.chooseImage({
  572. success: function(res) {
  573. uni.uploadFile({
  574. url: 'https://www.zthymaoyi.com/upload/admin',
  575. filePath: res.tempFilePaths[0],
  576. name: 'file',
  577. success(res) {
  578. var data = res.data
  579. var strToObj = JSON.parse(data)
  580. that.practices = strToObj.url
  581. that.addressUrl[3] = strToObj.url
  582. console.log(that.addressUrl)
  583. }
  584. })
  585. },
  586. })
  587. },
  588. getcode() {
  589. var that = this
  590. if (/^0?1[3|4|5|6|7|8][0-9]\d{8}$/.test(that.DriverViewInfo.driverPhone)) {
  591. console.log(that.DriverViewInfo.driverPhone)
  592. this.$api.doRequest('get', '/commonUser/sendVerifyCode', {
  593. phone: that.DriverViewInfo.driverPhone
  594. }).then(res => {
  595. if (res.data.code == 200) {
  596. that.sendDisabled = true
  597. let sec = 60
  598. let interval = setInterval(() => {
  599. sec--;
  600. that.sendText = sec + 's后重发'
  601. if (sec <= 0) {
  602. that.sendDisabled = false
  603. that.sendText = "获取验证码"
  604. clearInterval(interval)
  605. }
  606. }, 1000)
  607. } else {
  608. uni.showToast({
  609. title: res.data.message,
  610. icon: 'none',
  611. duration: 2000
  612. })
  613. }
  614. })
  615. .catch(res => {
  616. uni.showToast({
  617. title: res.data.message,
  618. icon: 'none',
  619. duration: 2000
  620. })
  621. });
  622. } else {
  623. uni.showToast({
  624. title: '请输入正确的手机号',
  625. icon: 'none',
  626. duration: 2000
  627. })
  628. }
  629. },
  630. ModelChange(e) {
  631. this.ModelIndex = e.detail.value
  632. this.Model = this.ModelType[this.ModelIndex];
  633. this.driverCarInfoList.carModel = this.ModelType[this.ModelIndex];
  634. },
  635. carLongChange(e) {
  636. this.carLongIndex = e.detail.value
  637. this.carLong = this.carLongType[this.carLongIndex];
  638. },
  639. }
  640. }
  641. </script>
  642. <style>
  643. .center {
  644. padding: 10px 20px;
  645. }
  646. .labels {
  647. font-size: 14px;
  648. }
  649. .c-row {
  650. display: -webkit-box;
  651. display: -webkit-flex;
  652. display: flex;
  653. -webkit-box-align: center;
  654. -webkit-align-items: center;
  655. align-items: center;
  656. padding: 20rpx 30rpx;
  657. position: relative;
  658. }
  659. .con-list {
  660. -webkit-box-flex: 1;
  661. -webkit-flex: 1;
  662. flex: 1;
  663. display: -webkit-box;
  664. display: -webkit-flex;
  665. display: flex;
  666. -webkit-box-orient: vertical;
  667. -webkit-box-direction: normal;
  668. -webkit-flex-direction: column;
  669. flex-direction: column;
  670. color: #303133;
  671. line-height: 40rpx;
  672. text-align: right;
  673. padding-right: 20rpx;
  674. font-size: 14px;
  675. }
  676. .getcode {
  677. font-size: 14px;
  678. position: absolute;
  679. top: 50%;
  680. transform: translateY(-50%);
  681. color: #AFB3BF;
  682. background: #F5F6F9;
  683. height: 30px;
  684. line-height: 30px;
  685. }
  686. .active {
  687. background: #22C572;
  688. color: #fff;
  689. }
  690. .uni-navigator {
  691. display: inline-block;
  692. color: #22C572;
  693. }
  694. .verificationCode {
  695. margin-top: 20px;
  696. background: #F5F6F9;
  697. color: #AFB3BF;
  698. }
  699. .verificationCode:after {
  700. border: none;
  701. }
  702. .verificationCode.active {
  703. background: #22C572;
  704. color: #fff;
  705. }
  706. .getcode {
  707. font-size: 14px;
  708. position: absolute;
  709. /* right:0; */
  710. top: 50%;
  711. transform: translateY(-50%);
  712. color: #AFB3BF;
  713. background: #F5F6F9;
  714. height: 30px;
  715. line-height: 30px;
  716. }
  717. .getcode:after {
  718. border: none;
  719. }
  720. .getcode.active {
  721. background: #22C572;
  722. color: #fff;
  723. }
  724. .picture {
  725. width: 100%;
  726. height: 220px;
  727. text-align: center;
  728. margin-top: 10px;
  729. }
  730. .fujians {
  731. margin: 0 auto;
  732. background-color: #FFFFFF;
  733. margin-top: 30px;
  734. border-radius: 20px;
  735. padding: 10px 10px;
  736. }
  737. .btn {
  738. margin-top: 10px;
  739. background-color: #FFFFFF;
  740. border-radius: 25px;
  741. border: none;
  742. }
  743. .btns {
  744. background-color: #22C572;
  745. color: white;
  746. }
  747. .information {
  748. margin-top: 10px;
  749. width: 100%;
  750. height: 56px;
  751. background-color: #FFFFFF;
  752. border-radius: 16px;
  753. }
  754. .informations {
  755. margin-top: 10px;
  756. background-color: #FFFFFF;
  757. border-radius: 20px;
  758. }
  759. .personalcss {
  760. background-color: #FFFFFF;
  761. border-radius: 20px;
  762. margin-top: 10px;
  763. }
  764. .open {
  765. width: 30px;
  766. height: 20px;
  767. position: absolute;
  768. right: 20px;
  769. margin-top: -10px;
  770. }
  771. .add {
  772. width: 26px;
  773. height: 26px;
  774. /* background-image: url(../../static/img/jiaoyi/ic_fabu@3x.png); */
  775. }
  776. /* 清除 */
  777. .eliminate {
  778. width: 20px;
  779. height: 20px;
  780. float: right;
  781. }
  782. .bankImg {
  783. width: 20px;
  784. height: 20px;
  785. }
  786. </style>