!438 fix: 短信验证码登录问题

Merge pull request !438 from 打听幸福的下落/master
pull/2/head
芋道源码 2023-04-02 04:09:29 +00:00 committed by Gitee
commit c12c780d29
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 9 additions and 3 deletions

View File

@ -26,7 +26,7 @@ public class SmsCodeDO extends BaseDO {
/**
*
*/
private Integer id;
private Long id;
/**
*
*/

View File

@ -52,11 +52,12 @@
</el-form-item>
<el-form-item prop="mobileCode">
<el-input v-model="loginForm.mobileCode" type="text" auto-complete="off" placeholder="短信验证码"
class="sms-login-mobile-code-prefix"
@keyup.enter.native="handleLogin">
<template v-slot="icon">
<template>
<svg-icon slot="prefix" icon-class="password" class="el-input__icon input-icon"/>
</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">{{ mobileCodeTimer }}</span>
</template>
@ -335,4 +336,9 @@ export default {
text-decoration: underline red;
color: red;
}
.sms-login-mobile-code-prefix {
:deep(.el-input__prefix) {
top: 22%;
}
}
</style>