From f621aacc5ed02fab11c9c1f35c69a36babb5411f Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期一, 25 八月 2025 15:02:31 +0800
Subject: [PATCH] 购物车点击事件,分享视频封面问题

---
 store/index.js |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/store/index.js b/store/index.js
index 3458c64..f05a8df 100644
--- a/store/index.js
+++ b/store/index.js
@@ -15,8 +15,28 @@
     userInfo: storage.getUserInfo(),
     uuid: storage.getUuid(),
     token: "",
+	 // 娲诲姩寮圭獥鐘舵��
+	 activityPopup: {
+	      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