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

View File

@ -8,7 +8,7 @@
<!-- 刚开始的悬浮广告 --> <!-- 刚开始的悬浮广告 -->
<view class="advertisement" v-if="showAdvertisement"> <view class="advertisement" v-if="showAdvertisement">
<view :class="isShowCloseAnimal <view :class="isShowCloseAnimal
? 'advertisementNormalContent advertisementContent' ? 'advertisementNormalContent advertisementContent'
: 'advertisementNormalContent' : 'advertisementNormalContent'
"> ">
<!-- <span class="text">2024年五一假期预测</span>--> <!-- <span class="text">2024年五一假期预测</span>-->
@ -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) {
// //