命令行提交3
This commit is contained in:
parent
86eb7d47e0
commit
9e01fa0032
File diff suppressed because one or more lines are too long
13
unpackage/dist/dev/mp-weixin/utils/request.js
vendored
13
unpackage/dist/dev/mp-weixin/utils/request.js
vendored
@ -83,18 +83,17 @@ const request = (url, data = {}, method = "post", loading = false, contentType =
|
||||
n(res);
|
||||
} else {
|
||||
if (url.indexOf("/login/hcp") != -1) {
|
||||
common_vendor.index.showToast({
|
||||
title: res.data.message,
|
||||
icon: "none"
|
||||
});
|
||||
n(res);
|
||||
} else {
|
||||
e(res);
|
||||
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 {
|
||||
common_vendor.index.showToast({
|
||||
title: res.data.message,
|
||||
icon: "none"
|
||||
});
|
||||
n(res);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@ -115,7 +115,7 @@ export const request = (url, data = {}, method = 'post', loading = false, conten
|
||||
n(res)
|
||||
}else if (res.data.code == 401 || res.data.code == 403 || res.data.code == 405 || res.data.code == 406) {
|
||||
if(process.env.UNI_PLATFORM =="h5"){
|
||||
let video_token = cookie.readCookie('video_token');
|
||||
let video_token =cookie.readCookie('video_token');
|
||||
console.log(video_token);
|
||||
if(video_token){
|
||||
const {data} = await api.h5Login({
|
||||
@ -176,23 +176,24 @@ export const request = (url, data = {}, method = 'post', loading = false, conten
|
||||
})
|
||||
n(res)
|
||||
} else {
|
||||
|
||||
if(url.indexOf('/login/hcp')!=-1){
|
||||
uni.showToast({
|
||||
title: res.data.message,
|
||||
icon: 'none',
|
||||
|
||||
})
|
||||
n(res)
|
||||
}else{
|
||||
e(res)
|
||||
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{
|
||||
uni.showToast({
|
||||
title: res.data.message,
|
||||
icon: 'none',
|
||||
|
||||
});
|
||||
n(res)
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
},
|
||||
fail: function (err) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user