Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
prd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
caoxu
prd
Commits
d893f899
Commit
d893f899
authored
Jan 09, 2026
by
caoxu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add: 美食卡片增加详情图片
parent
1122a855
Pipeline
#510
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
CityIntroductionView.vue
src/views/CityIntroductionView.vue
+13
-0
No files found.
src/views/CityIntroductionView.vue
View file @
d893f899
...
@@ -110,6 +110,7 @@
...
@@ -110,6 +110,7 @@
<div
class=
"food-info"
>
<div
class=
"food-info"
>
<h3
class=
"food-name"
>
{{
food
.
name
}}
</h3>
<h3
class=
"food-name"
>
{{
food
.
name
}}
</h3>
<p
class=
"food-description"
>
{{
food
.
description
}}
</p>
<p
class=
"food-description"
>
{{
food
.
description
}}
</p>
<img
:src=
"food.detailImage"
:alt=
"food.name + '详情'"
class=
"food-detail-image"
/>
<div
class=
"food-meta"
>
<div
class=
"food-meta"
>
<span
class=
"food-type"
>
{{
food
.
type
}}
</span>
<span
class=
"food-type"
>
{{
food
.
type
}}
</span>
<span
class=
"food-price"
>
¥
{{
food
.
price
}}
</span>
<span
class=
"food-price"
>
¥
{{
food
.
price
}}
</span>
...
@@ -268,6 +269,7 @@ const foods = ref([
...
@@ -268,6 +269,7 @@ const foods = ref([
name
:
'特色烤鸭'
,
name
:
'特色烤鸭'
,
description
:
'百年老店,皮脆肉嫩,香气四溢。'
,
description
:
'百年老店,皮脆肉嫩,香气四溢。'
,
image
:
'https://images.unsplash.com/photo-1544025162-d566946569f2?w=400&h=300&fit=crop'
,
image
:
'https://images.unsplash.com/photo-1544025162-d566946569f2?w=400&h=300&fit=crop'
,
detailImage
:
'https://images.unsplash.com/photo-15652995853-8b6c7a1a8d1?w=400&h=200&fit=crop'
,
type
:
'传统美食'
,
type
:
'传统美食'
,
price
:
88
price
:
88
},
},
...
@@ -276,6 +278,7 @@ const foods = ref([
...
@@ -276,6 +278,7 @@ const foods = ref([
name
:
'手工拉面'
,
name
:
'手工拉面'
,
description
:
'劲道爽滑,汤底浓郁,回味无穷。'
,
description
:
'劲道爽滑,汤底浓郁,回味无穷。'
,
image
:
'https://images.unsplash.com/photo-1569718212165-3a8278d5f71f?w=400&h=300&fit=crop'
,
image
:
'https://images.unsplash.com/photo-1569718212165-3a8278d5f71f?w=400&h=300&fit=crop'
,
detailImage
:
'https://images.unsplash.com/photo-1563379976878-4d5c7a7f8a3?w=400&h=200&fit=crop'
,
type
:
'面食'
,
type
:
'面食'
,
price
:
35
price
:
35
},
},
...
@@ -284,6 +287,7 @@ const foods = ref([
...
@@ -284,6 +287,7 @@ const foods = ref([
name
:
'传统糕点'
,
name
:
'传统糕点'
,
description
:
'精致可口,甜而不腻,送礼佳品。'
,
description
:
'精致可口,甜而不腻,送礼佳品。'
,
image
:
'https://images.unsplash.com/photo-1509368959836-f7801b4d6c1a?w=400&h=300&fit=crop'
,
image
:
'https://images.unsplash.com/photo-1509368959836-f7801b4d6c1a?w=400&h=300&fit=crop'
,
detailImage
:
'https://images.unsplash.com/photo-1509368959836-f7801b4d6c1a?w=400&h=200&fit=crop'
,
type
:
'甜品'
,
type
:
'甜品'
,
price
:
45
price
:
45
},
},
...
@@ -292,6 +296,7 @@ const foods = ref([
...
@@ -292,6 +296,7 @@ const foods = ref([
name
:
'本地海鲜'
,
name
:
'本地海鲜'
,
description
:
'新鲜捕捞,烹饪精良,营养丰富。'
,
description
:
'新鲜捕捞,烹饪精良,营养丰富。'
,
image
:
'https://images.unsplash.com/photo-1534604973900-85bd99082946?w=400&h=300&fit=crop'
,
image
:
'https://images.unsplash.com/photo-1534604973900-85bd99082946?w=400&h=300&fit=crop'
,
detailImage
:
'https://images.unsplash.com/photo-1534604973900-85bd99082946?w=400&h=200&fit=crop'
,
type
:
'海鲜'
,
type
:
'海鲜'
,
price
:
168
price
:
168
}
}
...
@@ -745,6 +750,14 @@ const sendMessage = (user) => {
...
@@ -745,6 +750,14 @@ const sendMessage = (user) => {
line-height
:
1.6
;
line-height
:
1.6
;
}
}
.food-detail-image
{
width
:
100%
;
height
:
120px
;
object-fit
:
cover
;
border-radius
:
8px
;
margin-bottom
:
12px
;
}
.food-meta
{
.food-meta
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment