|
|
|
@ -32,26 +32,7 @@ if (uni.restoreGlobal) {
|
|
|
|
|
(function(vue) {
|
|
|
|
|
"use strict";
|
|
|
|
|
var _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
|
|
|
const env = "prod";
|
|
|
|
|
const configs = {
|
|
|
|
|
LocalTest: {
|
|
|
|
|
apiBaseUrl: "https://warehouse.szjixun.cn/oa_backend",
|
|
|
|
|
h5Url: "http://192.168.88.53:8080/#/"
|
|
|
|
|
},
|
|
|
|
|
dev: {
|
|
|
|
|
apiBaseUrl: "https://warehouse.szjixun.cn/oa_backend",
|
|
|
|
|
h5Url: "http://192.168.88.50:8080/#/"
|
|
|
|
|
},
|
|
|
|
|
test: {
|
|
|
|
|
apiBaseUrl: "https://warehouse.szjixun.cn/oa_backend",
|
|
|
|
|
h5Url: "http://114.218.158.24:8042/#/"
|
|
|
|
|
},
|
|
|
|
|
prod: {
|
|
|
|
|
apiBaseUrl: "https://oa-b.szjixun.cn/api",
|
|
|
|
|
h5Url: "https://oa-b.szjixun.cn/#/"
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
const config = configs[env];
|
|
|
|
|
const mpMixin = {};
|
|
|
|
|
function formatAppLog(type, filename, ...args) {
|
|
|
|
|
if (uni.__log__) {
|
|
|
|
|
uni.__log__(type, filename, ...args);
|
|
|
|
@ -62,45 +43,6 @@ if (uni.restoreGlobal) {
|
|
|
|
|
function resolveEasycom(component, easycom) {
|
|
|
|
|
return typeof component === "string" ? easycom : component;
|
|
|
|
|
}
|
|
|
|
|
const _export_sfc = (sfc, props2) => {
|
|
|
|
|
const target = sfc.__vccOpts || sfc;
|
|
|
|
|
for (const [key, val] of props2) {
|
|
|
|
|
target[key] = val;
|
|
|
|
|
}
|
|
|
|
|
return target;
|
|
|
|
|
};
|
|
|
|
|
const _sfc_main$8 = {
|
|
|
|
|
__name: "index",
|
|
|
|
|
setup(__props) {
|
|
|
|
|
const webViewObj = vue.ref(null);
|
|
|
|
|
const webLoad = (e2) => {
|
|
|
|
|
var _a, _b;
|
|
|
|
|
const h5SendString = (_b = (_a = e2.detail.data) == null ? void 0 : _a[0]) == null ? void 0 : _b.action;
|
|
|
|
|
switch (h5SendString) {
|
|
|
|
|
case "load-complete": {
|
|
|
|
|
const { statusBarHeight } = uni.getSystemInfoSync();
|
|
|
|
|
const currentWebview = getCurrentPages().pop().$getAppWebview();
|
|
|
|
|
webViewObj.value = currentWebview.children()[0];
|
|
|
|
|
webViewObj.value.setStyle({
|
|
|
|
|
top: statusBarHeight,
|
|
|
|
|
bottom: 0
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
return (_ctx, _cache) => {
|
|
|
|
|
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$8, [["__file", "D:/WebstormProjects/oa-base/pages/index/index.vue"]]);
|
|
|
|
|
const mpMixin = {};
|
|
|
|
|
function email(value) {
|
|
|
|
|
return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value);
|
|
|
|
|
}
|
|
|
|
@ -1358,7 +1300,14 @@ if (uni.restoreGlobal) {
|
|
|
|
|
...(_f = (_e2 = uni.$uv) == null ? void 0 : _e2.props) == null ? void 0 : _f.icon
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
const _sfc_main$7 = {
|
|
|
|
|
const _export_sfc = (sfc, props2) => {
|
|
|
|
|
const target = sfc.__vccOpts || sfc;
|
|
|
|
|
for (const [key, val] of props2) {
|
|
|
|
|
target[key] = val;
|
|
|
|
|
}
|
|
|
|
|
return target;
|
|
|
|
|
};
|
|
|
|
|
const _sfc_main$8 = {
|
|
|
|
|
name: "uv-icon",
|
|
|
|
|
emits: ["click"],
|
|
|
|
|
mixins: [mpMixin, mixin, props$4],
|
|
|
|
@ -1463,7 +1412,7 @@ if (uni.restoreGlobal) {
|
|
|
|
|
/* CLASS */
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
const __easycom_0$2 = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$5], ["__scopeId", "data-v-b7a6dd5d"], ["__file", "D:/WebstormProjects/oa-base/uni_modules/uv-icon/components/uv-icon/uv-icon.vue"]]);
|
|
|
|
|
const __easycom_0$2 = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$5], ["__scopeId", "data-v-b7a6dd5d"], ["__file", "D:/WebstormProjects/oa-base/uni_modules/uv-icon/components/uv-icon/uv-icon.vue"]]);
|
|
|
|
|
function colorGradient(startColor = "rgb(0, 0, 0)", endColor = "rgb(255, 255, 255)", step = 10) {
|
|
|
|
|
const startRGB = hexToRgb(startColor, false);
|
|
|
|
|
const startR = startRGB[0];
|
|
|
|
@ -1615,7 +1564,7 @@ if (uni.restoreGlobal) {
|
|
|
|
|
...(_h = (_g = uni.$uv) == null ? void 0 : _g.props) == null ? void 0 : _h.loadingIcon
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
const _sfc_main$6 = {
|
|
|
|
|
const _sfc_main$7 = {
|
|
|
|
|
name: "uv-loading-icon",
|
|
|
|
|
mixins: [mpMixin, mixin, props$3],
|
|
|
|
|
data() {
|
|
|
|
@ -1738,7 +1687,7 @@ if (uni.restoreGlobal) {
|
|
|
|
|
/* CLASS, STYLE */
|
|
|
|
|
)) : vue.createCommentVNode("v-if", true);
|
|
|
|
|
}
|
|
|
|
|
const __easycom_0$1 = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$4], ["__scopeId", "data-v-29b619ea"], ["__file", "D:/WebstormProjects/oa-base/uni_modules/uv-loading-icon/components/uv-loading-icon/uv-loading-icon.vue"]]);
|
|
|
|
|
const __easycom_0$1 = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$4], ["__scopeId", "data-v-29b619ea"], ["__file", "D:/WebstormProjects/oa-base/uni_modules/uv-loading-icon/components/uv-loading-icon/uv-loading-icon.vue"]]);
|
|
|
|
|
const props$2 = {
|
|
|
|
|
props: {
|
|
|
|
|
// 是否细边框
|
|
|
|
@ -1902,7 +1851,7 @@ if (uni.restoreGlobal) {
|
|
|
|
|
...(_j = (_i = uni.$uv) == null ? void 0 : _i.props) == null ? void 0 : _j.button
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
const _sfc_main$5 = {
|
|
|
|
|
const _sfc_main$6 = {
|
|
|
|
|
name: "uv-button",
|
|
|
|
|
mixins: [mpMixin, mixin, props$2],
|
|
|
|
|
emits: ["click"],
|
|
|
|
@ -2107,7 +2056,7 @@ if (uni.restoreGlobal) {
|
|
|
|
|
/* STYLE */
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
const __easycom_1 = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$3], ["__scopeId", "data-v-ae8e42c7"], ["__file", "D:/WebstormProjects/oa-base/uni_modules/uv-button/components/uv-button/uv-button.vue"]]);
|
|
|
|
|
const __easycom_1 = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$3], ["__scopeId", "data-v-ae8e42c7"], ["__file", "D:/WebstormProjects/oa-base/uni_modules/uv-button/components/uv-button/uv-button.vue"]]);
|
|
|
|
|
class MPAnimation {
|
|
|
|
|
constructor(options, _this) {
|
|
|
|
|
this.options = options;
|
|
|
|
@ -2220,7 +2169,7 @@ if (uni.restoreGlobal) {
|
|
|
|
|
clearTimeout(_this.timer);
|
|
|
|
|
return new MPAnimation(option, _this);
|
|
|
|
|
}
|
|
|
|
|
const _sfc_main$4 = {
|
|
|
|
|
const _sfc_main$5 = {
|
|
|
|
|
name: "uv-transition",
|
|
|
|
|
mixins: [mpMixin, mixin],
|
|
|
|
|
emits: ["click", "change"],
|
|
|
|
@ -2480,7 +2429,7 @@ if (uni.restoreGlobal) {
|
|
|
|
|
vue.renderSlot(_ctx.$slots, "default")
|
|
|
|
|
], 14, ["animation"])) : vue.createCommentVNode("v-if", true);
|
|
|
|
|
}
|
|
|
|
|
const __easycom_0 = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$2], ["__file", "D:/WebstormProjects/oa-base/uni_modules/uv-transition/components/uv-transition/uv-transition.vue"]]);
|
|
|
|
|
const __easycom_0 = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$2], ["__file", "D:/WebstormProjects/oa-base/uni_modules/uv-transition/components/uv-transition/uv-transition.vue"]]);
|
|
|
|
|
const props$1 = {
|
|
|
|
|
props: {
|
|
|
|
|
// 是否显示遮罩
|
|
|
|
@ -2506,7 +2455,7 @@ if (uni.restoreGlobal) {
|
|
|
|
|
...(_l = (_k = uni.$uv) == null ? void 0 : _k.props) == null ? void 0 : _l.overlay
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
const _sfc_main$3 = {
|
|
|
|
|
const _sfc_main$4 = {
|
|
|
|
|
name: "uv-overlay",
|
|
|
|
|
emits: ["click"],
|
|
|
|
|
mixins: [mpMixin, mixin, props$1],
|
|
|
|
@ -2554,7 +2503,7 @@ if (uni.restoreGlobal) {
|
|
|
|
|
/* FORWARDED */
|
|
|
|
|
}, 8, ["show", "duration", "custom-style", "onClick", "onTouchmove"]);
|
|
|
|
|
}
|
|
|
|
|
const __easycom_2 = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$1], ["__scopeId", "data-v-7303e1aa"], ["__file", "D:/WebstormProjects/oa-base/uni_modules/uv-overlay/components/uv-overlay/uv-overlay.vue"]]);
|
|
|
|
|
const __easycom_2 = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$1], ["__scopeId", "data-v-7303e1aa"], ["__file", "D:/WebstormProjects/oa-base/uni_modules/uv-overlay/components/uv-overlay/uv-overlay.vue"]]);
|
|
|
|
|
const props = {
|
|
|
|
|
props: {
|
|
|
|
|
// 页面文字提示
|
|
|
|
@ -2575,7 +2524,7 @@ if (uni.restoreGlobal) {
|
|
|
|
|
...(_n = (_m = uni.$uv) == null ? void 0 : _m.props) == null ? void 0 : _n.noNetwork
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
const _sfc_main$2 = {
|
|
|
|
|
const _sfc_main$3 = {
|
|
|
|
|
name: "uv-no-network",
|
|
|
|
|
mixins: [mpMixin, mixin, props],
|
|
|
|
|
data() {
|
|
|
|
@ -2736,10 +2685,9 @@ if (uni.restoreGlobal) {
|
|
|
|
|
]),
|
|
|
|
|
vue.createElementVNode("view", { class: "uv-no-network__retry" }, [
|
|
|
|
|
vue.createVNode(_component_uv_button, {
|
|
|
|
|
size: "mini",
|
|
|
|
|
style: { "width": "220rpx" },
|
|
|
|
|
text: "重试",
|
|
|
|
|
type: "primary",
|
|
|
|
|
plain: "",
|
|
|
|
|
onClick: $options.retry
|
|
|
|
|
}, null, 8, ["onClick"])
|
|
|
|
|
])
|
|
|
|
@ -2749,7 +2697,67 @@ if (uni.restoreGlobal) {
|
|
|
|
|
/* STABLE */
|
|
|
|
|
}, 8, ["show", "zIndex", "onTouchmove"]);
|
|
|
|
|
}
|
|
|
|
|
const uvNoNetwork = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["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 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 env = "prod";
|
|
|
|
|
const configs = {
|
|
|
|
|
LocalTest: {
|
|
|
|
|
apiBaseUrl: "https://warehouse.szjixun.cn/oa_backend",
|
|
|
|
|
h5Url: "http://192.168.88.53:8080/#/"
|
|
|
|
|
},
|
|
|
|
|
dev: {
|
|
|
|
|
apiBaseUrl: "https://warehouse.szjixun.cn/oa_backend",
|
|
|
|
|
h5Url: "http://192.168.88.50:8080/#/"
|
|
|
|
|
},
|
|
|
|
|
test: {
|
|
|
|
|
apiBaseUrl: "https://warehouse.szjixun.cn/oa_backend",
|
|
|
|
|
h5Url: "http://114.218.158.24:8042/#/"
|
|
|
|
|
},
|
|
|
|
|
prod: {
|
|
|
|
|
apiBaseUrl: "https://oa-b.szjixun.cn/api",
|
|
|
|
|
h5Url: "https://oa-b.szjixun.cn/#/"
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
const config = configs[env];
|
|
|
|
|
const _sfc_main$2 = {
|
|
|
|
|
__name: "index",
|
|
|
|
|
setup(__props) {
|
|
|
|
|
const webViewObj = vue.ref(null);
|
|
|
|
|
const webLoad = (e2) => {
|
|
|
|
|
var _a, _b;
|
|
|
|
|
const h5SendString = (_b = (_a = e2.detail.data) == null ? void 0 : _a[0]) == null ? void 0 : _b.action;
|
|
|
|
|
switch (h5SendString) {
|
|
|
|
|
case "load-complete": {
|
|
|
|
|
const { statusBarHeight } = uni.getSystemInfoSync();
|
|
|
|
|
const currentWebview = getCurrentPages().pop().$getAppWebview();
|
|
|
|
|
webViewObj.value = currentWebview.children()[0];
|
|
|
|
|
webViewObj.value.setStyle({
|
|
|
|
|
top: statusBarHeight,
|
|
|
|
|
bottom: 0
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
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 */
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
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) {
|
|
|
|
@ -2815,6 +2823,15 @@ if (uni.restoreGlobal) {
|
|
|
|
|
onLaunch: function() {
|
|
|
|
|
},
|
|
|
|
|
onShow: function() {
|
|
|
|
|
uni.getNetworkType({
|
|
|
|
|
success: (res) => {
|
|
|
|
|
if (res.networkType === "none") {
|
|
|
|
|
uni.redirectTo({
|
|
|
|
|
url: "/pages/networko/index"
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
uni.onNetworkStatusChange(this.networkStatusChange);
|
|
|
|
|
},
|
|
|
|
|
onHide: function() {
|
|
|
|
@ -3139,7 +3156,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 "192.168.88.50"\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'), C = 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), P = b, T = I('{\n "address": [\n "127.0.0.1",\n "192.168.56.1",\n "192.168.88.50"\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":"alipay","spaceName":"oaapp","spaceId":"env-00jxgxphla18","spaceAppId":"2021004145628977","accessKey":"ZALus7EgJXdovISb","secretKey":"7qzvVrPN0mAxfcLr"}]') || [];
|
|
|
|
|
let O = "";
|
|
|
|
|
try {
|
|
|
|
|
O = "__UNI__4796942";
|
|
|
|
|