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

1114 lines
34 KiB
JavaScript

"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
const pages_watch_api_lunpan = require("./api/lunpan.js");
if (!Array) {
const _component_donghua = common_vendor.resolveComponent("donghua");
const _component_arrowkeys = common_vendor.resolveComponent("arrowkeys");
(_component_donghua + _component_arrowkeys)();
}
if (!Math) {
joysticknew();
}
const joysticknew = () => "../../component/public/newgame/joysticknew.js";
const itemHeight = 100;
const containerHeight = 400;
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "index",
setup(__props) {
const cameraArray = common_vendor.ref([]);
common_vendor.onLoad(() => {
cameraArray.value = cameraSmall;
});
common_vendor.ref(null);
const menuIndex = common_vendor.ref(-1);
const typeNow = common_vendor.ref(-1);
const photoplay = common_vendor.ref(false);
const getblue = common_vendor.ref(false);
common_vendor.ref(null);
const wheelRef = common_vendor.ref(null);
const topnum = common_vendor.ref(0);
const wheretarget = common_vendor.ref(3);
const where = [
{
name: "左右翻转",
url: "/static/index/camera/800.png",
target: "/static/index/camera/801.png"
},
{
name: "上下翻转",
url: "/static/index/camera/810.png",
target: "/static/index/camera/811.png"
},
{
name: "中心翻转",
url: "/static/index/camera/820.png",
target: "/static/index/camera/821.png"
},
{
name: "不翻转",
url: "/static/index/camera/830.png",
target: "/static/index/camera/831.png"
}
];
const downpicture = [
"原图",
"全景拉伸",
"四分屏",
"180°全景",
"360°全景"
];
const cameratarget = common_vendor.ref([]);
const cameraBig = [
"截图",
"录制",
"对讲",
"静音",
"预警",
"关闭",
"图片",
"视频",
"清晰度",
"翻转"
];
const cameraSmall = [
"截图",
"录制",
"对讲",
"静音",
"预警",
"展开"
];
const downtarget = common_vendor.ref(0);
const clickDownCard = (index) => {
cleanandopen();
bottomTargetIndex.value = index;
downtarget.value = index;
switch (index) {
case 0:
common_vendor.index.$emit("monitor:switchDisplay", 0);
break;
case 1:
common_vendor.index.$emit("monitor:switchDisplay", 4);
break;
case 2:
common_vendor.index.$emit("monitor:switchDisplay", 1);
break;
case 3:
common_vendor.index.$emit("monitor:switchDisplay", 2);
break;
case 4:
common_vendor.index.$emit("monitor:switchDisplay", 3);
break;
}
};
const first = common_vendor.ref(5);
const second = common_vendor.ref(0);
function parseToMinutes(t) {
const [h, m] = t.split(":").map(Number);
return h * 60 + m;
}
function findClosestItem(list, nowStr) {
const now = parseToMinutes(nowStr);
let closest = null;
let minDiff = Infinity;
list.forEach((element) => {
const val = parseToMinutes(element.startTime);
let diff = Math.abs(val - now);
if (diff > 720)
diff = 1440 - diff;
if (diff < minDiff) {
minDiff = diff;
closest = element;
}
});
return closest;
}
const serveritem = common_vendor.ref({
startTime: "",
endTime: "",
typeName: "",
immediateFile: ""
});
const changeLeftMenu = (item, index) => {
if (item.elderServerEntityList) {
const nearest = findClosestItem(item.elderServerEntityList, time.value);
serveritem.value = nearest;
} else {
serveritem.value = {
startTime: "",
endTime: "",
typeName: "",
immediateFile: ""
};
}
common_vendor.index.__f__("log", "at pages/watch/index.vue:400", "<<<<", filteredMenu[menuIndex.value]);
if (item.cameraInfo !== null && item.cameraInfo[0].deviceName) {
common_vendor.index.$emit("monitor:isshow", true);
common_vendor.index.$emit("monitor:changeinit", item.cameraInfo[0].deviceIndex);
} else {
common_vendor.index.$emit("monitor:isshow", false);
}
};
const clickTopMenu = (index) => {
cleanandopen();
topTargetIndex.value = index;
};
function clamp(v, a, b) {
return Math.max(a, Math.min(b, v));
}
function ensureVisible(idx) {
const targetTop = idx * itemHeight;
const viewTop = topnum.value;
const viewBottom = viewTop + containerHeight;
if (targetTop < viewTop) {
topnum.value = clamp(targetTop, 0, filteredMenu.value.length * itemHeight - containerHeight);
} else if (targetTop + itemHeight > viewBottom) {
const needTop = targetTop + itemHeight - containerHeight;
topnum.value = clamp(needTop, 0, filteredMenu.value.length * itemHeight - containerHeight);
}
}
function genPaths(base2, prefix, count, ext = "png", startIndex = 0, pad2 = false) {
return Array.from({ length: count }, (_, i) => {
const idx = pad2 ? String(i + startIndex).padStart(2, "0") : i + startIndex;
return `${base2}/${prefix}${idx}.${ext}`;
});
}
const base = genPaths(
"/static/index/newindex/curve",
"curve_",
9,
"png",
1,
false
);
common_vendor.ref([
...base,
...[...base].reverse()
// 先拷贝一份再反转,避免修改原 base
]);
const basesmall = genPaths(
"/static/index/newindex/curve",
"breathe_",
9,
"png",
1,
false
);
common_vendor.ref([
...basesmall,
...[...basesmall].reverse()
// 先拷贝一份再反转,避免修改原 base
]);
common_vendor.ref([
{
name: "王金福",
url: "/static/index/watch/people0.png"
},
{
name: "李宝田",
url: "/static/index/watch/people1.png"
}
]);
const iconArray = common_vendor.ref([
{
name: "省医保",
url: "/static/index/watch/00.png",
error: false
},
{
name: "重度失能",
url: "/static/index/watch/01.png",
error: false
},
{
name: "欠费",
url: "/static/index/watch/03.png",
error: true
}
]);
const typeArray = common_vendor.ref(
[
{
name: "护理单元",
url: genPaths(
"/static/index/watch",
"nurs_",
10,
// 张数
"png",
1,
// 起始索引为 1
false
// 不补零
)
},
{
name: "仓库",
url: genPaths(
"/static/index/watch",
"warehouse_",
6,
// 张数
"png",
1,
// 起始索引为 1
false
// 不补零
)
},
{
name: "配务室",
url: genPaths(
"/static/index/watch",
"delivery_",
5,
// 张数
"png",
1,
// 起始索引为 1
false
// 不补零
)
},
{
name: "服务大厅",
url: genPaths(
"/static/index/watch",
"service_",
5,
// 张数
"png",
1,
// 起始索引为 1
false
// 不补零
)
},
{
name: "",
url: ""
}
]
);
const leftMenuArray = common_vendor.ref([
{
name: "护理单元01",
NUID: "2508000001",
url: genPaths(
"/static/index/watch",
"nurs_",
10,
// 张数
"png",
1,
// 起始索引为 1
false
// 不补零
),
warning: false,
type: 0
},
{
name: "护理单元02",
NUID: "2508000002",
url: genPaths(
"/static/index/watch",
"nurs_",
10,
// 张数
"png",
1,
// 起始索引为 1
false
// 不补零
),
warning: false,
type: 0
},
{
name: "护理单元03",
NUID: "2508000003",
url: genPaths(
"/static/index/watch",
"nurs_",
10,
// 张数
"png",
1,
// 起始索引为 1
false
// 不补零
),
warning: true,
type: 0
},
{
name: "仓库01",
NUID: "2508000001",
url: genPaths(
"/static/index/watch",
"warehouse_",
6,
// 张数
"png",
1,
// 起始索引为 1
false
// 不补零
),
warning: false,
type: 1
},
{
name: "配务室",
NUID: "2508000001",
url: genPaths(
"/static/index/watch",
"delivery_",
5,
// 张数
"png",
1,
// 起始索引为 1
false
// 不补零
),
warning: false,
type: 2
},
{
name: "服务大厅",
NUID: "2508000001",
url: genPaths(
"/static/index/watch",
"service_",
5,
// 张数
"png",
1,
// 起始索引为 1
false
// 不补零
),
warning: false,
type: 3
}
]);
common_vendor.onMounted(() => {
menuIndex.value = 0;
typeNow.value = 0;
photoplay.value = true;
getblue.value = true;
});
const leftTargetIndex = common_vendor.ref(0);
const topTargetIndex = common_vendor.ref(-1);
const bottomTargetIndex = common_vendor.ref(-1);
const shezhi = common_vendor.ref(false);
const cleanandopen = () => {
leftTargetIndex.value = -1;
topTargetIndex.value = -1;
bottomTargetIndex.value = -1;
shezhi.value = false;
};
const movecamera = (type) => {
handleKey(type);
};
const savetypeNow = common_vendor.ref(0);
const movecard = (type) => {
if (leftTargetIndex.value !== -1) {
switch (type) {
case 0:
if (menuIndex.value > 0) {
leftTargetIndex.value--;
menuIndex.value = leftTargetIndex.value;
ensureVisible(menuIndex.value);
changeLeftMenu(filteredMenu.value[leftTargetIndex.value], leftTargetIndex.value);
} else {
topTargetIndex.value = typeNow.value;
leftTargetIndex.value = -1;
}
break;
case 1:
topTargetIndex.value = typeNow.value;
leftTargetIndex.value = -1;
break;
case 2:
if (menuIndex.value < filteredMenu.value.length - 1) {
menuIndex.value++;
leftTargetIndex.value = menuIndex.value;
ensureVisible(menuIndex.value);
changeLeftMenu(filteredMenu.value[leftTargetIndex.value], leftTargetIndex.value);
}
break;
case 3:
break;
case 4:
savetypeNow.value = leftTargetIndex.value;
if (!typeNow.value) {
common_vendor.index.navigateTo({
url: "/pages/NursingNew/index"
});
} else if (typeNow.value === 1) {
common_vendor.index.navigateTo({
url: "/pages/Warehousing/index"
});
}
break;
}
} else if (topTargetIndex.value !== -1) {
switch (type) {
case 0:
break;
case 1:
if (typeNow.value < typeArray.value.length - 2) {
typeNow.value++;
topTargetIndex.value = typeNow.value;
changeLeftMenu(filteredMenu.value[0]);
} else {
shezhi.value = true;
topTargetIndex.value = -1;
}
break;
case 2:
cleanandopen();
bottomTargetIndex.value = 0;
clickDownCard(0);
break;
case 3:
if (typeNow.value) {
typeNow.value--;
topTargetIndex.value = typeNow.value;
changeLeftMenu(filteredMenu.value[0]);
} else {
topTargetIndex.value = -1;
menuIndex.value = 0;
typeNow.value = 0;
leftTargetIndex.value = menuIndex.value;
ensureVisible(menuIndex.value);
}
break;
case 5:
topTargetIndex.value = -1;
menuIndex.value = 0;
leftTargetIndex.value = menuIndex.value;
ensureVisible(menuIndex.value);
break;
}
} else if (shezhi.value) {
switch (type) {
case 0:
break;
case 1:
break;
case 2:
cleanandopen();
bottomTargetIndex.value = 0;
clickDownCard(0);
break;
case 3:
typeNow.value = 3;
topTargetIndex.value = typeNow.value;
shezhi.value = false;
break;
case 4:
goback();
break;
case 5:
topTargetIndex.value = -1;
menuIndex.value = 0;
leftTargetIndex.value = menuIndex.value;
ensureVisible(menuIndex.value);
shezhi.value = false;
break;
}
} else if (bottomTargetIndex.value !== -1) {
switch (type) {
case 0:
cleanandopen();
topTargetIndex.value = typeNow.value;
break;
case 1:
if (bottomTargetIndex.value < 4) {
bottomTargetIndex.value++;
clickDownCard(bottomTargetIndex.value);
}
break;
case 2:
break;
case 3:
if (bottomTargetIndex.value) {
bottomTargetIndex.value--;
clickDownCard(bottomTargetIndex.value);
} else {
let menunumber = menuIndex.value;
cleanandopen();
menuIndex.value = menunumber;
leftTargetIndex.value = menunumber;
changeLeftMenu(filteredMenu.value[menuIndex.value], menuIndex.value);
}
break;
case 4:
goback();
break;
}
}
};
const removeTimers = /* @__PURE__ */ new Map();
common_vendor.onBeforeUnmount(() => {
for (const t of removeTimers.values()) {
clearTimeout(t);
}
removeTimers.clear();
});
const removeIndexOnce = (index) => {
const pos = cameratarget.value.indexOf(index);
if (pos !== -1) {
cameratarget.value.splice(pos, 1);
}
};
const jumpopen = common_vendor.ref(false);
const clickcamera = (index) => {
switch (index) {
case 0:
common_vendor.index.$emit("monitor:doSnapshot");
if (!cameratarget.value.includes(index)) {
cameratarget.value.push(index);
}
if (removeTimers.has(index)) {
clearTimeout(removeTimers.get(index));
}
const timerId = setTimeout(() => {
const pos = cameratarget.value.indexOf(index);
if (pos !== -1) {
cameratarget.value.splice(pos, 1);
}
removeTimers.delete(index);
}, 500);
removeTimers.set(index, timerId);
break;
case 1:
if (cameratarget.value.includes(index)) {
common_vendor.index.$emit("monitor:stopRecord");
removeIndexOnce(index);
} else {
common_vendor.index.$emit("monitor:startRecord");
cameratarget.value.push(index);
}
break;
case 2:
if (cameratarget.value.includes(index)) {
common_vendor.index.$emit("monitor:stopTalk");
removeIndexOnce(index);
} else {
common_vendor.index.$emit("monitor:openTalk");
cameratarget.value.push(index);
}
break;
case 3:
if (cameratarget.value.includes(index)) {
common_vendor.index.$emit("monitor:toggleVolume");
removeIndexOnce(index);
} else {
common_vendor.index.$emit("monitor:toggleVolume");
cameratarget.value.push(index);
}
break;
case 4:
if (cameratarget.value.includes(index)) {
common_vendor.index.$emit("monitor:stopAlarm");
removeIndexOnce(index);
} else {
common_vendor.index.$emit("monitor:startAlarm");
cameratarget.value.push(index);
}
break;
case 5:
if (cameratarget.value.includes(index)) {
cameraArray.value = cameraSmall;
removeIndexOnce(index);
} else {
cameraArray.value = cameraBig;
cameratarget.value.push(index);
}
jumpopen.value = false;
break;
case 6:
if (cameratarget.value.includes(index)) {
removeIndexOnce(index);
} else {
cameratarget.value.push(index);
}
break;
case 7:
if (cameratarget.value.includes(index)) {
removeIndexOnce(index);
} else {
cameratarget.value.push(index);
}
break;
case 8:
if (cameratarget.value.includes(index)) {
common_vendor.index.$emit("monitor:changeQuality");
removeIndexOnce(index);
} else {
common_vendor.index.$emit("monitor:changeQuality");
cameratarget.value.push(index);
}
break;
case 9:
jumpopen.value = true;
break;
}
};
const clickjump = (index) => {
wheretarget.value = index;
if (index === 3) {
common_vendor.index.$emit("monitor:flipImage", 6);
removeIndexOnce(9);
} else {
common_vendor.index.$emit("monitor:flipImage", index);
cameratarget.value.push(9);
}
};
const moveUpsecond = useThrottle(() => {
var _a;
return (_a = wheelRef.value) == null ? void 0 : _a.moveSecondUp();
}, 400);
const clickDownsecond = useThrottle(() => doSomething(), 700);
const gaoqing = common_vendor.ref(0);
const yuntai = common_vendor.ref(false);
const savefirst = common_vendor.ref(-1);
function doSomething() {
var _a;
(_a = wheelRef.value) == null ? void 0 : _a.startchange();
if (first.value === 0) {
if (second.value) {
common_vendor.index.$emit("monitor:toggleVolume");
} else {
common_vendor.index.$emit("monitor:toggleVolume");
}
}
if (first.value === 1) {
if (second.value) {
common_vendor.index.$emit("monitor:stopTalk");
} else {
common_vendor.index.$emit("monitor:openTalk");
}
}
if (first.value === 2) {
common_vendor.index.$emit("monitor:doSnapshot");
}
if (first.value === 3) {
if (second.value) {
common_vendor.index.$emit("monitor:stopRecord");
} else {
common_vendor.index.$emit("monitor:startRecord");
}
}
if (first.value === 4) {
if (!second.value) {
savefirst.value = first.value;
first.value = -1;
yuntai.value = true;
}
}
if (first.value === 5) {
if (gaoqing.value !== second.value) {
gaoqing.value = second.value;
common_vendor.index.$emit("monitor:changeQuality");
}
}
if (first.value === 6) {
common_vendor.index.$emit("monitor:switchDisplay", second.value);
}
if (first.value === 7) {
if (second.value === 3) {
common_vendor.index.$emit("monitor:flipImage", 6);
} else {
common_vendor.index.$emit("monitor:flipImage", second.value);
}
}
if (first.value === 8) {
if (second.value) {
common_vendor.index.$emit("monitor:stopAlarm");
} else {
common_vendor.index.$emit("monitor:startAlarm");
}
}
}
function useThrottle(fn, delay = 1e3) {
let throttling = false;
return () => {
if (throttling)
return;
fn();
throttling = true;
setTimeout(() => {
throttling = false;
}, delay);
};
}
const filteredMenu = common_vendor.computed(() => {
menuIndex.value = -1;
setTimeout(() => {
menuIndex.value = 0;
}, 50);
return leftMenuArray.value.filter((item) => Number(item.areaFlag) - 1 === typeNow.value);
});
const goback = () => {
common_vendor.index.navigateTo({
url: "/pages/watch/settings/settings"
});
};
const time = common_vendor.ref("");
const date = common_vendor.ref("");
const week = common_vendor.ref("");
let timerId0 = null;
const pad = (n) => String(n).padStart(2, "0");
const weekdays = ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];
function updateClock() {
const d = /* @__PURE__ */ new Date();
time.value = `${pad(d.getHours())}:${pad(d.getMinutes())}`;
date.value = `${d.getMonth() + 1}-${d.getDate()}`;
week.value = weekdays[d.getDay()];
}
common_vendor.onShow(() => {
updateClock();
timerId0 = setInterval(updateClock, 1e3);
pages_watch_api_lunpan.queryPadPageList().then((res) => {
leftMenuArray.value = res.result.records;
leftMenuArray.value.forEach((res2) => {
switch (res2.areaFlag) {
case "1":
res2.url = genPaths(
"/static/index/watch",
"nurs_",
10,
// 张数
"png",
1,
// 起始索引为 1
false
// 不补零
);
break;
case "2":
res2.url = genPaths(
"/static/index/watch",
"warehouse_",
6,
// 张数
"png",
1,
// 起始索引为 1
false
// 不补零
);
break;
case "3":
res2.url = genPaths(
"/static/index/watch",
"delivery_",
5,
// 张数
"png",
1,
// 起始索引为 1
false
// 不补零
);
break;
case "4":
res2.url = genPaths(
"/static/index/watch",
"service_",
5,
// 张数
"png",
1,
// 起始索引为 1
false
// 不补零
);
break;
}
});
changeLeftMenu(filteredMenu.value[leftTargetIndex.value], leftTargetIndex.value);
setTimeout(() => {
menuIndex.value = savetypeNow.value;
leftTargetIndex.value = savetypeNow.value;
savetypeNow.value = 0;
}, 100);
});
});
common_vendor.onHide(() => {
if (timerId0) {
clearInterval(timerId0);
timerId0 = null;
}
});
let activeDir = -1;
const stopTimers = {};
function handleKey(type) {
switch (type) {
case 0:
runDirection(1, 0);
break;
case 1:
runDirection(5, 1);
break;
case 2:
runDirection(7, 2);
break;
case 3:
runDirection(3, 3);
break;
case 4:
first.value = savefirst.value;
yuntai.value = false;
savefirst.value = -1;
moveUpsecond();
clickDownsecond();
break;
case 5:
first.value = savefirst.value;
yuntai.value = false;
savefirst.value = -1;
moveUpsecond();
clickDownsecond();
break;
}
}
function runDirection(dirCode, type) {
if (activeDir !== -1 && activeDir !== type) {
stopDirection(activeDir);
}
activeDir = type;
pages_watch_api_lunpan.movedirection(dirCode, 1);
if (stopTimers[type])
clearTimeout(stopTimers[type]);
stopTimers[type] = setTimeout(() => {
stopDirection(type);
}, 550);
}
function stopDirection(type) {
if (type === -1)
return;
let dirCode = 0;
switch (type) {
case 0:
dirCode = 1;
break;
case 1:
dirCode = 5;
break;
case 2:
dirCode = 7;
break;
case 3:
dirCode = 3;
break;
}
pages_watch_api_lunpan.movedirection(dirCode, 0).then((res) => {
});
clearTimeout(stopTimers[type]);
stopTimers[type] = null;
if (activeDir === type)
activeDir = -1;
}
function getAgeYears(birth) {
const b = birth instanceof Date ? birth : parseDateFlexible(birth);
const now = /* @__PURE__ */ new Date();
let years = now.getFullYear() - b.getFullYear();
if (now.getMonth() < b.getMonth() || now.getMonth() === b.getMonth() && now.getDate() < b.getDate()) {
years -= 1;
}
return years;
}
function parseDateFlexible(s) {
if (s instanceof Date)
return s;
if (typeof s !== "string")
throw new Error("birth must be string or Date");
const m = s.match(/(\d{4})\D+(\d{1,2})\D+(\d{1,2})/);
if (!m)
throw new Error("无法解析的日期格式");
return new Date(Number(m[1]), Number(m[2]) - 1, Number(m[3]));
}
return (_ctx, _cache) => {
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
return common_vendor.e({
a: common_assets._imports_0$3,
b: common_vendor.f(filteredMenu.value, (item, index, i0) => {
return {
a: "4b26e9e6-0-" + i0,
b: common_vendor.p({
width: `55rpx`,
height: `55rpx`,
links: item.url,
playing: menuIndex.value === index
}),
c: common_vendor.t(item.nuName),
d: common_vendor.s(index === menuIndex.value ? {
color: `#017DE9 `
} : {}),
e: index,
f: item.izWarning == "1" ? 1 : "",
g: index === leftTargetIndex.value ? 1 : "",
h: common_vendor.s(index === menuIndex.value ? {
backgroundColor: "#fff"
} : {}),
i: common_vendor.s(leftTargetIndex.value === index ? {
backgroundColor: "#ddf0ff"
} : {}),
j: common_vendor.o(($event) => {
menuIndex.value = index;
cleanandopen();
leftTargetIndex.value = index;
changeLeftMenu(item);
}, index)
};
}),
c: topnum.value,
d: common_vendor.f(typeArray.value, (item, index, i0) => {
return common_vendor.e({
a: item.url
}, item.url ? {
b: "4b26e9e6-1-" + i0,
c: common_vendor.p({
links: item.url,
playing: typeNow.value === index
})
} : {}, {
d: item.url
}, item.url ? {
e: common_vendor.t(item.name),
f: typeNow.value === index ? 1 : "",
g: common_vendor.s(typeNow.value === index ? {
color: `#008FF5`
} : {})
} : {}, {
h: !item.url
}, !item.url ? {
i: common_assets._imports_1
} : {}, {
j: index,
k: common_vendor.s(topTargetIndex.value === index ? {
backgroundColor: "#ddf0ff"
} : {}),
l: index === topTargetIndex.value ? 1 : "",
m: common_vendor.o(($event) => {
typeNow.value = index;
clickTopMenu(index);
}, index)
});
}),
e: common_vendor.t(time.value),
f: common_vendor.t(date.value),
g: common_vendor.t(week.value),
h: common_assets._imports_2,
i: common_vendor.o(goback),
j: common_vendor.o(goback),
k: shezhi.value ? 1 : "",
l: common_assets._imports_3,
m: common_vendor.f(downpicture, (item, index, i0) => {
return {
a: `/static/index/picture/${index}${downtarget.value === index ? 1 : 0}.png`,
b: downtarget.value === index ? "#E2EDFC" : "",
c: index === bottomTargetIndex.value ? 1 : "",
d: common_vendor.t(item),
e: index,
f: downtarget.value === index ? "#1486EB" : "",
g: common_vendor.o(($event) => clickDownCard(index), index)
};
}),
n: typeNow.value === 0
}, typeNow.value === 0 ? common_vendor.e({
o: (_a = filteredMenu.value[menuIndex.value]) == null ? void 0 : _a.elderInfo
}, ((_b = filteredMenu.value[menuIndex.value]) == null ? void 0 : _b.elderInfo) ? {
p: common_assets._imports_4
} : {}, {
q: (_c = filteredMenu.value[menuIndex.value]) == null ? void 0 : _c.elderInfo
}, ((_d = filteredMenu.value[menuIndex.value]) == null ? void 0 : _d.elderInfo) ? {
r: common_vendor.t(filteredMenu.value[menuIndex.value].elderInfo ? filteredMenu.value[menuIndex.value].elderInfo.name : ""),
s: common_vendor.t(filteredMenu.value[menuIndex.value].elderInfo ? filteredMenu.value[menuIndex.value].elderInfo.sex : ""),
t: common_vendor.t(filteredMenu.value[menuIndex.value].elderInfo ? getAgeYears(filteredMenu.value[menuIndex.value].elderInfo.dateOfBirth) : ""),
v: common_vendor.t(filteredMenu.value[menuIndex.value].elderInfo ? filteredMenu.value[menuIndex.value].elderInfo.createTime.slice(0, 10) : "")
} : {}) : {}, {
w: typeNow.value === 1
}, typeNow.value === 1 ? common_vendor.e({
x: (_e = filteredMenu.value[menuIndex.value]) == null ? void 0 : _e.elderInfo
}, ((_f = filteredMenu.value[menuIndex.value]) == null ? void 0 : _f.elderInfo) ? {
y: common_assets._imports_5
} : {}, {
z: (_g = filteredMenu.value[menuIndex.value]) == null ? void 0 : _g.elderInfo
}, ((_h = filteredMenu.value[menuIndex.value]) == null ? void 0 : _h.elderInfo) ? {
A: common_vendor.t(filteredMenu.value[menuIndex.value].elderInfo ? filteredMenu.value[menuIndex.value].elderInfo.name : ""),
B: common_vendor.t(filteredMenu.value[menuIndex.value].elderInfo ? filteredMenu.value[menuIndex.value].elderInfo.sex : ""),
C: common_vendor.t(filteredMenu.value[menuIndex.value].elderInfo ? getAgeYears(filteredMenu.value[menuIndex.value].elderInfo.dateOfBirth) : ""),
D: common_vendor.t(filteredMenu.value[menuIndex.value].elderInfo ? filteredMenu.value[menuIndex.value].elderInfo.createTime.slice(0, 10) : "")
} : {}) : {}, {
E: typeNow.value === 0
}, typeNow.value === 0 ? {
F: common_vendor.f(iconArray.value, (item, index, i0) => {
return {
a: item.url,
b: common_vendor.t(item.name),
c: common_vendor.n(item.error ? `warning` : ``),
d: index
};
})
} : {}, {
G: typeNow.value === 1
}, typeNow.value === 1 ? common_vendor.e({
H: common_assets._imports_6,
I: common_assets._imports_7,
J: (_i = filteredMenu.value[menuIndex.value]) == null ? void 0 : _i.elderInfo
}, ((_j = filteredMenu.value[menuIndex.value]) == null ? void 0 : _j.elderInfo) ? {
K: common_vendor.t(filteredMenu.value[menuIndex.value].elderInfo ? filteredMenu.value[menuIndex.value].elderInfo.guardianPhone : "")
} : {}, {
L: common_assets._imports_8
}) : {}, {
M: common_vendor.t(serveritem.value.startTime),
N: common_vendor.t(serveritem.value.endTime),
O: common_assets._imports_9,
P: `https://www.focusnu.com/nursingunit101/sys/common/static/${serveritem.value.immediateFile}`,
Q: common_vendor.t(serveritem.value.typeName),
R: common_vendor.f(cameraArray.value, (item, index, i0) => {
return {
a: `/static/index/camera/${index}${cameratarget.value.includes(index) ? 1 : 0}.png`,
b: cameratarget.value.includes(index) ? `#DDE9F0` : ``,
c: common_vendor.t(item),
d: cameratarget.value.includes(index) ? `#0E86EA` : ``,
e: common_vendor.o(($event) => clickcamera(index))
};
}),
S: common_assets._imports_10,
T: common_vendor.o(($event) => jumpopen.value = false),
U: common_vendor.f(where, (item, index, i0) => {
return {
a: wheretarget.value === index ? item.target : item.url,
b: common_vendor.t(item.name),
c: wheretarget.value === index ? "#0E86EA" : "",
d: index,
e: common_vendor.o(($event) => clickjump(index), index),
f: wheretarget.value === index ? "#E5E8EE" : ""
};
}),
V: jumpopen.value,
W: common_vendor.o(movecard),
X: common_vendor.p({
getblue: getblue.value,
moveleft: 5
}),
Y: common_vendor.o(movecamera),
Z: !cameratarget.value.includes(5)
});
};
}
});
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-4b26e9e6"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/watch/index.js.map