|
|
|
|
@ -48,7 +48,7 @@ let data = {
|
|
|
|
|
}
|
|
|
|
|
// #endif
|
|
|
|
|
params = {
|
|
|
|
|
'requestComeFrom':'assistant_miniapp',
|
|
|
|
|
'requestComeFrom': 'assistant_miniapp',
|
|
|
|
|
// #ifdef APP-PLUS
|
|
|
|
|
'g-open-env': 'APP-PLUS',
|
|
|
|
|
appId: uuid_new,
|
|
|
|
|
@ -116,7 +116,7 @@ let data = {
|
|
|
|
|
// console.log('测试报错123123123123123123',res);
|
|
|
|
|
// console.log('测试报错123123123123123123$url',$url);
|
|
|
|
|
let resData = res.data;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (resData.status == 200) {// 正常
|
|
|
|
|
callback(resData.data, resData.msg);
|
|
|
|
|
} else if (resData.status == 9999) {// 登录过期或者身份变动等需要登录的场景
|
|
|
|
|
@ -138,14 +138,14 @@ let data = {
|
|
|
|
|
// } else {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: resData.msg,
|
|
|
|
|
// title:'系统异常,请稍后',
|
|
|
|
|
// title:'系统异常,请稍后',
|
|
|
|
|
icon: "none"
|
|
|
|
|
});
|
|
|
|
|
failback(resData.msg);
|
|
|
|
|
// }
|
|
|
|
|
} else if (resData.status == 2002) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title:'已切换团队,需要重新登录',
|
|
|
|
|
title: '已切换团队,需要重新登录',
|
|
|
|
|
icon: "none"
|
|
|
|
|
});
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
@ -154,23 +154,23 @@ let data = {
|
|
|
|
|
});
|
|
|
|
|
}, 1500);
|
|
|
|
|
} else {// 其他异常
|
|
|
|
|
if($url == '/yishoudan/user/apply/order/V2/details'){
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: resData.msg,
|
|
|
|
|
icon: "none"
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($url == '/yishoudan/user/apply/order/V2/details') {
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: resData.msg,
|
|
|
|
|
icon: "none"
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
failback(resData.msg);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
fail (error) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
// title: error.errMsg,
|
|
|
|
|
title:'系统异常,请稍后',
|
|
|
|
|
title: '系统异常,请稍后',
|
|
|
|
|
icon: "none"
|
|
|
|
|
})
|
|
|
|
|
failback(error);
|
|
|
|
|
@ -211,6 +211,17 @@ let data = {
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
//监听用户的页面点击
|
|
|
|
|
watchUserPage (path) {
|
|
|
|
|
let that = this;
|
|
|
|
|
try {
|
|
|
|
|
if (uni.getStorageSync("apply-userinfo")) {
|
|
|
|
|
that.Post("/common/user/browsing/history/addRecord", { browsingUrl: path }, (res) => { });
|
|
|
|
|
}
|
|
|
|
|
} catch (error) {
|
|
|
|
|
console.log("error", error);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default data;
|