|
|
@@ -83,6 +83,7 @@
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ requestStatus:false,
|
|
|
userInfo: {
|
|
|
auth: true,
|
|
|
nickName: '',
|
|
|
@@ -140,7 +141,10 @@
|
|
|
})
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
+ if(this.requestStatus){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.requestStatus=true
|
|
|
this.userInfo.auth = true;
|
|
|
|
|
|
if(this.userInfo.opType == '1'){ // 绑定
|
|
|
@@ -157,10 +161,13 @@
|
|
|
}
|
|
|
// 去服务对象列表页
|
|
|
setTimeout(()=>{
|
|
|
+ this.requestStatus=false
|
|
|
uni.redirectTo({
|
|
|
url: '/myPages/ServiceObjectManagement/index',
|
|
|
})
|
|
|
},3000)
|
|
|
+ }).catch(()=>{
|
|
|
+ this.requestStatus=false
|
|
|
})
|
|
|
}else if(this.userInfo.opType == '2'){ // 修改
|
|
|
// 修改数据
|
|
|
@@ -170,11 +177,13 @@
|
|
|
})
|
|
|
// 去服务对象列表页
|
|
|
setTimeout(()=>{
|
|
|
+ this.requestStatus=false
|
|
|
uni.redirectTo({
|
|
|
url: '/myPages/ServiceObjectManagement/index',
|
|
|
})
|
|
|
},3000)
|
|
|
-
|
|
|
+ }).catch(()=>{
|
|
|
+ this.requestStatus=false
|
|
|
})
|
|
|
}
|
|
|
},
|