|
|
@@ -5,7 +5,7 @@
|
|
|
width="354px"
|
|
|
custom-class="login-dialog"
|
|
|
:close-on-click-modal="false"
|
|
|
- :show-close="true"
|
|
|
+ :show-close="false"
|
|
|
@close="emit('update:dialogVisible',false)"
|
|
|
>
|
|
|
<div class="login-box">
|
|
|
@@ -19,7 +19,7 @@
|
|
|
|
|
|
<el-form
|
|
|
ref="loginForm"
|
|
|
- :model="loginForm"
|
|
|
+ :model="loginForm"
|
|
|
:rules="loginRules"
|
|
|
autocomplete="on"
|
|
|
label-position="left"
|
|
|
@@ -57,7 +57,7 @@
|
|
|
v-model="loginForm.password"
|
|
|
placeholder="请输入密码"
|
|
|
type="password"
|
|
|
- style="width: 270px;"
|
|
|
+ style="width: 270px;"
|
|
|
show-password
|
|
|
maxlength="30"
|
|
|
tabindex="2"
|
|
|
@@ -85,8 +85,8 @@
|
|
|
autocomplete="off"
|
|
|
>
|
|
|
<template #append>
|
|
|
- <el-button
|
|
|
- :disabled="isCodeSending"
|
|
|
+ <el-button
|
|
|
+ :disabled="isCodeSending"
|
|
|
@click="sendVerificationCode"
|
|
|
>
|
|
|
{{ codeButtonText }}
|
|
|
@@ -180,16 +180,16 @@ const sendVerificationCode = () => {
|
|
|
ElMessage.warning('请先输入手机号')
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
sendCode({
|
|
|
phone: loginForm.username
|
|
|
}).then(() => {
|
|
|
isCodeSending.value = true
|
|
|
countdown.value = 60
|
|
|
-
|
|
|
+
|
|
|
// 这里应该调用发送验证码API
|
|
|
// await sendCode(loginForm.username)
|
|
|
-
|
|
|
+
|
|
|
const timer = setInterval(() => {
|
|
|
countdown.value--
|
|
|
if (countdown.value <= 0) {
|
|
|
@@ -266,7 +266,7 @@ const sendVerificationCode = () => {
|
|
|
width: 100%;
|
|
|
margin-top: 10px;
|
|
|
background: linear-gradient( 135deg, #2FB0FF 0%, #B863FB 100%);
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
:deep(.el-form-item) + .login-button {
|
|
|
margin-top: 20px;
|
|
|
@@ -378,4 +378,4 @@ const sendVerificationCode = () => {
|
|
|
color: #2FB0FF;
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|