Skip to content

Commit 723302f

Browse files
committed
fix: 短信验证码登录不显示获取验证码按钮问题
1 parent 8c9b877 commit 723302f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/views/login.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,12 @@
5252
</el-form-item>
5353
<el-form-item prop="mobileCode">
5454
<el-input v-model="loginForm.mobileCode" type="text" auto-complete="off" placeholder="短信验证码"
55+
class="sms-login-mobile-code-prefix"
5556
@keyup.enter.native="handleLogin">
56-
<template v-slot="icon">
57+
<template>
5758
<svg-icon slot="prefix" icon-class="password" class="el-input__icon input-icon"/>
5859
</template>
59-
<template v-slot="append">
60+
<template slot="append">
6061
<span v-if="mobileCodeTimer <= 0" class="getMobileCode" @click="getSmsCode" style="cursor: pointer;">获取验证码</span>
6162
<span v-if="mobileCodeTimer > 0" class="getMobileCode">{{ mobileCodeTimer }}秒后可重新获取</span>
6263
</template>
@@ -335,4 +336,9 @@ export default {
335336
text-decoration: underline red;
336337
color: red;
337338
}
339+
.sms-login-mobile-code-prefix {
340+
:deep(.el-input__prefix) {
341+
top: 22%;
342+
}
343+
}
338344
</style>

0 commit comments

Comments
 (0)