wx.showActionSheet有时不显示
华为P10在最新版本的微信下,wx.showActionSheet有一定机率没有反应,不能弹出菜单。
强制关闭小程序重新打开,wx.showActionSheet弹出菜单又正常了。
这部分代码很简单,以前一直正常。 就最近才发现这个问题。但要刻意重现又比较难,不知有没有其它人遇到这种情况。
toggleJoin: function () { var that = this wx.showActionSheet({ itemList: ['进入我进行中对局', '系统自动匹配对局', '自己创建新的对局','取消'], success: function (res) { if(res.tapIndex == 0){ util.ajax("/chess/gameroom/current", 1, {}). then(function (res) { var data = res.data; if (data) { wx.navigateTo({ url: 'room?id=' + data }) } else { //加入失败 wx.showToast({ title: '没有你正在进行的对局', icon:"none" }) } }); } else if (res.tapIndex == 1) { that.matchGame() } else if (res.tapIndex == 2) { wx.navigateTo({ url: 'roomnew' }) } } }) }, |
