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-08-21 16:51:53 +08:00
|
|
|
(fuwu + settings + storeroomindex + leidaindex + saoma + put)();
|
2025-06-16 17:32:23 +08:00
|
|
|
}
|
2025-08-21 16:51:53 +08:00
|
|
|
const fuwu = () => "../../component/Initialization/fuwu.js";
|
|
|
|
const settings = () => "../../component/Initialization/settings.js";
|
|
|
|
const storeroomindex = () => "../../component/Initialization/fuwu.js";
|
2025-06-19 17:04:05 +08:00
|
|
|
const leidaindex = () => "../../component/Initialization/leida.js";
|
2025-07-07 17:35:35 +08:00
|
|
|
const saoma = () => "../../component/Initialization/saoma.js";
|
2025-08-21 16:51:53 +08:00
|
|
|
const put = () => "../../component/Initialization/input.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);
|
2025-08-21 16:51:53 +08:00
|
|
|
const menuIndex = common_vendor.ref(0);
|
2025-06-16 17:32:23 +08:00
|
|
|
common_vendor.ref(false);
|
|
|
|
common_vendor.ref(false);
|
|
|
|
const iconList = common_vendor.ref([
|
2025-08-21 16:51:53 +08:00
|
|
|
{ url: "/static/index/relindex/index.png", targetUrl: "/static/index/relindex/indexblue.png", name: "首页", pao: 0 },
|
|
|
|
{ url: "/static/index/relindex/fuwu.png", targetUrl: "/static/index/relindex/fuwublue.png", name: "服务考核", pao: 0 },
|
|
|
|
{ url: "/static/index/relindex/jigou.png", targetUrl: "/static/index/relindex/jigoublue.png", name: "机构功能1", pao: 0 },
|
|
|
|
{ url: "/static/index/relindex/jigou.png", targetUrl: "/static/index/relindex/jigoublue.png", name: "机构功能2", pao: 0 },
|
|
|
|
{ url: "/static/index/relindex/shezhi.png", targetUrl: "/static/index/relindex/shezhiblue.png", name: "设置", pao: 0 },
|
|
|
|
{ url: "/static/index/newindex/curve/return_8.png", targetUrl: "/static/index/newindex/curve/return_1.png", name: "返回", pao: 0 }
|
|
|
|
// { url: '/static/index/relindex/shezhi.png', targetUrl: '/static/index/relindex/shezhiblue.png', name: '设置', pao: 0 },
|
2025-06-16 17:32:23 +08:00
|
|
|
]);
|
2025-08-21 16:51:53 +08:00
|
|
|
common_vendor.ref([
|
2025-06-16 17:32:23 +08:00
|
|
|
{ url: "/static/index/topright/title/0.png", name: "切换机构" },
|
|
|
|
{ url: "/static/index/topright/title/1.png", name: "修改密码" },
|
|
|
|
{ url: "/static/index/topright/title/2.png", name: "注销账号" }
|
|
|
|
]);
|
2025-08-21 16:51:53 +08:00
|
|
|
common_vendor.ref([
|
2025-07-07 17:35:35 +08:00
|
|
|
{ url: "/static/index/topright/scan/00.png", targetUrl: "/static/index/topright/scan/01.png", name: "雷达扫描" },
|
|
|
|
{ url: "/static/index/topright/scan/10.png", targetUrl: "/static/index/topright/scan/11.png", name: "扫码添加" },
|
|
|
|
{ url: "/static/index/topright/scan/20.png", targetUrl: "/static/index/topright/scan/21.png", name: "手动录入" }
|
|
|
|
]);
|
2025-06-16 17:32:23 +08:00
|
|
|
const changeMenu = (index) => {
|
|
|
|
if (index === 5) {
|
|
|
|
common_vendor.index.navigateBack();
|
|
|
|
}
|
|
|
|
menuIndex.value = index;
|
|
|
|
};
|
2025-07-07 17:35:35 +08:00
|
|
|
const jumpToIndex = (index) => {
|
|
|
|
switch (index) {
|
|
|
|
case 0:
|
|
|
|
menuIndex.value = -2;
|
|
|
|
break;
|
|
|
|
case 1:
|
|
|
|
menuIndex.value = -3;
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
menuIndex.value = -4;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
};
|
2025-06-19 17:04:05 +08:00
|
|
|
const navMenu = (index) => {
|
2025-07-07 17:35:35 +08:00
|
|
|
switch (index) {
|
|
|
|
case 0:
|
|
|
|
menuIndex.value = -2;
|
|
|
|
break;
|
|
|
|
case 1:
|
|
|
|
menuIndex.value = -3;
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
menuIndex.value = -4;
|
|
|
|
break;
|
2025-06-19 17:04:05 +08:00
|
|
|
}
|
|
|
|
};
|
2025-08-21 16:51:53 +08:00
|
|
|
const name = common_vendor.ref("");
|
|
|
|
common_vendor.onLoad((options) => {
|
|
|
|
common_vendor.index.__f__("log", "at pages/Initialization/index.vue:135", "???", options.menu);
|
|
|
|
options.menu ? menuIndex.value = options.menu : menuIndex.value = 0;
|
|
|
|
name.value = common_vendor.index.getStorageSync("realname");
|
2025-06-16 17:32:23 +08:00
|
|
|
});
|
|
|
|
return (_ctx, _cache) => {
|
|
|
|
return {
|
2025-08-21 16:51:53 +08:00
|
|
|
a: common_assets._imports_0$8,
|
|
|
|
b: common_vendor.t(name.value),
|
|
|
|
c: common_vendor.f(iconList.value, (item, index, i0) => {
|
2025-06-16 17:32:23 +08:00
|
|
|
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
|
|
|
|
});
|
|
|
|
}),
|
2025-08-21 16:51:53 +08:00
|
|
|
d: `/static/index/ray.png`,
|
|
|
|
e: common_vendor.p({
|
|
|
|
isShow: menuIndex.value == 0
|
|
|
|
}),
|
|
|
|
f: common_vendor.o(jumpToIndex),
|
2025-07-07 17:35:35 +08:00
|
|
|
g: common_vendor.p({
|
2025-08-21 16:51:53 +08:00
|
|
|
isShow: menuIndex.value == 4
|
|
|
|
}),
|
|
|
|
h: common_vendor.o(navMenu),
|
|
|
|
i: common_vendor.p({
|
2025-06-16 17:32:23 +08:00
|
|
|
isShow: menuIndex.value == -1
|
|
|
|
}),
|
2025-08-21 16:51:53 +08:00
|
|
|
j: common_vendor.p({
|
2025-06-19 17:04:05 +08:00
|
|
|
isShow: menuIndex.value == -2
|
|
|
|
}),
|
2025-08-21 16:51:53 +08:00
|
|
|
k: common_vendor.p({
|
2025-07-07 17:35:35 +08:00
|
|
|
isShow: menuIndex.value == -3
|
|
|
|
}),
|
2025-08-21 16:51:53 +08:00
|
|
|
l: common_vendor.p({
|
|
|
|
isShow: menuIndex.value == -4
|
|
|
|
}),
|
|
|
|
m: 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
|