命令行提交

This commit is contained in:
zoujiandong
2025-08-05 11:27:40 +08:00
parent 430a4a1491
commit 8dadc2be09
19 changed files with 529 additions and 195 deletions
+27 -30
View File
@@ -105,24 +105,10 @@ export const request = (url, data = {}, method = 'post', loading = false, conten
})
n(res)
}else if(res.data.code==10007){
uni.showToast({
title: "待补充资料",
icon: 'none',
})
let H5url = 'https://dev-wx.igandan.com';
if(window.location.href.indexOf('//dev-casedata.igandan.com') == -1) {
H5url = 'https://wx.igandan.com'
}
let link=H5url+"/hcp/perfect?mobile="+$("#phonenumber").val().trim();
navTo({
url:'/pages/register/register?src='+link
})
n(res)
}else if(res.data.code==10005){
uni.showToast({
title: "待审核",
title: res.data.message,
icon: 'none',
})
@@ -135,21 +121,32 @@ export const request = (url, data = {}, method = 'post', loading = false, conten
const res = await api.h5Login({
token: video_token
});
let result = res.data.data;
console.log(result);
if (window.location.href.indexOf('//casedata.igandan.com')>-1) {
uni.setStorageSync("AUTH_TOKEN_CASEDATA",result.token);
} else {
uni.setStorageSync("DEV_AUTH_TOKEN_CASEDATA",result.token);
};
uni.setStorageSync("userInfo",{
avatar:result.avatar,
user_id:result.user_id,
status:result.status,
user_name:result.user_name,
doctor_id:result.doctor_id,
});
window.location.reload();
if(res.data.code==200){
let result = res.data.data;
console.log(result);
if (window.location.href.indexOf('//casedata.igandan.com')>-1) {
uni.setStorageSync("AUTH_TOKEN_CASEDATA",result.token);
} else {
uni.setStorageSync("DEV_AUTH_TOKEN_CASEDATA",result.token);
};
uni.setStorageSync("userInfo",{
avatar:result.avatar,
user_id:result.user_id,
status:result.status,
user_name:result.user_name,
doctor_id:result.doctor_id,
});
window.location.reload();
}else if(res.data.code==-1){
let H5url = 'https://dev-wx.igandan.com';
if(window.location.href.indexOf('//dev-casedata.igandan.com') == -1) {
H5url = 'https://wx.igandan.com'
}
window.location.href = H5url + "/hcp/Signup2020online_tologin?back_url=" + encodeURIComponent(window.location.href);
}
}else{
let H5url = 'https://dev-wx.igandan.com';
if(window.location.href.indexOf('//dev-casedata.igandan.com') == -1) {