From 79745a1b12fa6d69edd3a353cb11b8ae02b8d4aa Mon Sep 17 00:00:00 2001
From: zhangwei <1504152376@qq.com>
Date: 星期一, 26 八月 2024 17:16:53 +0800
Subject: [PATCH] 投递与确认

---
 src/store/index.js |   85 ++++++++++++++++++++++++++++++++++++++----
 1 files changed, 76 insertions(+), 9 deletions(-)

diff --git a/src/store/index.js b/src/store/index.js
index 7cac5f7..339b47d 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -1,13 +1,80 @@
-import { createStore } from 'vuex'
+import {
+	createStore
+} from 'vuex'
 
 const store = createStore({
-  // 涓轰簡涓嶅拰椤甸潰鎴栫粍浠剁殑data涓殑閫犳垚娣锋穯锛宻tate涓殑鍙橀噺鍓嶉潰寤鸿鍔犱笂$绗﹀彿
-  state: {
-	  // 鐢ㄦ埛淇℃伅
-	  $userInfo: {
-		  id: 1
-	  }
-  }
+	// 涓轰簡涓嶅拰椤甸潰鎴栫粍浠剁殑data涓殑閫犳垚娣锋穯锛宻tate涓殑鍙橀噺鍓嶉潰寤鸿鍔犱笂$绗﹀彿
+	state: {
+		config: {
+			shopLogo: "/static/images/logo/logo.png"
+		}, // 搴楅摵閰嶇疆淇℃伅 //娣诲姞涓�涓墠绔」鐩腑鐨勫浘鐗囧湴鍧�
+		orderTab: 0, // 閫変腑鐨勮鍗晅ab椤�
+		scene: 0, // 閫変腑鐨勮鍗晅ab椤�
+		redirectPage: '',
+		uuid: '', //褰撳墠瀹㈡埛绔�
+		searchStyle: '',
+		sessionAuthId: '', //寰俊缂撳瓨鎺堟潈淇℃伅
+		searchFixed: false, //鎼滅储妗嗘牱寮�
+		showLoginTip: false, //鏄剧ず鐧诲綍妗�
+		hasLogin: false, //瀛樺偍鐢ㄦ埛褰撳墠鏄惁鐧诲綍锛屼綔涓哄垏鎹㈢壒鏁堜娇鐢�
+		userShip: {}, //鍦板尯淇℃伅
+		userInfo: {}, //鐢ㄦ埛淇℃伅瀛樺偍
+		invoice: {}, //鍙戠エ淇℃伅
+		deliveryData: {}, //娲鹃�佽鍗曡鎯�
+	},
+	mutations: {
+		config(state, payload) {
+			state.config = payload
+		},
+		orderTab(state, tab) {
+			state.orderTab = tab
+		},
+		scene(state, tab) {
+			state.scene = tab
+		},
+		redirect(state, payload) {
+			state.redirectPage = payload.page
+		},
+		searchStyle(state, style) {
+			state.searchStyle = style
+		},
+		sessionAuthId(state, payload) {
+			state.sessionAuthId = payload
+		},
+		searchFixed(state, payload) {
+			state.searchFixed = payload
+		},
+		showLoginTip(state, payload) {
+			state.showLoginTip = payload
+		},
+		hasLogin(state, payload) {
+			state.hasLogin = payload
+		},
+		userShip(state, userShip) {
+			state.userShip = userShip
+		},
+		userInfo(state, userInfo) {
+			state.userInfo = userInfo
+		},
+		invoice(state, invoice) {
+			state.invoice = invoice
+		},
+		deliveryData(state, data) {
+			state.deliveryData = data
+		}
+	},
+	actions: {
+
+	},
+	getters: {
+		shopConfig: state => state.config,
+		scene: state => state.scene,
+		userInfo: state => state.userInfo,
+		uuid: state => state.uuid,
+		hasLogin: state => state.hasLogin,
+		sessionAuthId: state => state.sessionAuthId,
+		deliveryData: state => state.deliveryData
+	}
 })
 
-export default store
+export default store
\ No newline at end of file

--
Gitblit v1.9.1