|
@@ -27,9 +27,12 @@
|
|
</view>
|
|
</view>
|
|
<hr style="margin: 10px 0;">
|
|
<hr style="margin: 10px 0;">
|
|
<view class="flex">
|
|
<view class="flex">
|
|
- <view class="yuan">
|
|
|
|
- <image src="../../static/img/authentication/selected(2).png"
|
|
|
|
- style="width: 16px;height: 16px;top: 3px;">设为默认</image>
|
|
|
|
|
|
+ <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>
|
|
</view>
|
|
<view class='but' @click="open(item)">更换手机号</view>
|
|
<view class='but' @click="open(item)">更换手机号</view>
|
|
<view class='but' @click="companyEdit(item)">修改</view>
|
|
<view class='but' @click="companyEdit(item)">修改</view>
|
|
@@ -99,6 +102,7 @@
|
|
verifyCode: "",
|
|
verifyCode: "",
|
|
loadStatus: 'loading', //加载样式:more-加载前样式,loading-加载中样式,nomore-没有数据样式
|
|
loadStatus: 'loading', //加载样式:more-加载前样式,loading-加载中样式,nomore-没有数据样式
|
|
id:"",
|
|
id:"",
|
|
|
|
+ defaults:"default1",
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -108,6 +112,36 @@
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ select(item){
|
|
|
|
+
|
|
|
|
+ if(item.basis == "false"){
|
|
|
|
+ this.defaults = "default2"
|
|
|
|
+ }else if(item.basis == "true"){
|
|
|
|
+ this.defaults = "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.defaults = "default2"
|
|
|
|
+ }else{
|
|
|
|
+ this.defaults = "default1"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ .catch(res => {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: res.errmsg,
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ },
|
|
nextstep() {
|
|
nextstep() {
|
|
if (!this.price) {
|
|
if (!this.price) {
|
|
this.$api.msg('请填写手机号')
|
|
this.$api.msg('请填写手机号')
|
|
@@ -137,6 +171,11 @@
|
|
commonId: this.userInfo.id
|
|
commonId: this.userInfo.id
|
|
}, 'application/json;charset=UTF-8').then(res => {
|
|
}, 'application/json;charset=UTF-8').then(res => {
|
|
console.log("成功连接")
|
|
console.log("成功连接")
|
|
|
|
+
|
|
|
|
+ for(var i = 0 ; i < res.data.data.records.length ; i++){
|
|
|
|
+
|
|
|
|
+ res.data.data.records[i].basis = "false"
|
|
|
|
+ }
|
|
this.businessman = res.data.data.records
|
|
this.businessman = res.data.data.records
|
|
})
|
|
})
|
|
.catch(res => {
|
|
.catch(res => {
|
|
@@ -501,4 +540,27 @@
|
|
.btn2 {
|
|
.btn2 {
|
|
color: #22C572;
|
|
color: #22C572;
|
|
}
|
|
}
|
|
|
|
+ .default1{
|
|
|
|
+ width: 16px;
|
|
|
|
+ height: 16px;
|
|
|
|
+ border: 1px solid #AFB3BF;
|
|
|
|
+ border-radius: 8px;
|
|
|
|
+ text-align: center;
|
|
|
|
+ line-height: 16px;
|
|
|
|
+ color: #FFFFFF;
|
|
|
|
+ margin-right: 3px ;
|
|
|
|
+ margin-top: 2px;
|
|
|
|
+ }
|
|
|
|
+ .default2{
|
|
|
|
+ width: 16px;
|
|
|
|
+ height: 16px;
|
|
|
|
+ border: 1px solid #AFB3BF;
|
|
|
|
+ border-radius: 8px;
|
|
|
|
+ text-align: center;
|
|
|
|
+ line-height: 16px;
|
|
|
|
+ color: #FFFFFF;
|
|
|
|
+ margin-right: 3px ;
|
|
|
|
+ margin-top: 2px;
|
|
|
|
+ background-color: #22C572;
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|