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: "";
|