From 8050665efc07f2666d803b14f01dfe07dc54da26 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期四, 20 十月 2022 18:05:29 +0800
Subject: [PATCH] 1.安灯呼叫开发完成

---
 unpackage/cache/wgt/H5EDA0853/pages/login/index.html |   24 +++++++++++-------------
 1 files changed, 11 insertions(+), 13 deletions(-)

diff --git a/unpackage/cache/wgt/H5EDA0853/pages/login/index.html b/unpackage/cache/wgt/H5EDA0853/pages/login/index.html
index 4911c0d..3abea4a 100644
--- a/unpackage/cache/wgt/H5EDA0853/pages/login/index.html
+++ b/unpackage/cache/wgt/H5EDA0853/pages/login/index.html
@@ -3,8 +3,8 @@
 	<head>
 		<meta charset="utf-8">
 		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
-		<!-- <meta name="HandheldFriendly" content="true" /> -->
-		<!-- <meta name="MobileOptimized" content="320" /> -->
+		<meta name="HandheldFriendly" content="true" />
+		<meta name="MobileOptimized" content="320" />
 		<title>鏂板嚡杩埗閫犱簯骞冲彴</title>
 		<!-- 寮曞叆鍍忕礌杞崲 px->rpx -->
 		<!-- <script src="../../js/rpx4html.js"></script> -->
@@ -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' :loading='submitIsDisabled' loading-text="姝e湪鐧诲綍,璇风◢绛�..." size="large">绔嬪嵆鐧诲綍
 						</van-button>
 					</div>
 				</div>
@@ -64,6 +65,7 @@
 			el: '#app',
 			data: function() {
 				return {
+					submitIsDisabled: false,
 					username: '999',
 					password: '123',
 					isOpenEye: false,
@@ -82,7 +84,7 @@
 						password: this.password,
 						usertype: 'APP'
 					}
-
+					this.submitIsDisabled = true
 					get('Login/LoginSave', data).then(res => {
 						if (res.code === '200') {
 							// window.location.reload()   //椤甸潰閲嶆柊
@@ -96,6 +98,8 @@
 								localStorage.setItem('usertype', res.data.usertype)
 							}
 							window.location.href = '../xtsy/index.html'
+						} else {
+							this.submitIsDisabled = false
 						}
 
 						if (res.code === '302') {
@@ -105,18 +109,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