From 29f79ffbde54016168714b02cd1c77b464bf229a Mon Sep 17 00:00:00 2001
From: lyfO_o <764716047@qq.com>
Date: 星期五, 29 四月 2022 16:53:21 +0800
Subject: [PATCH] 用户注册

---
 src/views/login/components/login-form.vue |   20 ++++++++++++++++++--
 1 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/src/views/login/components/login-form.vue b/src/views/login/components/login-form.vue
index 2aeede9..c62ea37 100644
--- a/src/views/login/components/login-form.vue
+++ b/src/views/login/components/login-form.vue
@@ -38,10 +38,16 @@
             </el-form>
         </div>
         <div class="login-form-button">
-            <el-button class="login-form-login-button" :loading="logingLoading" :disabled="submitLoading" type="primary" @click.native.prevent="handleSubmit">
+            <el-button class="login-form-login-button" :loading="logingLoading" type="primary" @click.native.prevent="handleSubmit">
                   <span>
                       登录
                   </span>
+            </el-button>
+        </div>
+
+        <div style="padding-top: 20px" class="login-form-button">
+            <el-button class="register-btn"  @click="handleRegister">
+                <span style="color: black">注册</span>
             </el-button>
         </div>
     </div>
@@ -133,6 +139,9 @@
         created(){
         },
         methods: {
+            handleRegister(){
+              this.$router.push({path:'/register'})
+            },
             showLoginPwd() {
                 if (this.loginPasswordType === 'password') {
                     this.loginPasswordType = ''
@@ -232,8 +241,15 @@
     }
     .login-form-login-button {
         width: 364px;
-        height: 48px;
+        height: 40px;
         background: #4778FF;
         border-radius: 4px;
     }
+
+    .register-btn{
+        width: 364px;
+        height: 40px;
+        color: white;
+        border-radius: 4px;
+    }
 </style>

--
Gitblit v1.9.2