feat(privacy): 移除隐私弹窗配置检查逻辑
This commit is contained in:
@@ -53,15 +53,8 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
// 检查配置,决定是否显示隐私协议
|
|
||||||
const shopInfo = uni.getStorageSync('shopInfo');
|
|
||||||
if (shopInfo?.ischina == 1 && shopInfo?.index_login_auth == 1) {
|
|
||||||
this.listenPrivacySettingChange()
|
this.listenPrivacySettingChange()
|
||||||
this.curPageShow()
|
this.curPageShow()
|
||||||
} else {
|
|
||||||
// 如果不需要显示隐私协议,直接触发同意事件
|
|
||||||
this.$emit('agree');
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
try {
|
try {
|
||||||
@@ -159,14 +152,6 @@ export default {
|
|||||||
},
|
},
|
||||||
// 主动查询用户隐私政策授权状态
|
// 主动查询用户隐私政策授权状态
|
||||||
proactive() {
|
proactive() {
|
||||||
// 检查配置,决定是否显示隐私协议
|
|
||||||
const shopInfo = uni.getStorageSync('shopInfo');
|
|
||||||
if (!(shopInfo?.ischina == 1 && shopInfo?.index_login_auth == 1)) {
|
|
||||||
// 如果不需要显示隐私协议,直接触发同意事件
|
|
||||||
this.$emit('agree');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
if (wx.getPrivacySetting) {
|
if (wx.getPrivacySetting) {
|
||||||
wx.getPrivacySetting({
|
wx.getPrivacySetting({
|
||||||
|
|||||||
Reference in New Issue
Block a user