联调接口

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

@@ -128,8 +128,6 @@ let selectBindStatus = async ()=>{
if(deviceId.value){
let res = await getBindStatus({uniqCode:deviceId.value})
bindStatus.value = res.bindStatus;
console.log("111bindStatus=>",bindStatus.value)
//bindStatus=4-----已绑定成功,跳转用户登录页面
if(bindStatus.value==4){
if (userStore.isLogin) {
@@ -149,7 +147,6 @@ let selectBindStatus = async ()=>{
let refreshBindStatus = async ()=>{
let res = await getBindStatus({uniqCode:deviceId.value})
bindStatus.value = res.bindStatus;
console.log("222bindStatus=>",bindStatus.value)
if(bindStatus.value==2){
}else{
@@ -196,9 +193,8 @@ const submitForm = async() => {
form2.value.validate().then(async param => {
btnLoading.value = true;
deviceId.value = uuidv4();
let cilentId = `${CLIENT_ID || 2}`;
let password = encryptObj.Encrypt(param.username + cilentId + "," + param.password);
console.log("password=>",password)
let clientId = `${CLIENT_ID || 2}`;
let password = encryptObj.Encrypt(param.username + clientId + "," + param.password);
let systemInfo = uni.getSystemInfoSync()
let params = {
@@ -215,9 +211,7 @@ const submitForm = async() => {
// #endif
osAndroidApiLevel:systemInfo.osAndroidAPILevel
}
console.log("params=>",params)
let res = await authDeviceApply(params);
console.log("authDeviceApply=>",res)
btnLoading.value = false;
uni.setStorageSync('app_device_id', deviceId.value)
bindStatus.value = res.bindStatus;//默认为 2-等待审核
@@ -243,7 +237,6 @@ let getLocalIPInUniApp=()=>{
if (info.cellular && info.cellular.ipAddress) {
ips.push(info.cellular.ipAddress);
}
console.log(1111,ips)
resolve(ips.length ? ips : ['无法获取本地IP']);
});
});
@@ -346,7 +339,9 @@ const handleSubmit=()=>{
authCode:authCode.value
}
subLoading.value=true;
console.log("param=>",param)
authInputCode(param).then(res=>{
console.log("authInputCode=>",res)
uni.reLaunch({ url: '/pages/login/login' })
}).finally(()=>{
subLoading.value = false;