|
|
|
@ -49,15 +49,15 @@ if (uni.restoreGlobal) {
|
|
|
|
|
const onHide = /* @__PURE__ */ createHook(ON_HIDE);
|
|
|
|
|
const onLaunch = /* @__PURE__ */ createHook(ON_LAUNCH);
|
|
|
|
|
const onLoad = /* @__PURE__ */ createHook(ON_LOAD);
|
|
|
|
|
const env = "prod";
|
|
|
|
|
const env = "test";
|
|
|
|
|
const configs = {
|
|
|
|
|
dev: {
|
|
|
|
|
apiBaseUrl: "https://warehouse.szjixun.cn/oa_backend",
|
|
|
|
|
h5Url: "http://192.168.0.191:8080/#/"
|
|
|
|
|
h5Url: "http://192.168.88.49:8080/#/"
|
|
|
|
|
},
|
|
|
|
|
test: {
|
|
|
|
|
apiBaseUrl: "https://warehouse.szjixun.cn/oa_backend",
|
|
|
|
|
h5Url: "http://114.218.158.24:9051/#/"
|
|
|
|
|
h5Url: "http://114.218.158.24:8042/#/"
|
|
|
|
|
},
|
|
|
|
|
prod: {
|
|
|
|
|
apiBaseUrl: "https://oa-a.szjixun.cn/#/",
|
|
|
|
@ -106,7 +106,7 @@ if (uni.restoreGlobal) {
|
|
|
|
|
const m2 = receiveWebView(e2);
|
|
|
|
|
switch (m2.action) {
|
|
|
|
|
case "load-complete": {
|
|
|
|
|
const currentWebview = getCurrentPages().at(-1).$getAppWebview();
|
|
|
|
|
const currentWebview = getCurrentPages().pop().$getAppWebview();
|
|
|
|
|
webViewObj.value = currentWebview.children()[0];
|
|
|
|
|
let statusBarHeight = uni.getSystemInfoSync().statusBarHeight;
|
|
|
|
|
webViewObj.value.setStyle({
|
|
|
|
@ -122,16 +122,11 @@ if (uni.restoreGlobal) {
|
|
|
|
|
geocode: false,
|
|
|
|
|
isHighAccuracy: false,
|
|
|
|
|
success: async (res) => {
|
|
|
|
|
const jsonString = JSON.stringify({
|
|
|
|
|
...res,
|
|
|
|
|
systemInfo,
|
|
|
|
|
"latitude": 31.386561,
|
|
|
|
|
"longitude": 120.660274
|
|
|
|
|
});
|
|
|
|
|
const jsonString = JSON.stringify({ ...res, systemInfo });
|
|
|
|
|
webViewObj.value.evalJS(`window.onReceive(${jsonString})`);
|
|
|
|
|
},
|
|
|
|
|
fail: (e3) => {
|
|
|
|
|
formatAppLog("log", "at pages/index/index.vue:112", e3);
|
|
|
|
|
formatAppLog("log", "at pages/index/index.vue:111", e3);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
@ -151,43 +146,6 @@ if (uni.restoreGlobal) {
|
|
|
|
|
};
|
|
|
|
|
const PagesIndexIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "D:/WebstormProjects/oa-base/pages/index/index.vue"]]);
|
|
|
|
|
__definePage("pages/index/index", PagesIndexIndex);
|
|
|
|
|
function initPushNotification() {
|
|
|
|
|
if (typeof plus !== "undefined" && plus.push) {
|
|
|
|
|
plus.globalEvent.addEventListener("newPath", ({ path }) => {
|
|
|
|
|
if (!path) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
const pages2 = getCurrentPages();
|
|
|
|
|
const currentPage = pages2[pages2.length - 1];
|
|
|
|
|
if (currentPage && currentPage.$page && currentPage.$page.fullPath === path) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: path,
|
|
|
|
|
fail(res) {
|
|
|
|
|
if (res.errMsg.indexOf("tabbar") > -1) {
|
|
|
|
|
uni.switchTab({
|
|
|
|
|
url: path,
|
|
|
|
|
fail(res2) {
|
|
|
|
|
console.error(res2.errMsg);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
console.error(res.errMsg);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
uni.invokePushCallback({
|
|
|
|
|
type: "enabled",
|
|
|
|
|
offline: true
|
|
|
|
|
});
|
|
|
|
|
Promise.resolve().then(() => {
|
|
|
|
|
initPushNotification();
|
|
|
|
|
plus.push.setAutoNotification && plus.push.setAutoNotification(false);
|
|
|
|
|
});
|
|
|
|
|
const _sfc_main = {
|
|
|
|
|
__name: "App",
|
|
|
|
|
setup(__props) {
|
|
|
|
@ -521,7 +479,7 @@ if (uni.restoreGlobal) {
|
|
|
|
|
function I(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), P = b, T = I('{\n "address": [\n "127.0.0.1",\n "192.168.56.1",\n "172.20.10.6"\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'), C = I('[{"provider":"aliyun","spaceName":"oabase","spaceId":"mp-edf38b0d-bc9a-4e81-9a15-f55995ccca70","clientSecret":"ty1X79FB2pMuAQUzaQBKXA==","endpoint":"https://api.next.bspapp.com"}]') || [];
|
|
|
|
|
const S = true, b = "app", A = I(define_process_env_UNI_SECURE_NETWORK_CONFIG_default), P = b, T = I('{\n "address": [\n "127.0.0.1",\n "192.168.56.1",\n "192.168.88.23"\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'), C = I('[{"provider":"aliyun","spaceName":"oabase","spaceId":"mp-edf38b0d-bc9a-4e81-9a15-f55995ccca70","clientSecret":"ty1X79FB2pMuAQUzaQBKXA==","endpoint":"https://api.next.bspapp.com"}]') || [];
|
|
|
|
|
let O = "";
|
|
|
|
|
try {
|
|
|
|
|
O = "__UNI__4796942";
|
|
|
|
|