Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bill-manager-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
bill-manager-ui
Commits
b6cbc8ae
Commit
b6cbc8ae
authored
Jul 02, 2024
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: 优化首页
parent
cc975344
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
6 deletions
+28
-6
admin_2/src/layouts/components/Header.vue
admin_2/src/layouts/components/Header.vue
+2
-2
admin_2/src/pages/home/Home.vue
admin_2/src/pages/home/Home.vue
+16
-1
admin_2/src/pages/home/components/AreaCard.vue
admin_2/src/pages/home/components/AreaCard.vue
+10
-3
No files found.
admin_2/src/layouts/components/Header.vue
View file @
b6cbc8ae
...
@@ -154,7 +154,7 @@ export default {
...
@@ -154,7 +154,7 @@ export default {
content: "";
content: "";
display: inline-block;
display: inline-block;
height: 4px;
height: 4px;
width:
5
0%;
width:
3
0%;
background: #ffffff;
background: #ffffff;
border-radius: 2px;
border-radius: 2px;
position: absolute;
position: absolute;
...
@@ -172,7 +172,7 @@ export default {
...
@@ -172,7 +172,7 @@ export default {
content: "";
content: "";
display: inline-block;
display: inline-block;
height: 4px;
height: 4px;
width:
5
0%;
width:
3
0%;
background: #ffffff;
background: #ffffff;
border-radius: 2px;
border-radius: 2px;
position: absolute;
position: absolute;
...
...
admin_2/src/pages/home/Home.vue
View file @
b6cbc8ae
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"main w-[
8
0%]"
>
<div
class=
"main w-[
9
0%]"
>
<!-- 主题数据分析 -->
<!-- 主题数据分析 -->
<div
<div
class=
"theme-data-analyse mb-[36px] flex w-full flex-col items-center"
class=
"theme-data-analyse mb-[36px] flex w-full flex-col items-center"
...
@@ -235,4 +235,19 @@ export default {
...
@@ -235,4 +235,19 @@ export default {
border-radius: 8px;
border-radius: 8px;
}
}
}
}
@media screen and (max-width: 1700px) {
.area-list {
grid-template-columns: repeat(6, minmax(0, 1fr));
}
}
@media screen and (max-width: 1480px) and (min-width: 1200px) {
.area-list {
grid-template-columns: repeat(5, minmax(0, 1fr));
}
}
@media screen and (max-width: 1200px) {
.area-list {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
}
</
style
>
</
style
>
admin_2/src/pages/home/components/AreaCard.vue
View file @
b6cbc8ae
...
@@ -7,7 +7,9 @@
...
@@ -7,7 +7,9 @@
]"
]"
@click="handleClick"
@click="handleClick"
>
>
<img
class=
"banner"
:src=
"data.img"
/>
<div
class=
"banner"
>
<img
class=
"banner-img"
:src=
"data.img"
/>
</div>
<div
class=
"content"
>
<div
class=
"content"
>
<!-- 对接时间 -->
<!-- 对接时间 -->
<div
class=
"w-full"
>
<div
class=
"w-full"
>
...
@@ -67,7 +69,12 @@ export default {
...
@@ -67,7 +69,12 @@ export default {
position: absolute;
position: absolute;
left: 0px;
left: 0px;
top: 0px;
top: 0px;
transition: all 0.5s;
overflow: hidden;
.banner-img {
width: 100%;
height: 100%;
transition: all 0.5s;
}
}
}
.content {
.content {
width: 100%;
width: 100%;
...
@@ -115,7 +122,7 @@ export default {
...
@@ -115,7 +122,7 @@ export default {
}
}
.is-hover {
.is-hover {
&:hover {
&:hover {
.banner {
.banner
-img
{
transform: scale(1.1);
transform: scale(1.1);
}
}
}
}
...
...
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