feat(privacy): add privacy check skip logic
新增隐私弹窗跳过校验的存储逻辑,通过临时缓存标记跳过隐私授权检查步骤
This commit is contained in:
@@ -95,6 +95,12 @@ export default {
|
|||||||
* 根据是否需要授权决定弹窗或 emit agree
|
* 根据是否需要授权决定弹窗或 emit agree
|
||||||
*/
|
*/
|
||||||
checkAndShow(needAuthorization) {
|
checkAndShow(needAuthorization) {
|
||||||
|
if (uni.getStorageSync('skipPrivacyCheck')) {
|
||||||
|
uni.removeStorageSync('skipPrivacyCheck');
|
||||||
|
this.$emit('agree');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (needAuthorization) {
|
if (needAuthorization) {
|
||||||
const privacyAgreed = uni.getStorageSync('privacyAgreed');
|
const privacyAgreed = uni.getStorageSync('privacyAgreed');
|
||||||
if (privacyAgreed) {
|
if (privacyAgreed) {
|
||||||
|
|||||||
@@ -48,6 +48,8 @@ export default {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uni.setStorageSync('skipPrivacyCheck', true);
|
||||||
|
|
||||||
this.uniacid = options.uniacid
|
this.uniacid = options.uniacid
|
||||||
this.id = options.id || 0
|
this.id = options.id || 0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user