| | |
| | | method: Method.GET, |
| | | needToken: true, |
| | | }); |
| | | } |
| | | |
| | | export function hideActivityPopupToday(){ |
| | | return http.request({ |
| | | url: "/lmk/popup/hideActivityPopupToday", |
| | | method: Method.GET, |
| | | needToken: true, |
| | | }) |
| | | } |
| | |
| | | |
| | | 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"; |
| | |
| | | }); |
| | | }, |
| | | methods: { |
| | | hideActivityPopupToday(){ |
| | | //弹窗关闭 |
| | | hideActivityPopupToday().then(res =>{ |
| | | }) |
| | | }, |
| | | async openActivityPopup() { |
| | | await getPopupAcitivty().then(res => { |
| | | if (res.statusCode === 200) { |
| | |
| | | |
| | | }, |
| | | ...mapMutations(['showActivityPopup', 'hideActivityPopup']), // 引入Vuex的方法 |
| | | |
| | | |
| | | onClosePopup() { |
| | | // |
| | | this.hideActivityPopupToday() |
| | | this.hideActivityPopup() |
| | | }, |
| | | replyClick(reply) { |