87 lines
2.9 KiB
JavaScript
87 lines
2.9 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
const common_vendor = require("./common/vendor.js");
|
|
if (!Math) {
|
|
"./pages/index/index.js";
|
|
"./pages/order/create.js";
|
|
"./pages/product/select.js";
|
|
"./pages/product/list.js";
|
|
"./pages/product/form.js";
|
|
"./pages/product/categories.js";
|
|
"./pages/product/units.js";
|
|
"./pages/product/settings.js";
|
|
"./pages/customer/select.js";
|
|
"./pages/customer/form.js";
|
|
"./pages/customer/detail.js";
|
|
"./pages/supplier/select.js";
|
|
"./pages/supplier/form.js";
|
|
"./pages/account/select.js";
|
|
"./pages/account/ledger.js";
|
|
"./pages/account/form.js";
|
|
"./pages/detail/index.js";
|
|
"./pages/auth/login.js";
|
|
"./pages/auth/register.js";
|
|
"./pages/my/index.js";
|
|
"./pages/my/about.js";
|
|
"./pages/my/vip.js";
|
|
"./pages/report/index.js";
|
|
}
|
|
const _sfc_main = {
|
|
onLaunch: function() {
|
|
common_vendor.index.__f__("log", "at App.vue:4", "App Launch");
|
|
},
|
|
onShow: function() {
|
|
common_vendor.index.__f__("log", "at App.vue:7", "App Show");
|
|
},
|
|
onHide: function() {
|
|
common_vendor.index.__f__("log", "at App.vue:10", "App Hide");
|
|
}
|
|
};
|
|
function createApp() {
|
|
const app = common_vendor.createSSRApp(_sfc_main);
|
|
return {
|
|
app
|
|
};
|
|
}
|
|
if (typeof common_vendor.index !== "undefined" && typeof common_vendor.index.connectSocket === "function") {
|
|
const _connectSocket = common_vendor.index.connectSocket;
|
|
common_vendor.index.connectSocket = function(options) {
|
|
const task = _connectSocket.call(this, options);
|
|
if (task && typeof task.close === "function") {
|
|
const _close = task.close;
|
|
task.close = function(params = {}) {
|
|
if (params && typeof params === "object") {
|
|
const codeNum = Number(params.code);
|
|
const isValid = codeNum === 1e3 || codeNum >= 3e3 && codeNum <= 4999;
|
|
if (!isValid) {
|
|
params.code = 1e3;
|
|
if (!params.reason)
|
|
params.reason = "normalized from invalid close code";
|
|
}
|
|
}
|
|
return _close.call(this, params);
|
|
};
|
|
}
|
|
return task;
|
|
};
|
|
}
|
|
if (typeof common_vendor.index !== "undefined" && typeof common_vendor.index.navigateBack === "function") {
|
|
const _navigateBack = common_vendor.index.navigateBack;
|
|
common_vendor.index.navigateBack = function(params = {}) {
|
|
try {
|
|
const pages = typeof getCurrentPages === "function" ? getCurrentPages() : [];
|
|
const maxDelta = pages.length > 0 ? pages.length - 1 : 0;
|
|
const d = Number(params.delta || 1);
|
|
if (maxDelta >= 1 && d <= maxDelta) {
|
|
return _navigateBack.call(this, params);
|
|
}
|
|
return common_vendor.index.switchTab({ url: "/pages/index/index" });
|
|
} catch (e) {
|
|
return common_vendor.index.switchTab({ url: "/pages/index/index" });
|
|
}
|
|
};
|
|
}
|
|
createApp().app.mount("#app");
|
|
exports.createApp = createApp;
|
|
//# sourceMappingURL=../.sourcemap/mp-weixin/app.js.map
|