hldy_app/unpackage/dist/dev/mp-weixin/pages/Initialization/index.js

126 lines
5.2 KiB
JavaScript

"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
if (!Math) {
(fuwu + settings + storeroomindex + leidaindex + saoma + put)();
}
const fuwu = () => "../../component/Initialization/fuwu.js";
const settings = () => "../../component/Initialization/settings.js";
const storeroomindex = () => "../../component/Initialization/fuwu.js";
const leidaindex = () => "../../component/Initialization/leida.js";
const saoma = () => "../../component/Initialization/saoma.js";
const put = () => "../../component/Initialization/input.js";
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "index",
setup(__props) {
const darkFans = common_vendor.ref(false);
const menuIndex = common_vendor.ref(0);
common_vendor.ref(false);
common_vendor.ref(false);
const iconList = common_vendor.ref([
{ 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 },
]);
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: "注销账号" }
]);
common_vendor.ref([
{ 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: "手动录入" }
]);
const changeMenu = (index) => {
if (index === 5) {
common_vendor.index.navigateBack();
}
menuIndex.value = index;
};
const jumpToIndex = (index) => {
switch (index) {
case 0:
menuIndex.value = -2;
break;
case 1:
menuIndex.value = -3;
break;
case 2:
menuIndex.value = -4;
break;
}
};
const navMenu = (index) => {
switch (index) {
case 0:
menuIndex.value = -2;
break;
case 1:
menuIndex.value = -3;
break;
case 2:
menuIndex.value = -4;
break;
}
};
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");
});
return (_ctx, _cache) => {
return {
a: common_assets._imports_0$8,
b: common_vendor.t(name.value),
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 == 0
}),
f: common_vendor.o(jumpToIndex),
g: common_vendor.p({
isShow: menuIndex.value == 4
}),
h: common_vendor.o(navMenu),
i: common_vendor.p({
isShow: menuIndex.value == -1
}),
j: common_vendor.p({
isShow: menuIndex.value == -2
}),
k: common_vendor.p({
isShow: menuIndex.value == -3
}),
l: common_vendor.p({
isShow: menuIndex.value == -4
}),
m: 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