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

149 lines
3.8 KiB
JavaScript

"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
const _sfc_main = {
__name: "map",
setup(__props) {
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"
});
};
return (_ctx, _cache) => {
return {
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(() => {
}),
f: common_assets._imports_0$3,
g: common_assets._imports_1$5,
h: !isRuler.value,
i: common_vendor.f(institution.value, (item, index, i0) => {
return {
a: targetIndex.value == index ? `/static/index/jigou/bluewuzi.png` : `/static/index/jigou/wuzi.png`,
b: targetIndex.value == index,
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)
};
}),
j: common_assets._imports_2$3,
k: common_assets._imports_3$1,
l: common_vendor.n(isTarget.value ? "radio-circle-target" : "radio-circle"),
m: common_vendor.o(($event) => isTarget.value = !isTarget.value),
n: common_vendor.o(($event) => isTarget.value = !isTarget.value),
o: common_vendor.o(jumpToPro),
p: common_vendor.o((...args) => _ctx.loginIt && _ctx.loginIt(...args))
};
};
}
};
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