绿满眶商城微信小程序-uniapp
zxl
2025-10-24 08dbfed46fea626ebd5c543eff86a403e5300549
隐藏推荐活动
2个文件已修改
19 ■■■■■ 已修改文件
api/popup.js 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/tabbar/index/home.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
api/popup.js
@@ -18,3 +18,11 @@
    needToken: true,
  });
}
export function hideActivityPopupToday(){
     return http.request({
         url: "/lmk/popup/hideActivityPopupToday",
         method: Method.GET,
         needToken: true,
     })
}
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) {