|
@@ -1,7 +1,6 @@
|
|
|
<template>
|
|
|
<view class="center">
|
|
|
<view>
|
|
|
-
|
|
|
<view>
|
|
|
<view style="margin: 0 auto;" v-if="id != ''" @click="idUp">
|
|
|
<image v-bind:src="id1" class="picture"></image>
|
|
@@ -12,8 +11,6 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="personalcss">
|
|
|
-
|
|
|
-
|
|
|
<view class="c-row b-b">
|
|
|
<text class="tit">姓名</text>
|
|
|
<view class="con-list">
|
|
@@ -33,9 +30,9 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view style='width:100%;border-bottom:1px solid #E8E9ED;position:relative;padding:10px;' class="flex">
|
|
|
- <button :class='codestatus&&!sendDisabled?"active":""' @click='getcode'
|
|
|
- class='getcode'>{{sendText}}</button>
|
|
|
- <view style='width:70%;position:relative;margin-left: 200px;'>
|
|
|
+ <button :class='!sendDisabled?"getcode active":"getcode"' @click='getcode'
|
|
|
+ >{{sendText}}</button>
|
|
|
+ <view style='width:70%;position:relative;margin-left: 200rpx;'>
|
|
|
<view class="con-list">
|
|
|
<!-- style='width:70%;position:relative;margin-left: 200px;' -->
|
|
|
<input v-model='verifyCode' placeholder="请输入验证码" type="text">
|
|
@@ -43,11 +40,11 @@
|
|
|
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="c-row b-b">
|
|
|
+ <view class="c-row ">
|
|
|
<text class="tit">常驻城市</text>
|
|
|
<view class="con-list">
|
|
|
- <input placeholder="请填写常驻城市" name="input"
|
|
|
- v-model="DriverViewInfo.residentCityProvincial"></input>
|
|
|
+ <view @click='regionchange'>{{region}}</view>
|
|
|
+ <u-picker :params='params1' @confirm='regionpicker' mode="region" v-model="show1"></u-picker>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -59,7 +56,7 @@
|
|
|
<view class="c-row">
|
|
|
<text class="tit" style="line-height: 36px;">货车信息</text>
|
|
|
<view class="con-list">
|
|
|
- <image v-bind:src="opencar" class="open" opencarboolean @click="opencarclick"></image>
|
|
|
+ <image v-bind:src="opencar" class="open" @click="opencarclick"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -270,6 +267,10 @@
|
|
|
params: {
|
|
|
year: true,
|
|
|
},
|
|
|
+ params1: {
|
|
|
+ province: true,
|
|
|
+ city: true,
|
|
|
+ },
|
|
|
verifyCode: "",
|
|
|
codestatus: false,
|
|
|
customerPhone: '',
|
|
@@ -278,6 +279,7 @@
|
|
|
openuserboolean: false,
|
|
|
carchength: true,
|
|
|
show: false,
|
|
|
+ show1: false,
|
|
|
opencar: "../../static/img/authentication/down2@3x.png",
|
|
|
openuser: "../../static/img/authentication/down2@3x.png",
|
|
|
bankimg: "",
|
|
@@ -285,6 +287,7 @@
|
|
|
bankIndex: -1,
|
|
|
bankType: [],
|
|
|
year:[],
|
|
|
+ region:"请选择常驻城市",
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -307,6 +310,15 @@
|
|
|
this.getList(option.id)
|
|
|
},
|
|
|
methods: {
|
|
|
+ regionchange() {
|
|
|
+ this.show1 = true
|
|
|
+ },
|
|
|
+ regionpicker(e) {
|
|
|
+ // this.deptList.outputPrivate = e.province.label
|
|
|
+ // this.deptList.outputCity = e.city.label
|
|
|
+ this.region = e.province.label + '-' + e.city.label
|
|
|
+ this.DriverViewInfo.residentCityProvincial = e.province.label + e.city.label
|
|
|
+ },
|
|
|
yearpicker(e, index) {
|
|
|
this.year[index] = e.year
|
|
|
this.driverCarInfoList[index].yearManufacture = e.year
|
|
@@ -398,6 +410,7 @@
|
|
|
this.operates = this.address[2]
|
|
|
this.practices = this.address[3]
|
|
|
}
|
|
|
+ this.region = this.DriverViewInfo.residentCityProvincial
|
|
|
})
|
|
|
.catch(res => {
|
|
|
if(res.errmsg){
|
|
@@ -588,10 +601,10 @@
|
|
|
},
|
|
|
getcode() {
|
|
|
var that = this
|
|
|
- console.log(that.DriverViewInfo.driverPhone)
|
|
|
if (/^0?1[3|4|5|6|7|8][0-9]\d{8}$/.test(that.DriverViewInfo.driverPhone)) {
|
|
|
+ console.log(that.DriverViewInfo.driverPhone)
|
|
|
this.$api.doRequest('get', '/commonUser/sendVerifyCode', {
|
|
|
- customerPhone: that.DriverViewInfo.driverPhone
|
|
|
+ phone: that.DriverViewInfo.driverPhone
|
|
|
}).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
that.sendDisabled = true
|
|
@@ -648,8 +661,7 @@
|
|
|
}
|
|
|
|
|
|
.labels {
|
|
|
- font-size: 16px;
|
|
|
- font-weight: 400;
|
|
|
+ font-size: 14px;
|
|
|
}
|
|
|
|
|
|
.c-row {
|
|
@@ -690,58 +702,17 @@
|
|
|
background: #F5F6F9;
|
|
|
height: 30px;
|
|
|
line-height: 30px;
|
|
|
+
|
|
|
}
|
|
|
-
|
|
|
- .getcode.active {
|
|
|
- border: none;
|
|
|
+ .active {
|
|
|
+ background: #22C572;
|
|
|
+ color: #fff;
|
|
|
}
|
|
|
-
|
|
|
.uni-navigator {
|
|
|
display: inline-block;
|
|
|
color: #22C572;
|
|
|
}
|
|
|
|
|
|
- .getcode.active {
|
|
|
- background: #22C572;
|
|
|
- color: #fff;
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- .labels {
|
|
|
- font-size: 16px;
|
|
|
- font-weight: 400;
|
|
|
- }
|
|
|
-
|
|
|
- .c-row {
|
|
|
- display: -webkit-box;
|
|
|
- display: -webkit-flex;
|
|
|
- display: flex;
|
|
|
- -webkit-box-align: center;
|
|
|
- -webkit-align-items: center;
|
|
|
- align-items: center;
|
|
|
- padding: 20rpx 30rpx;
|
|
|
- position: relative;
|
|
|
- }
|
|
|
-
|
|
|
- .con-list {
|
|
|
- -webkit-box-flex: 1;
|
|
|
- -webkit-flex: 1;
|
|
|
- flex: 1;
|
|
|
- display: -webkit-box;
|
|
|
- display: -webkit-flex;
|
|
|
- display: flex;
|
|
|
- -webkit-box-orient: vertical;
|
|
|
- -webkit-box-direction: normal;
|
|
|
- -webkit-flex-direction: column;
|
|
|
- flex-direction: column;
|
|
|
- color: #303133;
|
|
|
- line-height: 40rpx;
|
|
|
- text-align: right;
|
|
|
- padding-right: 20rpx;
|
|
|
- font-size: 14px;
|
|
|
- }
|
|
|
-
|
|
|
.verificationCode {
|
|
|
margin-top: 20px;
|
|
|
background: #F5F6F9;
|