收藏
回答

wx.reLaunch在苹果下面会出现fail page not appear

问题模块
API和组件

代码如下,苹果下面会有一定的几率出现reLaunch 错误提示:fail page not appear,但是安卓和IDE都没这个问题,很困扰我啊


wx.request({
      url: 'https://隐藏网址/'
      data: {
      },
      method: 'POST'// OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT
      // header: {}, // 设置请求的 header
      success: function (res) {
        // success
        if (res.data.err == 1) {
          app.globalData.msgData = res.data.msgData
          wx.reLaunch({
            url: './../member/showmsg',
            fail:function(e)
            {
              console.log(e)
            }
          })
        else {
          app.globalData.managerId = res.data.userId
          that.getManagerInfo();
          that.setData({
            showpage: false
          })
 
        }
      },
      fail: function (res) {
        // fail
        wx.showModal({
          title: '系统提示',
          content: '接口出现故障',
          showCancel:false,
          success:function()
          {
            wx.reLaunch({
              url: 'pages/index/index',
            })
          }
        })
      },
      complete: function (res) {
        // complete
      }
    })



最后一次编辑于  2017-05-23  (未经腾讯允许,不得转载)
邀请回答
复制链接收藏投诉关注问题回答