修改登录页接口返回异常文字

This commit is contained in:
zhouyanli
2026-05-08 11:52:59 +08:00
parent b68766791d
commit 10505e8000
6 changed files with 16 additions and 40 deletions

View File

@@ -31,14 +31,6 @@
<uni-easyinput class="input-content verify-input" type="number" v-model="verifyCode"
placeholder="请输入验证码" :inputBorder="false" maxlength="6" :placeholderStyle="placeholderStyle">
</uni-easyinput>
<!-- <input
class="input-content verify-input"
type="number"
placeholder="请输入验证码"
v-model="verifyCode"
maxlength="6"
@input="checkForm"
/> -->
<button
class="get-verify-btn"
:disabled="!canGetVerify || countDown > 0"
@@ -95,13 +87,11 @@ const phoneNumber = ref('');
const verifyCode = ref('');
const placeholderStyle = ref('font-size:24rpx')
// 是否同意协议
const agreeAgreement = ref(false); // 默认勾选
const agreeAgreement = ref(false); // 默认勾选
// 倒计时(秒)
const countDown = ref(0);
// 定时器
let timer = null;
// 控制点击变色
// const isClicked = ref(false)
// ========== 计算属性 ==========
// 是否可以获取验证码(手机号格式正确)
@@ -130,8 +120,6 @@ const toggleAgreement = () => {
};
// 跳转隐私协议
const goToPrivacy = () => {
// 点击变色
// isClicked.value = true
uni.navigateTo({
url:'/pageSubPack/loginSub/privacy',
})
@@ -182,7 +170,7 @@ const handleLogin = () => {
uni.showLoading({ title: '登录中...', mask: true });
let params = {
phone:phoneNumber.value,
smsCode:'123456',
smsCode:verifyCode.value,
scene:'login',
}
getLoginBySms(params).then(res =>{