联调接口
This commit is contained in:
@@ -110,7 +110,6 @@ onMounted(async () => {
|
||||
navBarPaddingTop.value = getNavBarPaddingTop();
|
||||
deviceId.value = uni.getStorageSync('app_device_id');// 本地设备ID
|
||||
await selectBindStatus();
|
||||
console.log("333bindStatus=>",bindStatus.value)
|
||||
if(bindStatus.value==2){
|
||||
// bindStatus=2-----到等待页面(定时任务查询 10秒查询一次)
|
||||
timer = setInterval(()=>{
|
||||
@@ -152,7 +151,7 @@ let refreshBindStatus = async ()=>{
|
||||
bindStatus.value = res.bindStatus;
|
||||
console.log("222bindStatus=>",bindStatus.value)
|
||||
if(bindStatus.value==2){
|
||||
|
||||
|
||||
}else{
|
||||
if(bindStatus.value==4){
|
||||
if (userStore.isLogin) {
|
||||
@@ -165,7 +164,7 @@ let refreshBindStatus = async ()=>{
|
||||
});
|
||||
}
|
||||
}
|
||||
clearInterval(timer);
|
||||
if (timer) clearInterval(timer)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user