微信小程序,在用户拒绝授权后,重新拉起授权 ,之前可以使用 wx.openSetting 接口来设置,但是现在这个接口已经废弃使用了。

  • 方法1:使用 button 组件来使用此功能:

    button open-type="openSetting" bindopensetting="handler"打开设置页/button 
  • 方法2:由点击行为触发wx.openSetting接口的调用,示例代码如下:

    button bindtap="openSetting"打开设置页/button  openSetting() {      wx.openSetting()}

     

TAG标签: 微信小程序setting

http://www.xiaochengxub.com/read-104491.html