From a7bc5506debaa962938289c7b9a2a11790a49d44 Mon Sep 17 00:00:00 2001 From: xingyy <373639591@qq.com> Date: Fri, 18 Oct 2024 10:41:57 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=88=87=E6=8D=A2=E7=8E=AF=E5=A2=83=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E8=87=B3=E7=94=9F=E4=BA=A7=E7=8E=AF=E5=A2=83=202.=20?= =?UTF-8?q?=E8=B0=83=E6=95=B4webview=E6=A0=B7=E5=BC=8F=E4=BB=A5=E9=80=82?= =?UTF-8?q?=E9=85=8D=E7=8A=B6=E6=80=81=E6=A0=8F=E9=AB=98=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/index.js | 2 +- pages/index/index.vue | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/config/index.js b/config/index.js index d00cb3e..096c62b 100644 --- a/config/index.js +++ b/config/index.js @@ -1,4 +1,4 @@ -const env = 'LocalTest'; +const env = 'prod'; const configs = { LocalTest: { apiBaseUrl: 'https://warehouse.szjixun.cn/oa_backend', diff --git a/pages/index/index.vue b/pages/index/index.vue index 5847760..fc0b2d8 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -10,6 +10,11 @@ const wv = plus.webview.create(config.h5Url,"custom-webview") const currentPages=getCurrentPages() const currentWebview = currentPages[currentPages.length-1].$getAppWebview() currentWebview.append(wv) +const {statusBarHeight} = uni.getSystemInfoSync() +wv.setStyle({ + top: statusBarHeight, + bottom: 0, +}) import { Communication } from '../../utils/communication.js'; const commun=new Communication()