From 06b44f9629a802817bc0047a03447011d5c2692d Mon Sep 17 00:00:00 2001 From: aiyadc <565548447@qq.com> Date: Sat, 2 May 2020 00:11:57 +0800 Subject: [PATCH] =?UTF-8?q?"0430=20=E7=99=BB=E9=99=86=E9=A1=B5=E9=9D=A2"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- element-vue/src/components/login.vue | 45 +++++++++------------------- 1 file changed, 14 insertions(+), 31 deletions(-) diff --git a/element-vue/src/components/login.vue b/element-vue/src/components/login.vue index 53e55bb..4871178 100644 --- a/element-vue/src/components/login.vue +++ b/element-vue/src/components/login.vue @@ -6,7 +6,7 @@

登录

- + - - + + - - + + 手机短信登陆 - 忘记密码 + 忘记密码 登录 @@ -31,7 +31,7 @@ -
+
{ if (valid) { - console.log(this.ruleForm.identity) - console.log(this.ruleForm.account) - console.log(this.ruleForm.psw) - get('login',{ - identity: this.ruleForm.identity, - account: this.ruleForm.account, - psw: this.ruleForm.psw - }) post('login',{ identity: this.ruleForm.identity, - account: this.ruleForm.account, - psw: this.ruleForm.psw + username: this.ruleForm.username, + password: this.ruleForm.password }) - // axios.post('/login', { - // identity: this.identity, - // account: this.account, - // psw: this.psw - // }) - // .then(function (response) { //取出服务器响应回来的数据 - // console.log(response); - // this.$router.push('/') - // }) } else { console.log('error submit!!'); return false; @@ -151,7 +134,7 @@ width: 30%; } - .forgetPsw{ + .forgetpassword{ position: relative; left: 28%; }