2025-06-16 17:32:23 +08:00
|
|
|
"use strict";
|
|
|
|
const common_vendor = require("../../common/vendor.js");
|
|
|
|
const common_assets = require("../../common/assets.js");
|
|
|
|
if (!Math) {
|
2025-06-19 17:04:05 +08:00
|
|
|
(storeroomindex + leidaindex)();
|
2025-06-16 17:32:23 +08:00
|
|
|
}
|
|
|
|
const storeroomindex = () => "../../component/Initialization/index.js";
|
2025-06-19 17:04:05 +08:00
|
|
|
const leidaindex = () => "../../component/Initialization/leida.js";
|
2025-06-16 17:32:23 +08:00
|
|
|
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/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 iconTop = common_vendor.ref([
|
|
|
|
{ url: "/static/index/topright/title/0.png", name: "切换机构" },
|
|
|
|
{ url: "/static/index/topright/title/1.png", name: "修改密码" },
|
|
|
|
{ url: "/static/index/topright/title/2.png", name: "注销账号" }
|
|
|
|
]);
|
|
|
|
const changeMenu = (index) => {
|
|
|
|
if (index === 5) {
|
|
|
|
common_vendor.index.navigateBack();
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
menuIndex.value = index;
|
|
|
|
};
|
2025-06-19 17:04:05 +08:00
|
|
|
const clicktopright = (index) => {
|
|
|
|
if (index == 2) {
|
|
|
|
common_vendor.index.navigateTo({
|
|
|
|
url: "/pages/login/login"
|
|
|
|
});
|
|
|
|
}
|
|
|
|
};
|
|
|
|
const navMenu = (index) => {
|
|
|
|
if (!index) {
|
|
|
|
menuIndex.value = -2;
|
|
|
|
}
|
|
|
|
};
|
2025-06-16 17:32:23 +08:00
|
|
|
common_vendor.onLoad(() => {
|
|
|
|
});
|
|
|
|
return (_ctx, _cache) => {
|
|
|
|
return {
|
|
|
|
a: common_assets._imports_0$2,
|
|
|
|
b: common_vendor.f(iconTop.value, (item, index, i0) => {
|
|
|
|
return {
|
|
|
|
a: item.url,
|
|
|
|
b: common_vendor.t(item.name),
|
2025-06-19 17:04:05 +08:00
|
|
|
c: common_vendor.o(($event) => clicktopright(index), index),
|
|
|
|
d: index
|
2025-06-16 17:32:23 +08:00
|
|
|
};
|
|
|
|
}),
|
|
|
|
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`,
|
2025-06-19 17:04:05 +08:00
|
|
|
e: common_vendor.o(navMenu),
|
|
|
|
f: common_vendor.p({
|
2025-06-16 17:32:23 +08:00
|
|
|
isShow: menuIndex.value == -1
|
|
|
|
}),
|
2025-06-19 17:04:05 +08:00
|
|
|
g: common_vendor.p({
|
|
|
|
isShow: menuIndex.value == -2
|
|
|
|
}),
|
|
|
|
h: common_vendor.n(darkFans.value ? `darkbackgroundContainer` : `backgroundContainer`)
|
2025-06-16 17:32:23 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
});
|
|
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-41b2a00b"]]);
|
|
|
|
wx.createPage(MiniProgramPage);
|
|
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/Initialization/index.js.map
|