Commit c2748585b1dec39c73aa0781923514588370802d

Authored by 打听幸福的下落
1 parent aae6f128

fix: 短信验证码登录不显示获取验证码按钮问题

yudao-ui-admin/src/views/login.vue
... ... @@ -52,11 +52,12 @@
52 52 </el-form-item>
53 53 <el-form-item prop="mobileCode">
54 54 <el-input v-model="loginForm.mobileCode" type="text" auto-complete="off" placeholder="短信验证码"
  55 + class="sms-login-mobile-code-prefix"
55 56 @keyup.enter.native="handleLogin">
56   - <template v-slot="icon">
  57 + <template>
57 58 <svg-icon slot="prefix" icon-class="password" class="el-input__icon input-icon"/>
58 59 </template>
59   - <template v-slot="append">
  60 + <template slot="append">
60 61 <span v-if="mobileCodeTimer <= 0" class="getMobileCode" @click="getSmsCode" style="cursor: pointer;">获取验证码</span>
61 62 <span v-if="mobileCodeTimer > 0" class="getMobileCode">{{ mobileCodeTimer }}秒后可重新获取</span>
62 63 </template>
... ... @@ -335,4 +336,9 @@ export default {
335 336 text-decoration: underline red;
336 337 color: red;
337 338 }
  339 +.sms-login-mobile-code-prefix {
  340 + :deep(.el-input__prefix) {
  341 + top: 22%;
  342 + }
  343 +}
338 344 </style>
... ...