小程序弹框wx.showModal的使用

if (!logined) {
      wx.showModal({
        title: '提示',
        content: '您还没登录登录车掌柜, 是否前往登录',
        confirmText: '前往登录',
        confirmColor: '#F87A54',
        success (res) {
          if (res.confirm) {
            that.goToLogin()
          }
        }
      })
      return
    }
    wx.navigateTo({
      url: '../resourceOrder/resourceOrder'
    })

相关文章:

  • 2021-12-20
  • 2021-08-05
  • 2021-05-28
  • 2021-05-15
  • 2021-12-10
  • 2021-11-20
  • 2021-12-31
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-01
  • 2021-05-30
  • 2021-07-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案