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 | 18 +++++++++++++++++- 1 files changed, 17 insertions(+), 1 deletions(-) diff --git a/src/views/login/components/login-form.vue b/src/views/login/components/login-form.vue index 1d73ecd..c62ea37 100644 --- a/src/views/login/components/login-form.vue +++ b/src/views/login/components/login-form.vue @@ -44,6 +44,12 @@ </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> <!-- <el-form ref="loginForm" :model="loginForm" :rules="loginRules" :inline="false" class="loginForm" @keydown.enter.native="handleSubmit">--> <!-- <div class="title-container">--> @@ -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