From 2e3ab7fbbb336cf11ed37b8b0a7871976d597564 Mon Sep 17 00:00:00 2001
From: rk <94314517@qq.com>
Date: 星期三, 22 四月 2026 20:06:51 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 small-program/shop/pages/login/login.vue |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/small-program/shop/pages/login/login.vue b/small-program/shop/pages/login/login.vue
index 230bd54..a139eb9 100644
--- a/small-program/shop/pages/login/login.vue
+++ b/small-program/shop/pages/login/login.vue
@@ -54,15 +54,20 @@
 			// 闈欓粯鐧诲綍
 			if (this.userInfo.bindShopId) {
 				this.$u.api.shopSilentLogin({})
-					.then(res => {
+					.then(async res => {
 						if (res.code === 200) {
 							this.$store.commit('setUserType', 1)
 							this.$store.commit('setShopToken', res.data.token)
+							// 鑾峰彇闂ㄥ簵淇℃伅
+							const shopInfoRes = await this.$u.api.getShopInfo({})
+							if (shopInfoRes.code === 200) {
+								this.$store.commit('setShopInfo', shopInfoRes.data)
+							}
 							setTimeout(() => {
 								uni.reLaunch({
 									url: '/shop/pages/store-home/store-home'
 								});
-							}, 500)
+							}, 1000)
 						}
 					})
 			}
@@ -101,6 +106,11 @@
 					if (res.code === 200) {
 						this.$store.commit('setUserType', 1)
 						this.$store.commit('setShopToken', res.data.token)
+						// 鑾峰彇闂ㄥ簵淇℃伅
+						const shopInfoRes = await this.$u.api.getShopInfo({})
+						if (shopInfoRes.code === 200) {
+							this.$store.commit('setShopInfo', shopInfoRes.data)
+						}
 						uni.showToast({ title: '鐧诲綍鎴愬姛', icon: 'success' })
 						setTimeout(() => {
 							uni.reLaunch({

--
Gitblit v1.9.3