fix(mini-program): 短信验证码文案从 888888 改为 123456
This commit is contained in:
@@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user