From b6f313ed78f784f4bbc22385f1d96298392b098b Mon Sep 17 00:00:00 2001 From: ctw <> Date: Wed, 15 Jan 2025 22:03:48 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/canteen/canteenDailyMenu/form.vue | 82 +++++++++++---------- 1 file changed, 42 insertions(+), 40 deletions(-) diff --git a/src/views/canteen/canteenDailyMenu/form.vue b/src/views/canteen/canteenDailyMenu/form.vue index 105a7b3..7ae28b5 100644 --- a/src/views/canteen/canteenDailyMenu/form.vue +++ b/src/views/canteen/canteenDailyMenu/form.vue @@ -92,46 +92,48 @@ - - - - - - - - - - - - - - - - - - - - - - - - - +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
- \ No newline at end of file + diff --git a/src/views/canteen/canteenDailyMenu/index.vue b/src/views/canteen/canteenDailyMenu/index.vue index ddf45a1..44ae245 100644 --- a/src/views/canteen/canteenDailyMenu/index.vue +++ b/src/views/canteen/canteenDailyMenu/index.vue @@ -55,7 +55,12 @@ 晚餐
- +
{{ item.name }} | From 628fa5bfdc1abae8a2e23aab8312dc26c7d3a780 Mon Sep 17 00:00:00 2001 From: ctw <> Date: Thu, 16 Jan 2025 09:54:43 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E4=BD=BF=E7=94=A8=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E6=87=92=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/PreviewImage/index.vue | 98 +++++++++++--------- src/views/canteen/canteenDailyMenu/index.vue | 12 ++- 2 files changed, 61 insertions(+), 49 deletions(-) diff --git a/src/components/PreviewImage/index.vue b/src/components/PreviewImage/index.vue index ad3044a..a20361b 100644 --- a/src/components/PreviewImage/index.vue +++ b/src/components/PreviewImage/index.vue @@ -1,72 +1,78 @@ - \ No newline at end of file + diff --git a/src/views/canteen/canteenDailyMenu/index.vue b/src/views/canteen/canteenDailyMenu/index.vue index ddf45a1..fd89d14 100644 --- a/src/views/canteen/canteenDailyMenu/index.vue +++ b/src/views/canteen/canteenDailyMenu/index.vue @@ -12,7 +12,7 @@ v-for="(item, index) in weekData.data" :key="index" @click="timeClick(item, index)" - :class="{ selectedSpan: isActive === index ? 'selected' : '' }" + :class="{ selectedSpan: isActive === index }" class="border-2 border-solid border-gray-200 text-center" > {{ item }} @@ -55,7 +55,12 @@ 晚餐
- +
{{ item.name }} | @@ -114,7 +119,7 @@ const addFood = async (hourType: number) => { //选中具体时间数据 const timeClick = async (time: string, index: number) => { //数据查询操作 - if (time) { + if (time && isActive.value !== index) { //时间处理 time = time.substring(0, time.indexOf("(")) timedata = time @@ -265,6 +270,7 @@ onMounted(async () => { border-left: 2px solid transparent; color: rgb(255, 187, 0); position: relative; + cursor: default; } .selectedSpan::before { content: ""; From 03f52b4a57b7348c2d7b903065b962579b96b41f Mon Sep 17 00:00:00 2001 From: ctw <> Date: Thu, 16 Jan 2025 10:18:43 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=AF=8F=E6=97=A5?= =?UTF-8?q?=E8=8F=9C=E5=93=81=E5=88=A0=E9=99=A4=E6=8F=90=E7=A4=BA=E3=80=82?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=8A=A0=E8=BD=BD=E9=BB=98=E8=AE=A4=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E5=BD=93=E6=97=A5=E6=95=B0=E6=8D=AE=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/canteen/canteenDailyMenu/index.vue | 36 +++++++++++++------- 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/src/views/canteen/canteenDailyMenu/index.vue b/src/views/canteen/canteenDailyMenu/index.vue index fd89d14..e2db1a6 100644 --- a/src/views/canteen/canteenDailyMenu/index.vue +++ b/src/views/canteen/canteenDailyMenu/index.vue @@ -79,6 +79,7 @@