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 | 45 ++++++++++++++++++++++++++++++++++-----------
1 files changed, 34 insertions(+), 11 deletions(-)
diff --git a/dzhwk/unpackage/cache/wgt/H560379C1/index.html b/dzhwk/unpackage/cache/wgt/H560379C1/index.html
index a13e54b..91f4da3 100644
--- a/dzhwk/unpackage/cache/wgt/H560379C1/index.html
+++ b/dzhwk/unpackage/cache/wgt/H560379C1/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) {
@@ -151,19 +155,38 @@
var URL = url + "?sid=" + sid;
// var wv = plus.webview.create(URL);
// wv.show();
+ // 1. 鍏ㄥ睆鍒涘缓 Webview
var wv = plus.webview.create(
- URL,
- "",
- {
- width: "100%", // 瀹藉害鍏ㄥ睆
- height: "100%", // 楂樺害鍏ㄥ睆
- scrollIndicator: "none", // 闅愯棌婊氬姩鏉�
- statusbar: { background: "#ffffff" }, // 鐘舵�佹爮閫忔槑/鍚岃壊
- fullscreen: false, // 涓嶉殣钘忕姸鎬佹爮锛堥渶瑕侀殣钘忔敼鎴恡rue锛�
- softinputMode: "adjustResize" // 閿洏寮瑰嚭涓嶆尋鍘嬮〉闈�
- }
+ 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