<view class="auth-content-wrap" hover-class="none" hover-stop-propagation="false">
<image src="/images/logo1.png" />
<view class="shadow-box" hover-class="none" hover-stop-propagation="false"></view>
<view class="tips-msg" hover-class="none" hover-stop-propagation="false">
您还未授权小程序
</view>
<view class="tips-msg" hover-class="none" hover-stop-propagation="false">
点击授权, 开启护肤旅程
</view>
<view wx:if="{{ canIUse }}" class="btn-area" hover-class="none" hover-stop-propagation="false">
<button class="cancel-btn" plain="{{true}}" bind:tap="cancelAuth">暂不授权</button>
<button class="userinfo-btn" plain="{{true}}" open-type="getUserInfo"
bind:getuserinfo="onGetuserinfo">授权登录</button>
</view>
<view wx:else class="btn-area" hover-class="none" hover-stop-propagation="false">
<button class="cancel-btn" style="flex: 1" plain="{{true}}" bind:tap="cancelAuth">请升级微信版本</button>
</view>
</view>
无法触发信息获取弹窗
我也有这种情况,自己手机怎么也复现不了,但是就是小部分用户触发不了open-type="getUserInfo"
还未授权是通过什么判断的?
可以打印下点击“授权登录”的按钮看看授权成功的事件返回结果。用户在小程序周期内没有授权过小程序,点击授权的按钮,会弹出授权弹框;同意授权之后,就不会弹出来了。