|
@@ -11,20 +11,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" v-if="item.customerTypeFlag == 1"> {{item.customerPhone}}</view>
|
|
@@ -38,7 +38,8 @@
|
|
|
<text style="font-size: 12px;" @click.stop="select(item)">设为默认</text>
|
|
|
</view>
|
|
|
<view class="options flex">
|
|
|
- <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="deleteLS(item)">删除</view>
|
|
|
</view>
|
|
@@ -53,8 +54,6 @@
|
|
|
<input v-model='price' placeholder="请输入手机号" type="number" class="tainput" maxlength="11">
|
|
|
</view>
|
|
|
<view>
|
|
|
- <!-- <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">
|
|
|
获取验证码
|
|
|
</view>
|
|
@@ -78,9 +77,6 @@
|
|
|
<text class="btns1 btn1" @click='pricestatusTwo=false'>取消</text>
|
|
|
<view class="btns1 btn2" @click='amendprice(item)'>确定</view>
|
|
|
</view>
|
|
|
- <!-- <view class="determine">
|
|
|
- 获取验证码
|
|
|
- </view> -->
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -128,7 +124,7 @@
|
|
|
}
|
|
|
},
|
|
|
select(item) {
|
|
|
- if(item.authenticationStatus == '已认证'){
|
|
|
+ if (item.authenticationStatus == '已认证') {
|
|
|
if (item.basis == "false") {
|
|
|
for (var i = 0; i < this.businessman.length; i++) {
|
|
|
if (this.businessman[i] == item) {
|
|
@@ -137,7 +133,7 @@
|
|
|
this.businessman[i].basis = "false"
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
// this.defaults1 = "default2"
|
|
|
} else if (item.basis == "true") {
|
|
|
item.basis = "false"
|
|
@@ -146,7 +142,8 @@
|
|
|
this.identityAuthenticationInfo.commonId = this.userInfo.id
|
|
|
this.identityAuthenticationInfo.defaultFlag = 1
|
|
|
this.identityAuthenticationInfo.id = item.id
|
|
|
- this.$api.doRequest('post', '/identityAuthenticationInfo/api/setDefault', this.identityAuthenticationInfo,
|
|
|
+ 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) {
|
|
@@ -164,11 +161,9 @@
|
|
|
duration: 2000
|
|
|
})
|
|
|
});
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
this.$api.msg('已认证的身份才能设为默认!')
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
},
|
|
|
open(item) {
|
|
|
this.id = item.id
|
|
@@ -186,7 +181,7 @@
|
|
|
pageSize: 10,
|
|
|
currentPage: 1,
|
|
|
commonId: this.userInfo.id,
|
|
|
- flag:0
|
|
|
+ flag: 0
|
|
|
}, 'application/json;charset=UTF-8').then(res => {
|
|
|
for (var i = 0; i < res.data.data.records.length; i++) {
|
|
|
res.data.data.records[i].basis = "false"
|
|
@@ -217,7 +212,7 @@
|
|
|
id: this.id,
|
|
|
commonId: this.userInfo.id
|
|
|
}, 'application/json;charset=UTF-8').then(res => {
|
|
|
- if (res.data.code == 200) {
|
|
|
+ if (res.data.code == 200) {
|
|
|
that.$api.msg('修改成功!')
|
|
|
that.pricestatusTwo = false
|
|
|
that.pricestatus = false
|
|
@@ -225,7 +220,7 @@
|
|
|
// uni.navigateTo({
|
|
|
// url: '/pages/attestation/indexTwo'
|
|
|
// });
|
|
|
-
|
|
|
+
|
|
|
} else {
|
|
|
uni.showToast({
|
|
|
title: res.errmsg,
|
|
@@ -344,13 +339,12 @@
|
|
|
'/identityAuthenticationInfo/api/deleteIdentityAuthenticationInfo', {
|
|
|
id: item.id
|
|
|
}, 'application/json;charset=UTF-8').then(res => {
|
|
|
- this.procurementPlanInfos = res.data.data.records
|
|
|
- if (res.errmsg == "Success") {
|
|
|
+ // this.procurementPlanInfos = res.data.data.records
|
|
|
+ if (res.data.code == 200) {
|
|
|
this.$api.msg('删除成功!')
|
|
|
this.getList()
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
})
|
|
|
.catch(res => {
|
|
|
uni.showToast({
|