diff --git a/components/privacy-popup/privacy-popup.vue b/components/privacy-popup/privacy-popup.vue index 8a76baa..35fb347 100644 --- a/components/privacy-popup/privacy-popup.vue +++ b/components/privacy-popup/privacy-popup.vue @@ -53,15 +53,8 @@ export default { } }, mounted() { - // 检查配置,决定是否显示隐私协议 - const shopInfo = uni.getStorageSync('shopInfo'); - if (shopInfo?.ischina == 1 && shopInfo?.index_login_auth == 1) { - this.listenPrivacySettingChange() - this.curPageShow() - } else { - // 如果不需要显示隐私协议,直接触发同意事件 - this.$emit('agree'); - } + this.listenPrivacySettingChange() + this.curPageShow() }, created() { try { @@ -159,14 +152,6 @@ export default { }, // 主动查询用户隐私政策授权状态 proactive() { - // 检查配置,决定是否显示隐私协议 - const shopInfo = uni.getStorageSync('shopInfo'); - if (!(shopInfo?.ischina == 1 && shopInfo?.index_login_auth == 1)) { - // 如果不需要显示隐私协议,直接触发同意事件 - this.$emit('agree'); - return; - } - // #ifdef MP-WEIXIN if (wx.getPrivacySetting) { wx.getPrivacySetting({