处理h5无痕浏览问题
This commit is contained in:
@@ -261,7 +261,6 @@
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
|
||||
// barWidth
|
||||
// #ifdef MP-WEIXIN || MP-TOUTIAO || MP-KUAISHOU
|
||||
// 获取胶囊按钮位置信息
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user