连续wx.showToast, 第二个之后toast都失效, 必现
发布于 5 年前 作者 bzhang 17512 次浏览 来自 问答

系统: ios

微信: 6.5.3

注: 在开发者工具中正常

问题代码如下:

onShow: function() {

      wx.showToast({

          title: ‘请稍后…’,

          icon: ‘loading’,

          duration: 3000,

          mask: true

      })

      setTimeout(function() {

        wx.hideToast()

        wx.showToast({

          title: ‘成功’,

          icon: ‘loading’,

          duration: 3000,

          mask: true

      })

      }, 2000)

  }

回到顶部