From badafedccb814258fa54156b558458fa04191f8d Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期二, 30 七月 2024 11:42:48 +0800
Subject: [PATCH] update

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

diff --git a/store/index.js b/store/index.js
index 9f5be1f..5000bdd 100644
--- a/store/index.js
+++ b/store/index.js
@@ -415,6 +415,22 @@
 			}
 			return resp
 		},
+		countShopping: async function({
+			commit,
+			dispatch,
+			state
+		}, data) {
+			if(state.currentInfo.id){
+				const resp = await http.request('get', '/api/customer/flower/cart/flower/count', {})
+				if (resp && resp.code === 0) {
+					return resp.data || 0
+				} else {
+					return 0
+				}
+			}
+			return 0
+		},
+
 
 	}
 })

--
Gitblit v1.9.3