|
|
@ -1,17 +1,22 @@ |
|
|
|
<template> |
|
|
|
<div class='TrafficFlow'> |
|
|
|
<div class="TrafficFlow"> |
|
|
|
<section class="foot"> |
|
|
|
|
|
|
|
<div class="item keep-ratio" v-for="(item, index) in topDatas"> |
|
|
|
<div class="line"> |
|
|
|
</div> |
|
|
|
<div class="line"></div> |
|
|
|
<div class="item-title"> |
|
|
|
<span> {{ item.eventName }} <span class="num">{{ item.total }}</span>起</span> |
|
|
|
<span> |
|
|
|
{{ item.eventName }} <span class="num">{{ item.total }}</span |
|
|
|
>起</span |
|
|
|
> |
|
|
|
</div> |
|
|
|
<div class="item-body"> |
|
|
|
<div class="icon-left" |
|
|
|
:style="{ backgroundImage: `url(${require(`@screen/images/layer/${active}/${item.eventName}.svg`)})`, '--bgColor': `rgba(0, 209, 255, 10%)` }"> |
|
|
|
</div> |
|
|
|
<div |
|
|
|
class="left" |
|
|
|
:style="{ |
|
|
|
backgroundImage: `url(${require(`@screen/images/layer/${active}/${item.eventName}.svg`)})`, |
|
|
|
'--bgColor': `rgba(0, 209, 255, 10%)`, |
|
|
|
}" |
|
|
|
></div> |
|
|
|
|
|
|
|
<div class="text-right"> |
|
|
|
<div class="text"> |
|
|
@ -31,17 +36,15 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { eventStatusNum } from "@/api/event/governanceAnalysis" |
|
|
|
import { eventStatusNum } from "@/api/event/governanceAnalysis"; |
|
|
|
export default { |
|
|
|
name: 'publicService', |
|
|
|
components: { |
|
|
|
|
|
|
|
}, |
|
|
|
name: "publicService", |
|
|
|
components: {}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
active: "事件专题", |
|
|
|
activeName: "first", |
|
|
|
topDatas: [] |
|
|
|
topDatas: [], |
|
|
|
// topDatas: [{ |
|
|
|
// text: "其他事件", |
|
|
|
// textEnd: "起", |
|
|
@ -108,33 +111,30 @@ export default { |
|
|
|
// } |
|
|
|
|
|
|
|
// ] |
|
|
|
} |
|
|
|
}; |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
getEventStatusNum() { |
|
|
|
eventStatusNum().then(response => { |
|
|
|
this.topDatas = response.data |
|
|
|
}) |
|
|
|
eventStatusNum().then((response) => { |
|
|
|
this.topDatas = response.data; |
|
|
|
}); |
|
|
|
}, |
|
|
|
changeTabs() { |
|
|
|
|
|
|
|
} |
|
|
|
changeTabs() {}, |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
this.getEventStatusNum() |
|
|
|
this.getEventStatusNum(); |
|
|
|
}, |
|
|
|
|
|
|
|
} |
|
|
|
}; |
|
|
|
</script> |
|
|
|
|
|
|
|
<style lang='scss' scoped> |
|
|
|
<style lang="scss" scoped> |
|
|
|
::v-deep .el-tabs__item { |
|
|
|
display: inline-flex; |
|
|
|
justify-content: center; |
|
|
|
font-size: 16px; |
|
|
|
font-family: PingFang SC, PingFang SC; |
|
|
|
font-weight: 500; |
|
|
|
color: #FFFFFF; |
|
|
|
color: #ffffff; |
|
|
|
min-width: 128px; |
|
|
|
position: relative; |
|
|
|
left: 10px; |
|
|
@ -152,7 +152,6 @@ export default { |
|
|
|
.footTabs { |
|
|
|
display: inline; |
|
|
|
width: 99%; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.TrafficFlow { |
|
|
@ -176,7 +175,6 @@ export default { |
|
|
|
height: 100%; |
|
|
|
background: linear-gradient(180deg, rgba(6, 66, 88, 0) 40%, #064258 93%); |
|
|
|
|
|
|
|
|
|
|
|
.item { |
|
|
|
position: relative; |
|
|
|
display: inline-flex; |
|
|
@ -194,18 +192,22 @@ export default { |
|
|
|
flex-direction: row; |
|
|
|
justify-content: center; |
|
|
|
align-items: center; |
|
|
|
background: linear-gradient(180deg, rgba(3, 60, 82, 0) 0%, #033C52 100%); |
|
|
|
background: linear-gradient( |
|
|
|
180deg, |
|
|
|
rgba(3, 60, 82, 0) 0%, |
|
|
|
#033c52 100% |
|
|
|
); |
|
|
|
border-radius: 4px 4px 4px 4px; |
|
|
|
font-size: 16px; |
|
|
|
font-family: PingFang SC, PingFang SC; |
|
|
|
font-weight: 500; |
|
|
|
color: #FFFFFF; |
|
|
|
color: #ffffff; |
|
|
|
|
|
|
|
span.num { |
|
|
|
font-size: 22px; |
|
|
|
font-family: PangMenZhengDao; |
|
|
|
font-weight: 400; |
|
|
|
color: #E2B066; |
|
|
|
color: #e2b066; |
|
|
|
position: relative; |
|
|
|
display: inline-flex; |
|
|
|
top: 2px; |
|
|
@ -224,10 +226,10 @@ export default { |
|
|
|
font-size: 14px; |
|
|
|
font-family: PingFang SC, PingFang SC; |
|
|
|
font-weight: 400; |
|
|
|
color: #FFFFFF; |
|
|
|
color: #ffffff; |
|
|
|
margin: 20px 0; |
|
|
|
|
|
|
|
.icon-left { |
|
|
|
.left { |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
justify-content: center; |
|
|
@ -242,22 +244,20 @@ export default { |
|
|
|
background-repeat: no-repeat; |
|
|
|
background-size: auto; |
|
|
|
background-position: center; |
|
|
|
transition: all .18s linear; |
|
|
|
transition: all 0.18s linear; |
|
|
|
|
|
|
|
&::before { |
|
|
|
content: ""; |
|
|
|
position: absolute; |
|
|
|
width: 45px; |
|
|
|
height: 45px; |
|
|
|
border: 1px solid rgba(0, 209, 255, .5); |
|
|
|
border: 1px solid rgba(0, 209, 255, 0.5); |
|
|
|
background-color: var(--bgColor); |
|
|
|
border-radius: 50%; |
|
|
|
z-index: -1; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.text-right { |
|
|
|
display: inline-flex; |
|
|
|
flex-direction: column; |
|
|
@ -270,18 +270,13 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
span.num { |
|
|
|
font-size: 18px; |
|
|
|
font-family: PangMenZhengDao; |
|
|
|
font-weight: 400; |
|
|
|
color: #E2B066; |
|
|
|
color: #e2b066; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.line { |
|
|
@ -295,8 +290,6 @@ export default { |
|
|
|
background-size: 100% 100%; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// .item::after { |
|
|
|
// content: ""; |
|
|
|
// position: absolute; |
|
|
@ -311,9 +304,6 @@ export default { |
|
|
|
// justify-content: center; |
|
|
|
// align-items: center; |
|
|
|
// } |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
</style> |
|
|
|
|