Browse Source

[扫游戏小程序码][修改]:[新用户扫游戏小程序码进入小程程序授权,没反应的问题]

tags/湖南版5.1.4
meo 6 years ago
parent
commit
40ae92d299
1 changed files with 15 additions and 2 deletions
  1. +15
    -2
      pages/getuserinfo/index.js

+ 15
- 2
pages/getuserinfo/index.js View File

@@ -236,8 +236,21 @@ Page({
url: '/pages/game/index?url=' + res.data.url + "&id=" + res.data.id + "&gameId=" + res.data.gameId,
})
})
.catch(err => {
this.alphaClick();
.catch(err => {
wx.showModal({
title: '提示',
content: err.message,
showCancel: false,
success: function (res) {
// 如果游戏下架或者找不到,重启首页
if (res.confirm) {
wx.reLaunch({
url: '/pages/index/index',
})
}
}
})
this.alphaClick();
})
},
});

Loading…
Cancel
Save