风险预警列表

This commit is contained in:
shijingjing
2022-03-24 10:40:30 +08:00
parent 79236440f9
commit 314d9217d5
3 changed files with 223 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
<template>
<div class="AppWarningMonitoring">
<component v-if="refresh" :is="component" @change="onChange" :params="params"></component>
</div>
</template>
<script>
import riskList from './riskList'
export default {
name: 'AppWarningMonitoring',
appName: '预警监控',
data() {
return {
component: 'riskList',
params: {},
refresh: true
}
},
components: {riskList},
methods: {
onChange(e) {
this.params = e.params
this.component = e.type
},
onShow() {
document.title = "预警监控"
this.refresh = false
this.$nextTick(() => {
this.refresh = true
})
}
},
}
</script>
<style lang="scss" scoped>
uni-page-body {
height: 100%;
}
.AppSpecialPeople {
height: 100%;
}
</style>

View File

@@ -0,0 +1,21 @@
<template>
<div class="detail">
详情
</div>
</template>
<script>
export default {
data() {
return {
}
}
}
</script>
<style lang="scss" scoped>
.detail {
}
</style>

View File

@@ -0,0 +1,154 @@
<template>
<div class="riskList">
<AiTopFixed>
<div class="tab-select">
<div class="item" :class="tabIndex == index ? 'active' : ''" v-for="(item, index) in tabs" :key="index" @click="tabClick(index)">{{item}}<span></span></div>
</div>
<div class="search-box">
<div class="area-select">
<AiAreaPicker :fullName.sync="areaName" @select="areaSelect">
<u-icon name="map-fill" size="18px" color="#FFF"></u-icon>
<span v-if="areaName" style="color: #333333;fontSize: 14px;">{{ areaName }}</span>
<span v-else :style="{color:areaName? '#333333': '#FFFFFF'}">请选择</span>
<u-icon name="arrow-down" color="#FFF" size="24" style="margin-left: 4px"></u-icon>
</AiAreaPicker>
</div>
<div class="search">
<u-search placeholder="请输入姓名" v-model="name" bg-color="#1F5CAF" search-icon-color="#E2E8F1" :show-action="false"></u-search>
</div>
</div>
</AiTopFixed>
<div class="card-list">
<div class="item" @click="uni.navigateTo('./detail')">
<div class="top">
<div class="name-type">
<span class="name">李毅</span>
<span class="type">待走访</span>
</div>
<div class="address">武汉市武昌区紫金花医院皮肤科1201号</div>
</div>
<div class="bottom">大额医疗支出</div>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
tabs: ['待处理','历史信息'],
tabIndex: 0,
areaName: '',
areaId: '',
name: '',
}
},
onLoad() {},
methods: {
tabClick(index) {
this.tabIndex = index
},
areaSelect(v) {
this.areaId = v
this.current = 1
},
},
onShow() {
document.title = "风险监控"
}
}
</script>
<style lang="scss" scoped>
.riskList {
::v-deep .AiTopFixed .content {
padding: 0;
}
::v-deep .AiTopFixed .search {
margin-bottom: 0;
}
.tab-select {
width: 100%;
height: 96px;
line-height: 96px;
background: #3975C6;
display: flex;
.item{
flex: 1;
text-align: center;
font-size: 28px;
font-family: PingFangSC-Regular, PingFang SC;
color: #CDDCF0;
}
.active{
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
position: relative;
color: #fff;
span{
width: 48px;
height: 4px;
background: #FFF;
position: absolute;
bottom: 14px;
left: 50%;
margin-left: -24px;
}
}
}
.search-box {
display: flex;
width: 100%;
height: 112px;
line-height: 112px;
background: #3975C6;
padding: 0 32px;
box-sizing: border-box;
.area-select {
display: flex;
width: 240px;
}
.search {
width: calc(100% - 250px)
}
}
.card-list {
box-sizing: border-box;
padding: 32px;
.item {
background: #FFFFFF;
border-radius: 16px;
.top {
padding: 32px 32px;
.name-type {
display: flex;
justify-content: space-between;
.name {
color: #333333;
font-size: 32px;
font-weight: 500;
}
}
.address {
margin-top: 16px;
color: #999999;
font-size: 26px;
}
}
.bottom {
padding: 0 32px;
border-top: 1px solid #DDDDDD;
height: 94px;
line-height: 94px;
color: #3975C6;
font-size: 26px;
}
}
}
}
</style>