Commit 79977430 authored by 袁玲利's avatar 袁玲利

Merge branch 'v_req_11.2' into uat

parents e2ae6734 63089ff3
...@@ -226,15 +226,16 @@ export default { ...@@ -226,15 +226,16 @@ export default {
jWeixin.miniProgram.navigateTo({ jWeixin.miniProgram.navigateTo({
url: "/pages_subpackB/pages/game/main?appId=" + game.appId, url: "/pages_subpackB/pages/game/main?appId=" + game.appId,
}); });
// 这里可以添加游戏启动逻辑,比如跳转到游戏页面,或打开游戏等 // 离开游戏排行榜界面
this.params.behavior = "viewPage";
this.params.data = "closePage";
this.GameStatistics();
}, },
}, },
beforeDestroy() { onUnload() {
this.params.behavior = "viewPage"; this.params.behavior = "viewPage";
this.params.data = "closePage"; this.params.data = "closePage";
this.GameStatistics(); this.GameStatistics();
},
destroyed() {
if (this.timer !== null) { if (this.timer !== null) {
clearInterval(this.timer); clearInterval(this.timer);
this.timer = null; this.timer = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment