From 3756eeaca02872fb88caa7282dd83fdb5a9bc357 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期四, 26 二月 2026 16:20:29 +0800
Subject: [PATCH] 经销商管理

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

diff --git a/mini-program/store/index.js b/mini-program/store/index.js
index 9577216..dfbe7a7 100644
--- a/mini-program/store/index.js
+++ b/mini-program/store/index.js
@@ -9,6 +9,8 @@
 const shopInfo = uni.getStorageSync('shopInfo');
 const openid = uni.getStorageSync('openid');
 const token = uni.getStorageSync('token');
+const recuserid = uni.getStorageSync('recuserid');
+const recshopid = uni.getStorageSync('recshopid');
 const shopToken = uni.getStorageSync('shopToken');
 
 
@@ -23,7 +25,9 @@
 		token: token || '',
 		shopToken: shopToken || '',
 		openid: openid || '',
-		position: null
+		position: null,
+		recuserid:recuserid||'',
+		recshopid:recshopid||'',
 	},
 	mutations: {
 		// 璁剧疆瀵艰埅鏍忛珮搴�
@@ -47,6 +51,14 @@
 			state.openid = openid
 			uni.setStorageSync('openid', openid);
 		},
+		setRecUserId(state, recuserid) {
+			state.recuserid = recuserid
+			uni.setStorageSync('recuserid', recuserid);
+		},
+		setRecShopId(state, recshopid) {
+			state.recshopid = recshopid
+			uni.setStorageSync('recshopid', recshopid);
+		},
 		// 璁剧疆鐢ㄦ埛淇℃伅
 		setUserInfo(state, val) {
 			state.userInfo = val
@@ -68,6 +80,8 @@
 			uni.removeStorageSync('userInfo');
 			uni.removeStorageSync('token');
 			uni.removeStorageSync('openid');
+			uni.removeStorageSync('recshopid');
+			uni.removeStorageSync('recshopid');
 		}
 	},
 	

--
Gitblit v1.9.3