From c3511d2f470e593d6cabb932306439e3d6faed76 Mon Sep 17 00:00:00 2001 From: xiaowang <2161656029@qq.com> Date: Fri, 4 Sep 2026 13:57:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B0=8F=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E5=BA=97=E9=93=BA=E9=80=89=E6=8B=A9=E6=B5=81?= =?UTF-8?q?=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- JC-Salon-WeChat/pages/login/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/JC-Salon-WeChat/pages/login/index.js b/JC-Salon-WeChat/pages/login/index.js index 94cb1e31..094aef20 100644 --- a/JC-Salon-WeChat/pages/login/index.js +++ b/JC-Salon-WeChat/pages/login/index.js @@ -320,6 +320,10 @@ Page({ async openLoginShopSelector() { const shopOptions = await this.loadLoginShopOptions() + if (shopOptions.length === 1) { + await this.loginWithSelectedShop(shopOptions[0].id) + return + } this.setData({ shopOptions, shopSelectVisible: true, @@ -436,7 +440,7 @@ Page({ this.saveLoginPreference() wx.reLaunch({ url: '/pages/planning/index' }) } catch (error) { - if (isShopSelectionRequiredError(error) || await this.tryOpenLoginShopSelector()) { + if (isShopSelectionRequiredError(error)) { try { if (!this.data.shopSelectVisible) { await this.openLoginShopSelector()