小程序
小游戏
企业微信
微信支付
扫描小程序码分享
小程序隐私协议已经在后台更新了用户隐私保护指引并且审核通过了,但是在小程序上还是报错
<button>: chooseAvatar:fail privacy permission is not authorized
1 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
贴代码
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
<button open-type="chooseAvatar" class="cover-button" :plain="true" @chooseavatar="getCover"></button>
<view class="agree-box" :style="{'paddingBottom':safeAreaInsets+'px'}">
<view class="ft14 bold pl20 pr20 pb20 " style="padding-top: 50rpx;">请阅读并同意以下条款</view>
<view class="flex flex-ac flex-pc ft13">
<view class="cgreen" @click.stop="userAgreement">《商城用户协议》</view>
<view class="cgreen" @click.stop="private">《商城隐私政策》</view>
</view>
<button class="agree-btn ftc ft14" id="agree-btn" open-type="agreePrivacyAuthorization"
@agreeprivacyauthorization="handleAgreePrivacyAuthorization">
<view>同意并继续</view>
</button>
</view>handleAgreePrivacyAuthorization() {
// this.showPrivacy = false;
this.$refs.popup.close();
this.isDefault = 1
if (this.resolvePrivacyAuthorization) {
this.resolvePrivacyAuthorization({
buttonId: 'agree-btn',
event: 'agree'
});
}
},
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
贴代码
<button open-type="chooseAvatar" class="cover-button" :plain="true" @chooseavatar="getCover"></button>
<view class="agree-box" :style="{'paddingBottom':safeAreaInsets+'px'}">
<view class="ft14 bold pl20 pr20 pb20 " style="padding-top: 50rpx;">请阅读并同意以下条款</view>
<view class="flex flex-ac flex-pc ft13">
<view class="cgreen" @click.stop="userAgreement">《商城用户协议》</view>
<view class="cgreen" @click.stop="private">《商城隐私政策》</view>
</view>
<button class="agree-btn ftc ft14" id="agree-btn" open-type="agreePrivacyAuthorization"
@agreeprivacyauthorization="handleAgreePrivacyAuthorization">
<view>同意并继续</view>
</button>
</view>handleAgreePrivacyAuthorization() {
// this.showPrivacy = false;
this.$refs.popup.close();
this.isDefault = 1
if (this.resolvePrivacyAuthorization) {
this.resolvePrivacyAuthorization({
buttonId: 'agree-btn',
event: 'agree'
});
}
},