From 08dbfed46fea626ebd5c543eff86a403e5300549 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期五, 24 十月 2025 11:42:11 +0800
Subject: [PATCH] 隐藏推荐活动
---
api/popup.js | 8 ++++++++
pages/tabbar/index/home.vue | 11 ++++++++++-
2 files changed, 18 insertions(+), 1 deletions(-)
diff --git a/api/popup.js b/api/popup.js
index 3fba0fd..6a5836e 100644
--- a/api/popup.js
+++ b/api/popup.js
@@ -17,4 +17,12 @@
method: Method.GET,
needToken: true,
});
+}
+
+export function hideActivityPopupToday(){
+ return http.request({
+ url: "/lmk/popup/hideActivityPopupToday",
+ method: Method.GET,
+ needToken: true,
+ })
}
\ No newline at end of file
diff --git a/pages/tabbar/index/home.vue b/pages/tabbar/index/home.vue
index bf2e045..88cfd7e 100644
--- a/pages/tabbar/index/home.vue
+++ b/pages/tabbar/index/home.vue
@@ -265,7 +265,7 @@
import ActivityPopup from '@/pages/ActivityPopup/ActivityPopup.vue'
import { mapState, mapMutations } from 'vuex'
-import { setPopupRedisTime, getPopupAcitivty } from '@/api/popup.js'
+import { setPopupRedisTime, getPopupAcitivty,hideActivityPopupToday } from '@/api/popup.js'
import { changeCollect } from "@/api/collect.js";
import { saveShare, saveShareClickRecord} from "@/api/share.js";
import { getSessionId, userAction,userShare } from "@/api/userAction.js";
@@ -568,6 +568,11 @@
});
},
methods: {
+ hideActivityPopupToday(){
+ //寮圭獥鍏抽棴
+ hideActivityPopupToday().then(res =>{
+ })
+ },
async openActivityPopup() {
await getPopupAcitivty().then(res => {
if (res.statusCode === 200) {
@@ -596,7 +601,11 @@
},
...mapMutations(['showActivityPopup', 'hideActivityPopup']), // 寮曞叆Vuex鐨勬柟娉�
+
+
onClosePopup() {
+ //
+ this.hideActivityPopupToday()
this.hideActivityPopup()
},
replyClick(reply) {
--
Gitblit v1.8.0