Files
dvcp_v2_wxcp_app/src/apps/AppEpidemicSituation/AppEpidemicSituation.vue

205 lines
4.8 KiB
Vue
Raw Normal View History

2022-01-10 10:12:05 +08:00
<template>
<div class="AppEpidemicSituation">
<div class="header">
2022-01-10 11:33:17 +08:00
<img src="./components/img/header.png" alt="" />
2022-01-10 10:44:26 +08:00
<div class="content-info">
<div class="title">
<h2>实时数据统计</h2>
<div>截止2021-01-19</div>
</div>
<div class="tab-content">
<div class="tab-item">
<h2 class="color-5AAD6A">30446</h2>
<p>返乡人数</p>
</div>
<div class="tab-item">
<h2 class="color-4185F5">304</h2>
<p>今日新增返乡</p>
</div>
<div class="tab-item">
<h2 class="color-CD413A">3</h2>
<p>今日返乡异常</p>
</div>
<div class="tab-item">
<h2 class="color-5AAD6A">30446</h2>
<p>健康上报人数</p>
</div>
<div class="tab-item">
<h2 class="color-4185F5">46</h2>
<p>今日上报人数</p>
</div>
<div class="tab-item">
<h2 class="color-CD413A">0</h2>
<p>今日上报异常</p>
</div>
</div>
</div>
</div>
<div class="banner">
2022-01-10 15:13:54 +08:00
<img src="./components/img/fxry.png" alt="" class="mar-r18" @click="toBack"/>
2022-01-10 11:33:17 +08:00
<img src="./components/img/jkjc.png" alt="" @click="toHealth" />
2022-01-10 10:44:26 +08:00
</div>
<div class="echart-content">
<div class="title">返乡数据统计</div>
<div class="echart"></div>
2022-01-10 11:33:17 +08:00
<div class="type-text"><span class="tips bg-32C5FF"></span>新增返乡人数 <span class="tips bg-FFAA44"></span>新增异常人数</div>
2022-01-10 10:12:05 +08:00
</div>
</div>
</template>
<script>
2022-01-10 11:33:17 +08:00
import { mapState } from 'vuex'
2022-01-10 10:12:05 +08:00
export default {
2022-01-10 11:33:17 +08:00
name: 'AppEpidemicSituation',
appName: '疫情防控',
2022-01-10 10:12:05 +08:00
data() {
2022-01-10 11:33:17 +08:00
return {}
2022-01-10 10:12:05 +08:00
},
2022-01-10 11:33:17 +08:00
computed: { ...mapState(['user']) },
2022-01-11 14:58:30 +08:00
onShow() {
document.title = '疫情防控'
},
2022-01-10 10:12:05 +08:00
methods: {
2022-01-10 11:33:17 +08:00
toHealth(){
uni.navigateTo({
url:`./Health`
})
2022-01-10 15:13:54 +08:00
},
toBack(){
uni.navigateTo({
url:`./BackUserList`
})
},
2022-01-10 10:12:05 +08:00
},
}
</script>
<style lang="scss" scoped>
.AppEpidemicSituation {
2022-01-10 11:33:17 +08:00
.header {
2022-01-10 10:44:26 +08:00
position: relative;
2022-01-10 11:33:17 +08:00
img {
2022-01-10 10:12:05 +08:00
width: 100%;
height: 504px;
}
2022-01-10 11:33:17 +08:00
.content-info {
2022-01-10 10:12:05 +08:00
width: calc(100% - 60px);
2022-01-10 11:33:17 +08:00
background: #fff;
2022-01-10 10:12:05 +08:00
box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.12);
border-radius: 8px;
2022-01-10 10:44:26 +08:00
position: absolute;
top: 368px;
left: 30px;
z-index: 99;
margin-bottom: 32px;
2022-01-10 11:33:17 +08:00
.title {
2022-01-10 10:44:26 +08:00
display: flex;
justify-content: space-between;
padding: 32px 32px 32px 48px;
2022-01-10 11:33:17 +08:00
h2 {
2022-01-10 10:44:26 +08:00
font-size: 36px;
font-family: PingFang-SC-Heavy, PingFang-SC;
font-weight: 800;
color: #333;
line-height: 50px;
}
2022-01-10 11:33:17 +08:00
div {
2022-01-10 10:44:26 +08:00
font-size: 26px;
font-family: PingFangSC-Regular, PingFang SC;
color: #999;
line-height: 36px;
}
}
2022-01-10 11:33:17 +08:00
.tab-content {
2022-01-10 10:44:26 +08:00
padding-bottom: 20px;
2022-01-10 11:33:17 +08:00
.tab-item {
2022-01-10 10:44:26 +08:00
display: inline-block;
width: 33%;
text-align: center;
margin-bottom: 32px;
2022-01-10 11:33:17 +08:00
h2 {
2022-01-10 10:44:26 +08:00
font-size: 52px;
font-family: DINAlternate-Bold, DINAlternate;
font-weight: bold;
line-height: 60px;
margin-bottom: 10px;
letter-spacing: -4px;
}
2022-01-10 11:33:17 +08:00
p {
2022-01-10 10:44:26 +08:00
font-size: 28px;
font-family: PingFangSC-Regular, PingFang SC;
color: #999;
line-height: 40px;
}
2022-01-10 11:33:17 +08:00
.color-5AAD6A {
color: #5aad6a;
2022-01-10 10:44:26 +08:00
}
2022-01-10 11:33:17 +08:00
.color-4185F5 {
color: #4185f5;
2022-01-10 10:44:26 +08:00
}
2022-01-10 11:33:17 +08:00
.color-CD413A {
color: #cd413a;
2022-01-10 10:44:26 +08:00
}
}
}
}
}
2022-01-10 11:33:17 +08:00
.banner {
2022-01-10 10:44:26 +08:00
width: 100%;
padding: 0 26px;
box-sizing: border-box;
margin: 306px 0 32px 0;
2022-01-10 11:33:17 +08:00
img {
2022-01-10 10:44:26 +08:00
width: calc(50% - 18px);
height: 136px;
}
2022-01-10 11:33:17 +08:00
.mar-r18 {
2022-01-10 10:44:26 +08:00
margin-right: 18px;
}
}
2022-01-10 11:33:17 +08:00
.echart-content {
2022-01-10 10:44:26 +08:00
width: 100%;
background-color: #fff;
padding: 0 32px 38px;
box-sizing: border-box;
2022-01-10 11:33:17 +08:00
.title {
2022-01-10 10:44:26 +08:00
font-size: 32px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #333;
line-height: 96px;
margin-bottom: 16px;
}
2022-01-10 11:33:17 +08:00
.echart {
2022-01-10 10:44:26 +08:00
width: 100%;
height: 464px;
2022-01-10 11:33:17 +08:00
background: #f9f9f9;
2022-01-10 10:44:26 +08:00
border-radius: 8px;
margin-bottom: 32px;
}
2022-01-10 11:33:17 +08:00
.type-text {
2022-01-10 10:44:26 +08:00
font-size: 28px;
font-family: PingFangSC-Regular, PingFang SC;
color: #666;
line-height: 40px;
text-align: center;
2022-01-10 11:33:17 +08:00
.tips {
2022-01-10 10:44:26 +08:00
display: inline-block;
width: 16px;
height: 16px;
border-radius: 2px;
margin-right: 20px;
}
2022-01-10 11:33:17 +08:00
.bg-32C5FF {
background: #32c5ff;
2022-01-10 10:44:26 +08:00
}
2022-01-10 11:33:17 +08:00
.bg-FFAA44 {
background: #ffaa44;
2022-01-10 10:44:26 +08:00
margin-left: 80px;
}
2022-01-10 10:12:05 +08:00
}
}
}
</style>