特殊人群
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="list">
|
<div class="list-content">
|
||||||
<!-- 统计 -->
|
<!-- 统计 -->
|
||||||
<div class="content-box">
|
<div class="content-box">
|
||||||
<div class="content-list">
|
<div class="content-list">
|
||||||
@@ -209,16 +209,17 @@ export default {
|
|||||||
uni-page-body {
|
uni-page-body {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
.list {
|
.list-content {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
.content-box {
|
.content-box {
|
||||||
padding: 32px 30px 0px;
|
padding: 32px 30px 0px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
background: #fff;
|
||||||
|
|
||||||
.content-list {
|
.content-list {
|
||||||
display: flex;
|
display: flex;
|
||||||
background: #ffffff;
|
background: #fff;
|
||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
@@ -403,7 +403,6 @@ export default {
|
|||||||
}
|
}
|
||||||
if (!o.id) {
|
if (!o.id) {
|
||||||
this.isEdit = false
|
this.isEdit = false
|
||||||
this.getDetail()
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
|||||||
@@ -1,19 +1,26 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="AppSpecialGroups">
|
<div class="AppSpecialGroups">
|
||||||
<div class="title">特殊人群总计 : {{ total }}人</div>
|
<div class="title">特殊人群总计 : {{ total }}人</div>
|
||||||
<div class="item" @click="toList(item.label)" v-for="(item, index) in statisticsList" :key="index">
|
<div class="people-list">
|
||||||
<div class="left">
|
<div class="item" @click="toList(item.label)" v-for="(item, index) in statisticsList" :key="index">
|
||||||
<img src="./img/user-icon-mini.png" alt="">
|
<div class="left">
|
||||||
<span>{{ item.label }}</span>
|
<img src="./img/user-icon-mini.png" alt="">
|
||||||
</div>
|
<span>{{ item.label }}</span>
|
||||||
<div class="right">
|
</div>
|
||||||
{{ item.value }}<img src="./img/down-icon-666.png" alt="">
|
<div class="right">
|
||||||
|
{{ item.value }}<img src="./img/down-icon-666.png" alt="">
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="footer" @click="toAdd" v-if="isGridMember">
|
||||||
|
<div class="btn">新增特殊人群信息</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import {mapState} from 'vuex'
|
||||||
export default {
|
export default {
|
||||||
name: "AppSpecialGroups",
|
name: "AppSpecialGroups",
|
||||||
appName: "特殊人群",
|
appName: "特殊人群",
|
||||||
@@ -23,6 +30,12 @@ export default {
|
|||||||
total: 0
|
total: 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
...mapState(['user']),
|
||||||
|
isGridMember() {
|
||||||
|
return this.user.girdCheckType > 0
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getStatistic() {
|
getStatistic() {
|
||||||
this.statisticsList = []
|
this.statisticsList = []
|
||||||
@@ -42,6 +55,9 @@ export default {
|
|||||||
},
|
},
|
||||||
toList(label) {
|
toList(label) {
|
||||||
uni.navigateTo({ url: `./List?label=${label}`})
|
uni.navigateTo({ url: `./List?label=${label}`})
|
||||||
|
},
|
||||||
|
toAdd() {
|
||||||
|
uni.navigateTo({ url: './Add' })
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -62,6 +78,9 @@ export default {
|
|||||||
line-height: 28px;
|
line-height: 28px;
|
||||||
padding: 40px 0 20px 30px;
|
padding: 40px 0 20px 30px;
|
||||||
}
|
}
|
||||||
|
.people-list{
|
||||||
|
padding-bottom: 120px;
|
||||||
|
}
|
||||||
.item {
|
.item {
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 30px;
|
padding: 30px;
|
||||||
@@ -105,5 +124,23 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.footer {
|
||||||
|
width: 100%;
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
width: 100%;
|
||||||
|
height: 112px;
|
||||||
|
line-height: 112px;
|
||||||
|
text-align: center;
|
||||||
|
background: #1365DD;
|
||||||
|
font-size: 32px;
|
||||||
|
font-family: PingFangSC-Medium, PingFang SC;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #FFF;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user