open-type=getUserInfo如何读取选择结果?
- 需求的场景描述(希望解决的问题)
< button bindtap = "bindgetuserinfo" open-type = "getUserInfo" class = "fsubmit" > 获取微信头像昵称 |
- 希望提供的能力
bindgetuserinfo: function (e){ //用户选择了允许执行操作 //用户选择了拒绝执行操作 } |
在自动弹窗之前我们只需要判断wx.getUserInfo是返回状态即可,现在如何解决这一连贯操作?
