暂无图片
@@ -62,12 +59,13 @@
-
-
diff --git a/src/components/Food/FoodRecipeList.vue b/src/components/Food/FoodRecipeList.vue
deleted file mode 100644
index bd77b0d..0000000
--- a/src/components/Food/FoodRecipeList.vue
+++ /dev/null
@@ -1,45 +0,0 @@
-
-
-
-
-
diff --git a/src/styles/home/food.mobile.module.scss b/src/styles/home/food.mobile.module.scss
index 80d3406..11107c9 100644
--- a/src/styles/home/food.mobile.module.scss
+++ b/src/styles/home/food.mobile.module.scss
@@ -4,17 +4,10 @@
gap: 10px;
.food-list {
- position: relative;
display: flex;
flex-direction: column;
justify-content: space-between;
//align-items: center;
- gap: 1vh;
-
- .list {
- display: flex;
- flex-direction: column;
- gap: 10px;
- }
+ gap: 10px;
}
}
diff --git a/src/styles/home/food.module.scss b/src/styles/home/food.module.scss
deleted file mode 100644
index e3c2ab4..0000000
--- a/src/styles/home/food.module.scss
+++ /dev/null
@@ -1,39 +0,0 @@
-.food-view {
- .food-list {
- background-color: #F5F5F5;
- flex-grow: 1;
-
- overflow: auto;
- position: relative;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- //align-items: center;
- gap: 1vh;
-
- padding: 10px;
-
- .list {
- display: grid;
- grid-template-columns: repeat(3, 1fr);
- column-gap: 2vw;
- row-gap: 2vh;
- }
-
- @media (min-width: 1280px) and (max-width: 1500px) {
- .list {
- grid-template-columns: repeat(2, 1fr);
- }
- }
-
- @media (max-width: 1280px) {
- .list {
- grid-template-columns: repeat(1, 1fr);
- }
- }
-
- .el-pagination {
- align-self: center;
- }
- }
-}
diff --git a/src/views/food/recipe.vue b/src/views/food/recipe.vue
index 796e68d..76f674e 100644
--- a/src/views/food/recipe.vue
+++ b/src/views/food/recipe.vue
@@ -2,13 +2,11 @@
-
-
+
-
-
-
+
+
diff --git a/src/views/food/timeline.vue b/src/views/food/timeline.vue
index 5bd2e99..8dee0d9 100644
--- a/src/views/food/timeline.vue
+++ b/src/views/food/timeline.vue
@@ -25,7 +25,8 @@
{{ item.name }}
+ fit="contain" alt="暂无成果"
+ @click="viewImageClick(item)">
暂无图片
@@ -46,6 +47,8 @@ import { useFoodStore } from '@/store/food.ts'
import { formatDate, getLastDate, getNextDate } from 'vue3-common/utils/dateUtil'
import { AListUrl } from '@/utils'
import { onMounted } from 'vue'
+import { showImagePreview } from 'vant'
+import { IFoodRecord } from '@/types/food.ts'
const foodStore = useFoodStore()
@@ -54,6 +57,11 @@ onMounted(async () => {
await foodStore.queryFoodRecordList()
})
+const viewImageClick = (item: IFoodRecord) => {
+ const imageList = [AListUrl + item.imageUrl]
+ showImagePreview(imageList)
+}
+
const changeDateEvent = async (value: Date) => {
foodStore.queryRecord.year = String(value.getFullYear())
await foodStore.queryFoodRecordList()