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.globalData.timer = setInterval(() => {
console.log("inner+++++++++++++++++++++++++++++++++++++++++++++++");
if (uni.getStorageSync("apply-token")) {
that.checkNum();
}
}, 30 * 1000);
}
@ -109,7 +104,6 @@ export default {
}
},
methods: {
initWyyx() {
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;
Loading…
Cancel
Save