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

Merge branch 'v_req_11.2' into uat

parents 098057f4 18949fd9
......@@ -116,7 +116,7 @@ export default {
mounted() {
this.games.sort(() => 0.5 - Math.random());
this.params.userId = this.getQueryParams("userId");
this.params.sessionid = this.getQueryParams("sessionid")
this.params.sessionid = this.getQueryParams("sessionid");
this.params.behavior = "viewPage";
this.params.data = "gameOrder";
this.GameStatistics();
......@@ -174,25 +174,48 @@ export default {
},
// 小程序游戏统计接口
async GameStatistics() {
try {
let url = gHost + "/wechat/svweapp/GameStatistics";
let data = await this.$http.post(
{
url: url,
},
this.params
);
if (data.code != 10000) {
$.ajax({
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)
}
uni.showToast({
icon: "none",
mask: true,
title: data.message,
title: res.message,
});
return;
}
} catch (e) {
console.log(e);
}
},
error: function (error) {
reject(error);
},
});
// try {
// let url = gHost + "/wechat/svweapp/GameStatistics";
// let data = await this.$http.post(
// {
// url: url,
// },
// this.params
// );
// if (data.code != 10000) {
// uni.showToast({
// icon: "none",
// mask: true,
// title: data.message,
// });
// return;
// }
// } catch (e) {
// console.log(e);
// }
},
launchGame(game) {
// uni.navigateToMiniProgram({
......
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