联调接口
This commit is contained in:
@@ -69,7 +69,7 @@ onLoad(async(opt) => {
|
||||
|
||||
// 检查版本是否是最新的
|
||||
let getOSVesion = async()=>{
|
||||
let systemInfo = uni.getSystemInfoSync(); console.log(systemInfo.osName)
|
||||
let systemInfo = uni.getSystemInfoSync();
|
||||
let param = {
|
||||
// #ifdef APP-PLUS
|
||||
verNumber:systemInfo.appWgtVersion,//当前版本号
|
||||
@@ -88,9 +88,7 @@ let getOSVesion = async()=>{
|
||||
appVersion.value = param.verNumber;
|
||||
// console.log("appVersion=>",appVersion)
|
||||
versionData.value = param;
|
||||
console.log("versionCheck=>param=>",param)
|
||||
let data = await versionCheck(param);
|
||||
console.log("versionCheck=>",data)
|
||||
newVersion.value = data.verNumber;
|
||||
downloadURL.value = data.downloadUrl;
|
||||
|
||||
@@ -123,25 +121,25 @@ const selectDeviceId = async()=>{
|
||||
},2000)
|
||||
}else{
|
||||
let res = await getBindStatus({uniqCode:deviceId});
|
||||
console.log("getBindStatus=>",res)
|
||||
setTimeout(()=>{
|
||||
// 检查是否已登录 并 获取用户信息
|
||||
// if (userStore.isLogin) {
|
||||
// 绑定状态(1=已提交、2=等待审核、3=审核通过、4=绑定成功、5=审核拒绝)
|
||||
if(res.bindStatus == 4){
|
||||
// 绑定状态(1=已提交、2=等待审核、3=审核通过、4=绑定成功、5=审核拒绝)
|
||||
if(res.bindStatus == 4){
|
||||
// 检查是否已登录 并 获取用户信息
|
||||
if (userStore.isLogin) {
|
||||
uni.reLaunch({
|
||||
url: '/pages/home/home',
|
||||
});
|
||||
|
||||
}else{
|
||||
uni.reLaunch({
|
||||
url: '/pages/deviceAuth/deviceAuth',
|
||||
url: '/pages/login/login',
|
||||
});
|
||||
}
|
||||
// }else{
|
||||
// uni.reLaunch({
|
||||
// url: '/pages/login/login',
|
||||
// });
|
||||
// }
|
||||
}else{
|
||||
uni.reLaunch({
|
||||
url: '/pages/deviceAuth/deviceAuth',
|
||||
});
|
||||
}
|
||||
},2000)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user