处理h5无痕浏览问题

This commit is contained in:
GYJ
2024-12-14 11:09:58 +08:00
parent ec7c3742bf
commit 421a3fe4f1
6 changed files with 114 additions and 102 deletions

View File

@@ -261,7 +261,6 @@
}
},
onLoad(options) {
// barWidth
// #ifdef MP-WEIXIN || MP-TOUTIAO || MP-KUAISHOU
// 获取胶囊按钮位置信息

View File

@@ -58,7 +58,15 @@
checked: false
};
},
onLoad() {
if (uni.getStorageSync('isSafeView')) {
uni.showModal({
title: '提示',
content: '您正在使用无痕浏览,可能导致登录状态失效,建议切换浏览模式',
})
uni.setStorageSync("isSafeView", null)
}
},
methods: {
// 注册
register() {
@@ -240,12 +248,12 @@
// this.$queue.loginClear();
// let openid = this.$queue.getData('openid');
if (!this.checked) {
return this.$refs.uToast.show({
return this.$refs.uToast.show({
title: '请阅读并同意《隐私政策》和《用户服务协议》',
duration: 1500
})
}
let openid = uni.getStorageSync('openId')
const {
mobile,