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/index.html |   40 ++++++++++++++++++++++++++++++++++++++--
 1 files changed, 38 insertions(+), 2 deletions(-)

diff --git a/dzhwk/index.html b/dzhwk/index.html
index 13c358f..91f4da3 100644
--- a/dzhwk/index.html
+++ b/dzhwk/index.html
@@ -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) {
@@ -149,8 +153,40 @@
 						};
 			localStorage.setItem('user', JSON.stringify(regInfo));
 			var URL = url + "?sid=" + sid;
-			var wv = plus.webview.create(URL);
+			// 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