联调接口

This commit is contained in:
xuli3099
2025-08-12 16:19:19 +08:00
parent 7c5233f8f5
commit 107cc64a81
9 changed files with 70 additions and 73 deletions

View File

@@ -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)
}
}