1.切换环境配置至生产环境

2. 调整webview样式以适配状态栏高度
This commit is contained in:
xingyy 2024-10-18 10:41:57 +08:00
parent e6833725e7
commit a7bc5506de
2 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,4 @@
const env = 'LocalTest';
const env = 'prod';
const configs = {
LocalTest: {
apiBaseUrl: 'https://warehouse.szjixun.cn/oa_backend',

View File

@ -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()