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

Merge branch 'v_req_11.2' into uat

parents a57447a9 56c2291e
......@@ -175,17 +175,15 @@ export default {
// 小程序游戏统计接口
async GameStatistics() {
$.ajax({
url:
gHost +
"/wechat/svweapp/GameStatistics",
url: gHost + "/wechat/svweapp/GameStatistics",
type: "post",
dataType: "json",
contentType: "application/x-www-form-urlencoded",
data: this.params,
success: function (res) {
if (res.code == 10000) {
console.log(res)
return
console.log(res);
return;
}
uni.showToast({
icon: "none",
......@@ -231,10 +229,12 @@ export default {
// 这里可以添加游戏启动逻辑,比如跳转到游戏页面,或打开游戏等
},
},
onUnload() {
beforeDestroy() {
this.params.behavior = "viewPage";
this.params.data = "closePage";
this.GameStatistics();
},
destroyed() {
if (this.timer !== null) {
clearInterval(this.timer);
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