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

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

@ -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; export default data;
Loading…
Cancel
Save