<view class=‘login_btn_wrapper’>
<view class=‘teach’>登录后开启自律生活</view>
<form report-submit=‘true’ bindsubmit=‘postFormId’>
<button open-type=‘getUserInfo’ class=‘login_btn’ bindgetuserinfo=“login” wx:if="{{canIUse}}" form-type=‘submit’>开启打卡</button>
<view wx:else>请升级微信版本</view>
</form>
</view>
login(e) {
console.log(‘click login------’);
if (e.detail.errMsg == ‘getUserInfo:ok’) {
util.doLogin(e.detail).then(res => {
wx.reLaunch({
url: this.data.directTo
})
})
}
},
bindgetuserinfo绑定的login 偶尔会有无响应的状态,console.log(‘click login------’);不执行。授权弹窗也没唤起(不过应该是已经授权过了所以没唤起)该bug很难复现,但是有好几个人反应过,所以很捉急,寻求帮助。