1249 lines
47 KiB
JavaScript
1249 lines
47 KiB
JavaScript
"use strict";
|
||
const common_vendor = require("../../common/vendor.js");
|
||
const common_assets = require("../../common/assets.js");
|
||
const component_rightItemssecond_yaoshandiao = require("./yaoshandiao.js");
|
||
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||
__name: "index",
|
||
props: {
|
||
isshow: {
|
||
type: Boolean,
|
||
required: true
|
||
},
|
||
darkFans: {
|
||
type: Boolean,
|
||
required: true
|
||
},
|
||
canmove: {
|
||
type: Boolean,
|
||
required: true
|
||
},
|
||
liang: {
|
||
type: Object
|
||
}
|
||
},
|
||
emits: ["darkchange", "savename", "saveruler", "closename", "changefangkuang", "changeold"],
|
||
setup(__props, { expose: __expose, emit: __emit }) {
|
||
const props = __props;
|
||
common_vendor.watch(
|
||
() => props.canmove,
|
||
() => {
|
||
bottomisShaking.value = false;
|
||
}
|
||
);
|
||
common_vendor.watch(
|
||
() => props.isshow,
|
||
() => {
|
||
bottomisShaking.value = false;
|
||
shakyTable.value = false;
|
||
}
|
||
);
|
||
common_vendor.onMounted(() => {
|
||
});
|
||
const bottomItems = common_vendor.ref([
|
||
{
|
||
name: "纸尿裤",
|
||
url: "/static/index/niao.png"
|
||
},
|
||
{
|
||
name: "呕吐",
|
||
url: "/static/index/tu.png"
|
||
},
|
||
{
|
||
name: "吸痰",
|
||
url: "/static/index/ou.png"
|
||
},
|
||
{
|
||
name: "大便",
|
||
url: "/static/index/baba.png"
|
||
},
|
||
{
|
||
name: "纸尿裤",
|
||
url: "/static/index/niao.png"
|
||
},
|
||
{
|
||
name: "呕吐",
|
||
url: "/static/index/tu.png"
|
||
},
|
||
{
|
||
name: "吸痰",
|
||
url: "/static/index/ou.png"
|
||
},
|
||
{
|
||
name: "大便",
|
||
url: "/static/index/baba.png"
|
||
},
|
||
{
|
||
name: "纸尿裤",
|
||
url: "/static/index/niao.png"
|
||
},
|
||
{
|
||
name: "呕吐",
|
||
url: "/static/index/tu.png"
|
||
},
|
||
{
|
||
name: "吸痰",
|
||
url: "/static/index/ou.png"
|
||
},
|
||
{
|
||
name: "大便",
|
||
url: "/static/index/baba.png"
|
||
},
|
||
{
|
||
name: "纸尿裤",
|
||
url: "/static/index/niao.png"
|
||
},
|
||
{
|
||
name: "呕吐",
|
||
url: "/static/index/tu.png"
|
||
},
|
||
{
|
||
name: "吸痰",
|
||
url: "/static/index/ou.png"
|
||
},
|
||
{
|
||
name: "大便",
|
||
url: "/static/index/baba.png"
|
||
}
|
||
]);
|
||
const timeArray = [
|
||
`00`,
|
||
`05`,
|
||
`10`,
|
||
`15`,
|
||
`20`,
|
||
`25`,
|
||
`30`,
|
||
`35`,
|
||
`40`,
|
||
`45`,
|
||
`50`,
|
||
`55`
|
||
];
|
||
const weekDays = ["周一", "周二", "周三", "周四", "周五", "周六", "周日"];
|
||
const days = Array.from({ length: 31 }, (_, i) => (i + 1).toString().padStart(2, "0"));
|
||
const isweek = common_vendor.ref(true);
|
||
const scrollLeft = common_vendor.ref(0);
|
||
const scrollTop = common_vendor.ref(0);
|
||
const downList = common_vendor.ref();
|
||
const rightList = common_vendor.ref([
|
||
// "三分段",
|
||
// "四分段",
|
||
]);
|
||
const bigArray = common_vendor.ref([]);
|
||
const isopen = common_vendor.ref(false);
|
||
const songisopen = common_vendor.ref(false);
|
||
const isopacity = common_vendor.ref(false);
|
||
const songisopacity = common_vendor.ref(false);
|
||
const deleteisopen = common_vendor.ref(false);
|
||
const deletename = common_vendor.ref("");
|
||
const deleteisopacity = common_vendor.ref(false);
|
||
const currentNumber = common_vendor.ref(1);
|
||
common_vendor.ref(0);
|
||
function pseudoRandom(index0, index1) {
|
||
const seed = index0 * 55.9898 + index1 * 78.233;
|
||
return Math.abs(Math.sin(seed) * 43758.5453) % 1;
|
||
}
|
||
function computeDelay(index0, index1) {
|
||
const range = 2;
|
||
return pseudoRandom(index0, index1) * range;
|
||
}
|
||
const changecurrentNumber = (event) => {
|
||
currentNumber.value = event.detail.current;
|
||
common_vendor.nextTick$1(() => {
|
||
scrollTop.value = moveDownNumber.value;
|
||
});
|
||
};
|
||
common_vendor.ref(0);
|
||
const moveDownNumber = common_vendor.ref(0);
|
||
function handleScrolltime(e) {
|
||
let num = e.detail.scrollTop;
|
||
let formattedNum = parseFloat(num.toFixed(2));
|
||
moveDownNumber.value = formattedNum;
|
||
}
|
||
common_vendor.ref(true);
|
||
const nextItems = () => {
|
||
currentNumber.value == 0 ? currentNumber.value = 3 : currentNumber.value--;
|
||
};
|
||
const getRed = (index0, index1) => {
|
||
if (!props.canmove && props.liang.index0 === index0 && props.liang.index1 === index1 && (redNameindex0.value.includes(index0 + currentNumber.value * 6) || redNameindex1.value != index1)) {
|
||
return true;
|
||
} else {
|
||
return false;
|
||
}
|
||
};
|
||
const getBlue = (index0, index1) => {
|
||
if (!props.canmove && props.liang.index0 === index0 && props.liang.index1 === index1) {
|
||
return true;
|
||
} else {
|
||
return false;
|
||
}
|
||
};
|
||
const getClass = (item, index0, index1) => {
|
||
if (item.cycleType === "日常") {
|
||
if (flyNumber.value.index0 === index0 + currentNumber.value * 6 && flyNumber.value.index1 === index1 && shakyTable.value) {
|
||
return "title-time-border-yellow-active-transparent";
|
||
} else if (shakyTable.value) {
|
||
return "title-time-border-yellow-active";
|
||
} else {
|
||
return "title-time-border-yellow";
|
||
}
|
||
} else if (item.cycleType) {
|
||
if (flyNumber.value.index0 === index0 + currentNumber.value * 6 && flyNumber.value.index1 === index1 && shakyTable.value) {
|
||
return "title-time-border-pouple-active-transparent";
|
||
} else if (shakyTable.value) {
|
||
return "title-time-border-pouple-active";
|
||
} else {
|
||
return "title-time-border-pouple";
|
||
}
|
||
}
|
||
return "title-time-border";
|
||
};
|
||
const doctorsayList = common_vendor.ref([
|
||
{ url: "/static/index/doctorsay/light/use.png", targetUrl: "/static/index/doctorsay/dark/use.png", name: "日常" },
|
||
{ url: "/static/index/doctorsay/light/clean.png", targetUrl: "/static/index/doctorsay/dark/clean.png", name: "清洁" },
|
||
{ url: "/static/index/doctorsay/light/drink.png", targetUrl: "/static/index/doctorsay/dark/drink.png", name: "饮食" },
|
||
{ url: "/static/index/doctorsay/light/bed.png", targetUrl: "/static/index/doctorsay/dark/bed.png", name: "睡眠" },
|
||
{ url: "/static/index/doctorsay/light/shi.png", targetUrl: "/static/index/doctorsay/dark/shi.png", name: "排泻" }
|
||
]);
|
||
const rightListIndex = common_vendor.ref(1);
|
||
const upmenuIndex = common_vendor.ref(0);
|
||
const downmenuIndex = common_vendor.ref(999);
|
||
common_vendor.ref(false);
|
||
common_vendor.ref([]);
|
||
const emit = __emit;
|
||
const newchange = (type) => {
|
||
emit("changeold", type);
|
||
};
|
||
const changLeft = (index2) => {
|
||
upmenuIndex.value = index2;
|
||
downList.value = bigArray.value[index2].children;
|
||
downmenuIndex.value = 999;
|
||
};
|
||
const rightListClick = (index2) => {
|
||
rightListIndex.value = index2;
|
||
};
|
||
const timer = common_vendor.ref(null);
|
||
common_vendor.ref({});
|
||
const moveX = common_vendor.ref(0);
|
||
const moveY = common_vendor.ref(0);
|
||
const openX = common_vendor.ref(0);
|
||
const openY = common_vendor.ref(0);
|
||
const flyNumber = common_vendor.ref({
|
||
index0: 999,
|
||
index1: 999,
|
||
typeName: ""
|
||
});
|
||
const deletebottomindex = common_vendor.ref(-1);
|
||
const deletedownisopen = common_vendor.ref(false);
|
||
const deletedownisopacity = common_vendor.ref(false);
|
||
const deletebottom = (index2, name) => {
|
||
bottomisShaking.value = false;
|
||
deletebottomindex.value = index2;
|
||
shakyTable.value = false;
|
||
deletedownisopacity.value = false;
|
||
deletedownisopen.value = true;
|
||
deletename.value = name;
|
||
setTimeout(() => {
|
||
deletedownisopacity.value = true;
|
||
}, 100);
|
||
};
|
||
const deleteindex = common_vendor.ref([-1, -1]);
|
||
const deleteId = common_vendor.ref("");
|
||
const deleteItems = (item, index0, index1) => {
|
||
deleteindex.value = [-1, -1];
|
||
shakyTable.value = false;
|
||
bottomisShaking.value = false;
|
||
deleteisopacity.value = false;
|
||
deleteisopen.value = true;
|
||
deleteindex.value = [index0 + currentNumber.value * 6, index1];
|
||
deletename.value = item.directiveName;
|
||
deleteId.value = item.id;
|
||
setTimeout(() => {
|
||
deleteisopacity.value = true;
|
||
}, 100);
|
||
};
|
||
const touchindex1 = common_vendor.ref(-1);
|
||
const shareShow = common_vendor.ref(false);
|
||
const shareToWeixin = () => {
|
||
shareShow.value = true;
|
||
deletedownisopacity.value = false;
|
||
setTimeout(() => {
|
||
deletedownisopacity.value = true;
|
||
}, 100);
|
||
};
|
||
const clickshare = () => {
|
||
common_vendor.index.share({
|
||
provider: "weixin",
|
||
scene: "WXSceneSession",
|
||
type: 0,
|
||
href: "http://192.168.2.31:3101/daytoday",
|
||
title: "护理日程分享",
|
||
summary: "九泰护理日程测试",
|
||
imageUrl: "https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/uni@2x.png",
|
||
success: function(res) {
|
||
common_vendor.index.__f__("log", "at component/rightItemssecond/index.vue:740", "success:");
|
||
},
|
||
fail: function(err) {
|
||
common_vendor.index.__f__("log", "at component/rightItemssecond/index.vue:743", "fail:");
|
||
}
|
||
});
|
||
};
|
||
const rulerTouchClick = (item, index0, index1, e) => {
|
||
if (item.directiveName) {
|
||
touchindex1.value = index1;
|
||
const query = common_vendor.index.createSelectorQuery();
|
||
query.selectAll(".super-card-time-card").boundingClientRect((data) => {
|
||
data.forEach(async (res) => {
|
||
if (res.left > 100 && res.left < 900 && res.top < 570 && res.top > 140 && res.dataset.index0 == index0 && res.dataset.index1 == index1) {
|
||
if (res.left > 100 && res.left < 400) {
|
||
openX.value = Math.floor(res.left) + 520;
|
||
} else {
|
||
openX.value = Math.floor(res.left);
|
||
}
|
||
if (res.top > 140 && res.top < 300) {
|
||
openY.value = Math.floor(res.top) + 250;
|
||
} else {
|
||
openY.value = Math.floor(res.top);
|
||
}
|
||
await common_vendor.nextTick$1();
|
||
isopen.value = true;
|
||
isopacity.value = false;
|
||
setTimeout(() => {
|
||
isopacity.value = true;
|
||
}, 100);
|
||
}
|
||
});
|
||
}).exec();
|
||
}
|
||
};
|
||
const shakyTable = common_vendor.ref(false);
|
||
const reldata = common_vendor.ref([]);
|
||
const rulerTouchStart = (item, index0, index1, e) => {
|
||
scrollTop.value = moveDownNumber.value;
|
||
redNameindex0.value = [];
|
||
let index1Number = -1;
|
||
moveX.value = Math.floor(e.touches[0].pageX);
|
||
moveY.value = Math.floor(e.touches[0].pageY);
|
||
timer.value = setTimeout(() => {
|
||
if (item.directiveName) {
|
||
timearr.value.forEach((element0, index02) => {
|
||
element0.children.forEach((element1) => {
|
||
if (element1.typeName === item.typeName && element1.directiveName) {
|
||
redNameindex0.value.push(index02);
|
||
}
|
||
if (element1.directiveName) {
|
||
index1Number = index02;
|
||
}
|
||
});
|
||
});
|
||
if (redNameindex0.value.length) {
|
||
redNameindex1.value = index1;
|
||
} else {
|
||
redNameindex1.value = index1Number + 1;
|
||
}
|
||
flyNumber.value.typeName = item.typeName;
|
||
flyNumber.value.index0 = index0 + currentNumber.value * 6;
|
||
flyNumber.value.index1 = index1;
|
||
indexsave.value = [-1, -1];
|
||
reldata.value = [];
|
||
isTuoing.value = true;
|
||
const query = common_vendor.index.createSelectorQuery();
|
||
query.selectAll(".super-card-time-card").boundingClientRect((data) => {
|
||
data.forEach(async (res) => {
|
||
if (res.left > 100 && res.left < 900 && res.top < 570 && res.top > 140) {
|
||
reldata.value.push(res);
|
||
}
|
||
});
|
||
}).exec();
|
||
emit("saveruler", item, reldata.value);
|
||
shakyTable.value = true;
|
||
}
|
||
}, 100);
|
||
};
|
||
const rulerTouchMove = (e) => {
|
||
const moveXa = Math.floor(e.touches[0].pageX);
|
||
const moveYa = Math.floor(e.touches[0].pageY);
|
||
if (Math.abs(moveXa - moveX.value) > 0 || Math.abs(moveYa - moveY.value) > 0) {
|
||
if (timer.value) {
|
||
clearTimeout(timer.value);
|
||
timer.value = null;
|
||
}
|
||
}
|
||
};
|
||
const rulerTouchEnd = () => {
|
||
isTuoing.value = false;
|
||
if (timer.value) {
|
||
clearTimeout(timer.value);
|
||
timer.value = null;
|
||
}
|
||
};
|
||
const deleteRuler = (index0, index1) => {
|
||
timearr.value[index0].children[index1] = { directiveName: "" };
|
||
isopen.value = false;
|
||
flyNumber.value.index0 = 999;
|
||
flyNumber.value.index1 = 999;
|
||
let emptyChildIndices = [];
|
||
let emptyChildNumber = 0;
|
||
timearr.value.forEach((res, rowIndex) => {
|
||
emptyChildIndices = [];
|
||
emptyChildNumber = res.children.length;
|
||
res.children.forEach((child, index2) => {
|
||
if (child.directiveName === null || child.directiveName === "" || child.directiveName === void 0) {
|
||
const isEmptyInAllRows = timearr.value.every((otherRes) => {
|
||
const otherChild = otherRes.children[index2];
|
||
return otherChild === void 0 || otherChild.directiveName === null || otherChild.directiveName === "" || otherChild.directiveName === void 0;
|
||
});
|
||
if (isEmptyInAllRows) {
|
||
emptyChildIndices.push(index2);
|
||
}
|
||
}
|
||
});
|
||
});
|
||
if (emptyChildNumber > 4 && emptyChildIndices.length > 1) {
|
||
timearr.value.forEach((res, rowIndex) => {
|
||
res.children.splice(emptyChildIndices[0], 1);
|
||
});
|
||
} else {
|
||
timearr.value.forEach((res, rowIndex) => {
|
||
res.children.splice(emptyChildIndices[0], 1);
|
||
res.children.push({ directiveName: "" });
|
||
});
|
||
}
|
||
deleteisopen.value = false;
|
||
saveAll();
|
||
};
|
||
const longPressTimer = common_vendor.ref(null);
|
||
const isScrolling = common_vendor.ref(false);
|
||
let scrollTimeout = null;
|
||
function handleScroll(e) {
|
||
isScrolling.value = true;
|
||
if (scrollTimeout)
|
||
clearTimeout(scrollTimeout);
|
||
scrollTimeout = setTimeout(() => {
|
||
isScrolling.value = false;
|
||
}, 400);
|
||
}
|
||
const isBack = common_vendor.ref(false);
|
||
const saveX = common_vendor.ref(0);
|
||
const saveY = common_vendor.ref(0);
|
||
const isTuoing = common_vendor.ref(false);
|
||
const redNameindex0 = common_vendor.ref([]);
|
||
const redNameindex1 = common_vendor.ref(-1);
|
||
const saveId = common_vendor.ref("");
|
||
const saveTagName = common_vendor.ref("");
|
||
const handleTouchStart = (item, index2, e) => {
|
||
scrollTop.value = moveDownNumber.value;
|
||
shakyTable.value = false;
|
||
saveX.value = Math.floor(e.touches[0].pageX);
|
||
saveY.value = Math.floor(e.touches[0].pageY);
|
||
longPressTimer.value = setTimeout(() => {
|
||
redNameindex0.value = [];
|
||
if (isScrolling.value)
|
||
return;
|
||
let index1save = -1;
|
||
let indexanthersave = -1;
|
||
timearr.value.forEach((element0, index0) => {
|
||
element0.children.forEach((element1, index1) => {
|
||
if (element1.typeName === item.title && element1.directiveName) {
|
||
redNameindex0.value.push(index0);
|
||
index1save = index1;
|
||
}
|
||
if (element1.directiveName) {
|
||
if (index1 > indexanthersave) {
|
||
indexanthersave = index1;
|
||
}
|
||
}
|
||
});
|
||
});
|
||
if (redNameindex0.value.length) {
|
||
redNameindex1.value = index1save;
|
||
} else {
|
||
redNameindex1.value = indexanthersave + 1;
|
||
}
|
||
isBack.value = true;
|
||
downmenuIndex.value = index2;
|
||
indexsave.value = [-1, -1];
|
||
isTuoing.value = true;
|
||
reldata.value = [];
|
||
const query = common_vendor.index.createSelectorQuery();
|
||
query.selectAll(".super-card-time-card").boundingClientRect((data) => {
|
||
data.forEach((res) => {
|
||
if (res.left > 100 && res.left < 900 && res.top < 570 && res.top > 140) {
|
||
reldata.value.push(res);
|
||
}
|
||
});
|
||
}).exec();
|
||
emit("savename", item.title, reldata.value);
|
||
}, 200);
|
||
};
|
||
function isblue() {
|
||
if (!openOp.value && cardsumit.value.startTime || openOp.value === 1 && cardsumit.value.startTime && (cardsumit.value.weekTime || cardsumit.value.monthTime) || openOp.value === 2) {
|
||
return true;
|
||
} else {
|
||
return false;
|
||
}
|
||
}
|
||
const handleTouchMove = (e) => {
|
||
const moveX2 = Math.floor(e.touches[0].pageX);
|
||
const moveY2 = Math.floor(e.touches[0].pageY);
|
||
if (Math.abs(moveX2 - saveX.value) > 0 || Math.abs(moveY2 - saveY.value) > 0) {
|
||
if (longPressTimer.value) {
|
||
clearTimeout(longPressTimer.value);
|
||
longPressTimer.value = null;
|
||
}
|
||
}
|
||
};
|
||
const handleTouchEnd = () => {
|
||
isTuoing.value = false;
|
||
if (longPressTimer.value) {
|
||
clearTimeout(longPressTimer.value);
|
||
longPressTimer.value = null;
|
||
}
|
||
};
|
||
const bottomTimer = common_vendor.ref(null);
|
||
const bottomisShaking = common_vendor.ref(false);
|
||
const bottomTouchStart = (e) => {
|
||
saveX.value = Math.floor(e.touches[0].pageX);
|
||
saveY.value = Math.floor(e.touches[0].pageY);
|
||
bottomTimer.value = setTimeout(() => {
|
||
bottomisShaking.value = true;
|
||
}, 500);
|
||
};
|
||
const bottomTouchMove = (e) => {
|
||
const moveX2 = Math.floor(e.touches[0].pageX);
|
||
const moveY2 = Math.floor(e.touches[0].pageY);
|
||
if (Math.abs(moveX2 - saveX.value) > 0 || Math.abs(moveY2 - saveY.value) > 0) {
|
||
if (bottomTimer.value) {
|
||
clearTimeout(bottomTimer.value);
|
||
bottomTimer.value = null;
|
||
}
|
||
}
|
||
};
|
||
const bottomTouchEnd = () => {
|
||
if (bottomTimer.value) {
|
||
clearTimeout(bottomTimer.value);
|
||
bottomTimer.value = null;
|
||
}
|
||
};
|
||
const openValue = common_vendor.ref({
|
||
time: "",
|
||
array: []
|
||
});
|
||
const cardsumit = common_vendor.ref({
|
||
op: {
|
||
name: "",
|
||
index: [-1, -1, -1]
|
||
},
|
||
startTime: "",
|
||
monthTime: "",
|
||
weekTime: ""
|
||
});
|
||
const openOp = common_vendor.ref(0);
|
||
const clickOp = (index2, item) => {
|
||
saveId.value = item.id;
|
||
saveTagName.value = item.tagName;
|
||
if (cardsumit.value.op.index[2] === index2) {
|
||
cardsumit.value.op.index[2] = -1;
|
||
cardsumit.value.op.name = "";
|
||
openOp.value = -1;
|
||
} else {
|
||
cardsumit.value.op.index[2] = index2;
|
||
cardsumit.value.op.name = item.relName;
|
||
switch (item.cycleType) {
|
||
case `日常护理`:
|
||
openOp.value = 0;
|
||
break;
|
||
case `周期护理`:
|
||
openOp.value = 1;
|
||
break;
|
||
case `即时护理`:
|
||
openOp.value = 2;
|
||
break;
|
||
}
|
||
}
|
||
};
|
||
const clickTime = (index2) => {
|
||
if (cardsumit.value.startTime == index2) {
|
||
cardsumit.value.startTime = "";
|
||
} else {
|
||
cardsumit.value.startTime = index2;
|
||
}
|
||
};
|
||
const clickweek = (index2) => {
|
||
if (cardsumit.value.weekTime == index2) {
|
||
cardsumit.value.weekTime = "";
|
||
} else {
|
||
cardsumit.value.weekTime = index2;
|
||
}
|
||
};
|
||
const clickmonth = (index2) => {
|
||
if (cardsumit.value.monthTime == index2) {
|
||
cardsumit.value.monthTime = "";
|
||
} else {
|
||
cardsumit.value.monthTime = index2;
|
||
}
|
||
};
|
||
const indexsave = common_vendor.ref([-1, -1]);
|
||
const rulerEnd = async (res) => {
|
||
isBack.value = false;
|
||
if (props.liang.index0 !== 999 && res) {
|
||
cardsumit.value = {
|
||
op: {
|
||
name: "",
|
||
index: [-1, -1, -1]
|
||
},
|
||
startTime: "",
|
||
monthTime: "",
|
||
weekTime: ""
|
||
};
|
||
songisopacity.value = false;
|
||
songisopen.value = true;
|
||
setTimeout(() => {
|
||
songisopacity.value = true;
|
||
}, 100);
|
||
cardsumit.value.op.index[0] = upmenuIndex.value;
|
||
cardsumit.value.op.index[1] = downmenuIndex.value;
|
||
openValue.value.time = timearr.value[props.liang.index0 + currentNumber.value * 6].positioning;
|
||
openValue.value.array = bigArray.value[upmenuIndex.value].children[downmenuIndex.value].children;
|
||
openValue.value.array.forEach((element) => {
|
||
element.relName = element.title + (element.tagName ? element.tagName.split(",").map((item) => `(${item})`).join("") : "");
|
||
});
|
||
indexsave.value = [props.liang.index0 + currentNumber.value * 6, props.liang.index1];
|
||
clickOp(0, openValue.value.array[0]);
|
||
}
|
||
};
|
||
const rulerMoveEnd = (object) => {
|
||
if (props.liang.index0 !== 999 && object.cycleType) {
|
||
if (redNameindex0.value.includes(props.liang.index0 + currentNumber.value * 6) || redNameindex1.value !== props.liang.index1) {
|
||
return false;
|
||
}
|
||
indexsave.value = [props.liang.index0 + currentNumber.value * 6, props.liang.index1];
|
||
let savaIndex = -1;
|
||
let emptyChildIndices = [];
|
||
timearr.value.forEach((res, rowIndex) => {
|
||
emptyChildIndices = [];
|
||
res.children.forEach((child, index2) => {
|
||
if (child.directiveName === null || child.directiveName === "" || child.directiveName === void 0) {
|
||
const isEmptyInAllRows = timearr.value.every((otherRes) => {
|
||
const otherChild = otherRes.children[index2];
|
||
return otherChild === void 0 || otherChild.directiveName === null || otherChild.directiveName === "" || otherChild.directiveName === void 0;
|
||
});
|
||
if (isEmptyInAllRows) {
|
||
emptyChildIndices.push(index2);
|
||
}
|
||
}
|
||
});
|
||
res.children.forEach((item, index2) => {
|
||
if (item.typeName == object.typeName) {
|
||
savaIndex = index2;
|
||
}
|
||
});
|
||
});
|
||
if (savaIndex === -1) {
|
||
savaIndex = emptyChildIndices[0];
|
||
}
|
||
let haveAnyItem = 0;
|
||
let savetypeName = "";
|
||
timearr.value.forEach((element) => {
|
||
if (element.children[0].value) {
|
||
haveAnyItem++;
|
||
savetypeName = element.children[0].typeName;
|
||
}
|
||
});
|
||
if (haveAnyItem > 1) {
|
||
timearr.value[flyNumber.value.index0].children[flyNumber.value.index1] = { directiveName: "", typeName: savetypeName };
|
||
} else {
|
||
timearr.value[flyNumber.value.index0].children[flyNumber.value.index1] = { directiveName: "" };
|
||
}
|
||
timearr.value[indexsave.value[0]].children[savaIndex] = object;
|
||
let startTime = timearr.value[indexsave.value[0]].children[savaIndex].startTime;
|
||
let endTime = timearr.value[indexsave.value[0]].children[savaIndex].endTime;
|
||
let positioning = timearr.value[indexsave.value[0]].positioning;
|
||
const rest = startTime.substring(startTime.indexOf(":"));
|
||
const rest0 = endTime.substring(endTime.indexOf(":"));
|
||
timearr.value[indexsave.value[0]].children[savaIndex].startTime = positioning + rest;
|
||
timearr.value[indexsave.value[0]].children[savaIndex].endTime = positioning + rest0;
|
||
const shouldAdd = timearr.value.some((obj) => {
|
||
const children = obj.children;
|
||
return children[children.length - 1].directiveName.trim() !== "";
|
||
});
|
||
if (shouldAdd) {
|
||
timearr.value.forEach((obj) => {
|
||
obj.children.push({ directiveName: "" });
|
||
});
|
||
scrollTop.value = 999;
|
||
scrollTop.value = 9999;
|
||
}
|
||
saveAll();
|
||
}
|
||
};
|
||
common_vendor.ref(null);
|
||
const movetoruler = async () => {
|
||
songisopen.value = false;
|
||
isweek.value = true;
|
||
let savaIndex = -1;
|
||
let emptyChildIndices = [];
|
||
if (openOp.value === 2) {
|
||
scrollLeft.value = 1;
|
||
common_vendor.nextTick$1(() => {
|
||
scrollLeft.value = 0;
|
||
bottomItems.value.unshift({
|
||
name: cardsumit.value.op.name,
|
||
url: "/static/index/ou.png",
|
||
target: `#00a8ff`
|
||
});
|
||
setTimeout(() => {
|
||
bottomItems.value[0].target = `#fff`;
|
||
}, 1500);
|
||
setTimeout(() => {
|
||
bottomItems.value[0].target = "";
|
||
}, 3e3);
|
||
});
|
||
return;
|
||
}
|
||
timearr.value.forEach((res, rowIndex) => {
|
||
emptyChildIndices = [];
|
||
res.children.forEach((child, index2) => {
|
||
if (child.directiveName === null || child.directiveName === "" || child.directiveName === void 0) {
|
||
const isEmptyInAllRows = timearr.value.every((otherRes) => {
|
||
const otherChild = otherRes.children[index2];
|
||
return otherChild === void 0 || otherChild.directiveName === null || otherChild.directiveName === "" || otherChild.directiveName === void 0;
|
||
});
|
||
if (isEmptyInAllRows) {
|
||
emptyChildIndices.push(index2);
|
||
}
|
||
}
|
||
});
|
||
res.children.forEach((item, index2) => {
|
||
if (item.typeName == bigArray.value[cardsumit.value.op.index[0]].children[cardsumit.value.op.index[1]].title) {
|
||
savaIndex = index2;
|
||
}
|
||
});
|
||
});
|
||
if (savaIndex === -1) {
|
||
savaIndex = emptyChildIndices[0];
|
||
}
|
||
let savetypeName = bigArray.value[cardsumit.value.op.index[0]].children[cardsumit.value.op.index[1]].title;
|
||
await common_vendor.nextTick$1();
|
||
timearr.value.forEach((element, index2) => {
|
||
element.children[savaIndex].typeName = savetypeName;
|
||
});
|
||
let cycleType = "";
|
||
if (!openOp.value) {
|
||
cycleType = "日常";
|
||
} else if (openOp.value === 1) {
|
||
cycleType = cardsumit.value.weekTime || cardsumit.value.monthTime + "号";
|
||
}
|
||
const startHour = Number(openValue.value.time);
|
||
const startMinute = Number(cardsumit.value.startTime);
|
||
const endMinute = startMinute + 10;
|
||
const endHour = startHour + Math.floor(endMinute / 60);
|
||
const formattedStart = `${String(startHour)}:${String(startMinute).padStart(2, "0")}`;
|
||
const formattedEnd = `${String(endHour)}:${String(endMinute % 60).padStart(2, "0")}`;
|
||
if (savaIndex !== -1) {
|
||
timearr.value[indexsave.value[0]].children[savaIndex].startTime = formattedStart;
|
||
timearr.value[indexsave.value[0]].children[savaIndex].endTime = formattedEnd;
|
||
} else {
|
||
timearr.value[indexsave.value[0]].children[indexsave.value[1]].startTime = formattedStart;
|
||
timearr.value[indexsave.value[0]].children[indexsave.value[1]].endTime = formattedEnd;
|
||
}
|
||
let param = {
|
||
directiveId: saveId.value,
|
||
directiveName: cardsumit.value.op.name,
|
||
startTime: formattedStart,
|
||
endTime: formattedEnd,
|
||
positioning: indexsave.value[0].toString(),
|
||
positioningLong: indexsave.value[1].toString(),
|
||
tagName: saveTagName.value,
|
||
cycleType,
|
||
nuId: "1",
|
||
customerId: "1",
|
||
id: "",
|
||
typeName: savetypeName
|
||
};
|
||
timearr.value[indexsave.value[0]].children[savaIndex] = param;
|
||
timearr.value.forEach((element) => {
|
||
element.children.forEach((res) => {
|
||
});
|
||
});
|
||
let data = {
|
||
index0: indexsave.value[0],
|
||
index1: savaIndex
|
||
};
|
||
whereEvent(data);
|
||
const shouldAdd = timearr.value.some((obj) => {
|
||
const children = obj.children;
|
||
return children[children.length - 1].directiveName.trim() !== "";
|
||
});
|
||
if (shouldAdd) {
|
||
timearr.value.forEach((obj) => {
|
||
obj.children.push({ directiveName: "" });
|
||
});
|
||
scrollTop.value = 999;
|
||
common_vendor.nextTick$1();
|
||
scrollTop.value = 9999;
|
||
}
|
||
saveAll();
|
||
};
|
||
const saveAll = () => {
|
||
timearr.value.forEach((element0, index0) => {
|
||
element0.children.forEach((element1, index1) => {
|
||
let saveTypeName = "";
|
||
if (!element1.directiveName && !element1.id) {
|
||
let array = {};
|
||
if (element1.typeName) {
|
||
saveTypeName = element1.typeName;
|
||
}
|
||
array = JSON.parse(JSON.stringify(moBan.value));
|
||
saveTypeName ? array.typeName = saveTypeName : "";
|
||
array.positioning = index0;
|
||
array.positioningLong = index1;
|
||
} else {
|
||
element1.positioning = index0;
|
||
element1.positioningLong = index1;
|
||
}
|
||
});
|
||
});
|
||
};
|
||
const routerPush = () => {
|
||
common_vendor.index.setStorage({
|
||
key: "myArray",
|
||
data: timearr.value,
|
||
success: function() {
|
||
common_vendor.index.navigateTo({
|
||
url: `/pages/timeMatrix/index?currentNumber=${currentNumber.value}`
|
||
});
|
||
}
|
||
// fail: function (err) {
|
||
// uni.__f__('error','at component/rightItemssecond/index.vue:1409','缓存失败:', err);
|
||
// }
|
||
});
|
||
};
|
||
const saveRulerTime = common_vendor.ref({
|
||
index0: -1,
|
||
index1: -1
|
||
});
|
||
const targetRuler = common_vendor.ref({
|
||
index0: -1,
|
||
index1: -1,
|
||
current: -1,
|
||
bordershow: true
|
||
});
|
||
const whereEvent = (data) => {
|
||
scrollTop.value = 0;
|
||
scrollTop.value = data.index1 * 104;
|
||
if (currentNumber.value === Math.floor(data.index0 / 6)) {
|
||
targetRuler.value.index0 = data.index0 - currentNumber.value * 6;
|
||
targetRuler.value.index1 = data.index1;
|
||
saveRulerTime.value.index0 = targetRuler.value.index0;
|
||
saveRulerTime.value.index1 = targetRuler.value.index1;
|
||
targetRuler.value.current = currentNumber.value;
|
||
targetRuler.value.bordershow = false;
|
||
setTimeout(() => {
|
||
targetRuler.value.index0 = -1;
|
||
targetRuler.value.index1 = -1;
|
||
targetRuler.value.current = -1;
|
||
}, 400);
|
||
setTimeout(() => {
|
||
targetRuler.value.bordershow = true;
|
||
saveRulerTime.value.index0 = -1;
|
||
saveRulerTime.value.index1 = -1;
|
||
}, 1e3);
|
||
} else {
|
||
setTimeout(() => {
|
||
currentNumber.value = Math.floor(data.index0 / 6);
|
||
}, 100);
|
||
setTimeout(() => {
|
||
targetRuler.value.index0 = data.index0 - currentNumber.value * 6;
|
||
targetRuler.value.index1 = data.index1;
|
||
saveRulerTime.value.index0 = targetRuler.value.index0;
|
||
saveRulerTime.value.index1 = targetRuler.value.index1;
|
||
targetRuler.value.current = currentNumber.value;
|
||
targetRuler.value.bordershow = false;
|
||
}, 800);
|
||
setTimeout(() => {
|
||
targetRuler.value.index0 = -1;
|
||
targetRuler.value.index1 = -1;
|
||
targetRuler.value.current = -1;
|
||
}, 1400);
|
||
setTimeout(() => {
|
||
targetRuler.value.bordershow = true;
|
||
saveRulerTime.value.index0 = -1;
|
||
saveRulerTime.value.index1 = -1;
|
||
}, 2200);
|
||
}
|
||
};
|
||
common_vendor.onShow(() => {
|
||
bigArray.value = component_rightItemssecond_yaoshandiao.myArray;
|
||
downList.value = bigArray.value[0].children;
|
||
common_vendor.index.$on("where", whereEvent);
|
||
});
|
||
common_vendor.onHide(() => {
|
||
common_vendor.index.$off("where", whereEvent);
|
||
});
|
||
__expose({
|
||
rulerEnd,
|
||
rulerMoveEnd,
|
||
nextItems
|
||
});
|
||
common_vendor.ref({
|
||
index0: 999,
|
||
index1: 999
|
||
});
|
||
const moBan = common_vendor.ref({
|
||
directiveId: "",
|
||
directiveName: "",
|
||
startTime: "",
|
||
endTime: "",
|
||
positioning: "",
|
||
positioningLong: "",
|
||
tagName: "",
|
||
cycleType: "",
|
||
nuId: "1",
|
||
customerId: "1",
|
||
id: "",
|
||
typeName: ""
|
||
});
|
||
const timearr = common_vendor.ref(
|
||
Array.from({ length: 24 }, (_, hour) => ({
|
||
positioning: hour.toString(),
|
||
children: Array.from({ length: 4 }, () => ({ directiveName: "" }))
|
||
}))
|
||
);
|
||
function splitString(str) {
|
||
let result = [];
|
||
let remainingStr = str;
|
||
let regex = /([^((]*)[((]([^))]+)[))]/;
|
||
while (regex.test(remainingStr)) {
|
||
let match = remainingStr.match(regex);
|
||
if (match) {
|
||
if (match[1].trim()) {
|
||
result.push(match[1].trim());
|
||
}
|
||
if (match[2].trim()) {
|
||
result.push(match[2].trim());
|
||
}
|
||
remainingStr = remainingStr.replace(match[0], "").trim();
|
||
}
|
||
}
|
||
if (remainingStr.trim()) {
|
||
result.push(remainingStr.trim());
|
||
}
|
||
return result;
|
||
}
|
||
return (_ctx, _cache) => {
|
||
var _a, _b, _c, _d;
|
||
return common_vendor.e({
|
||
a: common_vendor.n(__props.darkFans ? `right-container-title-no-dark` : `right-container-title-no`),
|
||
b: common_vendor.n(__props.darkFans ? `right-container-title-no-dark` : `right-container-title-no`),
|
||
c: `/static/index/undericons/man.png`,
|
||
d: common_vendor.n(__props.darkFans ? `right-icons-font-dark` : `right-icons-font`),
|
||
e: __props.darkFans ? `/static/index/undericons/face.png` : `/static/index/undericons/facelight.png`,
|
||
f: __props.darkFans ? `/static/index/undericons/hand.png` : `/static/index/undericons/handlight.png`,
|
||
g: __props.darkFans ? `/static/index/undericons/out.png` : `/static/index/undericons/outlight.png`,
|
||
h: common_vendor.o(($event) => newchange(2)),
|
||
i: common_vendor.o(shareToWeixin),
|
||
j: common_vendor.f(rightList.value, (item, index2, i0) => {
|
||
return {
|
||
a: common_vendor.t(item),
|
||
b: common_vendor.n(rightListIndex.value === index2 ? `doctorsay-container-button-target` : `doctorsay-container-button`),
|
||
c: common_vendor.o(($event) => rightListClick(index2), index2),
|
||
d: index2
|
||
};
|
||
}),
|
||
k: common_vendor.o(routerPush),
|
||
l: common_vendor.f(timearr.value[0].children, (item, index2, i0) => {
|
||
return {
|
||
a: common_vendor.t(item.typeName),
|
||
b: common_vendor.n(touchindex1.value === index2 || __props.liang.index1 === index2 && !__props.canmove || flyNumber.value.index1 === index2 && shakyTable.value ? `boom-son-target` : `boom-son`),
|
||
c: item.typeName,
|
||
d: index2
|
||
};
|
||
}),
|
||
m: `-${2 * moveDownNumber.value}rpx`,
|
||
n: common_vendor.f([1, 2, 3, 4], (item, index2, i0) => {
|
||
return {
|
||
a: common_vendor.f(timearr.value.slice(index2 * 6, (index2 + 1) * 6), (item0, index0, i1) => {
|
||
return {
|
||
a: common_vendor.t((item0.positioning.length == 1 ? "0" + item0.positioning : item0.positioning) + ":00"),
|
||
b: index0
|
||
};
|
||
}),
|
||
b: common_vendor.f(timearr.value.slice(index2 * 6, (index2 + 1) * 6), (item0, index0, i1) => {
|
||
return {
|
||
a: common_vendor.f(item0.children, (item1, index1, i2) => {
|
||
return common_vendor.e({
|
||
a: item1.directiveName && shakyTable.value
|
||
}, item1.directiveName && shakyTable.value ? {
|
||
b: __props.liang.index0 !== index0 || __props.liang.index1 !== index1 || __props.canmove,
|
||
c: common_vendor.o(($event) => deleteItems(item1, index0, index1), index1)
|
||
} : {}, {
|
||
d: getRed(index0, index1) ? `/static/index/movemode/targetcheng.png` : `/static/index/movemode/target.png`,
|
||
e: getBlue(index0, index1),
|
||
f: item1.startTime
|
||
}, item1.startTime ? {
|
||
g: common_vendor.t(item1.startTime + `-` + item1.endTime),
|
||
h: item1.cycleType == "日常" ? `/static/index/yellowbian.png` : `/static/index/puoplebian.png`,
|
||
i: common_vendor.t(item1.cycleType),
|
||
j: __props.liang.index0 !== index0 || __props.liang.index1 !== index1 || __props.canmove
|
||
} : {}, {
|
||
k: common_vendor.t(splitString(item1.directiveName)[0]),
|
||
l: __props.liang.index0 !== index0 || __props.liang.index1 !== index1 || __props.canmove,
|
||
m: splitString(item1.directiveName)[1]
|
||
}, splitString(item1.directiveName)[1] ? {
|
||
n: common_vendor.f(splitString(item1.directiveName).slice(1), (item2, index3, i3) => {
|
||
return {
|
||
a: common_vendor.t(splitString(item1.directiveName)[index3 + 1]),
|
||
b: index3
|
||
};
|
||
}),
|
||
o: common_vendor.s(item1.cycleType != "日常" ? {
|
||
backgroundColor: `rgb(123,97,255)`
|
||
} : {}),
|
||
p: __props.liang.index0 !== index0 || __props.liang.index1 !== index1 || __props.canmove,
|
||
q: common_vendor.s(item1.cycleType != "日常" ? {
|
||
backgroundColor: `rgb(212,203,255)`
|
||
} : {})
|
||
} : {}, {
|
||
r: common_vendor.n(getClass(item1, index0, index1)),
|
||
s: `-${computeDelay(index0, index1).toFixed(2)}s`,
|
||
t: common_vendor.n(targetRuler.value.current === currentNumber.value && targetRuler.value.index0 === index0 && targetRuler.value.index1 === index1 ? targetRuler.value.index1 ? `title-time-border-big` : `title-time-border-big-top` : `super-card-time-card`),
|
||
v: common_vendor.s(!targetRuler.value.bordershow && saveRulerTime.value.index0 === index0 && saveRulerTime.value.index1 === index1 ? {
|
||
zIndex: 999
|
||
} : {
|
||
borderTop: "1rpx solid transparent"
|
||
}),
|
||
w: `a${index0}_${index1}`,
|
||
x: common_vendor.o(($event) => rulerTouchClick(item1, index0, index1), index1),
|
||
y: common_vendor.o(($event) => rulerTouchStart(item1, index0, index1, $event), index1),
|
||
z: common_vendor.o(rulerTouchMove, index1),
|
||
A: common_vendor.o(($event) => rulerTouchEnd(), index1),
|
||
B: index1,
|
||
C: index1
|
||
});
|
||
}),
|
||
b: index0,
|
||
c: index0
|
||
};
|
||
}),
|
||
c: common_vendor.o(handleScrolltime, index2),
|
||
d: index2
|
||
};
|
||
}),
|
||
o: common_vendor.s(rightListIndex.value ? {
|
||
width: "274rpx"
|
||
} : {
|
||
width: "206rpx"
|
||
}),
|
||
p: common_vendor.s(rightListIndex.value ? {
|
||
width: "274rpx"
|
||
} : {
|
||
width: "206rpx"
|
||
}),
|
||
q: scrollTop.value,
|
||
r: __props.canmove && !shakyTable.value,
|
||
s: common_vendor.s(rightListIndex.value ? {
|
||
width: "6700rpx"
|
||
} : {
|
||
width: "5000rpx"
|
||
}),
|
||
t: !__props.canmove || shakyTable.value,
|
||
v: currentNumber.value,
|
||
w: common_vendor.o(changecurrentNumber),
|
||
x: common_vendor.f(bottomItems.value, (item, index2, i0) => {
|
||
return {
|
||
a: common_vendor.o(($event) => deletebottom(index2, item.name), index2),
|
||
b: item.url,
|
||
c: `-${index2 * 0.1}s`,
|
||
d: common_vendor.t(item.name),
|
||
e: common_vendor.o(bottomTouchStart, index2),
|
||
f: common_vendor.o(bottomTouchMove, index2),
|
||
g: common_vendor.o(bottomTouchEnd, index2),
|
||
h: common_vendor.s(item.target ? {
|
||
background: item.target,
|
||
transition: `all 1.5s ease-in-out`
|
||
} : {
|
||
transition: `all 1.5s ease-in-out`
|
||
}),
|
||
i: index2
|
||
};
|
||
}),
|
||
y: bottomisShaking.value,
|
||
z: common_vendor.n(bottomisShaking.value ? `super-end-items-img-father-active` : `super-end-items-img-father`),
|
||
A: scrollLeft.value,
|
||
B: common_vendor.f(doctorsayList.value, (item, index2, i0) => {
|
||
return {
|
||
a: index2 === upmenuIndex.value ? item.targetUrl : item.url,
|
||
b: common_vendor.t(item.name),
|
||
c: common_vendor.n(index2 === upmenuIndex.value ? `doctorsay-container-card-font-dark` : `doctorsay-container-card-font`),
|
||
d: common_vendor.s(index2 === upmenuIndex.value ? {
|
||
background: "linear-gradient(to right bottom, #00c9ff, #0076ff)"
|
||
} : {}),
|
||
e: index2,
|
||
f: common_vendor.o(($event) => changLeft(index2), index2)
|
||
};
|
||
}),
|
||
C: common_assets._imports_0$4,
|
||
D: common_vendor.f(downList.value, (item, index2, i0) => {
|
||
return {
|
||
a: common_vendor.t(item.title),
|
||
b: common_vendor.n(downmenuIndex.value === index2 ? `doctorsay-container-text-target` : `doctorsay-container-text`),
|
||
c: item.color ? item.color : "",
|
||
d: downmenuIndex.value === index2,
|
||
e: common_vendor.o(($event) => downmenuIndex.value = index2, index2),
|
||
f: common_vendor.o(($event) => handleTouchStart(item, index2, $event), index2),
|
||
g: common_vendor.o(handleTouchMove, index2),
|
||
h: common_vendor.o(handleTouchEnd, index2),
|
||
i: index2
|
||
};
|
||
}),
|
||
E: common_vendor.s(isBack.value ? {} : {
|
||
width: "250rpx",
|
||
height: "75rpx",
|
||
fontSize: "30rpx",
|
||
borderRadius: "25rpx"
|
||
}),
|
||
F: common_vendor.s(isBack.value ? {} : {
|
||
top: "30rpx"
|
||
}),
|
||
G: `/static/index/cardicons/uplight.png`,
|
||
H: __props.canmove,
|
||
I: common_vendor.o(handleScroll),
|
||
J: `/static/index/teeth.png`,
|
||
K: common_vendor.t((_b = (_a = timearr.value[flyNumber.value.index0]) == null ? void 0 : _a.children[flyNumber.value.index1]) == null ? void 0 : _b.value),
|
||
L: 2 * openY.value - 350 + "rpx",
|
||
M: 2 * openX.value - 780 + "rpx",
|
||
N: isopacity.value ? 1 : 0,
|
||
O: ((_d = (_c = timearr.value[flyNumber.value.index0]) == null ? void 0 : _c.children[flyNumber.value.index1]) == null ? void 0 : _d.type) === "日常" ? "#fffcf6" : "rgb(246, 244, 254)",
|
||
P: common_vendor.o(() => {
|
||
}),
|
||
Q: isopen.value,
|
||
R: common_vendor.o(($event) => {
|
||
isopen.value = false;
|
||
flyNumber.value.index0 = 999;
|
||
touchindex1.value = -1;
|
||
}),
|
||
S: songisopen.value
|
||
}, songisopen.value ? {
|
||
T: common_assets._imports_0$3,
|
||
U: common_vendor.t(openValue.value.time + ":00"),
|
||
V: common_vendor.f(openValue.value.array, (item, index2, i0) => {
|
||
return {
|
||
a: item.cycleType === "日常护理",
|
||
b: cardsumit.value.op.index[2] !== index2 ? `/static/index/ridark.png` : `/static/index/ri.png`,
|
||
c: item.cycleType === "周期护理",
|
||
d: cardsumit.value.op.index[2] == index2 ? `/static/index/zhoudark.png` : `/static/index/zhou.png`,
|
||
e: item.cycleType === "即时护理",
|
||
f: cardsumit.value.op.index[2] == index2 ? `/static/index/jidark.png` : `/static/index/ji.png`,
|
||
g: common_vendor.t(item.relName),
|
||
h: common_vendor.n(cardsumit.value.op.index[2] === index2 ? `arrayindex-one-target` : `arrayindex-one`),
|
||
i: common_vendor.o(($event) => clickOp(index2, item), index2),
|
||
j: index2
|
||
};
|
||
}),
|
||
W: openOp.value != 2,
|
||
X: common_vendor.f(timeArray, (item, index2, i0) => {
|
||
return {
|
||
a: common_vendor.t(item),
|
||
b: Number(item) >= 50,
|
||
c: common_vendor.t(item),
|
||
d: Number(item) < 50,
|
||
e: common_vendor.n(cardsumit.value.startTime === item ? `time-one-target` : `time-one`),
|
||
f: common_vendor.o(($event) => clickTime(item), index2),
|
||
g: index2
|
||
};
|
||
}),
|
||
Y: openOp.value != 2,
|
||
Z: openOp.value == 1,
|
||
aa: common_vendor.n(isweek.value ? `radio-circle-target` : `radio-circle`),
|
||
ab: common_vendor.o(($event) => {
|
||
isweek.value = true;
|
||
cardsumit.value.monthTime = "";
|
||
}),
|
||
ac: common_vendor.o(($event) => {
|
||
isweek.value = true;
|
||
cardsumit.value.monthTime = "";
|
||
}),
|
||
ad: common_vendor.n(!isweek.value ? `radio-circle-target` : `radio-circle`),
|
||
ae: common_vendor.o(($event) => {
|
||
isweek.value = false;
|
||
cardsumit.value.weekTime = "";
|
||
}),
|
||
af: common_vendor.o(($event) => {
|
||
isweek.value = false;
|
||
cardsumit.value.weekTime = "";
|
||
}),
|
||
ag: openOp.value == 1,
|
||
ah: common_vendor.f(weekDays, (item, index2, i0) => {
|
||
return {
|
||
a: common_vendor.t(item),
|
||
b: common_vendor.n(cardsumit.value.weekTime === item ? `week-one-target` : `week-one`),
|
||
c: common_vendor.o(($event) => clickweek(item), index2),
|
||
d: index2
|
||
};
|
||
}),
|
||
ai: isweek.value && openOp.value == 1,
|
||
aj: common_vendor.f(common_vendor.unref(days), (item, index2, i0) => {
|
||
return {
|
||
a: common_vendor.t(item),
|
||
b: common_vendor.n(cardsumit.value.monthTime === item ? `month-one-target` : `month-one`),
|
||
c: common_vendor.o(($event) => clickmonth(item), index2),
|
||
d: index2
|
||
};
|
||
}),
|
||
ak: !isweek.value && openOp.value == 1,
|
||
al: common_vendor.o(movetoruler),
|
||
am: isblue(),
|
||
an: !isblue(),
|
||
ao: common_vendor.o(($event) => songisopen.value = false),
|
||
ap: songisopacity.value ? 1 : 0,
|
||
aq: common_vendor.o(() => {
|
||
}),
|
||
ar: common_vendor.o(($event) => songisopen.value = false)
|
||
} : {}, {
|
||
as: common_assets._imports_1$3,
|
||
at: common_vendor.t(deletename.value),
|
||
av: common_vendor.o(($event) => deleteisopen.value = false),
|
||
aw: common_vendor.o(($event) => deleteRuler(deleteindex.value[0], deleteindex.value[1])),
|
||
ax: deleteisopacity.value ? 1 : 0,
|
||
ay: common_vendor.o(() => {
|
||
}),
|
||
az: deleteisopen.value,
|
||
aA: common_vendor.o(($event) => deleteisopen.value = false),
|
||
aB: common_assets._imports_1$3,
|
||
aC: common_vendor.t(deletename.value),
|
||
aD: common_vendor.o(($event) => deletedownisopen.value = false),
|
||
aE: common_vendor.o(($event) => {
|
||
bottomItems.value.splice(deletebottomindex.value, 1);
|
||
deletedownisopen.value = false;
|
||
}),
|
||
aF: deletedownisopacity.value ? 1 : 0,
|
||
aG: common_vendor.o(() => {
|
||
}),
|
||
aH: deletedownisopen.value,
|
||
aI: common_vendor.o(($event) => deletedownisopen.value = false),
|
||
aJ: common_assets._imports_11,
|
||
aK: common_assets._imports_11,
|
||
aL: common_vendor.o(clickshare),
|
||
aM: deletedownisopacity.value ? 1 : 0,
|
||
aN: common_vendor.o(() => {
|
||
}),
|
||
aO: shareShow.value,
|
||
aP: common_vendor.o(($event) => shareShow.value = false),
|
||
aQ: common_vendor.s(__props.isshow ? {
|
||
opacity: `1`
|
||
} : {
|
||
opacity: `0`
|
||
}),
|
||
aR: common_vendor.o(($event) => {
|
||
bottomisShaking.value = false;
|
||
shakyTable.value = false;
|
||
})
|
||
});
|
||
};
|
||
}
|
||
});
|
||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-337bb5da"]]);
|
||
wx.createComponent(Component);
|
||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/component/rightItemssecond/index.js.map
|