changewebviewway
This commit is contained in:
parent
b9a7864433
commit
1bd2bffedf
@ -2,7 +2,7 @@ const env = 'prod';
|
|||||||
const configs = {
|
const configs = {
|
||||||
LocalTest: {
|
LocalTest: {
|
||||||
apiBaseUrl: 'https://warehouse.szjixun.cn/oa_backend',
|
apiBaseUrl: 'https://warehouse.szjixun.cn/oa_backend',
|
||||||
h5Url:'http://192.168.88.51:8080/#/'
|
h5Url:'http://192.168.88.29:8080/#/'
|
||||||
},
|
},
|
||||||
dev: {
|
dev: {
|
||||||
apiBaseUrl: 'https://warehouse.szjixun.cn/oa_backend',
|
apiBaseUrl: 'https://warehouse.szjixun.cn/oa_backend',
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
Android 包名 : uni.UNI4796942
|
Android 包名 : uni.UNI70C49A3
|
||||||
证书别名:oaapp
|
证书别名:oaapp
|
||||||
密钥密码:12345678
|
密钥密码:12345678
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
"name" : "oa考勤系统",
|
"name" : "oa考勤系统",
|
||||||
"appid" : "__UNI__4796942",
|
"appid" : "__UNI__4796942",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "2.1.5",
|
"versionName" : "2.1.6",
|
||||||
"versionCode" : 215,
|
"versionCode" : 216,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
@ -25,7 +25,8 @@
|
|||||||
"Geolocation" : {},
|
"Geolocation" : {},
|
||||||
"Maps" : {},
|
"Maps" : {},
|
||||||
"LivePusher" : {},
|
"LivePusher" : {},
|
||||||
"Push" : {}
|
"Push" : {},
|
||||||
|
"Barcode" : {}
|
||||||
},
|
},
|
||||||
/* 应用发布信息 */
|
/* 应用发布信息 */
|
||||||
"distribute" : {
|
"distribute" : {
|
||||||
@ -67,11 +68,6 @@
|
|||||||
"geolocation" : {
|
"geolocation" : {
|
||||||
"system" : {
|
"system" : {
|
||||||
"__platform__" : [ "ios", "android" ]
|
"__platform__" : [ "ios", "android" ]
|
||||||
},
|
|
||||||
"baidu" : {
|
|
||||||
"__platform__" : [ "ios", "android" ],
|
|
||||||
"appkey_ios" : "5zzMAq3ofL5H5KfxRcf0zDMLTimvGIb0",
|
|
||||||
"appkey_android" : "ahdcPcBfatf61zRAgNl9SpBGUEURsnXN"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ad" : {},
|
"ad" : {},
|
||||||
@ -87,12 +83,7 @@
|
|||||||
"version" : "2"
|
"version" : "2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"maps" : {
|
"maps" : {}
|
||||||
"baidu" : {
|
|
||||||
"appkey_ios" : "5zzMAq3ofL5H5KfxRcf0zDMLTimvGIb0",
|
|
||||||
"appkey_android" : "ahdcPcBfatf61zRAgNl9SpBGUEURsnXN"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"icons" : {
|
"icons" : {
|
||||||
"android" : {
|
"android" : {
|
||||||
|
@ -1,11 +1,15 @@
|
|||||||
<template>
|
<template>
|
||||||
<web-view class="webview" @message="webLoad" style="flex: 1;" :src="config.h5Url"></web-view>
|
<!-- <web-view class="webview" @message="webLoad" style="flex: 1;" :src="config.h5Url"></web-view> -->
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import config from "../../config";
|
|
||||||
import {onExit } from "@dcloudio/uni-app";
|
import {onExit } from "@dcloudio/uni-app";
|
||||||
|
import config from "../../config"
|
||||||
|
const wv = plus.webview.create(config.h5Url,"custom-webview")
|
||||||
|
const currentPages=getCurrentPages()
|
||||||
|
const currentWebview = currentPages[currentPages.length-1].$getAppWebview()
|
||||||
|
currentWebview.append(wv)
|
||||||
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