75 lines
3.3 KiB
JavaScript
75 lines
3.3 KiB
JavaScript
|
"use strict";
|
||
|
const common_vendor = require("../../common/vendor.js");
|
||
|
const common_assets = require("../../common/assets.js");
|
||
|
if (!Math) {
|
||
|
storeroomindex();
|
||
|
}
|
||
|
const storeroomindex = () => "../../component/Initialization/index.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/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;
|
||
|
};
|
||
|
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),
|
||
|
c: index
|
||
|
};
|
||
|
}),
|
||
|
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 == -1
|
||
|
}),
|
||
|
f: common_vendor.n(darkFans.value ? `darkbackgroundContainer` : `backgroundContainer`)
|
||
|
};
|
||
|
};
|
||
|
}
|
||
|
});
|
||
|
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
|