mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-12 18:26:43 +08:00
Merge branch 'feature/GFRS-2350【前端-待完成】修改卡单支付分享时效' into dev
This commit is contained in:
@@ -204,15 +204,27 @@ service.interceptors.response.use(
|
||||
Toast.clear()
|
||||
if (res.code != 0) {
|
||||
if (res.code == 10001 || res.code == 10002) {
|
||||
Dialog.confirm({
|
||||
confirmButtonText: '重新登录',
|
||||
message: '你已被登出,可以取消继续留在该页面,或者重新登录'
|
||||
}).then(() => {
|
||||
//eslint-disable-next-line
|
||||
EWebBridge.webCallAppInJs('bridge', {
|
||||
flag: 'login'
|
||||
let isWeixin = this.$utils.device().isWeixin //判断环境
|
||||
if (isWeixin) {
|
||||
Dialog.alert({
|
||||
title: '提示',
|
||||
confirmButtonText: '退出',
|
||||
message: '当前链接已失效,请您联系业务员获取(重新分享)。',
|
||||
}).then(() => {
|
||||
window.close();
|
||||
WeixinJSBridge.call('closeWindow');
|
||||
});
|
||||
} else {
|
||||
Dialog.confirm({
|
||||
confirmButtonText: '重新登录',
|
||||
message: '你已被登出,可以取消继续留在该页面,或者重新登录'
|
||||
}).then(() => {
|
||||
//eslint-disable-next-line
|
||||
EWebBridge.webCallAppInJs('bridge', {
|
||||
flag: 'login'
|
||||
})
|
||||
})
|
||||
})
|
||||
}
|
||||
} else {
|
||||
//Toast.fail(res.msg)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user