changewebviewway

This commit is contained in:
scout 2024-10-18 10:29:02 +08:00
parent b9a7864433
commit 1bd2bffedf
4 changed files with 13 additions and 18 deletions

View File

@ -2,7 +2,7 @@ const env = 'prod';
const configs = {
LocalTest: {
apiBaseUrl: 'https://warehouse.szjixun.cn/oa_backend',
h5Url:'http://192.168.88.51:8080/#/'
h5Url:'http://192.168.88.29:8080/#/'
},
dev: {
apiBaseUrl: 'https://warehouse.szjixun.cn/oa_backend',

View File

@ -1,3 +1,3 @@
Android 包名 uni.UNI4796942
Android 包名 uni.UNI70C49A3
证书别名oaapp
密钥密码12345678

View File

@ -2,8 +2,8 @@
"name" : "oa考勤系统",
"appid" : "__UNI__4796942",
"description" : "",
"versionName" : "2.1.5",
"versionCode" : 215,
"versionName" : "2.1.6",
"versionCode" : 216,
"transformPx" : false,
/* 5+App */
"app-plus" : {
@ -25,7 +25,8 @@
"Geolocation" : {},
"Maps" : {},
"LivePusher" : {},
"Push" : {}
"Push" : {},
"Barcode" : {}
},
/* */
"distribute" : {
@ -67,11 +68,6 @@
"geolocation" : {
"system" : {
"__platform__" : [ "ios", "android" ]
},
"baidu" : {
"__platform__" : [ "ios", "android" ],
"appkey_ios" : "5zzMAq3ofL5H5KfxRcf0zDMLTimvGIb0",
"appkey_android" : "ahdcPcBfatf61zRAgNl9SpBGUEURsnXN"
}
},
"ad" : {},
@ -87,12 +83,7 @@
"version" : "2"
}
},
"maps" : {
"baidu" : {
"appkey_ios" : "5zzMAq3ofL5H5KfxRcf0zDMLTimvGIb0",
"appkey_android" : "ahdcPcBfatf61zRAgNl9SpBGUEURsnXN"
}
}
"maps" : {}
},
"icons" : {
"android" : {

View File

@ -1,11 +1,15 @@
<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>
<script setup>
import { ref } from 'vue'
import config from "../../config";
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';
const commun=new Communication()