69 lines
3.1 KiB
JavaScript
69 lines
3.1 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../../common/vendor.js");
|
|
const common_assets = require("../../common/assets.js");
|
|
if (!Math) {
|
|
(storeroomindex + storeroomorders)();
|
|
}
|
|
const storeroomindex = () => "../../component/storeroom/index.js";
|
|
const storeroomorders = () => "../../component/storeroom/orders.js";
|
|
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
__name: "index",
|
|
setup(__props) {
|
|
const darkFans = common_vendor.ref(false);
|
|
const menuIndex = common_vendor.ref(1);
|
|
common_vendor.ref(false);
|
|
common_vendor.ref(false);
|
|
const iconList = common_vendor.ref([
|
|
{ url: "/static/index/lefticon/index.png", targetUrl: "/static/index/lefticontarget/blueindex.png", name: "首页", pao: 0 },
|
|
{ url: "/static/index/Warehousing/dingdan.png", targetUrl: "/static/index/Warehousing/dingdanblue.png", name: "订单", pao: 0 },
|
|
// { url: '/static/index/Warehousing/yujing.png', targetUrl: '/static/index/Warehousing/yujingblue.png', name: '预警', pao: 200 },
|
|
{ url: "/static/index/Warehousing/chuku.png", targetUrl: "/static/index/Warehousing/chukublue.png", name: "出库", pao: 5 },
|
|
{ url: "/static/index/Warehousing/pandian.png", targetUrl: "/static/index/Warehousing/pandianblue.png", name: "盘点", pao: 0 },
|
|
{ url: "/static/index/Warehousing/jiankong.png", targetUrl: "/static/index/Warehousing/jiankongblue.png", name: "监控", pao: 0 },
|
|
{ url: "/static/index/lefticon/back.png", targetUrl: "/static/index/lefticontarget/blueback.png", name: "返回", pao: 0 }
|
|
]);
|
|
const changeMenu = (index) => {
|
|
if (index === 5) {
|
|
common_vendor.index.navigateBack();
|
|
return;
|
|
}
|
|
menuIndex.value = index;
|
|
};
|
|
common_vendor.onLoad(() => {
|
|
});
|
|
return (_ctx, _cache) => {
|
|
return {
|
|
a: common_assets._imports_0$2,
|
|
b: common_assets._imports_1$1,
|
|
c: common_vendor.f(iconList.value, (item, index, i0) => {
|
|
return common_vendor.e({
|
|
a: index === menuIndex.value,
|
|
b: item.pao
|
|
}, item.pao ? {
|
|
c: common_vendor.t(item.pao > 99 ? `99+` : item.pao),
|
|
d: common_vendor.o(($event) => changeMenu(index), index)
|
|
} : {}, {
|
|
e: index === menuIndex.value ? item.targetUrl : item.url,
|
|
f: common_vendor.o(($event) => changeMenu(index), index),
|
|
g: common_vendor.t(item.name),
|
|
h: common_vendor.n(index === menuIndex.value ? `left-img-font-target` : `left-img-font`),
|
|
i: common_vendor.o(($event) => changeMenu(index), index),
|
|
j: index
|
|
});
|
|
}),
|
|
d: `/static/index/ray.png`,
|
|
e: common_vendor.p({
|
|
isShow: !menuIndex.value
|
|
}),
|
|
f: common_vendor.p({
|
|
isShow: menuIndex.value === 1
|
|
}),
|
|
g: common_vendor.n(darkFans.value ? `darkbackgroundContainer` : `backgroundContainer`)
|
|
};
|
|
};
|
|
}
|
|
});
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-82a72f7e"]]);
|
|
wx.createPage(MiniProgramPage);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/Warehousing/index.js.map
|