officialAccount/unpackage/dist/dev/mp-weixin/pages/selectunit/map.js

146 lines
3.8 KiB
JavaScript
Raw Normal View History

2025-06-03 17:29:22 +08:00
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
__name: "map",
setup(__props) {
2025-06-04 17:33:25 +08:00
const isRuler = common_vendor.ref(false);
const isTarget = common_vendor.ref(false);
const targetIndex = common_vendor.ref(-1);
const institution = common_vendor.ref([
{
name: "护理单元01",
width: "30",
height: "30",
top: "20",
left: "0"
},
{
name: "护理单元02",
width: "30",
height: "30",
top: "20",
left: "0"
},
{
name: "护理单元03",
width: "30",
height: "30",
top: "20",
left: "0"
},
{
name: "护理单元04",
width: "30",
height: "30",
top: "20",
left: "0"
},
{
name: "护理单元05",
width: "30",
height: "30",
top: "20",
left: "0"
},
{
name: "护理单元06",
width: "30",
height: "30",
top: "20",
left: "0"
},
{
name: "护理单元07",
width: "30",
height: "30",
top: "20",
left: "0"
},
{
name: "护理单元08",
width: "30",
height: "30",
top: "20",
left: "0"
},
{
name: "护理单元09",
width: "30",
height: "30",
top: "20",
left: "0"
},
{
name: "护理单元10",
width: "30",
height: "30",
top: "20",
left: "0"
},
{
name: "护理单元11",
width: "30",
height: "30",
top: "20",
left: "0"
},
{
name: "护理单元12",
width: "30",
height: "30",
top: "20",
left: "0"
},
{
name: "护理单元13",
width: "30",
height: "30",
top: "20",
left: "0"
}
]);
const jumpToPro = () => {
common_vendor.index.navigateTo({
url: "/pages/login/protocol"
});
};
2025-06-03 17:29:22 +08:00
return (_ctx, _cache) => {
2025-06-19 17:03:31 +08:00
return common_vendor.e({
2025-06-03 17:29:22 +08:00
a: common_vendor.o(($event) => isRuler.value = true),
b: common_vendor.s(!isRuler.value ? {
color: `black`,
backgroundColor: `#fff`
} : {}),
c: common_vendor.o(($event) => isRuler.value = false),
d: common_vendor.s(isRuler.value ? {
color: `black`,
backgroundColor: `#fff`
} : {}),
e: common_vendor.o(() => {
}),
2025-06-19 17:03:31 +08:00
f: !isRuler.value
}, !isRuler.value ? {} : {}, {
g: common_vendor.f(institution.value, (item, index, i0) => {
return common_vendor.e({
a: targetIndex.value == index ? `https://www.focusnu.com/media/directive/index/jigou/bluewuzi.png` : `https://www.focusnu.com/media/directive/index/jigou/wuzi.png`,
b: targetIndex.value == index
}, targetIndex.value == index ? {} : {}, {
2025-06-04 17:33:25 +08:00
c: common_vendor.n(targetIndex.value == index ? `card-target` : `card`),
d: common_vendor.t(item.name),
e: index,
f: common_vendor.o(($event) => targetIndex.value = index, index)
2025-06-19 17:03:31 +08:00
});
2025-06-04 17:33:25 +08:00
}),
2025-06-19 17:03:31 +08:00
h: common_vendor.n(isTarget.value ? "radio-circle-target" : "radio-circle"),
i: common_vendor.o(($event) => isTarget.value = !isTarget.value),
j: common_vendor.o(($event) => isTarget.value = !isTarget.value),
k: common_vendor.o(jumpToPro),
l: common_vendor.o((...args) => _ctx.loginIt && _ctx.loginIt(...args))
});
2025-06-03 17:29:22 +08:00
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-33c0aee6"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/selectunit/map.js.map