|
@@ -10,20 +10,20 @@
|
|
|
已覆盖
|
|
|
</view>
|
|
|
<view v-else>
|
|
|
- <view class="status" v-if="item.authenticationStatus == '已认证'">
|
|
|
- <image src="../../static/img/authentication/cert-personal@3x.png"
|
|
|
- style="width: 16px;height: 16px;top:3px;"></image>
|
|
|
- {{item.authenticationStatus}}
|
|
|
- </view>
|
|
|
- <view class="status1" v-if="item.authenticationStatus == '审核中'">
|
|
|
- {{item.authenticationStatus}}
|
|
|
- </view>
|
|
|
- <view class="status2" v-if="item.authenticationStatus == '未通过'">
|
|
|
- {{item.authenticationStatus}}
|
|
|
- </view>
|
|
|
- <view class="status3" v-if="item.authenticationStatus == '已覆盖'">
|
|
|
- {{item.authenticationStatus}}
|
|
|
- </view>
|
|
|
+ <view class="status" v-if="item.authenticationStatus == '已认证'">
|
|
|
+ <image src="../../static/img/authentication/cert-personal@3x.png"
|
|
|
+ style="width: 16px;height: 16px;top:3px;"></image>
|
|
|
+ {{item.authenticationStatus}}
|
|
|
+ </view>
|
|
|
+ <view class="status1" v-if="item.authenticationStatus == '审核中'">
|
|
|
+ {{item.authenticationStatus}}
|
|
|
+ </view>
|
|
|
+ <view class="status2" v-if="item.authenticationStatus == '未通过'">
|
|
|
+ {{item.authenticationStatus}}
|
|
|
+ </view>
|
|
|
+ <view class="status3" v-if="item.authenticationStatus == '已覆盖'">
|
|
|
+ {{item.authenticationStatus}}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="geren">{{item.driverPhone}}</view>
|
|
@@ -32,7 +32,8 @@
|
|
|
<image src="../../static/img/authentication/selected(2).png"
|
|
|
style="width: 16px;height: 16px;top: 3px;">设为默认</image>
|
|
|
</view> -->
|
|
|
- <view class='but' v-if="item.authenticationStatus == '已覆盖'||item.authenticationStatus == '已认证'" @click="open(item)">更换手机号</view>
|
|
|
+ <view class='but' v-if="item.authenticationStatus == '已覆盖'||item.authenticationStatus == '已认证'"
|
|
|
+ @click="open(item)">更换手机号</view>
|
|
|
<view class='but' v-if="item.authenticationStatus != '审核中'" @click="companyEdit(item)">修改</view>
|
|
|
<view class='but' @click="deleteSJ(item)">删除</view>
|
|
|
</view>
|
|
@@ -43,9 +44,9 @@
|
|
|
</view>
|
|
|
<view class="cancel" @click='pricestatus=false'>×</view>
|
|
|
<view class='shade-content-item'>
|
|
|
- <input v-model='price' placeholder="请输入手机号" maxlength="11" type="number" class="tainput" >
|
|
|
+ <input v-model='price' placeholder="请输入手机号" maxlength="11" type="number" class="tainput">
|
|
|
</view>
|
|
|
- <view>
|
|
|
+ <view class="bottom-btn">
|
|
|
<!--<view style='width:50%;display:inline-block;' @click='pricestatus=false'>取消</view>
|
|
|
<view style='width:50%;display:inline-block;' @click='amendprice'>确定</view> -->
|
|
|
<view class="determine" @click="getcode">
|
|
@@ -82,7 +83,7 @@
|
|
|
|
|
|
</view>
|
|
|
<view v-if="drivers.length==0">
|
|
|
- <button class="btn btns" @click="Add">新增</button>
|
|
|
+ <button class="btn btns" @click="Add">新增</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -103,7 +104,7 @@
|
|
|
price: "",
|
|
|
verifyCode: "",
|
|
|
sendText: "60s后重发",
|
|
|
- id:"",
|
|
|
+ id: "",
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -114,15 +115,15 @@
|
|
|
},
|
|
|
onPullDownRefresh() {
|
|
|
this.getList()
|
|
|
- setTimeout(function () {
|
|
|
+ setTimeout(function() {
|
|
|
uni.stopPullDownRefresh();
|
|
|
}, 1000);
|
|
|
},
|
|
|
methods: {
|
|
|
resend() {
|
|
|
-
|
|
|
+
|
|
|
price
|
|
|
-
|
|
|
+
|
|
|
if (this.sendText == "获取验证码") {
|
|
|
this.getcode()
|
|
|
}
|
|
@@ -146,21 +147,20 @@
|
|
|
pcFlag: 0
|
|
|
}, 'application/json;charset=UTF-8').then(res => {
|
|
|
console.log(res.data.data.records)
|
|
|
- for(var i = 0 ; i < res.data.data.records.length ; i++){
|
|
|
- res.data.data.records[i].logo = res.data.data.records[i].driverName.substr(0,1)
|
|
|
+ for (var i = 0; i < res.data.data.records.length; i++) {
|
|
|
+ res.data.data.records[i].logo = res.data.data.records[i].driverName.substr(0, 1)
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
this.drivers = res.data.data.records
|
|
|
})
|
|
|
.catch(res => {
|
|
|
- if(res.errmsg){
|
|
|
+ if (res.errmsg) {
|
|
|
uni.showToast({
|
|
|
title: res.errmsg,
|
|
|
icon: 'none',
|
|
|
duration: 2000
|
|
|
})
|
|
|
- }
|
|
|
- else{
|
|
|
+ } else {
|
|
|
uni.showToast({
|
|
|
title: "系统异常,请联系管理员",
|
|
|
icon: 'none',
|
|
@@ -173,85 +173,88 @@
|
|
|
var that = this
|
|
|
that.identityAuthenticationInfo.driverPhone = that.price
|
|
|
this.$api.doRequest('get', '/commonUser/loginVerifyCode', {
|
|
|
- phone: this.price,
|
|
|
- verifyCode: this.verifyCode
|
|
|
- }).then(res => {
|
|
|
- if (res.data.code == 200) {
|
|
|
- that.$api.doRequest('get','/driverViewInfo/selectPhone',that.identityAuthenticationInfo)
|
|
|
+ phone: this.price,
|
|
|
+ verifyCode: this.verifyCode
|
|
|
+ }).then(res => {
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ that.$api.doRequest('get', '/driverViewInfo/selectPhone', that.identityAuthenticationInfo)
|
|
|
.then(res => {
|
|
|
- if (res.data.code == '11018') {
|
|
|
- uni.showModal({
|
|
|
- title: '提示',
|
|
|
- content: '该手机号已认证过司机,再次认证将覆盖之前的认证信息,是否确定认证?',
|
|
|
- success: function(res) {
|
|
|
- if (res.confirm) {
|
|
|
- that.identityAuthenticationInfo.id = item.id
|
|
|
- that.$api.doRequest('post','/driverViewInfo/api/modifyPhone',that.identityAuthenticationInfo).then(
|
|
|
- res => {
|
|
|
- uni.showToast({
|
|
|
- title: '提交成功',
|
|
|
- icon: 'none',
|
|
|
- duration: 2000
|
|
|
- })
|
|
|
- uni.navigateTo({
|
|
|
- url: `/pages/attestation/indexThree`,
|
|
|
- })
|
|
|
- }).catch(res => {
|
|
|
+ if (res.data.code == '11018') {
|
|
|
+ uni.showModal({
|
|
|
+ title: '提示',
|
|
|
+ content: '该手机号已认证过司机,再次认证将覆盖之前的认证信息,是否确定认证?',
|
|
|
+ success: function(res) {
|
|
|
+ if (res.confirm) {
|
|
|
+ that.identityAuthenticationInfo.id = item.id
|
|
|
+ that.$api.doRequest('post',
|
|
|
+ '/driverViewInfo/api/modifyPhone', that
|
|
|
+ .identityAuthenticationInfo).then(
|
|
|
+ res => {
|
|
|
uni.showToast({
|
|
|
- title: res.data.message,
|
|
|
+ title: '提交成功',
|
|
|
icon: 'none',
|
|
|
duration: 2000
|
|
|
})
|
|
|
- })
|
|
|
- } else if (res.cancel) {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: `/pages/attestation/indexThree`,
|
|
|
+ })
|
|
|
+ }).catch(res => {
|
|
|
uni.showToast({
|
|
|
- title: '提交失败',
|
|
|
+ title: res.data.message,
|
|
|
icon: 'none',
|
|
|
duration: 2000
|
|
|
})
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- }else if(res.data.code == 200){
|
|
|
- that.identityAuthenticationInfo.id = item.id
|
|
|
- that.$api.doRequest('post','/driverViewInfo/api/modifyPhone',that.identityAuthenticationInfo).then(
|
|
|
- res => {
|
|
|
+ })
|
|
|
+ } else if (res.cancel) {
|
|
|
uni.showToast({
|
|
|
- title: '提交成功',
|
|
|
+ title: '提交失败',
|
|
|
icon: 'none',
|
|
|
duration: 2000
|
|
|
})
|
|
|
- uni.navigateTo({
|
|
|
- url: `/pages/attestation/indexThree`,
|
|
|
- })
|
|
|
- }).catch(res => {
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else if (res.data.code == 200) {
|
|
|
+ that.identityAuthenticationInfo.id = item.id
|
|
|
+ that.$api.doRequest('post', '/driverViewInfo/api/modifyPhone', that
|
|
|
+ .identityAuthenticationInfo).then(
|
|
|
+ res => {
|
|
|
uni.showToast({
|
|
|
- title: res.data.message,
|
|
|
+ title: '提交成功',
|
|
|
icon: 'none',
|
|
|
duration: 2000
|
|
|
})
|
|
|
+ uni.navigateTo({
|
|
|
+ url: `/pages/attestation/indexThree`,
|
|
|
+ })
|
|
|
+ }).catch(res => {
|
|
|
+ uni.showToast({
|
|
|
+ title: res.data.message,
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
})
|
|
|
- }
|
|
|
- }).catch(res => {
|
|
|
- uni.showToast({
|
|
|
- title: res.data.message,
|
|
|
- icon: 'none',
|
|
|
- duration: 2000
|
|
|
})
|
|
|
+ }
|
|
|
+ }).catch(res => {
|
|
|
+ uni.showToast({
|
|
|
+ title: res.data.message,
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
})
|
|
|
- }
|
|
|
- })
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
getcode() {
|
|
|
- if (!this.price) {
|
|
|
- uni.showToast({
|
|
|
- title: '请填写手机号!',
|
|
|
- icon: 'none',
|
|
|
- duration: 2000
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (this.price.length != 11 ) {
|
|
|
+ if (!this.price) {
|
|
|
+ uni.showToast({
|
|
|
+ title: '请填写手机号!',
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.price.length != 11) {
|
|
|
uni.showToast({
|
|
|
title: '请正确填写手机号!',
|
|
|
icon: 'none',
|
|
@@ -313,7 +316,7 @@
|
|
|
showCancel: true,
|
|
|
confirmText: '确定',
|
|
|
success: (e) => {
|
|
|
- if(e.confirm){
|
|
|
+ if (e.confirm) {
|
|
|
this.$api.doRequest('post', '/driverViewInfo/api/deleteDriver', this.deletes,
|
|
|
'application/json;charset=UTF-8').then(res => {
|
|
|
if (res.data.code == 200) {
|
|
@@ -323,14 +326,13 @@
|
|
|
}
|
|
|
})
|
|
|
.catch(res => {
|
|
|
- if(res.errmsg){
|
|
|
+ if (res.errmsg) {
|
|
|
uni.showToast({
|
|
|
title: res.errmsg,
|
|
|
icon: 'none',
|
|
|
duration: 2000
|
|
|
})
|
|
|
- }
|
|
|
- else{
|
|
|
+ } else {
|
|
|
uni.showToast({
|
|
|
title: "系统异常,请联系管理员",
|
|
|
icon: 'none',
|
|
@@ -339,7 +341,7 @@
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
fail: () => {},
|
|
|
complete: () => {}
|
|
@@ -382,7 +384,7 @@
|
|
|
color: #AFB3BF;
|
|
|
font-size: 14px;
|
|
|
margin-top: -10px;
|
|
|
- margin-left: 45px;
|
|
|
+ margin-left: 45px;
|
|
|
margin-bottom: 20px;
|
|
|
}
|
|
|
|
|
@@ -471,11 +473,9 @@
|
|
|
}
|
|
|
|
|
|
.but {
|
|
|
- height: 33px;
|
|
|
border: 1px solid #CDCDCD;
|
|
|
border-radius: 20px;
|
|
|
- line-height: 30px;
|
|
|
- padding: 0 8px;
|
|
|
+ padding: 15rpx 30rpx;
|
|
|
text-align: center;
|
|
|
margin-left: 20px;
|
|
|
font-size: 14px;
|
|
@@ -502,7 +502,7 @@
|
|
|
.shade-content-item {
|
|
|
width: 277px;
|
|
|
text-align: center;
|
|
|
- height: 121px;
|
|
|
+ height: 160rpx;
|
|
|
padding: 35px 10px;
|
|
|
|
|
|
}
|
|
@@ -523,21 +523,23 @@
|
|
|
margin-top: 20px;
|
|
|
}
|
|
|
|
|
|
+ .bottom-btn {
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ margin-bottom: 50rpx;
|
|
|
+ }
|
|
|
+
|
|
|
.determine {
|
|
|
- width: 95px;
|
|
|
- height: 36px;
|
|
|
+ width: 50%;
|
|
|
background-color: #22C572;
|
|
|
color: #FFFFFF;
|
|
|
border-radius: 10px;
|
|
|
- margin: 0 auto;
|
|
|
- line-height: 36px;
|
|
|
- margin-top: -30px;
|
|
|
- margin-bottom: 20px;
|
|
|
+ padding: 15rpx 18rpx;
|
|
|
}
|
|
|
|
|
|
.tainput {
|
|
|
- width: 70%;
|
|
|
- padding-left: 10px;
|
|
|
+ width: 90%;
|
|
|
+ padding-bottom: 15rpx;
|
|
|
margin: 0 auto;
|
|
|
text-align: left;
|
|
|
border-bottom: 1px solid #AFB3BF;
|
|
@@ -580,7 +582,8 @@
|
|
|
text-align: left;
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
- .options{
|
|
|
+
|
|
|
+ .options {
|
|
|
justify-content: flex-end;
|
|
|
}
|
|
|
</style>
|