cyl/master-0819
wangxia 3 months ago
parent 9313ba4182
commit 185651ef47

@ -47,7 +47,6 @@ export default {
that.G.watchUserPage(args.url);
},
});
},
onShow: function (options) {
let that = this;
@ -79,14 +78,10 @@ export default {
this.G.checkToken();
}
if (!that.globalData.timer) {
if (uni.getStorageSync("apply-token")) {
that.checkNum();
}
that.checkNum();
that.globalData.timer = setInterval(() => {
console.log("inner++++++++++++++++++++ +++++++++++++++++++++++++++");
if (uni.getStorageSync("apply-token")) {
that.checkNum();
}
console.log("inner+++++++++++++++++++++++++++++++++++++++++++++++");
that.checkNum();
}, 30 * 1000);
}
@ -109,7 +104,6 @@ export default {
}
},
methods: {
initWyyx() {
let that = this;

@ -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,
@ -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,14 +154,14 @@ let data = {
});
}, 1500);
} else {// 其他异常
if($url == '/yishoudan/user/apply/order/V2/details'){
if ($url == '/yishoudan/user/apply/order/V2/details') {
}else{
uni.showToast({
title: resData.msg,
icon: "none"
});
}
} else {
uni.showToast({
title: resData.msg,
icon: "none"
});
}
failback(resData.msg);
@ -170,7 +170,7 @@ let data = {
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;
Loading…
Cancel
Save