From 0190941df716687482181609648f35b7dbe98215 Mon Sep 17 00:00:00 2001 From: Peanut Date: Sun, 19 Jul 2026 12:39:54 +0800 Subject: [PATCH] =?UTF-8?q?fix(mini-program):=20=E7=9F=AD=E4=BF=A1?= =?UTF-8?q?=E9=AA=8C=E8=AF=81=E7=A0=81=E6=96=87=E6=A1=88=E4=BB=8E=20888888?= =?UTF-8?q?=20=E6=94=B9=E4=B8=BA=20123456?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mini-program/src/pages/login/index.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/mini-program/src/pages/login/index.vue b/mini-program/src/pages/login/index.vue index d3a3449..d4dbc6b 100644 --- a/mini-program/src/pages/login/index.vue +++ b/mini-program/src/pages/login/index.vue @@ -108,7 +108,7 @@ const activeMethod = ref('') const countdown = ref(60) const isCountingDown = ref(false) -const loginConfig = ref({ wechatLoginEnabled: true, smsLoginEnabled: false }) +const loginConfig = ref({ wechatLoginEnabled: true, smsLoginEnabled: true }) onMounted(async () => { const windowInfo = uni.getWindowInfo() @@ -120,10 +120,12 @@ onMounted(async () => { const res = await getLoginConfig() if (res.data) { loginConfig.value = res.data + // 临时开启手机号验证码登录,便于验收 + loginConfig.value.smsLoginEnabled = true } } catch (e) { - // 接口失败时默认只显示微信登录 - loginConfig.value = { wechatLoginEnabled: true, smsLoginEnabled: false } + // 接口失败时默认显示手机号登录 + loginConfig.value = { wechatLoginEnabled: true, smsLoginEnabled: true } } }) @@ -144,7 +146,7 @@ const handleGetCode = async () => { uni.showToast({ title: '验证码已发送', icon: 'success' }) startCountdown() } catch (error) { - uni.showToast({ title: '验证码已发送(模拟: 888888)', icon: 'none' }) + uni.showToast({ title: '验证码已发送(模拟: 123456)', icon: 'none' }) startCountdown() } }