From aee951be6ba8c7444ecfac3cd4e1f6f2e82542f9 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期四, 29 九月 2022 17:27:20 +0800
Subject: [PATCH] 1.设备维修静态页面初步实现

---
 pages/login/index.html |   15 +++++----------
 1 files changed, 5 insertions(+), 10 deletions(-)

diff --git a/pages/login/index.html b/pages/login/index.html
index a27c8a4..32502d1 100644
--- a/pages/login/index.html
+++ b/pages/login/index.html
@@ -19,8 +19,8 @@
 		<script type="text/javascript" src="../../js/http.js"></script>
 
 
-		<!-- 瀵煎叆鑷畾涔塲s鏂囦欢 -->
-		<!-- <script type="module" src="../../js/global.js"></script> -->
+		<!-- 瀵煎叆鑷畾涔夊叏灞�js鏂囦欢 -->
+		<script type="text/javascript" src="../../js/global.js"></script>
 
 
 
@@ -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>
@@ -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