Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
shuchengMiniPro
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
cfld-frontend
shuchengMiniPro
Commits
9e4c0a48
Commit
9e4c0a48
authored
Dec 19, 2023
by
shilei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页背景图
parent
f57133a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
13 deletions
+21
-13
card.vue
src/components/media/card.vue
+3
-2
index.vue
src/pages/index/index.vue
+18
-11
No files found.
src/components/media/card.vue
View file @
9e4c0a48
...
@@ -10,11 +10,12 @@
...
@@ -10,11 +10,12 @@
<div>
<div>
<slot
name=
"title"
>
<slot
name=
"title"
>
<p
:style=
"
{ maxWidth: titleWidth }" class="ell2">
<p
:style=
"
{ maxWidth: titleWidth }" class="ell2">
<um-texthighlight
{{
title
}}
<!--
<um-texthighlight
:text=
"title || '--'"
:text=
"title || '--'"
:keyword=
"keyWords"
:keyword=
"keyWords"
color=
"#4374EF"
color=
"#4374EF"
></um-texthighlight>
></um-texthighlight>
-->
</p>
</p>
</slot>
</slot>
</div>
</div>
...
...
src/pages/index/index.vue
View file @
9e4c0a48
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
</div>
</div>
<img
class=
"honor-icon"
:class=
"item.iconClass"
:src=
"item.icon"
alt=
""
>
<img
class=
"honor-icon"
:class=
"item.iconClass"
:src=
"item.icon"
alt=
""
>
</div>
</div>
<div
class=
"honor-item flex flex-column align-center"
style=
"width: 100%;text-align: center;padding-top: 14rpx;background-image: url(
/static/img/home
/bg10.png)"
>
<div
class=
"honor-item flex flex-column align-center"
style=
"width: 100%;text-align: center;padding-top: 14rpx;background-image: url(
https://cfld-hw-obs-01.obs.cn-north-4.myhuaweicloud.com/lyy/img/shucheng
/bg10.png)"
>
<img
src=
"/static/img/home/icon-home10.png"
style=
"width: 49rpx;height: 45rpx;margin-bottom: 10rpx;flex-shrink: 0;"
alt=
""
>
<img
src=
"/static/img/home/icon-home10.png"
style=
"width: 49rpx;height: 45rpx;margin-bottom: 10rpx;flex-shrink: 0;"
alt=
""
>
<p>
国家生态文明建设示范区
</p>
<p>
国家生态文明建设示范区
</p>
</div>
</div>
...
@@ -80,49 +80,49 @@ export default{
...
@@ -80,49 +80,49 @@ export default{
honorList
:
[
honorList
:
[
{
{
icon
:
'/static/img/home/icon-home1.png'
,
icon
:
'/static/img/home/icon-home1.png'
,
bg
:
'
/static/img/home
/bg1.png'
,
bg
:
'
https://cfld-hw-obs-01.obs.cn-north-4.myhuaweicloud.com/lyy/img/shucheng
/bg1.png'
,
name
:
'全国环境百强县'
name
:
'全国环境百强县'
},
},
{
{
icon
:
'/static/img/home/icon-home2.png'
,
icon
:
'/static/img/home/icon-home2.png'
,
bg
:
'
/static/img/home
/bg2.png'
,
bg
:
'
https://cfld-hw-obs-01.obs.cn-north-4.myhuaweicloud.com/lyy/img/shucheng
/bg2.png'
,
name
:
'安徽省制造业发展增速十快县'
name
:
'安徽省制造业发展增速十快县'
},
},
{
{
icon
:
'/static/img/home/icon-home3.png'
,
icon
:
'/static/img/home/icon-home3.png'
,
bg
:
'
/static/img/home
/bg3.png'
,
bg
:
'
https://cfld-hw-obs-01.obs.cn-north-4.myhuaweicloud.com/lyy/img/shucheng
/bg3.png'
,
name
:
'安徽省民营经济发展先进县'
name
:
'安徽省民营经济发展先进县'
},
},
{
{
icon
:
'/static/img/home/icon-home4.png'
,
icon
:
'/static/img/home/icon-home4.png'
,
bg
:
'
/static/img/home
/bg4.png'
,
bg
:
'
https://cfld-hw-obs-01.obs.cn-north-4.myhuaweicloud.com/lyy/img/shucheng
/bg4.png'
,
name
:
'国家卫生县城'
name
:
'国家卫生县城'
},
},
{
{
icon
:
'/static/img/home/icon-home5.png'
,
icon
:
'/static/img/home/icon-home5.png'
,
bg
:
'
/static/img/home
/bg5.png'
,
bg
:
'
https://cfld-hw-obs-01.obs.cn-north-4.myhuaweicloud.com/lyy/img/shucheng
/bg5.png'
,
name
:
'中国未来投资热点百佳县'
name
:
'中国未来投资热点百佳县'
},
},
{
{
icon
:
'/static/img/home/icon-home6.png'
,
icon
:
'/static/img/home/icon-home6.png'
,
bg
:
'
/static/img/home
/bg6.png'
,
bg
:
'
https://cfld-hw-obs-01.obs.cn-north-4.myhuaweicloud.com/lyy/img/shucheng
/bg6.png'
,
name
:
'全国科技进步先进县'
name
:
'全国科技进步先进县'
},
},
{
{
icon
:
'/static/img/home/icon-home10.png'
,
icon
:
'/static/img/home/icon-home10.png'
,
bg
:
'
/static/img/home
/bg7.png'
,
bg
:
'
https://cfld-hw-obs-01.obs.cn-north-4.myhuaweicloud.com/lyy/img/shucheng
/bg7.png'
,
name
:
'全国交通运输一体化创建示范县'
,
name
:
'全国交通运输一体化创建示范县'
,
iconClass
:
'w49'
iconClass
:
'w49'
},
},
{
{
icon
:
'/static/img/home/icon-home8.png'
,
icon
:
'/static/img/home/icon-home8.png'
,
bg
:
'
/static/img/home
/bg8.png'
,
bg
:
'
https://cfld-hw-obs-01.obs.cn-north-4.myhuaweicloud.com/lyy/img/shucheng
/bg8.png'
,
name
:
'全国电子商务进农村综合示范县'
,
name
:
'全国电子商务进农村综合示范县'
,
iconClass
:
'w49'
iconClass
:
'w49'
},
},
{
{
icon
:
'/static/img/home/icon-home9.png'
,
icon
:
'/static/img/home/icon-home9.png'
,
bg
:
'
/static/img/home
/bg9.png'
,
bg
:
'
https://cfld-hw-obs-01.obs.cn-north-4.myhuaweicloud.com/lyy/img/shucheng
/bg9.png'
,
name
:
'安徽省质量认证示范县'
,
name
:
'安徽省质量认证示范县'
,
iconClass
:
'w49'
iconClass
:
'w49'
},
},
...
@@ -178,7 +178,14 @@ export default{
...
@@ -178,7 +178,14 @@ export default{
// this.allowScroll = false
// this.allowScroll = false
// }
// }
// }
// }
}
},
// onShareAppMessage() {
// return {
// title: '',
// path: `/pages/index/index`,
// imageUrl: ""
// }
// },
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
...
...
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