fix: 短信验证码登录不显示获取验证码按钮问题
This commit is contained in:
parent
aae6f12832
commit
c2748585b1
|
@ -52,11 +52,12 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="mobileCode">
|
<el-form-item prop="mobileCode">
|
||||||
<el-input v-model="loginForm.mobileCode" type="text" auto-complete="off" placeholder="短信验证码"
|
<el-input v-model="loginForm.mobileCode" type="text" auto-complete="off" placeholder="短信验证码"
|
||||||
|
class="sms-login-mobile-code-prefix"
|
||||||
@keyup.enter.native="handleLogin">
|
@keyup.enter.native="handleLogin">
|
||||||
<template v-slot="icon">
|
<template>
|
||||||
<svg-icon slot="prefix" icon-class="password" class="el-input__icon input-icon"/>
|
<svg-icon slot="prefix" icon-class="password" class="el-input__icon input-icon"/>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot="append">
|
<template slot="append">
|
||||||
<span v-if="mobileCodeTimer <= 0" class="getMobileCode" @click="getSmsCode" style="cursor: pointer;">获取验证码</span>
|
<span v-if="mobileCodeTimer <= 0" class="getMobileCode" @click="getSmsCode" style="cursor: pointer;">获取验证码</span>
|
||||||
<span v-if="mobileCodeTimer > 0" class="getMobileCode">{{ mobileCodeTimer }}秒后可重新获取</span>
|
<span v-if="mobileCodeTimer > 0" class="getMobileCode">{{ mobileCodeTimer }}秒后可重新获取</span>
|
||||||
</template>
|
</template>
|
||||||
|
@ -335,4 +336,9 @@ export default {
|
||||||
text-decoration: underline red;
|
text-decoration: underline red;
|
||||||
color: red;
|
color: red;
|
||||||
}
|
}
|
||||||
|
.sms-login-mobile-code-prefix {
|
||||||
|
:deep(.el-input__prefix) {
|
||||||
|
top: 22%;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue