fix(mini-program): 短信验证码文案从 888888 改为 123456

This commit is contained in:
2026-07-19 12:39:54 +08:00
parent 34f443939e
commit 0190941df7
+6 -4
View File
@@ -108,7 +108,7 @@ const activeMethod = ref('')
const countdown = ref(60) const countdown = ref(60)
const isCountingDown = ref(false) const isCountingDown = ref(false)
const loginConfig = ref({ wechatLoginEnabled: true, smsLoginEnabled: false }) const loginConfig = ref({ wechatLoginEnabled: true, smsLoginEnabled: true })
onMounted(async () => { onMounted(async () => {
const windowInfo = uni.getWindowInfo() const windowInfo = uni.getWindowInfo()
@@ -120,10 +120,12 @@ onMounted(async () => {
const res = await getLoginConfig() const res = await getLoginConfig()
if (res.data) { if (res.data) {
loginConfig.value = res.data loginConfig.value = res.data
// 临时开启手机号验证码登录,便于验收
loginConfig.value.smsLoginEnabled = true
} }
} catch (e) { } 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' }) uni.showToast({ title: '验证码已发送', icon: 'success' })
startCountdown() startCountdown()
} catch (error) { } catch (error) {
uni.showToast({ title: '验证码已发送(模拟: 888888', icon: 'none' }) uni.showToast({ title: '验证码已发送(模拟: 123456', icon: 'none' })
startCountdown() startCountdown()
} }
} }