This commit is contained in:
ylj20011123 2026-02-09 09:08:20 +08:00
parent 26157c3033
commit 7263d3cb28

View File

@ -5445,7 +5445,9 @@ export default {
},
//
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;
console.log('触发数智助手引导定位...');
@ -5499,7 +5501,8 @@ export default {
handleCloseGuide() {
this.guideInfo.visible = 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) {
//