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

309 lines
7.0 KiB
Vue
Raw Normal View History

2022-01-10 11:33:17 +08:00
<template>
<div class="Health">
<div class="top">
<div class="topCard">
<div class="left">
<span class="num1">274</span>
<span class="hint">上报人员</span>
</div>
<div class="line"></div>
</div>
<div class="topCard">
<div class="left">
<span class="num2">274</span>
<span class="hint">上报人员</span>
</div>
<div class="line"></div>
</div>
<div class="topCard">
<div class="left">
<span class="num3">274</span>
<span class="hint">上报人员</span>
</div>
<div class="line"></div>
</div>
<div class="topCard">
<div class="left">
<span class="num4">274</span>
<span class="hint">上报人员</span>
</div>
</div>
</div>
2022-01-10 11:43:53 +08:00
<div class="line1"></div>
2022-01-10 11:33:17 +08:00
<div class="middle">
<div class="left">
<AiAreaPicker v-model="areaId" all :areaId="user.areaId" @select="areaSelect" :name.sync="areaName" style="color: #666">
<u-icon name="map-fill" color="#3192F4" size="20px" style="vertical-align: text-bottom"></u-icon>
<span style="margin-left: 4px" v-if="areaName">{{ areaName }}</span>
<span v-else>请选择</span>
<u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" />
</AiAreaPicker>
</div>
2022-01-10 14:16:05 +08:00
<u-search v-model="keyword" :clearabled="true" placeholder="请输入姓名" :show-action="false" bg-color="#F5F5F5" search-icon-color="#999" color="#999" height="58" @search="handerSearch" @clear="handerClear"></u-search>
2022-01-10 11:33:17 +08:00
</div>
2022-01-10 11:43:53 +08:00
<div class="line2"></div>
2022-01-10 11:33:17 +08:00
<div class="bottom">
<u-tabs :list="tabList" :is-scroll="false" :current="currentTabs" height="96" bg-color="#fff" inactive-color="#333 " active-color="#135AB8 " @change="change"></u-tabs>
2022-01-10 11:43:53 +08:00
<div class="line3"></div>
<template>
<!-- v-if="data.length" -->
2022-01-10 13:51:37 +08:00
<div class="templates" v-for="(item, i) in 10" :key="i" @click="goDetail()">
<!-- <img :src="" alt="" v-if='item.avatar'/> -->
<img src="./components/img/user-img.png" alt="" />
2022-01-10 11:43:53 +08:00
2022-01-10 13:51:37 +08:00
<div class="rightCont">
2022-01-10 14:16:05 +08:00
<div class="rightContLeft">
<div class="nameLeft">
<div class="nameTop">
<div class="names">李轶</div>
<div class="types">异常</div>
<div class="nucleate">核酸到期</div>
</div>
<div class="nameBottom">
<span>上报第</span>
<span class="num">3</span>
<span></span>
</div>
</div>
<!-- <div class="typeRight1">今日已上报</div> -->
<div class="typeRight2">今日未上报</div>
</div>
<u-icon name="arrow-right" color="#ccc"></u-icon>
2022-01-10 13:51:37 +08:00
</div>
2022-01-10 11:43:53 +08:00
</div>
</template>
<!-- <AiEmpty description="暂无数据" class="emptyWrap" v-else></AiEmpty> -->
2022-01-10 11:33:17 +08:00
</div>
</div>
</template>
<script>
import { mapState } from 'vuex'
export default {
name: 'Health',
components: {},
props: {},
data() {
return {
keyword: '',
areaId: '',
areaName: '',
current: 1,
size: 10,
tabList: [
{
name: '上报人员',
},
{
name: '异常人员',
},
],
currentTabs: 0,
2022-01-10 11:43:53 +08:00
data: [],
2022-01-10 11:33:17 +08:00
}
},
computed: {
...mapState(['user']),
},
watch: {},
onLoad() {
this.areaId = this.user.areaId
this.areaName = this.user.areaName
},
onShow() {},
methods: {
2022-01-10 14:16:05 +08:00
goDetail() {
uni.navigateTo({
url: `./HealthDetail`,
})
},
2022-01-10 11:43:53 +08:00
2022-01-10 11:33:17 +08:00
change(index) {
// this.data = []
this.areaId = this.user.areaId
this.keyword = ''
this.currentTabs = index
this.current = 1
// this.getList()
},
handerSearch(e) {
this.keyword = e
// this.current = 1
// this.getList()
},
handerClear() {
this.keyword = ''
// this.current = 1
// this.getList()
},
},
}
</script>
<style scoped lang="scss">
.Health {
height: 100%;
2022-01-10 11:43:53 +08:00
background: #fff;
2022-01-10 11:33:17 +08:00
.top {
display: flex;
padding: 48px 32px;
.topCard {
display: flex;
.left {
display: flex;
flex-direction: column;
align-items: center;
padding: 0 28px;
font-size: 52px;
font-weight: bold;
.num1 {
color: #2c51ce;
}
.num2 {
color: #5aad6a;
}
.num3 {
color: #f5a319;
}
.num4 {
color: #cd413a;
}
.hint {
font-size: 28px;
color: #999999;
margin-top: 8px;
}
}
.line {
width: 1px;
2022-01-10 14:16:05 +08:00
background: #dddddd;
2022-01-10 11:33:17 +08:00
margin: 14px 0px;
}
}
}
2022-01-10 11:43:53 +08:00
.line1 {
height: 4px;
background: #f5f5f5;
}
2022-01-10 11:33:17 +08:00
.middle {
display: flex;
align-items: center;
padding: 24px 32px;
.left {
width: 40%;
display: flex;
align-items: center;
img {
width: 48px;
height: 48px;
}
}
}
2022-01-10 11:43:53 +08:00
.line2 {
height: 8px;
background: #f5f5f5;
}
2022-01-10 11:33:17 +08:00
.bottom {
2022-01-10 11:43:53 +08:00
.line3 {
height: 4px;
background: #f5f5f5;
}
2022-01-10 13:51:37 +08:00
.templates {
display: flex;
align-items: center;
padding: 32px;
box-shadow: inset 0px -1px 0px 0px #dddddd;
img {
width: 128px;
height: 128px;
// border-radius: 50%;
// border: 1px solid #cccccc;
}
.rightCont {
2022-01-10 14:16:05 +08:00
display: flex;
justify-content: space-between;
2022-01-10 13:51:37 +08:00
margin-left: 32px;
2022-01-10 14:16:05 +08:00
width: 100%;
.rightContLeft {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
.nameLeft {
.nameTop {
display: flex;
.names {
font-size: 32px;
font-weight: 500;
color: #333333;
}
.types {
margin-left: 16px;
padding: 4px 16px 8px 16px;
background: #faeceb;
border-radius: 20px;
font-size: 24px;
color: #cd413a;
}
.nucleate {
margin-left: 8px;
padding: 4px 16px 8px 16px;
background: #fef5e8;
border-radius: 20px;
font-size: 24px;
color: #f5a319;
}
}
.nameBottom {
margin-top: 12px;
font-size: 28px;
color: #999999;
.num {
color: #135ab8;
}
}
}
.typeRight1 {
font-size: 28px;
color: #999999;
}
.typeRight2 {
font-size: 28px;
color: #f5a319;
}
}
2022-01-10 13:51:37 +08:00
}
}
2022-01-10 11:33:17 +08:00
}
}
</style>