| @@ -236,8 +236,21 @@ Page({ | |||||
| url: '/pages/game/index?url=' + res.data.url + "&id=" + res.data.id + "&gameId=" + res.data.gameId, | 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(); | |||||
| }) | |||||
| }, | }, | ||||
| }); | }); | ||||