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
5d22dc42
Commit
5d22dc42
authored
Jan 09, 2026
by
caoxu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enhance: 城市主图显示名称并加重
parent
d893f899
Pipeline
#511
canceled with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
CityIntroductionView.vue
src/views/CityIntroductionView.vue
+26
-0
No files found.
src/views/CityIntroductionView.vue
View file @
5d22dc42
...
...
@@ -8,6 +8,9 @@
<div
class=
"main-content"
>
<div
class=
"city-banner"
>
<img
src=
"https://images.unsplash.com/photo-1477959858617-67f85cf4f1df?w=1200&h=400&fit=crop"
alt=
"城市风景"
class=
"banner-image"
/>
<div
class=
"banner-overlay"
>
<h1
class=
"city-name"
>
{{
cityName
}}
</h1>
</div>
</div>
<div
class=
"city-info-section"
>
...
...
@@ -129,6 +132,8 @@ import { useRouter } from 'vue-router'
const
router
=
useRouter
()
const
cityName
=
ref
(
'魅力之城'
)
const
attractions
=
ref
([
{
id
:
1
,
...
...
@@ -379,6 +384,27 @@ const sendMessage = (user) => {
object-fit
:
cover
;
}
.banner-overlay
{
position
:
absolute
;
bottom
:
0
;
left
:
0
;
right
:
0
;
background
:
linear-gradient
(
to
top
,
rgba
(
0
,
0
,
0
,
0.7
)
0%
,
rgba
(
0
,
0
,
0
,
0.3
)
100%
);
padding
:
24px
;
display
:
flex
;
align-items
:
flex-end
;
justify-content
:
center
;
}
.city-name
{
font-size
:
36px
;
font-weight
:
800
;
color
:
white
;
margin
:
0
;
text-shadow
:
0
2px
8px
rgba
(
0
,
0
,
0
,
0.5
);
letter-spacing
:
2px
;
}
.city-info-section
,
.attractions-section
,
.nearby-users-section
,
...
...
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