update
This commit is contained in:
parent
26157c3033
commit
7263d3cb28
@ -5445,7 +5445,9 @@ export default {
|
|||||||
},
|
},
|
||||||
// 改变时间触发的方法 ,改变页面的内容数据
|
// 改变时间触发的方法 ,改变页面的内容数据
|
||||||
initAiGuide() {
|
initAiGuide() {
|
||||||
if (!this.showAi || this.guideInfo.visible || uni.getStorageSync('has_ai_guide_shown_v1')) return;
|
const today = new Date().toISOString().split('T')[0];
|
||||||
|
const lastShown = uni.getStorageSync('has_ai_guide_shown_v1');
|
||||||
|
if (!this.showAi || this.guideInfo.visible || lastShown === today) return;
|
||||||
if (!this.isSuccess) return;
|
if (!this.isSuccess) return;
|
||||||
|
|
||||||
console.log('触发数智助手引导定位...');
|
console.log('触发数智助手引导定位...');
|
||||||
@ -5499,7 +5501,8 @@ export default {
|
|||||||
handleCloseGuide() {
|
handleCloseGuide() {
|
||||||
this.guideInfo.visible = false;
|
this.guideInfo.visible = false;
|
||||||
this.isScrollLock = false;
|
this.isScrollLock = false;
|
||||||
uni.setStorageSync('has_ai_guide_shown_v1', true);
|
const today = new Date().toISOString().split('T')[0];
|
||||||
|
uni.setStorageSync('has_ai_guide_shown_v1', today);
|
||||||
},
|
},
|
||||||
async onRefresh(type) {
|
async onRefresh(type) {
|
||||||
// 有权限就让他刷新 不没权限的时候下拉刷新不会调用
|
// 有权限就让他刷新 不没权限的时候下拉刷新不会调用
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user