From aea82fc6285fd37a33e0efd6cd0e5089dfa32faf Mon Sep 17 00:00:00 2001 From: zhanghua <314079846@qq.com> Date: 星期一, 01 九月 2025 22:05:58 +0800 Subject: [PATCH] Merge branch 'dev_fix_sub' of http://42.193.1.25:9521/r/lmk-shop-wx into dev_fix_sub --- store/index.js | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/store/index.js b/store/index.js index 3458c64..47a92e4 100644 --- a/store/index.js +++ b/store/index.js @@ -15,8 +15,29 @@ userInfo: storage.getUserInfo(), uuid: storage.getUuid(), token: "", + // 娲诲姩寮圭獥鐘舵�� + activityPopup: { + prizeActivityId:'', + show: false, + title: '', + desc: '', + image: '', + endTime: 0 + } }, mutations: { + // 鏄剧ず寮圭獥 + showActivityPopup(state, data) { + state.activityPopup = { + show: true, + ...data // 鍚堝苟浼犲叆鐨勫脊绐楁暟鎹紙鏍囬銆佹弿杩扮瓑锛� + } + console.log("Vuex 鐘舵�佹洿鏂板悗锛�", state.activityPopup); + }, + // 闅愯棌寮圭獥 + hideActivityPopup(state) { + state.activityPopup.show = false + }, login(state, userInfo) { state.userInfo = userInfo || {}; state.userName = -- Gitblit v1.8.0