From b827aba722e09a23574f04288afce166752c890e Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Mon, 25 May 2026 11:11:33 +0800 Subject: [PATCH] feat(privacy): add privacy check skip logic MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增隐私弹窗跳过校验的存储逻辑,通过临时缓存标记跳过隐私授权检查步骤 --- components/privacy-popup/privacy-popup.vue | 6 ++++++ pages_tool/form/formdata.vue | 2 ++ 2 files changed, 8 insertions(+) diff --git a/components/privacy-popup/privacy-popup.vue b/components/privacy-popup/privacy-popup.vue index f34767f..d4c30fe 100644 --- a/components/privacy-popup/privacy-popup.vue +++ b/components/privacy-popup/privacy-popup.vue @@ -95,6 +95,12 @@ export default { * 根据是否需要授权决定弹窗或 emit agree */ checkAndShow(needAuthorization) { + if (uni.getStorageSync('skipPrivacyCheck')) { + uni.removeStorageSync('skipPrivacyCheck'); + this.$emit('agree'); + return; + } + if (needAuthorization) { const privacyAgreed = uni.getStorageSync('privacyAgreed'); if (privacyAgreed) { diff --git a/pages_tool/form/formdata.vue b/pages_tool/form/formdata.vue index db3deb7..0742639 100644 --- a/pages_tool/form/formdata.vue +++ b/pages_tool/form/formdata.vue @@ -48,6 +48,8 @@ export default { return false } + uni.setStorageSync('skipPrivacyCheck', true); + this.uniacid = options.uniacid this.id = options.id || 0