1.切换环境配置至生产环境
2. 调整webview样式以适配状态栏高度
This commit is contained in:
parent
e6833725e7
commit
a7bc5506de
@ -1,4 +1,4 @@
|
|||||||
const env = 'LocalTest';
|
const env = 'prod';
|
||||||
const configs = {
|
const configs = {
|
||||||
LocalTest: {
|
LocalTest: {
|
||||||
apiBaseUrl: 'https://warehouse.szjixun.cn/oa_backend',
|
apiBaseUrl: 'https://warehouse.szjixun.cn/oa_backend',
|
||||||
|
@ -10,6 +10,11 @@ const wv = plus.webview.create(config.h5Url,"custom-webview")
|
|||||||
const currentPages=getCurrentPages()
|
const currentPages=getCurrentPages()
|
||||||
const currentWebview = currentPages[currentPages.length-1].$getAppWebview()
|
const currentWebview = currentPages[currentPages.length-1].$getAppWebview()
|
||||||
currentWebview.append(wv)
|
currentWebview.append(wv)
|
||||||
|
const {statusBarHeight} = uni.getSystemInfoSync()
|
||||||
|
wv.setStyle({
|
||||||
|
top: statusBarHeight,
|
||||||
|
bottom: 0,
|
||||||
|
})
|
||||||
import { Communication } from '../../utils/communication.js';
|
import { Communication } from '../../utils/communication.js';
|
||||||
const commun=new Communication()
|
const commun=new Communication()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user