From 2c3098821a1f3e9825b6903810675feddb135de2 Mon Sep 17 00:00:00 2001
From: czt <czt18638530771@163.com>
Date: 星期六, 11 四月 2026 14:58:27 +0800
Subject: [PATCH] 电子货位卡APP提交3

---
 dzhwk/unpackage/cache/wgt/H560379C1/index.html |   68 ++++++++++++++++++++++++++--------
 1 files changed, 52 insertions(+), 16 deletions(-)

diff --git a/dzhwk/unpackage/cache/wgt/H560379C1/index.html b/dzhwk/unpackage/cache/wgt/H560379C1/index.html
index 8e0ee55..91f4da3 100644
--- a/dzhwk/unpackage/cache/wgt/H560379C1/index.html
+++ b/dzhwk/unpackage/cache/wgt/H560379C1/index.html
@@ -98,9 +98,9 @@
 					<div class="yhm">
 						<input id="url" type="text" value="http://124.71.187.17:8111/dzhwk/index" class="form-control" placeholder="璇疯緭鍏ヨ矾寰�">
 					</div>
-				<!-- 	<div class="yhm">
+					<div class="yhm">
 						<input id="sid" type="text" class="form-control" placeholder="璇疯緭鍏ヨ澶囧簭鍒楀彿">
-					</div> -->
+					</div>
 					<button onclick="login()">纭�&nbsp;&nbsp;瀹�</button>
 				</div>
 			</div>
@@ -110,8 +110,12 @@
 	<script src="./js/jquery.min.js"></script>
 	<script type="text/javascript" charset="utf-8">
 		mui.init();
-
+		
+		// 鍏堣缃� APP 鍏ㄥ眬鍏ㄥ睆锛堥殣钘忕姸鎬佹爮锛�
+		plus.navigator.setFullscreen(true);
+		
 		mui.plusReady(function() {
+
 			var user = JSON.parse(localStorage.getItem('user'));
 			console.log(JSON.stringify(user));
 			if (user) {
@@ -120,9 +124,9 @@
 				}else{
 					$("#url").val("http://124.71.187.17:8111/dzhwk/index");
 				}
-				// if (user.sid) {
-				// 	$("#sid").val(user.sid);
-				// }
+				if (user.sid) {
+					$("#sid").val(user.sid);
+				}
 			}else{
 				$("#url").val("http://124.71.187.17:8111/dzhwk/index");
 			}
@@ -137,20 +141,52 @@
 				mui.alert("璇疯緭鍏ヨ矾寰勶紒", '鎻愮ず', ["纭畾"], function() {}, "div");
 				return;
 			}
-			// //楠岃瘉SID
-			// var sid = mui("#sid")[0].value;
-			// if (sid == '') {
-			// 	mui.alert("璇疯緭鍏ヨ澶囧簭鍒楀彿锛�", '鎻愮ず', ["纭畾"], function() {}, "div");
-			// 	return;
-			// }
+			//楠岃瘉SID
+			var sid = mui("#sid")[0].value;
+			if (sid == '') {
+				mui.alert("璇疯緭鍏ヨ澶囧簭鍒楀彿锛�", '鎻愮ず', ["纭畾"], function() {}, "div");
+				return;
+			}
 			var regInfo = {
-							"url": url
-							// "sid": sid
+							"url": url,
+							"sid": sid
 						};
 			localStorage.setItem('user', JSON.stringify(regInfo));
-			// var URL = url + "?sid=" + sid;
-			var wv = plus.webview.create(url);
+			var URL = url + "?sid=" + sid;
+			// var wv = plus.webview.create(URL);
+			// wv.show();
+			 // 1. 鍏ㄥ睆鍒涘缓 Webview
+			var wv = plus.webview.create(
+			    URL,
+			    'targetWebview', // 鍞竴id
+			    {
+			      top: '0px',      // 椤惰竟璺�0
+			      bottom: '0px',   // 搴曡竟璺�0
+			      left: '0px',     // 宸﹁竟璺�0
+			      right: '0px',    // 鍙宠竟璺�0
+			      width: '100%',
+			      height: '100%',
+			      scrollIndicator: 'none', // 闅愯棌婊氬姩鏉★紙鍙�夛級
+			      hardwareAccelerated: true // 寮�鍚‖浠跺姞閫燂紙Android锛�
+			    }
+			);
+			
+			  // 2. 鏄剧ず Webview
 			wv.show();
+			
+			  // 3. 鍙�夛細Webview 鍔犺浇瀹屾垚鍚庡啀寮哄埗缃戦〉鍏ㄥ睆
+			wv.addEventListener('loaded', function() {
+			    // 娉ㄥ叆JS璁╃綉椤佃嚜韬崰婊¤鍙�
+			    wv.evalJS(`
+			      document.documentElement.style.width = '100%';
+			      document.documentElement.style.height = '100%';
+			      document.body.style.width = '100%';
+			      document.body.style.height = '100%';
+			      document.body.style.margin = '0';
+			      document.body.style.padding = '0';
+			      document.body.style.overflow = 'hidden';
+			    `);
+			});
 		}
 	</script>
 </html>
\ No newline at end of file

--
Gitblit v1.9.3