|
@@ -12,31 +12,31 @@
|
|
|
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="status1" v-if="item.authenticationStatus == '审核中'">
|
|
|
+ {{item.authenticationStatus}}
|
|
|
+ </view>
|
|
|
+ <view class="status2" v-if="item.authenticationStatus == '未通过'">
|
|
|
+ {{item.authenticationStatus}}
|
|
|
</view>
|
|
|
- <view class="geren" v-if="item.customerTypeFlag == 1"> {{item.customerPhone}}</view>
|
|
|
- <view class="geren" v-if="item.customerTypeFlag == 2">{{item.customerName}}{{item.customerPhone}}
|
|
|
+ <view class="status3" v-if="item.authenticationStatus == '已覆盖'">
|
|
|
+ {{item.authenticationStatus}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="geren" v-if="item.customerTypeFlag == 1"> {{item.customerPhone}}</view>
|
|
|
+ <view class="geren" v-if="item.customerTypeFlag == 2">{{item.customerName}}{{item.customerPhone}}
|
|
|
</view>
|
|
|
<hr style="margin: 10px 0;">
|
|
|
<view class="flex">
|
|
|
<view class="yuan flex">
|
|
|
- <view v-bind:class="defaults1" @click="select(item)" v-if="item.basis == 'false'">√</view>
|
|
|
- <view v-bind:class="defaults2" @click="select(item)" v-if="item.basis == 'true'">√</view>
|
|
|
- <text @click="select(item)">设为默认</text>
|
|
|
- <!-- <image src="../../static/img/authentication/selected(2).png"
|
|
|
- style="width: 16px;height: 16px;top: 3px;">设为默认</image> -->
|
|
|
+ <view v-bind:class="defaults1" @click.stop="select(item)" v-if="item.basis == 'false'"></view>
|
|
|
+ <view v-bind:class="defaults2" @click.stop="select(item)" v-if="item.basis == 'true'">√</view>
|
|
|
+ <text @click.stop="select(item)">设为默认</text>
|
|
|
+ </view>
|
|
|
+ <view class="options flex">
|
|
|
+ <view class='but' @click="open(item)">更换手机号</view>
|
|
|
+ <view class='but' @click="companyEdit(item)">修改</view>
|
|
|
+ <view class='but' @click="deleteLS(item)">删除</view>
|
|
|
</view>
|
|
|
- <view class='but' @click="open(item)">更换手机号</view>
|
|
|
- <view class='but' @click="companyEdit(item)">修改</view>
|
|
|
- <view class='but' @click="deleteLS(item)">删除</view>
|
|
|
</view>
|
|
|
<view v-if='pricestatus' class='shade'>
|
|
|
<view class='shade-content'>
|
|
@@ -66,7 +66,7 @@
|
|
|
<view class="cancel" @click='pricestatusTwo=false,pricestatus=false'>×</view>
|
|
|
<view class='shade-content-item flex'>
|
|
|
<input v-model='verifyCode' placeholder="填写验证码" type="number" class="tainput1">
|
|
|
- <text style="color:#AFB3BF;font-size: 14px;">{{sendText}}</text>
|
|
|
+ <text style="color:#AFB3BF;font-size: 14px;" @click="resend">{{sendText}}</text>
|
|
|
</view>
|
|
|
<view>
|
|
|
<view class="flex">
|
|
@@ -101,8 +101,9 @@
|
|
|
sendText: "60s后重发",
|
|
|
verifyCode: "",
|
|
|
loadStatus: 'loading', //加载样式:more-加载前样式,loading-加载中样式,nomore-没有数据样式
|
|
|
- id:"",
|
|
|
- defaults:"default1",
|
|
|
+ id: "",
|
|
|
+ defaults1: "default1",
|
|
|
+ defaults2: "default2",
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -112,26 +113,39 @@
|
|
|
this.getList()
|
|
|
},
|
|
|
methods: {
|
|
|
- select(item){
|
|
|
-
|
|
|
- if(item.basis == "false"){
|
|
|
- this.defaults = "default2"
|
|
|
- }else if(item.basis == "true"){
|
|
|
- this.defaults = "default1"
|
|
|
+ resend() {
|
|
|
+ if (this.sendText == "获取验证码") {
|
|
|
+ this.getcode()
|
|
|
}
|
|
|
- this.identityAuthenticationInfo.commonId= this.userInfo.id
|
|
|
+ },
|
|
|
+ select(item) {
|
|
|
+ if (item.basis == "false") {
|
|
|
+ for (var i = 0; i < this.businessman.length; i++) {
|
|
|
+ if (this.businessman[i] == item) {
|
|
|
+ item.basis = "true"
|
|
|
+ } else {
|
|
|
+ this.businessman[i].basis = "false"
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // this.defaults1 = "default2"
|
|
|
+ } else if (item.basis == "true") {
|
|
|
+ item.basis = "false"
|
|
|
+ // this.defaults2 = "default1"
|
|
|
+ }
|
|
|
+ this.identityAuthenticationInfo.commonId = this.userInfo.id
|
|
|
this.identityAuthenticationInfo.defaultFlag = 1
|
|
|
- return
|
|
|
- this.$api.doRequest('post', '/identityAuthenticationInfo/api/setDefault',this.identityAuthenticationInfo, 'application/json;charset=UTF-8').then(res => {
|
|
|
- console.log("成功连接")
|
|
|
- this.businessman = res.data.data.records
|
|
|
- for(var i = 0 ; i < this.businessman.length ; i++){
|
|
|
- if(this.businessman.defaultFlag == 1){
|
|
|
+ this.identityAuthenticationInfo.id = item.id
|
|
|
+ this.$api.doRequest('post', '/identityAuthenticationInfo/api/setDefault', this.identityAuthenticationInfo,
|
|
|
+ 'application/json;charset=UTF-8').then(res => {
|
|
|
+ for (var i = 0; i < this.businessman.length; i++) {
|
|
|
+ if (this.businessman.defaultFlag == 1) {
|
|
|
this.defaults = "default2"
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
this.defaults = "default1"
|
|
|
}
|
|
|
}
|
|
|
+ this.getList()
|
|
|
})
|
|
|
.catch(res => {
|
|
|
uni.showToast({
|
|
@@ -140,18 +154,7 @@
|
|
|
duration: 2000
|
|
|
})
|
|
|
});
|
|
|
-
|
|
|
- },
|
|
|
- nextstep() {
|
|
|
- if (!this.price) {
|
|
|
- this.$api.msg('请填写手机号')
|
|
|
- return
|
|
|
- }
|
|
|
- if (this.price.length != 11 ) {
|
|
|
- this.$api.msg('请正确填写手机号')
|
|
|
- return
|
|
|
- }
|
|
|
- // this.pricestatusTwo = !this.pricestatusTwo
|
|
|
+
|
|
|
},
|
|
|
open(item) {
|
|
|
this.id = item.id
|
|
@@ -170,13 +173,14 @@
|
|
|
currentPage: 1,
|
|
|
commonId: this.userInfo.id
|
|
|
}, 'application/json;charset=UTF-8').then(res => {
|
|
|
- console.log("成功连接")
|
|
|
-
|
|
|
- for(var i = 0 ; i < res.data.data.records.length ; i++){
|
|
|
-
|
|
|
+ for (var i = 0; i < res.data.data.records.length; i++) {
|
|
|
res.data.data.records[i].basis = "false"
|
|
|
+ if (res.data.data.records[i].defaultFlag == 1) {
|
|
|
+ res.data.data.records[i].basis = "true"
|
|
|
+ }
|
|
|
}
|
|
|
this.businessman = res.data.data.records
|
|
|
+
|
|
|
})
|
|
|
.catch(res => {
|
|
|
uni.showToast({
|
|
@@ -202,7 +206,22 @@
|
|
|
url: '/pages/attestation/indexTwo'
|
|
|
});
|
|
|
this.$api.msg('修改成功!')
|
|
|
- }
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ title: res.errmsg,
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (res.data.code == "ERROR") {
|
|
|
+ uni.showToast({
|
|
|
+ title: res.message,
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
})
|
|
|
.catch(res => {
|
|
|
uni.showToast({
|
|
@@ -215,6 +234,7 @@
|
|
|
// uni.hideLoading()
|
|
|
} else {
|
|
|
// uni.hideLoading()
|
|
|
+ console.log(res.data.message, "aaaaa")
|
|
|
uni.showToast({
|
|
|
title: res.data.message,
|
|
|
icon: 'none',
|
|
@@ -223,24 +243,33 @@
|
|
|
}
|
|
|
})
|
|
|
.catch(res => {
|
|
|
- uni.showToast({
|
|
|
-
|
|
|
- title: res.data.message,
|
|
|
- icon: 'none',
|
|
|
- duration: 2000
|
|
|
- })
|
|
|
+ uni.showToast({
|
|
|
+ title: res.data.message,
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
});
|
|
|
},
|
|
|
getcode() {
|
|
|
if (!this.price) {
|
|
|
- this.$api.msg('请填写手机号')
|
|
|
+ console.log(this.$api)
|
|
|
+ uni.showToast({
|
|
|
+ title: '请填写手机号!',
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
return
|
|
|
}
|
|
|
- if (this.price.length != 11 ) {
|
|
|
- this.$api.msg('请正确填写手机号')
|
|
|
+ if (this.price.length != 11) {
|
|
|
+ uni.showToast({
|
|
|
+ title: '请正确填写手机号!',
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
return
|
|
|
}
|
|
|
- this.pricestatusTwo = !this.pricestatusTwo
|
|
|
+ this.pricestatusTwo = true
|
|
|
+ // this.pricestatusTwo = !this.pricestatusTwo
|
|
|
var that = this
|
|
|
if (/^0?1[3|4|5|6|7|8][0-9]\d{8}$/.test(this.price)) {
|
|
|
this.$api.doRequest('get', '/commonUser/sendVerifyCode', {
|
|
@@ -455,7 +484,7 @@
|
|
|
top: 50%;
|
|
|
left: 50%;
|
|
|
transform: translateX(-50%) translateY(-50%);
|
|
|
- z-index: 999999;
|
|
|
+ z-index: 2;
|
|
|
text-align: center;
|
|
|
border-radius: 20px;
|
|
|
}
|
|
@@ -474,7 +503,7 @@
|
|
|
width: 100%;
|
|
|
background: rgba(0, 0, 0, 0.1);
|
|
|
height: 100%;
|
|
|
- z-index: 999999;
|
|
|
+ z-index: 2;
|
|
|
}
|
|
|
|
|
|
.titel {
|
|
@@ -540,7 +569,8 @@
|
|
|
.btn2 {
|
|
|
color: #22C572;
|
|
|
}
|
|
|
- .default1{
|
|
|
+
|
|
|
+ .default1 {
|
|
|
width: 16px;
|
|
|
height: 16px;
|
|
|
border: 1px solid #AFB3BF;
|
|
@@ -548,10 +578,11 @@
|
|
|
text-align: center;
|
|
|
line-height: 16px;
|
|
|
color: #FFFFFF;
|
|
|
- margin-right: 3px ;
|
|
|
+ margin-right: 3px;
|
|
|
margin-top: 2px;
|
|
|
}
|
|
|
- .default2{
|
|
|
+
|
|
|
+ .default2 {
|
|
|
width: 16px;
|
|
|
height: 16px;
|
|
|
border: 1px solid #AFB3BF;
|
|
@@ -559,8 +590,12 @@
|
|
|
text-align: center;
|
|
|
line-height: 16px;
|
|
|
color: #FFFFFF;
|
|
|
- margin-right: 3px ;
|
|
|
+ margin-right: 3px;
|
|
|
margin-top: 2px;
|
|
|
background-color: #22C572;
|
|
|
}
|
|
|
+
|
|
|
+ .options {
|
|
|
+ justify-content: flex-end;
|
|
|
+ }
|
|
|
</style>
|