diff --git a/pages/NursingNew/component/index.vue b/pages/NursingNew/component/index.vue index b252a17..a3e5dd6 100644 --- a/pages/NursingNew/component/index.vue +++ b/pages/NursingNew/component/index.vue @@ -148,217 +148,15 @@ type: Boolean, required: true, }, - propsmove: { - type: Number - }, - isMain: { - type: Boolean - } + }); - const movetype = ref(-1); - // 监听 isMain 的变化,但只在 isShow 为 true 时响应 - watch( - () => props.isMain, - (newVal, oldVal) => { - // 如果不是从一个明确的布尔值变到另一个(例如首次 undefined -> 布尔),可以按需忽略 - if (typeof oldVal !== 'boolean') return - // 仅在 isShow 为 true 时生效 - if (!props.isShow) return - - if (lanjie.value) { - lanjie.value = false - // console.log("!!!!!!!", movetype.value, - // zeroIndex.value, - // typeNow.value) - return - } - - if (oldVal === true && newVal === false) { - movetype.value = 0; - zeroIndex.value = 0; - typeNow.value = zeroIndex.value; - // console.log("isActive?") - } else if (oldVal === false && newVal === true) { - movetype.value = -1 - zeroIndex.value = -1 - typeNow.value = 0 - console.log("?????") - } - } - ) - const zeroIndex = ref(-1) - const emit = defineEmits(['back', 'cleanmain']) - const savetopindex = ref(0) - watch( - () => props.propsmove, - () => { - if (movetype.value != -1) { - switch (movetype.value) { - case 0: - switch (props.propsmove) { - case 0: - movetype.value = -1 - zeroIndex.value = -1 - - emit("back") - - break; - case 1: - - if (zeroIndex.value < typeArray.value.length - 1) { - zeroIndex.value++ - typeNow.value = zeroIndex.value; - } - - break; - case 2: - savetopindex.value = zeroIndex.value; - movetype.value = 1 - zeroIndex.value = 0 - break; - - case 3: - if (zeroIndex.value) { - zeroIndex.value-- - typeNow.value = zeroIndex.value; - } else { - movetype.value = -1 - zeroIndex.value = -1 - emit("back") - } - - break; - case 4: - typeNow.value = zeroIndex.value; - - break; - default: - } - break; - case 1: - - switch (props.propsmove) { - case 0: - if (zeroIndex.value) { - zeroIndex.value-- - } else { - movetype.value = 0 - // zeroIndex.value = 0 - // typeNow.value = zeroIndex.value; - zeroIndex.value = savetopindex.value - typeNow.value = savetopindex.value; - } - - break; - case 1: - zeroIndex.value = 0 - movetype.value = 2 - - break; - case 2: - if (zeroIndex.value < 2) { - zeroIndex.value++ - } else { - zeroIndex.value = 0 - movetype.value = 3 - } - break; - - case 3: - - movetype.value = -1 - zeroIndex.value = -1 - emit("back") - - break; - default: - } - break; - case 2: - - switch (props.propsmove) { - case 0: - if (zeroIndex.value) { - zeroIndex.value-- - } else { - movetype.value = 0 - // zeroIndex.value = 0 - // typeNow.value = zeroIndex.value; - zeroIndex.value = savetopindex.value - typeNow.value = savetopindex.value; - } - - break; - case 1: - zeroIndex.value = 0 - movetype.value = 3 - - break; - case 2: - if (zeroIndex.value < 2) { - zeroIndex.value++ - } else { - zeroIndex.value = 0 - movetype.value = 3 - } - break; - - case 3: - zeroIndex.value = 0 - movetype.value = 1 - - break; - default: - } - break; - case 3: - - switch (props.propsmove) { - case 0: - zeroIndex.value = 0 - movetype.value = 1 - - break; - case 1: - - if (zeroIndex.value === 0) { - zeroIndex.value++ - } else { - zeroIndex.value = 2 - movetype.value = 2 - } - break; - case 2: - - break; - - case 3: - if (zeroIndex.value === 1) { - zeroIndex.value-- - } else { - zeroIndex.value = 2 - movetype.value = 1 - } - - break; - default: - } - break; - default: - } - } - - } - ) const typeNow = ref(-1); const photoplay = ref(false) const downArray = ref() const scrollTop = ref(0); - const ceshi = () => { - console.log("ceshi") - } + function onScroll(e) { // e.detail.scrollTop 就是当前滚动距离 scrollTop.value = e.detail.scrollTop @@ -385,18 +183,6 @@ url: "/static/index/newindex/rightmenu/2.png", name: '协助执行' }, - // { - // url: "/static/index/newindex/rightmenu/0.png", - // name: '重点追踪' - // }, - // { - // url: "/static/index/newindex/rightmenu/1.png", - // name: '转单执行' - // }, - // { - // url: "/static/index/newindex/rightmenu/2.png", - // name: '协助执行' - // }, ]) const downStates = ref([ { @@ -456,79 +242,7 @@ ...basesmall, ...[...basesmall].reverse() // 先拷贝一份再反转,避免修改原 base ]) - const typeArray = ref([ - { - url: genPaths( - '/static/index/newindex/huli', - 'care', - 8, // 张数 - 'png', - 0, // 起始索引为 1 - false // 不补零 - ), name: '护理类' - }, - { - url: genPaths( - '/static/index/newindex/yiliao', - 'health_', - 8, // 张数 - 'png', - 1, // 起始索引为 1 - false // 不补零 - ), name: '医疗类' - - }, - { - - url: genPaths( - '/static/index/newindex/kufang', - 'storeroom_', - 11, // 张数 - 'png', - 1, // 起始索引为 1 - false // 不补零 - ), name: '库房类' - - }, - { - - url: genPaths( - '/static/index/newindex/baojie', - 'clean_', - 12, // 张数 - 'png', - 1, // 起始索引为 1 - false // 不补零 - ), name: '保洁类' - - }, - { - - url: genPaths( - '/static/index/newindex/xiaoxi', - 'wash_', - 14, // 张数 - 'png', - 1, // 起始索引为 1 - false // 不补零 - ), name: '消洗类' - - }, - { - - url: genPaths( - '/static/index/newindex/kangfu', - 'recovery_', - 6, // 张数 - 'png', - 1, // 起始索引为 1 - false // 不补零 - ), name: '康复类' - - }, - - ]) // 使用watch监听isShow变化 const transition = ref(false); @@ -586,13 +300,13 @@ photoplay.value = true; }) const lanjie = ref(false); - const clean = () => { - if (movetype.value == -1) { - lanjie.value = true; - emit("cleanmain") - } + // const clean = () => { + // if (movetype.value == -1) { + // lanjie.value = true; + // emit("cleanmain") + // } - } + // } \ No newline at end of file diff --git a/static/index/warehouse/t1.png b/static/index/warehouse/t1.png new file mode 100644 index 0000000..ab70cc3 Binary files /dev/null and b/static/index/warehouse/t1.png differ diff --git a/static/index/warehouse/t2.png b/static/index/warehouse/t2.png new file mode 100644 index 0000000..0e41cbd Binary files /dev/null and b/static/index/warehouse/t2.png differ diff --git a/static/index/warehouse/t3.png b/static/index/warehouse/t3.png new file mode 100644 index 0000000..32eb312 Binary files /dev/null and b/static/index/warehouse/t3.png differ diff --git a/static/index/warehouse/t4.png b/static/index/warehouse/t4.png new file mode 100644 index 0000000..3df8b67 Binary files /dev/null and b/static/index/warehouse/t4.png differ