first
commit
d01e6cb08a
@ -0,0 +1,30 @@
|
|||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
onLaunch: function() {
|
||||||
|
const permissionListener = uni.createRequestPermissionListener();
|
||||||
|
permissionListener.onRequest((e)=>{
|
||||||
|
})
|
||||||
|
permissionListener.onConfirm((e) => {
|
||||||
|
uni.showToast({
|
||||||
|
icon:'none',
|
||||||
|
title:'已开启通知',
|
||||||
|
duration:5000
|
||||||
|
})
|
||||||
|
});
|
||||||
|
permissionListener.onComplete((e) => {
|
||||||
|
|
||||||
|
});
|
||||||
|
console.log('App Launch')
|
||||||
|
},
|
||||||
|
onShow: function() {
|
||||||
|
console.log('App Show')
|
||||||
|
},
|
||||||
|
onHide: function() {
|
||||||
|
console.log('App Hide')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
/*每个页面公共css */
|
||||||
|
</style>
|
@ -0,0 +1,25 @@
|
|||||||
|
/* 非空验证 */
|
||||||
|
const vefEmpty = (key,msg) => {
|
||||||
|
if (key === '' || key === undefined || key === null) {
|
||||||
|
uni.showToast({
|
||||||
|
title: msg,
|
||||||
|
duration: 2000,
|
||||||
|
icon: 'none'
|
||||||
|
});
|
||||||
|
return false
|
||||||
|
} else {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const addZero = (num) => {
|
||||||
|
if (num < 10) {
|
||||||
|
num = `0${num}`;
|
||||||
|
}
|
||||||
|
return num;
|
||||||
|
};
|
||||||
|
|
||||||
|
export default {
|
||||||
|
vefEmpty,
|
||||||
|
addZero
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<script>
|
||||||
|
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
|
||||||
|
CSS.supports('top: constant(a)'))
|
||||||
|
document.write(
|
||||||
|
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
|
||||||
|
(coverSupport ? ', viewport-fit=cover' : '') + '" />')
|
||||||
|
</script>
|
||||||
|
<title></title>
|
||||||
|
<!--preload-links-->
|
||||||
|
<!--app-context-->
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="app"><!--app-html--></div>
|
||||||
|
<script type="module" src="/main.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -0,0 +1,22 @@
|
|||||||
|
import App from './App'
|
||||||
|
|
||||||
|
// #ifndef VUE3
|
||||||
|
import Vue from 'vue'
|
||||||
|
import './uni.promisify.adaptor'
|
||||||
|
Vue.config.productionTip = false
|
||||||
|
App.mpType = 'app'
|
||||||
|
const app = new Vue({
|
||||||
|
...App
|
||||||
|
})
|
||||||
|
app.$mount()
|
||||||
|
// #endif
|
||||||
|
|
||||||
|
// #ifdef VUE3
|
||||||
|
import { createSSRApp } from 'vue'
|
||||||
|
export function createApp() {
|
||||||
|
const app = createSSRApp(App)
|
||||||
|
return {
|
||||||
|
app
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// #endif
|
@ -0,0 +1,76 @@
|
|||||||
|
{
|
||||||
|
"name" : "oa-base",
|
||||||
|
"appid" : "__UNI__4796942",
|
||||||
|
"description" : "",
|
||||||
|
"versionName" : "1.0.0",
|
||||||
|
"versionCode" : "100",
|
||||||
|
"transformPx" : false,
|
||||||
|
/* 5+App特有相关 */
|
||||||
|
"app-plus" : {
|
||||||
|
"usingComponents" : true,
|
||||||
|
"nvueStyleCompiler" : "uni-app",
|
||||||
|
"compilerVersion" : 3,
|
||||||
|
"splashscreen" : {
|
||||||
|
"alwaysShowBeforeRender" : true,
|
||||||
|
"waiting" : true,
|
||||||
|
"autoclose" : true,
|
||||||
|
"delay" : 0
|
||||||
|
},
|
||||||
|
/* 模块配置 */
|
||||||
|
"modules" : {},
|
||||||
|
/* 应用发布信息 */
|
||||||
|
"distribute" : {
|
||||||
|
/* android打包配置 */
|
||||||
|
"android" : {
|
||||||
|
"permissions" : [
|
||||||
|
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
|
||||||
|
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
|
||||||
|
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
/* ios打包配置 */
|
||||||
|
"ios" : {
|
||||||
|
"dSYMs" : false
|
||||||
|
},
|
||||||
|
/* SDK配置 */
|
||||||
|
"sdkConfigs" : {
|
||||||
|
"ad" : {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
/* 快应用特有相关 */
|
||||||
|
"quickapp" : {},
|
||||||
|
/* 小程序特有相关 */
|
||||||
|
"mp-weixin" : {
|
||||||
|
"appid" : "",
|
||||||
|
"setting" : {
|
||||||
|
"urlCheck" : false
|
||||||
|
},
|
||||||
|
"usingComponents" : true
|
||||||
|
},
|
||||||
|
"mp-alipay" : {
|
||||||
|
"usingComponents" : true
|
||||||
|
},
|
||||||
|
"mp-baidu" : {
|
||||||
|
"usingComponents" : true
|
||||||
|
},
|
||||||
|
"mp-toutiao" : {
|
||||||
|
"usingComponents" : true
|
||||||
|
},
|
||||||
|
"uniStatistics" : {
|
||||||
|
"enable" : false
|
||||||
|
},
|
||||||
|
"vueVersion" : "3"
|
||||||
|
}
|
@ -0,0 +1,51 @@
|
|||||||
|
<template>
|
||||||
|
<div class="content">
|
||||||
|
<web-view class="webview" @onPostMessage="webLoad" :style="{height:`${systemInfo.windowHeight}px`,width:`${systemInfo.windowWidth}`}" ref="webViewRef" src="http://192.168.88.35:8081/"></web-view>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script setup>
|
||||||
|
import { ref } from 'vue'
|
||||||
|
import {sendWebWiew,receiveWebView} from "@/utils/communicate";
|
||||||
|
const webViewRef=ref(null)
|
||||||
|
const systemInfo = uni.getSystemInfoSync();
|
||||||
|
const permissionListener = uni.createRequestPermissionListener();
|
||||||
|
permissionListener.onRequest((e)=>{
|
||||||
|
})
|
||||||
|
permissionListener.onConfirm((e) => {
|
||||||
|
sendWebWiew(webViewRef.value,{auth:e,open:true})
|
||||||
|
});
|
||||||
|
permissionListener.onComplete((e) => {
|
||||||
|
sendWebWiew(webViewRef.value,{auth:e,open:false})
|
||||||
|
});
|
||||||
|
const webLoad=(e)=>{
|
||||||
|
const m=receiveWebView(e)
|
||||||
|
switch (m.action) {
|
||||||
|
//webview初始化加载完成
|
||||||
|
case 'load-complete':{
|
||||||
|
|
||||||
|
const systemInfo= uni.getSystemInfoSync()
|
||||||
|
uni.getLocation({
|
||||||
|
type: 'gcj02',
|
||||||
|
geocode: false,
|
||||||
|
isHighAccuracy: false,
|
||||||
|
success:async (res) => {
|
||||||
|
sendWebWiew(webViewRef.value,{...res,systemInfo})
|
||||||
|
},
|
||||||
|
fail: (e) => {
|
||||||
|
console.log(e);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
|
||||||
|
.content {
|
||||||
|
display: flex;
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
</style>
|
@ -0,0 +1,10 @@
|
|||||||
|
uni.addInterceptor({
|
||||||
|
returnValue (res) {
|
||||||
|
if (!(!!res && (typeof res === "object" || typeof res === "function") && typeof res.then === "function")) {
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
res.then((res) => res[0] ? reject(res[0]) : resolve(res[1]));
|
||||||
|
});
|
||||||
|
},
|
||||||
|
});
|
@ -0,0 +1,11 @@
|
|||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __commonJS = (cb, mod) => function __require() {
|
||||||
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
||||||
|
};
|
||||||
|
var require_app_css = __commonJS({
|
||||||
|
"app.css.js"(exports) {
|
||||||
|
const _style_0 = {};
|
||||||
|
exports.styles = [_style_0];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
export default require_app_css();
|
@ -0,0 +1,5 @@
|
|||||||
|
Promise.resolve("./pages/index/index.js").then((res) => {
|
||||||
|
res.length;
|
||||||
|
});
|
||||||
|
Promise.resolve("./app.css.js").then(() => {
|
||||||
|
});
|
@ -0,0 +1,86 @@
|
|||||||
|
import { ref, openBlock, createElementBlock, createElementVNode, normalizeStyle, unref } from "vue";
|
||||||
|
function formatAppLog(type, filename, ...args) {
|
||||||
|
if (uni.__log__) {
|
||||||
|
uni.__log__(type, filename, ...args);
|
||||||
|
} else {
|
||||||
|
console[type].apply(console, [...args, filename]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const sendWebWiew = (refValue, paramValue, callName = "onReceive") => {
|
||||||
|
if (!refValue) {
|
||||||
|
formatAppLog("error", "at utils/communicate/index.js:3", "evalJs: The reference to the webview is not provided or is null.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (typeof refValue.evalJs !== "function") {
|
||||||
|
formatAppLog("error", "at utils/communicate/index.js:8", "evalJs: The evalJs method is not available on the provided reference.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
const jsonString = JSON.stringify(paramValue);
|
||||||
|
const jsCode = `window.${callName}(${jsonString})`;
|
||||||
|
refValue.evalJs(jsCode);
|
||||||
|
} catch (error) {
|
||||||
|
formatAppLog("error", "at utils/communicate/index.js:18", "evalJs: An error occurred while trying to stringify the parameter value or while invoking evalJs.", error);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const receiveWebView = (e) => {
|
||||||
|
return e.detail.data[0];
|
||||||
|
};
|
||||||
|
const _style_0 = { "content": { "": { "display": "flex", "flex": 1 } } };
|
||||||
|
const _export_sfc = (sfc, props) => {
|
||||||
|
const target = sfc.__vccOpts || sfc;
|
||||||
|
for (const [key, val] of props) {
|
||||||
|
target[key] = val;
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
const _sfc_main = {
|
||||||
|
__name: "index",
|
||||||
|
setup(__props) {
|
||||||
|
const webViewRef = ref(null);
|
||||||
|
const systemInfo = uni.getSystemInfoSync();
|
||||||
|
const webLoad = (e) => {
|
||||||
|
const m = receiveWebView(e);
|
||||||
|
switch (m.action) {
|
||||||
|
case "load-complete": {
|
||||||
|
const systemInfo2 = uni.getSystemInfoSync();
|
||||||
|
uni.getLocation({
|
||||||
|
type: "gcj02",
|
||||||
|
geocode: false,
|
||||||
|
isHighAccuracy: false,
|
||||||
|
success: async (res) => {
|
||||||
|
sendWebWiew(webViewRef.value, { ...res, systemInfo: systemInfo2 });
|
||||||
|
},
|
||||||
|
fail: (e2) => {
|
||||||
|
formatAppLog("log", "at pages/index/index.nvue:27", e2);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return (_ctx, _cache) => {
|
||||||
|
return openBlock(), createElementBlock("scroll-view", {
|
||||||
|
scrollY: true,
|
||||||
|
showScrollbar: true,
|
||||||
|
enableBackToTop: true,
|
||||||
|
bubble: "true",
|
||||||
|
style: { flexDirection: "column" }
|
||||||
|
}, [
|
||||||
|
createElementVNode("div", { class: "content" }, [
|
||||||
|
createElementVNode("u-web-view", {
|
||||||
|
class: "webview",
|
||||||
|
"on:onPostMessage": webLoad,
|
||||||
|
style: normalizeStyle({ height: `${unref(systemInfo).windowHeight}px`, width: `${unref(systemInfo).windowWidth}` }),
|
||||||
|
ref_key: "webViewRef",
|
||||||
|
ref: webViewRef,
|
||||||
|
src: "http://192.168.88.35:8080/#/"
|
||||||
|
}, null, 36)
|
||||||
|
])
|
||||||
|
]);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["styles", [_style_0]]]);
|
||||||
|
export {
|
||||||
|
index as default
|
||||||
|
};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,23 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<title>View</title>
|
||||||
|
<link rel="stylesheet" href="app.css" />
|
||||||
|
<script>var __uniConfig = {"globalStyle":{},"darkmode":false}</script>
|
||||||
|
<script>
|
||||||
|
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
|
||||||
|
CSS.supports('top: constant(a)'))
|
||||||
|
document.write(
|
||||||
|
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
|
||||||
|
(coverSupport ? ', viewport-fit=cover' : '') + '" />')
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="app"></div>
|
||||||
|
<script src="uni-app-view.umd.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -0,0 +1,11 @@
|
|||||||
|
|
||||||
|
;(function(){
|
||||||
|
let u=void 0,isReady=false,onReadyCallbacks=[],isServiceReady=false,onServiceReadyCallbacks=[];
|
||||||
|
const __uniConfig = {"pages":[],"globalStyle":{"backgroundColor":"#F8F8F8","navigationBar":{"backgroundColor":"#F8F8F8","titleText":"uni-app","type":"default","titleColor":"#000000"},"isNVue":false},"nvue":{"compiler":"uni-app","styleCompiler":"uni-app","flex-direction":"column"},"renderer":"auto","appname":"oa-base","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":true},"compilerVersion":"3.99","entryPagePath":"pages/index/index","entryPageQuery":"","realEntryPagePath":"","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000},"locales":{},"darkmode":false,"themeConfig":{}};
|
||||||
|
const __uniRoutes = [{"path":"pages/index/index","meta":{"isQuit":true,"isEntry":true,"navigationBar":{"titleText":"uni-app","style":"custom","type":"default"},"isNVue":true}}].map(uniRoute=>(uniRoute.meta.route=uniRoute.path,__uniConfig.pages.push(uniRoute.path),uniRoute.path='/'+uniRoute.path,uniRoute));
|
||||||
|
__uniConfig.styles=[{}];//styles
|
||||||
|
__uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
|
||||||
|
__uniConfig.onServiceReady=function(callback){if(__uniConfig.serviceReady){callback()}else{onServiceReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"serviceReady",{get:function(){return isServiceReady},set:function(val){isServiceReady=val;if(!isServiceReady){return}const callbacks=onServiceReadyCallbacks.slice(0);onServiceReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
|
||||||
|
service.register("uni-app-config",{create(a,b,c){if(!__uniConfig.viewport){var d=b.weex.config.env.scale,e=b.weex.config.env.deviceWidth,f=Math.ceil(e/d);Object.assign(__uniConfig,{viewport:f,defaultFontSize:16})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:u,window:u,document:u,frames:u,self:u,location:u,navigator:u,localStorage:u,history:u,Caches:u,screen:u,alert:u,confirm:u,prompt:u,fetch:u,XMLHttpRequest:u,WebSocket:u,webkit:u,print:u}}}});
|
||||||
|
})();
|
||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
(function(){})();
|
@ -0,0 +1 @@
|
|||||||
|
if("undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(n){const r=this.constructor;return this.then((e=>r.resolve(n()).then((()=>e))),(e=>r.resolve(n()).then((()=>{throw e}))))}),"undefined"!=typeof uni&&uni&&uni.requireGlobal){const n=uni.requireGlobal();ArrayBuffer=n.ArrayBuffer,Int8Array=n.Int8Array,Uint8Array=n.Uint8Array,Uint8ClampedArray=n.Uint8ClampedArray,Int16Array=n.Int16Array,Uint16Array=n.Uint16Array,Int32Array=n.Int32Array,Uint32Array=n.Uint32Array,Float32Array=n.Float32Array,Float64Array=n.Float64Array,BigInt64Array=n.BigInt64Array,BigUint64Array=n.BigUint64Array}uni.restoreGlobal&&uni.restoreGlobal(Vue,weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),function(n){"use strict";function r(n,r,...e){uni.__log__?uni.__log__(n,r,...e):console[n].apply(console,[...e,r])}const e={onLaunch:function(){const n=uni.createRequestPermissionListener();n.onRequest((n=>{})),n.onConfirm((n=>{uni.showToast({icon:"none",title:"已开启通知",duration:5e3})})),n.onComplete((n=>{})),r("log","at App.vue:17","App Launch")},onShow:function(){r("log","at App.vue:20","App Show")},onHide:function(){r("log","at App.vue:23","App Hide")}};const{app:t,Vuex:o,Pinia:i}={app:n.createVueApp(e)};uni.Vuex=o,uni.Pinia=i,t.provide("__globalStyles",__uniConfig.styles),t._component.mpType="app",t._component.render=()=>{},t.mount("#app")}(Vue);
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,103 @@
|
|||||||
|
{
|
||||||
|
"@platforms": [
|
||||||
|
"android",
|
||||||
|
"iPhone",
|
||||||
|
"iPad"
|
||||||
|
],
|
||||||
|
"id": "__UNI__4796942",
|
||||||
|
"name": "oa-base",
|
||||||
|
"version": {
|
||||||
|
"name": "1.0.0",
|
||||||
|
"code": "100"
|
||||||
|
},
|
||||||
|
"description": "",
|
||||||
|
"developer": {
|
||||||
|
"name": "",
|
||||||
|
"email": "",
|
||||||
|
"url": ""
|
||||||
|
},
|
||||||
|
"permissions": {
|
||||||
|
"UniNView": {
|
||||||
|
"description": "UniNView原生渲染"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"plus": {
|
||||||
|
"useragent": {
|
||||||
|
"value": "uni-app",
|
||||||
|
"concatenate": true
|
||||||
|
},
|
||||||
|
"splashscreen": {
|
||||||
|
"target": "id:1",
|
||||||
|
"autoclose": true,
|
||||||
|
"waiting": true,
|
||||||
|
"delay": 0
|
||||||
|
},
|
||||||
|
"popGesture": "close",
|
||||||
|
"launchwebview": {
|
||||||
|
"render": "always",
|
||||||
|
"id": "1",
|
||||||
|
"kernel": "WKWebview",
|
||||||
|
"uniNView": {
|
||||||
|
"path": "pages/index/index.js"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"usingComponents": true,
|
||||||
|
"nvueStyleCompiler": "uni-app",
|
||||||
|
"compilerVersion": 3,
|
||||||
|
"distribute": {
|
||||||
|
"google": {
|
||||||
|
"permissions": [
|
||||||
|
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
|
||||||
|
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
|
||||||
|
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"apple": {
|
||||||
|
"dSYMs": false
|
||||||
|
},
|
||||||
|
"plugins": {
|
||||||
|
"ad": {},
|
||||||
|
"audio": {
|
||||||
|
"mp3": {
|
||||||
|
"description": "Android平台录音支持MP3格式文件"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"statusbar": {
|
||||||
|
"immersed": "supportedDevice",
|
||||||
|
"style": "dark",
|
||||||
|
"background": "#F8F8F8"
|
||||||
|
},
|
||||||
|
"uniStatistics": {
|
||||||
|
"enable": false
|
||||||
|
},
|
||||||
|
"allowsInlineMediaPlayback": true,
|
||||||
|
"uni-app": {
|
||||||
|
"control": "uni-v3",
|
||||||
|
"vueVersion": "3",
|
||||||
|
"compilerVersion": "3.99",
|
||||||
|
"nvueCompiler": "uni-app",
|
||||||
|
"renderer": "auto",
|
||||||
|
"nvue": {
|
||||||
|
"flex-direction": "column"
|
||||||
|
},
|
||||||
|
"nvueLaunchMode": "normal",
|
||||||
|
"webView": {
|
||||||
|
"minUserAgentVersion": "49.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,32 @@
|
|||||||
|
"use weex:vue";
|
||||||
|
|
||||||
|
if (typeof Promise !== 'undefined' && !Promise.prototype.finally) {
|
||||||
|
Promise.prototype.finally = function(callback) {
|
||||||
|
const promise = this.constructor
|
||||||
|
return this.then(
|
||||||
|
value => promise.resolve(callback()).then(() => value),
|
||||||
|
reason => promise.resolve(callback()).then(() => {
|
||||||
|
throw reason
|
||||||
|
})
|
||||||
|
)
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
|
const global = uni.requireGlobal()
|
||||||
|
ArrayBuffer = global.ArrayBuffer
|
||||||
|
Int8Array = global.Int8Array
|
||||||
|
Uint8Array = global.Uint8Array
|
||||||
|
Uint8ClampedArray = global.Uint8ClampedArray
|
||||||
|
Int16Array = global.Int16Array
|
||||||
|
Uint16Array = global.Uint16Array
|
||||||
|
Int32Array = global.Int32Array
|
||||||
|
Uint32Array = global.Uint32Array
|
||||||
|
Float32Array = global.Float32Array
|
||||||
|
Float64Array = global.Float64Array
|
||||||
|
BigInt64Array = global.BigInt64Array
|
||||||
|
BigUint64Array = global.BigUint64Array
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
(()=>{var S=Object.create;var d=Object.defineProperty,J=Object.defineProperties,I=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyDescriptors,k=Object.getOwnPropertyNames,w=Object.getOwnPropertySymbols,A=Object.getPrototypeOf,g=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;var y=(t,e,o)=>e in t?d(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,m=(t,e)=>{for(var o in e||(e={}))g.call(e,o)&&y(t,o,e[o]);if(w)for(var o of w(e))$.call(e,o)&&y(t,o,e[o]);return t},v=(t,e)=>J(t,j(e));var T=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var V=(t,e,o,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of k(e))!g.call(t,n)&&n!==o&&d(t,n,{get:()=>e[n],enumerable:!(s=I(e,n))||s.enumerable});return t};var W=(t,e,o)=>(o=t!=null?S(A(t)):{},V(e||!t||!t.__esModule?d(o,"default",{value:t,enumerable:!0}):o,t));var h=(t,e,o)=>new Promise((s,n)=>{var u=c=>{try{i(o.next(c))}catch(_){n(_)}},p=c=>{try{i(o.throw(c))}catch(_){n(_)}},i=c=>c.done?s(c.value):Promise.resolve(c.value).then(u,p);i((o=o.apply(t,e)).next())});var x=T((R,b)=>{b.exports=Vue});var r=W(x());function l(t,e,...o){uni.__log__?uni.__log__(t,e,...o):console[t].apply(console,[...o,e])}var B=(t,e,o="onReceive")=>{if(!t){l("error","at utils/communicate/index.js:3","evalJs: The reference to the webview is not provided or is null.");return}if(typeof t.evalJs!="function"){l("error","at utils/communicate/index.js:8","evalJs: The evalJs method is not available on the provided reference.");return}try{let s=JSON.stringify(e),n=`window.${o}(${s})`;t.evalJs(n)}catch(s){l("error","at utils/communicate/index.js:18","evalJs: An error occurred while trying to stringify the parameter value or while invoking evalJs.",s)}},C=t=>t.detail.data[0],L={content:{"":{display:"flex",flex:1}}},N=(t,e)=>{let o=t.__vccOpts||t;for(let[s,n]of e)o[s]=n;return o},O={__name:"index",setup(t){let e=(0,r.ref)(null),o=uni.getSystemInfoSync(),s=n=>{switch(C(n).action){case"load-complete":{let p=uni.getSystemInfoSync();uni.getLocation({type:"gcj02",geocode:!1,isHighAccuracy:!1,success:i=>h(this,null,function*(){B(e.value,v(m({},i),{systemInfo:p}))}),fail:i=>{l("log","at pages/index/index.nvue:27",i)}})}}};return(n,u)=>((0,r.openBlock)(),(0,r.createElementBlock)("scroll-view",{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true",style:{flexDirection:"column"}},[(0,r.createElementVNode)("div",{class:"content"},[(0,r.createElementVNode)("u-web-view",{class:"webview","on:onPostMessage":s,style:(0,r.normalizeStyle)({height:`${(0,r.unref)(o).windowHeight}px`,width:`${(0,r.unref)(o).windowWidth}`}),ref_key:"webViewRef",ref:e,src:"http://192.168.88.35:8080/#/"},null,36)])]))}},a=N(O,[["styles",[L]]]);var f=plus.webview.currentWebview();if(f){let t=parseInt(f.id),e="pages/index/index",o={};try{o=JSON.parse(f.__query__)}catch(n){}a.mpType="page";let s=Vue.createPageApp(a,{$store:getApp({allowDefault:!0}).$store,__pageId:t,__pagePath:e,__pageQuery:o});s.provide("__globalStyles",Vue.useCssStyles([...__uniConfig.styles,...a.styles||[]])),s.mount("#root")}})();
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,11 @@
|
|||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __commonJS = (cb, mod) => function __require() {
|
||||||
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
||||||
|
};
|
||||||
|
var require_app_css = __commonJS({
|
||||||
|
"app.css.js"(exports) {
|
||||||
|
const _style_0 = {};
|
||||||
|
exports.styles = [_style_0];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
export default require_app_css();
|
@ -0,0 +1,5 @@
|
|||||||
|
Promise.resolve("./pages/index/index.js").then((res) => {
|
||||||
|
res.length;
|
||||||
|
});
|
||||||
|
Promise.resolve("./app.css.js").then(() => {
|
||||||
|
});
|
@ -0,0 +1,92 @@
|
|||||||
|
import { ref, openBlock, createElementBlock, createElementVNode, normalizeStyle, unref } from "vue";
|
||||||
|
function formatAppLog(type, filename, ...args) {
|
||||||
|
if (uni.__log__) {
|
||||||
|
uni.__log__(type, filename, ...args);
|
||||||
|
} else {
|
||||||
|
console[type].apply(console, [...args, filename]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const sendWebWiew = (refValue, paramValue, callName = "onReceive") => {
|
||||||
|
if (!refValue) {
|
||||||
|
formatAppLog("error", "at utils/communicate/index.js:3", "evalJs: The reference to the webview is not provided or is null.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (typeof refValue.evalJs !== "function") {
|
||||||
|
formatAppLog("error", "at utils/communicate/index.js:8", "evalJs: The evalJs method is not available on the provided reference.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
const jsonString = JSON.stringify(paramValue);
|
||||||
|
const jsCode = `window.${callName}(${jsonString})`;
|
||||||
|
refValue.evalJs(jsCode);
|
||||||
|
} catch (error) {
|
||||||
|
formatAppLog("error", "at utils/communicate/index.js:18", "evalJs: An error occurred while trying to stringify the parameter value or while invoking evalJs.", error);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const receiveWebView = (e) => {
|
||||||
|
return e.detail.data[0];
|
||||||
|
};
|
||||||
|
const _style_0 = { "content": { "": { "display": "flex", "flex": 1 } } };
|
||||||
|
const _export_sfc = (sfc, props) => {
|
||||||
|
const target = sfc.__vccOpts || sfc;
|
||||||
|
for (const [key, val] of props) {
|
||||||
|
target[key] = val;
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
const _sfc_main = {
|
||||||
|
__name: "index",
|
||||||
|
setup(__props) {
|
||||||
|
const webViewRef = ref(null);
|
||||||
|
const systemInfo = uni.getSystemInfoSync();
|
||||||
|
const webLoad = (e) => {
|
||||||
|
const m = receiveWebView(e);
|
||||||
|
switch (m.action) {
|
||||||
|
case "load-complete": {
|
||||||
|
const systemInfo2 = uni.getSystemInfoSync();
|
||||||
|
uni.getLocation({
|
||||||
|
type: "gcj02",
|
||||||
|
geocode: false,
|
||||||
|
isHighAccuracy: false,
|
||||||
|
success: async (res) => {
|
||||||
|
sendWebWiew(webViewRef.value, { ...res, systemInfo: systemInfo2 });
|
||||||
|
},
|
||||||
|
fail: (e2) => {
|
||||||
|
formatAppLog("log", "at pages/index/index.nvue:27", e2);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return (_ctx, _cache) => {
|
||||||
|
return openBlock(), createElementBlock("scroll-view", {
|
||||||
|
scrollY: true,
|
||||||
|
showScrollbar: true,
|
||||||
|
enableBackToTop: true,
|
||||||
|
bubble: "true",
|
||||||
|
style: { flexDirection: "column" }
|
||||||
|
}, [
|
||||||
|
createElementVNode("div", { class: "content" }, [
|
||||||
|
createElementVNode(
|
||||||
|
"u-web-view",
|
||||||
|
{
|
||||||
|
class: "webview",
|
||||||
|
"on:onPostMessage": webLoad,
|
||||||
|
style: normalizeStyle({ height: `${unref(systemInfo).windowHeight}px`, width: `${unref(systemInfo).windowWidth}` }),
|
||||||
|
ref_key: "webViewRef",
|
||||||
|
ref: webViewRef,
|
||||||
|
src: "http://192.168.88.35:8081/"
|
||||||
|
},
|
||||||
|
null,
|
||||||
|
36
|
||||||
|
/* STYLE, NEED_HYDRATION */
|
||||||
|
)
|
||||||
|
])
|
||||||
|
]);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["styles", [_style_0]], ["__file", "D:/WebstormProjects/oa-base/pages/index/index.nvue"]]);
|
||||||
|
export {
|
||||||
|
index as default
|
||||||
|
};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,23 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<title>View</title>
|
||||||
|
<link rel="stylesheet" href="app.css" />
|
||||||
|
<script>var __uniConfig = {"globalStyle":{},"darkmode":false}</script>
|
||||||
|
<script>
|
||||||
|
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
|
||||||
|
CSS.supports('top: constant(a)'))
|
||||||
|
document.write(
|
||||||
|
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
|
||||||
|
(coverSupport ? ', viewport-fit=cover' : '') + '" />')
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="app"></div>
|
||||||
|
<script src="uni-app-view.umd.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -0,0 +1,11 @@
|
|||||||
|
|
||||||
|
;(function(){
|
||||||
|
let u=void 0,isReady=false,onReadyCallbacks=[],isServiceReady=false,onServiceReadyCallbacks=[];
|
||||||
|
const __uniConfig = {"pages":[],"globalStyle":{"backgroundColor":"#F8F8F8","navigationBar":{"backgroundColor":"#F8F8F8","titleText":"uni-app","type":"default","titleColor":"#000000"},"isNVue":false},"nvue":{"compiler":"uni-app","styleCompiler":"uni-app","flex-direction":"column"},"renderer":"auto","appname":"oa-base","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":true},"compilerVersion":"4.08","entryPagePath":"pages/index/index","entryPageQuery":"","realEntryPagePath":"","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000},"locales":{},"darkmode":false,"themeConfig":{}};
|
||||||
|
const __uniRoutes = [{"path":"pages/index/index","meta":{"isQuit":true,"isEntry":true,"navigationBar":{"titleText":"uni-app","style":"custom","type":"default"},"isNVue":true}}].map(uniRoute=>(uniRoute.meta.route=uniRoute.path,__uniConfig.pages.push(uniRoute.path),uniRoute.path='/'+uniRoute.path,uniRoute));
|
||||||
|
__uniConfig.styles=[{}];//styles
|
||||||
|
__uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
|
||||||
|
__uniConfig.onServiceReady=function(callback){if(__uniConfig.serviceReady){callback()}else{onServiceReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"serviceReady",{get:function(){return isServiceReady},set:function(val){isServiceReady=val;if(!isServiceReady){return}const callbacks=onServiceReadyCallbacks.slice(0);onServiceReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
|
||||||
|
service.register("uni-app-config",{create(a,b,c){if(!__uniConfig.viewport){var d=b.weex.config.env.scale,e=b.weex.config.env.deviceWidth,f=Math.ceil(e/d);Object.assign(__uniConfig,{viewport:f,defaultFontSize:16})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:u,window:u,document:u,frames:u,self:u,location:u,navigator:u,localStorage:u,history:u,Caches:u,screen:u,alert:u,confirm:u,prompt:u,fetch:u,XMLHttpRequest:u,WebSocket:u,webkit:u,print:u}}}});
|
||||||
|
})();
|
||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
(function(){})();
|
@ -0,0 +1,86 @@
|
|||||||
|
if (typeof Promise !== "undefined" && !Promise.prototype.finally) {
|
||||||
|
Promise.prototype.finally = function(callback) {
|
||||||
|
const promise = this.constructor;
|
||||||
|
return this.then(
|
||||||
|
(value) => promise.resolve(callback()).then(() => value),
|
||||||
|
(reason) => promise.resolve(callback()).then(() => {
|
||||||
|
throw reason;
|
||||||
|
})
|
||||||
|
);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
;
|
||||||
|
if (typeof uni !== "undefined" && uni && uni.requireGlobal) {
|
||||||
|
const global = uni.requireGlobal();
|
||||||
|
ArrayBuffer = global.ArrayBuffer;
|
||||||
|
Int8Array = global.Int8Array;
|
||||||
|
Uint8Array = global.Uint8Array;
|
||||||
|
Uint8ClampedArray = global.Uint8ClampedArray;
|
||||||
|
Int16Array = global.Int16Array;
|
||||||
|
Uint16Array = global.Uint16Array;
|
||||||
|
Int32Array = global.Int32Array;
|
||||||
|
Uint32Array = global.Uint32Array;
|
||||||
|
Float32Array = global.Float32Array;
|
||||||
|
Float64Array = global.Float64Array;
|
||||||
|
BigInt64Array = global.BigInt64Array;
|
||||||
|
BigUint64Array = global.BigUint64Array;
|
||||||
|
}
|
||||||
|
;
|
||||||
|
if (uni.restoreGlobal) {
|
||||||
|
uni.restoreGlobal(Vue, weex, plus, setTimeout, clearTimeout, setInterval, clearInterval);
|
||||||
|
}
|
||||||
|
(function(vue) {
|
||||||
|
"use strict";
|
||||||
|
function formatAppLog(type, filename, ...args) {
|
||||||
|
if (uni.__log__) {
|
||||||
|
uni.__log__(type, filename, ...args);
|
||||||
|
} else {
|
||||||
|
console[type].apply(console, [...args, filename]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const _export_sfc = (sfc, props) => {
|
||||||
|
const target = sfc.__vccOpts || sfc;
|
||||||
|
for (const [key, val] of props) {
|
||||||
|
target[key] = val;
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
const _sfc_main = {
|
||||||
|
onLaunch: function() {
|
||||||
|
const permissionListener = uni.createRequestPermissionListener();
|
||||||
|
permissionListener.onRequest((e) => {
|
||||||
|
});
|
||||||
|
permissionListener.onConfirm((e) => {
|
||||||
|
uni.showToast({
|
||||||
|
icon: "none",
|
||||||
|
title: "已开启通知",
|
||||||
|
duration: 5e3
|
||||||
|
});
|
||||||
|
});
|
||||||
|
permissionListener.onComplete((e) => {
|
||||||
|
});
|
||||||
|
formatAppLog("log", "at App.vue:17", "App Launch");
|
||||||
|
},
|
||||||
|
onShow: function() {
|
||||||
|
formatAppLog("log", "at App.vue:20", "App Show");
|
||||||
|
},
|
||||||
|
onHide: function() {
|
||||||
|
formatAppLog("log", "at App.vue:23", "App Hide");
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const App = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:/WebstormProjects/oa-base/App.vue"]]);
|
||||||
|
function createApp() {
|
||||||
|
const app = vue.createVueApp(App);
|
||||||
|
return {
|
||||||
|
app
|
||||||
|
};
|
||||||
|
}
|
||||||
|
const { app: __app__, Vuex: __Vuex__, Pinia: __Pinia__ } = createApp();
|
||||||
|
uni.Vuex = __Vuex__;
|
||||||
|
uni.Pinia = __Pinia__;
|
||||||
|
__app__.provide("__globalStyles", __uniConfig.styles);
|
||||||
|
__app__._component.mpType = "app";
|
||||||
|
__app__._component.render = () => {
|
||||||
|
};
|
||||||
|
__app__.mount("#app");
|
||||||
|
})(Vue);
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,103 @@
|
|||||||
|
{
|
||||||
|
"@platforms": [
|
||||||
|
"android",
|
||||||
|
"iPhone",
|
||||||
|
"iPad"
|
||||||
|
],
|
||||||
|
"id": "__UNI__4796942",
|
||||||
|
"name": "oa-base",
|
||||||
|
"version": {
|
||||||
|
"name": "1.0.0",
|
||||||
|
"code": "100"
|
||||||
|
},
|
||||||
|
"description": "",
|
||||||
|
"developer": {
|
||||||
|
"name": "",
|
||||||
|
"email": "",
|
||||||
|
"url": ""
|
||||||
|
},
|
||||||
|
"permissions": {
|
||||||
|
"UniNView": {
|
||||||
|
"description": "UniNView原生渲染"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"plus": {
|
||||||
|
"useragent": {
|
||||||
|
"value": "uni-app",
|
||||||
|
"concatenate": true
|
||||||
|
},
|
||||||
|
"splashscreen": {
|
||||||
|
"target": "id:1",
|
||||||
|
"autoclose": true,
|
||||||
|
"waiting": true,
|
||||||
|
"delay": 0
|
||||||
|
},
|
||||||
|
"popGesture": "close",
|
||||||
|
"launchwebview": {
|
||||||
|
"render": "always",
|
||||||
|
"id": "1",
|
||||||
|
"kernel": "WKWebview",
|
||||||
|
"uniNView": {
|
||||||
|
"path": "pages/index/index.js"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"usingComponents": true,
|
||||||
|
"nvueStyleCompiler": "uni-app",
|
||||||
|
"compilerVersion": 3,
|
||||||
|
"distribute": {
|
||||||
|
"google": {
|
||||||
|
"permissions": [
|
||||||
|
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
|
||||||
|
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
|
||||||
|
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"apple": {
|
||||||
|
"dSYMs": false
|
||||||
|
},
|
||||||
|
"plugins": {
|
||||||
|
"ad": {},
|
||||||
|
"audio": {
|
||||||
|
"mp3": {
|
||||||
|
"description": "Android平台录音支持MP3格式文件"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"statusbar": {
|
||||||
|
"immersed": "supportedDevice",
|
||||||
|
"style": "dark",
|
||||||
|
"background": "#F8F8F8"
|
||||||
|
},
|
||||||
|
"uniStatistics": {
|
||||||
|
"enable": false
|
||||||
|
},
|
||||||
|
"allowsInlineMediaPlayback": true,
|
||||||
|
"uni-app": {
|
||||||
|
"control": "uni-v3",
|
||||||
|
"vueVersion": "3",
|
||||||
|
"compilerVersion": "4.08",
|
||||||
|
"nvueCompiler": "uni-app",
|
||||||
|
"renderer": "auto",
|
||||||
|
"nvue": {
|
||||||
|
"flex-direction": "column"
|
||||||
|
},
|
||||||
|
"nvueLaunchMode": "normal",
|
||||||
|
"webView": {
|
||||||
|
"minUserAgentVersion": "49.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,209 @@
|
|||||||
|
"use weex:vue";
|
||||||
|
|
||||||
|
if (typeof Promise !== 'undefined' && !Promise.prototype.finally) {
|
||||||
|
Promise.prototype.finally = function(callback) {
|
||||||
|
const promise = this.constructor
|
||||||
|
return this.then(
|
||||||
|
value => promise.resolve(callback()).then(() => value),
|
||||||
|
reason => promise.resolve(callback()).then(() => {
|
||||||
|
throw reason
|
||||||
|
})
|
||||||
|
)
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
|
const global = uni.requireGlobal()
|
||||||
|
ArrayBuffer = global.ArrayBuffer
|
||||||
|
Int8Array = global.Int8Array
|
||||||
|
Uint8Array = global.Uint8Array
|
||||||
|
Uint8ClampedArray = global.Uint8ClampedArray
|
||||||
|
Int16Array = global.Int16Array
|
||||||
|
Uint16Array = global.Uint16Array
|
||||||
|
Int32Array = global.Int32Array
|
||||||
|
Uint32Array = global.Uint32Array
|
||||||
|
Float32Array = global.Float32Array
|
||||||
|
Float64Array = global.Float64Array
|
||||||
|
BigInt64Array = global.BigInt64Array
|
||||||
|
BigUint64Array = global.BigUint64Array
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
(() => {
|
||||||
|
var __create = Object.create;
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __defProps = Object.defineProperties;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
||||||
|
var __getProtoOf = Object.getPrototypeOf;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
||||||
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
||||||
|
var __spreadValues = (a, b) => {
|
||||||
|
for (var prop in b || (b = {}))
|
||||||
|
if (__hasOwnProp.call(b, prop))
|
||||||
|
__defNormalProp(a, prop, b[prop]);
|
||||||
|
if (__getOwnPropSymbols)
|
||||||
|
for (var prop of __getOwnPropSymbols(b)) {
|
||||||
|
if (__propIsEnum.call(b, prop))
|
||||||
|
__defNormalProp(a, prop, b[prop]);
|
||||||
|
}
|
||||||
|
return a;
|
||||||
|
};
|
||||||
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
||||||
|
var __commonJS = (cb, mod) => function __require() {
|
||||||
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
||||||
|
};
|
||||||
|
var __copyProps = (to, from, except, desc) => {
|
||||||
|
if (from && typeof from === "object" || typeof from === "function") {
|
||||||
|
for (let key of __getOwnPropNames(from))
|
||||||
|
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||||
|
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return to;
|
||||||
|
};
|
||||||
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
||||||
|
// If the importer is in node compatibility mode or this is not an ESM
|
||||||
|
// file that has been converted to a CommonJS file using a Babel-
|
||||||
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
||||||
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
||||||
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
||||||
|
mod
|
||||||
|
));
|
||||||
|
var __async = (__this, __arguments, generator) => {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
var fulfilled = (value) => {
|
||||||
|
try {
|
||||||
|
step(generator.next(value));
|
||||||
|
} catch (e) {
|
||||||
|
reject(e);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var rejected = (value) => {
|
||||||
|
try {
|
||||||
|
step(generator.throw(value));
|
||||||
|
} catch (e) {
|
||||||
|
reject(e);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
||||||
|
step((generator = generator.apply(__this, __arguments)).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
// vue-ns:vue
|
||||||
|
var require_vue = __commonJS({
|
||||||
|
"vue-ns:vue"(exports, module) {
|
||||||
|
module.exports = Vue;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// D:/WebstormProjects/oa-base/unpackage/dist/dev/.nvue/pages/index/index.js
|
||||||
|
var import_vue = __toESM(require_vue());
|
||||||
|
function formatAppLog(type, filename, ...args) {
|
||||||
|
if (uni.__log__) {
|
||||||
|
uni.__log__(type, filename, ...args);
|
||||||
|
} else {
|
||||||
|
console[type].apply(console, [...args, filename]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var sendWebWiew = (refValue, paramValue, callName = "onReceive") => {
|
||||||
|
if (!refValue) {
|
||||||
|
formatAppLog("error", "at utils/communicate/index.js:3", "evalJs: The reference to the webview is not provided or is null.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (typeof refValue.evalJs !== "function") {
|
||||||
|
formatAppLog("error", "at utils/communicate/index.js:8", "evalJs: The evalJs method is not available on the provided reference.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
const jsonString = JSON.stringify(paramValue);
|
||||||
|
const jsCode = `window.${callName}(${jsonString})`;
|
||||||
|
refValue.evalJs(jsCode);
|
||||||
|
} catch (error) {
|
||||||
|
formatAppLog("error", "at utils/communicate/index.js:18", "evalJs: An error occurred while trying to stringify the parameter value or while invoking evalJs.", error);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var receiveWebView = (e) => {
|
||||||
|
return e.detail.data[0];
|
||||||
|
};
|
||||||
|
var _style_0 = { "content": { "": { "display": "flex", "flex": 1 } } };
|
||||||
|
var _export_sfc = (sfc, props) => {
|
||||||
|
const target = sfc.__vccOpts || sfc;
|
||||||
|
for (const [key, val] of props) {
|
||||||
|
target[key] = val;
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
var _sfc_main = {
|
||||||
|
__name: "index",
|
||||||
|
setup(__props) {
|
||||||
|
const webViewRef = (0, import_vue.ref)(null);
|
||||||
|
const systemInfo = uni.getSystemInfoSync();
|
||||||
|
const webLoad = (e) => {
|
||||||
|
const m = receiveWebView(e);
|
||||||
|
switch (m.action) {
|
||||||
|
case "load-complete": {
|
||||||
|
const systemInfo2 = uni.getSystemInfoSync();
|
||||||
|
uni.getLocation({
|
||||||
|
type: "gcj02",
|
||||||
|
geocode: false,
|
||||||
|
isHighAccuracy: false,
|
||||||
|
success: (res) => __async(this, null, function* () {
|
||||||
|
sendWebWiew(webViewRef.value, __spreadProps(__spreadValues({}, res), { systemInfo: systemInfo2 }));
|
||||||
|
}),
|
||||||
|
fail: (e2) => {
|
||||||
|
formatAppLog("log", "at pages/index/index.nvue:27", e2);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return (_ctx, _cache) => {
|
||||||
|
return (0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("scroll-view", {
|
||||||
|
scrollY: true,
|
||||||
|
showScrollbar: true,
|
||||||
|
enableBackToTop: true,
|
||||||
|
bubble: "true",
|
||||||
|
style: { flexDirection: "column" }
|
||||||
|
}, [
|
||||||
|
(0, import_vue.createElementVNode)("div", { class: "content" }, [
|
||||||
|
(0, import_vue.createElementVNode)(
|
||||||
|
"u-web-view",
|
||||||
|
{
|
||||||
|
class: "webview",
|
||||||
|
"on:onPostMessage": webLoad,
|
||||||
|
style: (0, import_vue.normalizeStyle)({ height: `${(0, import_vue.unref)(systemInfo).windowHeight}px`, width: `${(0, import_vue.unref)(systemInfo).windowWidth}` }),
|
||||||
|
ref_key: "webViewRef",
|
||||||
|
ref: webViewRef,
|
||||||
|
src: "http://192.168.88.35:8081/"
|
||||||
|
},
|
||||||
|
null,
|
||||||
|
36
|
||||||
|
/* STYLE, NEED_HYDRATION */
|
||||||
|
)
|
||||||
|
])
|
||||||
|
]);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["styles", [_style_0]], ["__file", "D:/WebstormProjects/oa-base/pages/index/index.nvue"]]);
|
||||||
|
|
||||||
|
// <stdin>
|
||||||
|
var webview = plus.webview.currentWebview();
|
||||||
|
if (webview) {
|
||||||
|
const __pageId = parseInt(webview.id);
|
||||||
|
const __pagePath = "pages/index/index";
|
||||||
|
let __pageQuery = {};
|
||||||
|
try {
|
||||||
|
__pageQuery = JSON.parse(webview.__query__);
|
||||||
|
} catch (e) {
|
||||||
|
}
|
||||||
|
index.mpType = "page";
|
||||||
|
const app = Vue.createPageApp(index, { $store: getApp({ allowDefault: true }).$store, __pageId, __pagePath, __pageQuery });
|
||||||
|
app.provide("__globalStyles", Vue.useCssStyles([...__uniConfig.styles, ...index.styles || []]));
|
||||||
|
app.mount("#root");
|
||||||
|
}
|
||||||
|
})();
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,27 @@
|
|||||||
|
const sendWebWiew = (refValue, paramValue, callName = 'onReceive') => {
|
||||||
|
if (!refValue) {
|
||||||
|
console.error('evalJs: The reference to the webview is not provided or is null.');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (typeof refValue.evalJs !== 'function') {
|
||||||
|
console.error('evalJs: The evalJs method is not available on the provided reference.');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
const jsonString = JSON.stringify(paramValue);
|
||||||
|
const jsCode = `window.${callName}(${jsonString})`;
|
||||||
|
|
||||||
|
refValue.evalJs(jsCode);
|
||||||
|
} catch (error) {
|
||||||
|
console.error('evalJs: An error occurred while trying to stringify the parameter value or while invoking evalJs.', error);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const receiveWebView=(e)=>{
|
||||||
|
return e.detail.data[0]
|
||||||
|
}
|
||||||
|
export{
|
||||||
|
sendWebWiew,
|
||||||
|
receiveWebView
|
||||||
|
}
|
@ -0,0 +1,175 @@
|
|||||||
|
! function (e, n) {
|
||||||
|
"object" == typeof exports && "undefined" != typeof module ? module.exports = n() : "function" == typeof define && define.amd ? define(n) : (e = e || self).webUni = n()
|
||||||
|
}(this, (function () {
|
||||||
|
"use strict";
|
||||||
|
try {
|
||||||
|
var e = {};
|
||||||
|
Object.defineProperty(e, "passive", {
|
||||||
|
get: function () {
|
||||||
|
!0
|
||||||
|
}
|
||||||
|
}), window.addEventListener("test-passive", null, e)
|
||||||
|
} catch (e) { }
|
||||||
|
var n = Object.prototype.hasOwnProperty;
|
||||||
|
|
||||||
|
function t (e, t) {
|
||||||
|
return n.call(e, t)
|
||||||
|
}
|
||||||
|
var i = [],
|
||||||
|
a = function (e, n) {
|
||||||
|
var t = {
|
||||||
|
options: {
|
||||||
|
timestamp: +new Date
|
||||||
|
},
|
||||||
|
name: e,
|
||||||
|
arg: n
|
||||||
|
};
|
||||||
|
if (window.__dcloud_weex_postMessage || window.__dcloud_weex_) {
|
||||||
|
if ("postMessage" === e) {
|
||||||
|
var a = {
|
||||||
|
data: [n]
|
||||||
|
};
|
||||||
|
return window.__dcloud_weex_postMessage ? window.__dcloud_weex_postMessage(a) : window.__dcloud_weex_.postMessage(JSON.stringify(a))
|
||||||
|
}
|
||||||
|
var o = {
|
||||||
|
type: "WEB_INVOKE_APPSERVICE",
|
||||||
|
args: {
|
||||||
|
data: t,
|
||||||
|
webviewIds: i
|
||||||
|
}
|
||||||
|
};
|
||||||
|
window.__dcloud_weex_postMessage ? window.__dcloud_weex_postMessageToService(o) : window.__dcloud_weex_.postMessageToService(JSON.stringify(o))
|
||||||
|
}
|
||||||
|
if (!window.plus) return window.parent.postMessage({
|
||||||
|
type: "WEB_INVOKE_APPSERVICE",
|
||||||
|
data: t,
|
||||||
|
pageId: ""
|
||||||
|
}, "*");
|
||||||
|
if (0 === i.length) {
|
||||||
|
var r = plus.webview.currentWebview();
|
||||||
|
if (!r) throw new Error("plus.webview.currentWebview() is undefined");
|
||||||
|
var d = r.parent(),
|
||||||
|
s = "";
|
||||||
|
s = d ? d.id : r.id, i.push(s)
|
||||||
|
}
|
||||||
|
if (plus.webview.getWebviewById("__uniapp__service")) plus.webview.postMessageToUniNView({
|
||||||
|
type: "WEB_INVOKE_APPSERVICE",
|
||||||
|
args: {
|
||||||
|
data: t,
|
||||||
|
webviewIds: i
|
||||||
|
}
|
||||||
|
}, "__uniapp__service");
|
||||||
|
else {
|
||||||
|
var w = JSON.stringify(t);
|
||||||
|
plus.webview.getLaunchWebview().evalJS('UniPlusBridge.subscribeHandler("'.concat("WEB_INVOKE_APPSERVICE", '",').concat(w, ",").concat(JSON.stringify(i), ");"))
|
||||||
|
}
|
||||||
|
},
|
||||||
|
o = {
|
||||||
|
navigateTo: function () {
|
||||||
|
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
|
||||||
|
n = e.url;
|
||||||
|
a("navigateTo", {
|
||||||
|
url: encodeURI(n)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
navigateBack: function () {
|
||||||
|
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
|
||||||
|
n = e.delta;
|
||||||
|
a("navigateBack", {
|
||||||
|
delta: parseInt(n) || 1
|
||||||
|
})
|
||||||
|
},
|
||||||
|
switchTab: function () {
|
||||||
|
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
|
||||||
|
n = e.url;
|
||||||
|
a("switchTab", {
|
||||||
|
url: encodeURI(n)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
reLaunch: function () {
|
||||||
|
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
|
||||||
|
n = e.url;
|
||||||
|
a("reLaunch", {
|
||||||
|
url: encodeURI(n)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
redirectTo: function () {
|
||||||
|
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
|
||||||
|
n = e.url;
|
||||||
|
a("redirectTo", {
|
||||||
|
url: encodeURI(n)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getEnv: function (e) {
|
||||||
|
window.plus ? e({
|
||||||
|
plus: !0
|
||||||
|
}) : e({
|
||||||
|
h5: !0
|
||||||
|
})
|
||||||
|
},
|
||||||
|
postMessage: function () {
|
||||||
|
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
|
||||||
|
a("postMessage", e.data || {})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
r = /uni-app/i.test(navigator.userAgent),
|
||||||
|
d = /Html5Plus/i.test(navigator.userAgent),
|
||||||
|
s = /complete|loaded|interactive/;
|
||||||
|
var w = window.my && navigator.userAgent.indexOf("AlipayClient") > -1;
|
||||||
|
var u = window.swan && window.swan.webView && /swan/i.test(navigator.userAgent);
|
||||||
|
var c = window.qq && window.qq.miniProgram && /QQ/i.test(navigator.userAgent) && /miniProgram/i.test(navigator.userAgent);
|
||||||
|
var g = window.tt && window.tt.miniProgram && /toutiaomicroapp/i.test(navigator.userAgent);
|
||||||
|
var v = window.wx && window.wx.miniProgram && /micromessenger/i.test(navigator.userAgent) && /miniProgram/i.test(navigator.userAgent);
|
||||||
|
var p = window.qa && /quickapp/i.test(navigator.userAgent);
|
||||||
|
for (var l, _ = function () {
|
||||||
|
window.UniAppJSBridge = !0, document.dispatchEvent(new CustomEvent("UniAppJSBridgeReady", {
|
||||||
|
bubbles: !0,
|
||||||
|
cancelable: !0
|
||||||
|
}))
|
||||||
|
}, f = [function (e) {
|
||||||
|
if (r || d) return window.__dcloud_weex_postMessage || window.__dcloud_weex_ ? document.addEventListener("DOMContentLoaded", e) : window.plus && s.test(document.readyState) ? setTimeout(e, 0) : document.addEventListener("plusready", e), o
|
||||||
|
}, function (e) {
|
||||||
|
if (v) return window.WeixinJSBridge && window.WeixinJSBridge.invoke ? setTimeout(e, 0) : document.addEventListener("WeixinJSBridgeReady", e), window.wx.miniProgram
|
||||||
|
}, function (e) {
|
||||||
|
if (c) return window.QQJSBridge && window.QQJSBridge.invoke ? setTimeout(e, 0) : document.addEventListener("QQJSBridgeReady", e), window.qq.miniProgram
|
||||||
|
}, function (e) {
|
||||||
|
if (w) {
|
||||||
|
document.addEventListener("DOMContentLoaded", e);
|
||||||
|
var n = window.my;
|
||||||
|
return {
|
||||||
|
navigateTo: n.navigateTo,
|
||||||
|
navigateBack: n.navigateBack,
|
||||||
|
switchTab: n.switchTab,
|
||||||
|
reLaunch: n.reLaunch,
|
||||||
|
redirectTo: n.redirectTo,
|
||||||
|
postMessage: n.postMessage,
|
||||||
|
getEnv: n.getEnv
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}, function (e) {
|
||||||
|
if (u) return document.addEventListener("DOMContentLoaded", e), window.swan.webView
|
||||||
|
}, function (e) {
|
||||||
|
if (g) return document.addEventListener("DOMContentLoaded", e), window.tt.miniProgram
|
||||||
|
}, function (e) {
|
||||||
|
if (p) {
|
||||||
|
window.QaJSBridge && window.QaJSBridge.invoke ? setTimeout(e, 0) : document.addEventListener("QaJSBridgeReady", e);
|
||||||
|
var n = window.qa;
|
||||||
|
return {
|
||||||
|
navigateTo: n.navigateTo,
|
||||||
|
navigateBack: n.navigateBack,
|
||||||
|
switchTab: n.switchTab,
|
||||||
|
reLaunch: n.reLaunch,
|
||||||
|
redirectTo: n.redirectTo,
|
||||||
|
postMessage: n.postMessage,
|
||||||
|
getEnv: n.getEnv
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}, function (e) {
|
||||||
|
return document.addEventListener("DOMContentLoaded", e), o
|
||||||
|
}], m = 0; m < f.length && !(l = f[m](_)); m++);
|
||||||
|
l || (l = {});
|
||||||
|
var E = "undefined" != typeof webUni ? webUni : {};
|
||||||
|
if (!E.navigateTo)
|
||||||
|
for (var b in l) t(l, b) && (E[b] = l[b]);
|
||||||
|
return E.webView = l, E
|
||||||
|
}));
|
Loading…
Reference in New Issue