From 8daf51301ac7718eb24a795fd1807fc746bacb02 Mon Sep 17 00:00:00 2001 From: Peanut Date: Sat, 27 Jun 2026 13:07:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E7=99=BB=E5=BD=95=E9=A1=B5=E5=8F=98=E9=87=8F=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96=E9=A1=BA=E5=BA=8F=E9=94=99=E8=AF=AF=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E5=BE=AE=E4=BF=A1=E7=99=BB=E5=BD=95=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mini-program/src/pages/login/index.vue | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/mini-program/src/pages/login/index.vue b/mini-program/src/pages/login/index.vue index ddd7baf..d3a3449 100644 --- a/mini-program/src/pages/login/index.vue +++ b/mini-program/src/pages/login/index.vue @@ -101,6 +101,15 @@ const statusBarHeight = ref(uni.getStorageSync('statusBarHeight') || 20) const safeAreaTop = ref(uni.getStorageSync('safeAreaTop') || 20) const safeAreaBottom = ref(uni.getStorageSync('safeAreaBottom') || 0) +const phone = ref('') +const code = ref('') +const loading = ref(false) +const activeMethod = ref('') +const countdown = ref(60) +const isCountingDown = ref(false) + +const loginConfig = ref({ wechatLoginEnabled: true, smsLoginEnabled: false }) + onMounted(async () => { const windowInfo = uni.getWindowInfo() statusBarHeight.value = windowInfo.statusBarHeight || 20 @@ -118,15 +127,6 @@ onMounted(async () => { } }) -const phone = ref('') -const code = ref('') -const loading = ref(false) -const activeMethod = ref('') -const countdown = ref(60) -const isCountingDown = ref(false) - -const loginConfig = ref({ wechatLoginEnabled: true, smsLoginEnabled: false }) - const canSubmit = computed(() => { return phone.value.length === 11 && code.value.length === 6 })