|
|
@ -32,22 +32,7 @@ if (uni.restoreGlobal) {
|
|
|
|
(function(vue) {
|
|
|
|
(function(vue) {
|
|
|
|
"use strict";
|
|
|
|
"use strict";
|
|
|
|
var _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
|
|
var _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
|
|
const ON_EXIT = "onExit";
|
|
|
|
const env = "test";
|
|
|
|
function formatAppLog(type, filename, ...args) {
|
|
|
|
|
|
|
|
if (uni.__log__) {
|
|
|
|
|
|
|
|
uni.__log__(type, filename, ...args);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
console[type].apply(console, [...args, filename]);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function resolveEasycom(component, easycom) {
|
|
|
|
|
|
|
|
return typeof component === "string" ? easycom : component;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
const createHook = (lifecycle) => (hook, target = vue.getCurrentInstance()) => {
|
|
|
|
|
|
|
|
!vue.isInSSRComponentSetup && vue.injectHook(lifecycle, hook, target);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
const onExit = /* @__PURE__ */ createHook(ON_EXIT);
|
|
|
|
|
|
|
|
const env = "dev";
|
|
|
|
|
|
|
|
const configs = {
|
|
|
|
const configs = {
|
|
|
|
LocalTest: {
|
|
|
|
LocalTest: {
|
|
|
|
apiBaseUrl: "https://warehouse.szjixun.cn/oa_backend",
|
|
|
|
apiBaseUrl: "https://warehouse.szjixun.cn/oa_backend",
|
|
|
@ -67,6 +52,16 @@ if (uni.restoreGlobal) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
const config = configs[env];
|
|
|
|
const config = configs[env];
|
|
|
|
|
|
|
|
function formatAppLog(type, filename, ...args) {
|
|
|
|
|
|
|
|
if (uni.__log__) {
|
|
|
|
|
|
|
|
uni.__log__(type, filename, ...args);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
console[type].apply(console, [...args, filename]);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function resolveEasycom(component, easycom) {
|
|
|
|
|
|
|
|
return typeof component === "string" ? easycom : component;
|
|
|
|
|
|
|
|
}
|
|
|
|
class Communication {
|
|
|
|
class Communication {
|
|
|
|
constructor() {
|
|
|
|
constructor() {
|
|
|
|
this.webViewObj = null;
|
|
|
|
this.webViewObj = null;
|
|
|
@ -106,10 +101,6 @@ if (uni.restoreGlobal) {
|
|
|
|
__name: "index",
|
|
|
|
__name: "index",
|
|
|
|
setup(__props) {
|
|
|
|
setup(__props) {
|
|
|
|
const commun = new Communication();
|
|
|
|
const commun = new Communication();
|
|
|
|
const permissionListener = uni.createRequestPermissionListener();
|
|
|
|
|
|
|
|
onExit(() => {
|
|
|
|
|
|
|
|
permissionListener.stop();
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
function initializeWebView() {
|
|
|
|
function initializeWebView() {
|
|
|
|
const currentWebview = getCurrentPages().pop().$getAppWebview();
|
|
|
|
const currentWebview = getCurrentPages().pop().$getAppWebview();
|
|
|
|
commun.setWebView(currentWebview.children()[0]);
|
|
|
|
commun.setWebView(currentWebview.children()[0]);
|
|
|
@ -121,15 +112,6 @@ if (uni.restoreGlobal) {
|
|
|
|
top: statusBarHeight,
|
|
|
|
top: statusBarHeight,
|
|
|
|
bottom: 0
|
|
|
|
bottom: 0
|
|
|
|
});
|
|
|
|
});
|
|
|
|
permissionListener.onRequest((e2) => {
|
|
|
|
|
|
|
|
commun.sendToH5("permission-application", e2);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
permissionListener.onConfirm((e2) => {
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
permissionListener.onComplete((e2) => {
|
|
|
|
|
|
|
|
formatAppLog("log", "at pages/index/index.vue:31", "APP执行onComplete", e2);
|
|
|
|
|
|
|
|
commun.sendToH5("permission-complete", e2);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
const webLoad = (e2) => {
|
|
|
|
const webLoad = (e2) => {
|
|
|
|
var _a;
|
|
|
|
var _a;
|
|
|
@ -3194,7 +3176,7 @@ if (uni.restoreGlobal) {
|
|
|
|
function I(e2) {
|
|
|
|
function I(e2) {
|
|
|
|
return e2 && "string" == typeof e2 ? JSON.parse(e2) : e2;
|
|
|
|
return e2 && "string" == typeof e2 ? JSON.parse(e2) : e2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const S = true, b = "app", A = I(define_process_env_UNI_SECURE_NETWORK_CONFIG_default), C = b, P = I('{\n "address": [\n "127.0.0.1",\n "192.168.56.1",\n "192.168.88.56"\n ],\n "debugPort": 9000,\n "initialLaunchType": "local",\n "servePort": 7000,\n "skipFiles": [\n "<node_internals>/**",\n "C:/Users/37363/Downloads/HBuilderX.4.08.2024040127/HBuilderX/plugins/unicloud/**/*.js"\n ]\n}\n'), T = I('[{"provider":"alipay","spaceName":"oaapp","spaceId":"env-00jxgxphla18","spaceAppId":"2021004145628977","accessKey":"ZALus7EgJXdovISb","secretKey":"7qzvVrPN0mAxfcLr"}]') || [];
|
|
|
|
const S = true, b = "app", A = I(define_process_env_UNI_SECURE_NETWORK_CONFIG_default), C = b, P = I('{\n "address": [\n "127.0.0.1",\n "192.168.56.1",\n "192.168.88.53"\n ],\n "debugPort": 9000,\n "initialLaunchType": "local",\n "servePort": 7000,\n "skipFiles": [\n "<node_internals>/**",\n "C:/Users/37363/Downloads/HBuilderX.4.08.2024040127/HBuilderX/plugins/unicloud/**/*.js"\n ]\n}\n'), T = I('[{"provider":"alipay","spaceName":"oaapp","spaceId":"env-00jxgxphla18","spaceAppId":"2021004145628977","accessKey":"ZALus7EgJXdovISb","secretKey":"7qzvVrPN0mAxfcLr"}]') || [];
|
|
|
|
let O = "";
|
|
|
|
let O = "";
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
O = "__UNI__4796942";
|
|
|
|
O = "__UNI__4796942";
|
|
|
|