|
|
|
@ -2698,16 +2698,7 @@ if (uni.restoreGlobal) {
|
|
|
|
|
}, 8, ["show", "zIndex", "onTouchmove"]);
|
|
|
|
|
}
|
|
|
|
|
const uvNoNetwork = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render], ["__scopeId", "data-v-bffa4de5"], ["__file", "D:/WebstormProjects/oa-base/uni_modules/uv-no-network/components/uv-no-network/uv-no-network.vue"]]);
|
|
|
|
|
const _sfc_main$2 = {
|
|
|
|
|
__name: "index",
|
|
|
|
|
setup(__props) {
|
|
|
|
|
return (_ctx, _cache) => {
|
|
|
|
|
return vue.openBlock(), vue.createBlock(uvNoNetwork);
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
const PagesNetworkoIndex = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__file", "D:/WebstormProjects/oa-base/pages/networko/index.vue"]]);
|
|
|
|
|
const env = "dev";
|
|
|
|
|
const env = "test";
|
|
|
|
|
const configs = {
|
|
|
|
|
LocalTest: {
|
|
|
|
|
apiBaseUrl: "https://warehouse.szjixun.cn/oa_backend",
|
|
|
|
@ -2727,7 +2718,7 @@ if (uni.restoreGlobal) {
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
const config = configs[env];
|
|
|
|
|
const _sfc_main$1 = {
|
|
|
|
|
const _sfc_main$2 = {
|
|
|
|
|
__name: "index",
|
|
|
|
|
setup(__props) {
|
|
|
|
|
const webViewObj = vue.ref(null);
|
|
|
|
@ -2747,65 +2738,28 @@ if (uni.restoreGlobal) {
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
return (_ctx, _cache) => {
|
|
|
|
|
return vue.openBlock(), vue.createElementBlock(
|
|
|
|
|
vue.Fragment,
|
|
|
|
|
null,
|
|
|
|
|
[
|
|
|
|
|
vue.createElementVNode("web-view", {
|
|
|
|
|
class: "webview",
|
|
|
|
|
onMessage: webLoad,
|
|
|
|
|
style: { "flex": "1" },
|
|
|
|
|
ref: "webViewRef",
|
|
|
|
|
src: vue.unref(config).h5Url
|
|
|
|
|
}, null, 40, ["src"]),
|
|
|
|
|
vue.createVNode(uvNoNetwork)
|
|
|
|
|
],
|
|
|
|
|
64
|
|
|
|
|
/* STABLE_FRAGMENT */
|
|
|
|
|
);
|
|
|
|
|
return vue.openBlock(), vue.createElementBlock("web-view", {
|
|
|
|
|
class: "webview",
|
|
|
|
|
onMessage: webLoad,
|
|
|
|
|
style: { "flex": "1" },
|
|
|
|
|
ref: "webViewRef",
|
|
|
|
|
src: vue.unref(config).h5Url
|
|
|
|
|
}, null, 40, ["src"]);
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
const PagesIndexIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "D:/WebstormProjects/oa-base/pages/index/index.vue"]]);
|
|
|
|
|
__definePage("pages/networko/index", PagesNetworkoIndex);
|
|
|
|
|
__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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
const PagesIndexIndex = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__file", "D:/WebstormProjects/oa-base/pages/index/index.vue"]]);
|
|
|
|
|
const _sfc_main$1 = {
|
|
|
|
|
__name: "index",
|
|
|
|
|
setup(__props) {
|
|
|
|
|
return (_ctx, _cache) => {
|
|
|
|
|
return vue.openBlock(), vue.createBlock(uvNoNetwork);
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
uni.invokePushCallback({
|
|
|
|
|
type: "enabled",
|
|
|
|
|
offline: true
|
|
|
|
|
});
|
|
|
|
|
Promise.resolve().then(() => {
|
|
|
|
|
initPushNotification();
|
|
|
|
|
plus.push.setAutoNotification && plus.push.setAutoNotification(false);
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
const PagesNetworkoIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "D:/WebstormProjects/oa-base/pages/networko/index.vue"]]);
|
|
|
|
|
__definePage("pages/index/index", PagesIndexIndex);
|
|
|
|
|
__definePage("pages/networko/index", PagesNetworkoIndex);
|
|
|
|
|
const _sfc_main = {
|
|
|
|
|
methods: {
|
|
|
|
|
networkStatusChange(res) {
|
|
|
|
@ -2827,17 +2781,7 @@ if (uni.restoreGlobal) {
|
|
|
|
|
success: (res) => {
|
|
|
|
|
if (res.networkType === "none") {
|
|
|
|
|
uni.redirectTo({
|
|
|
|
|
url: "/pages/networko/index",
|
|
|
|
|
success: () => {
|
|
|
|
|
plus.navigator.closeSplashscreen();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
uni.redirectTo({
|
|
|
|
|
url: "/pages/index/index",
|
|
|
|
|
success: () => {
|
|
|
|
|
plus.navigator.closeSplashscreen();
|
|
|
|
|
}
|
|
|
|
|
url: "/pages/networko/index"
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -2851,14 +2795,14 @@ if (uni.restoreGlobal) {
|
|
|
|
|
const App = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:/WebstormProjects/oa-base/App.vue"]]);
|
|
|
|
|
const pages = [
|
|
|
|
|
{
|
|
|
|
|
path: "pages/networko/index",
|
|
|
|
|
path: "pages/index/index",
|
|
|
|
|
style: {
|
|
|
|
|
navigationBarTitleText: "uni-app",
|
|
|
|
|
navigationStyle: "custom"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "pages/index/index",
|
|
|
|
|
path: "pages/networko/index",
|
|
|
|
|
style: {
|
|
|
|
|
navigationBarTitleText: "uni-app",
|
|
|
|
|
navigationStyle: "custom"
|
|
|
|
@ -3166,7 +3110,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), C = b, P = I('{\n "address": [\n "127.0.0.1",\n "192.168.56.1",\n "192.168.88.50"\n ],\n "debugPort": 9002,\n "initialLaunchType": "local",\n "servePort": 7002,\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.61"\n ],\n "debugPort": 9001,\n "initialLaunchType": "local",\n "servePort": 7001,\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 = "";
|
|
|
|
|
try {
|
|
|
|
|
O = "__UNI__4796942";
|
|
|
|
|