From 40ae92d29981bae986fa512c5571b47c49a23816 Mon Sep 17 00:00:00 2001 From: meo <18801474720@163.com> Date: Thu, 25 Apr 2019 15:13:54 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=89=AB=E6=B8=B8=E6=88=8F=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E7=A0=81][=E4=BF=AE=E6=94=B9]:[=E6=96=B0=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E6=89=AB=E6=B8=B8=E6=88=8F=E5=B0=8F=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E7=A0=81=E8=BF=9B=E5=85=A5=E5=B0=8F=E7=A8=8B=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E6=8E=88=E6=9D=83=EF=BC=8C=E6=B2=A1=E5=8F=8D=E5=BA=94=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/getuserinfo/index.js | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/pages/getuserinfo/index.js b/pages/getuserinfo/index.js index e2681ff..8bd2ba5 100755 --- a/pages/getuserinfo/index.js +++ b/pages/getuserinfo/index.js @@ -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(); + }) }, });