From 7b76391180904d58156aef13abcac0256ff7fcc1 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期五, 23 九月 2022 10:07:56 +0800
Subject: [PATCH] 1.登出接口接入
---
pages/login/index.html | 13 ++++---------
1 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/pages/login/index.html b/pages/login/index.html
index 92af73e..32502d1 100644
--- a/pages/login/index.html
+++ b/pages/login/index.html
@@ -50,7 +50,8 @@
</van-field>
</div>
<div style="margin-top:30px;">
- <van-button type="info" style="border-radius: 10px;" @click='loginClick' size="large">绔嬪嵆鐧诲綍
+ <van-button type="info" style="border-radius: 10px;" :disabled="username===''||password===''"
+ @click='loginClick' size="large">绔嬪嵆鐧诲綍
</van-button>
</div>
</div>
@@ -73,7 +74,7 @@
},
mounted() {
- console.log(formatParams(),1)
+
},
methods: {
loginClick() {
@@ -105,18 +106,12 @@
username: res.data.username,
usertype: res.data.usertype
}
-
-
- post('Login/ForcedOffline?userid=' + res.data.userid + '&usercode=' + res.data
- .usercode + '&username=' + res.data.username + '&usertype=' + res.data
- .usertype).then(res2 => {
+ post('Login/ForcedOffline' + formatParams(data2)).then(res2 => {
if (res2.code === '200') {
this.loginClick()
}
-
})
}
-
}).catch(err => {
console.log(err);
});
--
Gitblit v1.9.3