Files
dvcp_v2_wxcp_app/library/project/qujing/AppConflictMediation/AppConflictMediation.vue

106 lines
1.8 KiB
Vue
Raw Normal View History

2023-03-06 10:24:48 +08:00
<template>
<div class="AppConflictMediation">
2023-03-06 18:16:47 +08:00
<component v-if="refresh && isGridMember" :is="component" @change="onChange" :params="params"></component>
2023-03-06 10:24:48 +08:00
<div v-if="!isGridMember" class="empty">
2023-03-06 14:26:17 +08:00
<img src="./components/no-admin.png" alt="">
2023-03-06 18:16:47 +08:00
<p>没有网格员权限<br/>无法查看矛盾调解信息哦~</p>
2023-03-06 10:24:48 +08:00
</div>
</div>
</template>
<script>
import List from './List.vue'
import {mapState} from "vuex";
export default {
name: 'AppConflictMediation',
appName: '矛盾调解',
data() {
return {
component: 'List',
params: {},
refresh: true,
tabIndex: 0,
}
},
components: {List},
2023-03-06 18:16:47 +08:00
computed: {
2023-03-06 10:24:48 +08:00
...mapState(['user']),
isGridMember() {
return this.user.girdCheckType > 0
}
},
methods: {
onChange(e) {
this.params = e.params
this.component = e.type
},
},
onShow() {
document.title = '矛盾调解'
},
onReachBottom() {
2023-03-06 18:16:47 +08:00
if (!this.tabIndex) {
2023-03-06 10:24:48 +08:00
uni.$emit('nextList')
}
},
}
</script>
<style lang="scss" scoped>
.AppConflictMediation {
height: 100%;
}
2023-03-06 18:16:47 +08:00
2023-03-06 10:24:48 +08:00
.tabs {
width: 100%;
height: 98px;
background: #fff;
border-top: 1px solid #ddd;
position: fixed;
bottom: 0;
left: 0;
display: flex;
2023-03-06 18:16:47 +08:00
2023-03-06 10:24:48 +08:00
.item {
flex: 1;
text-align: center;
2023-03-06 18:16:47 +08:00
2023-03-06 10:24:48 +08:00
img {
width: 56px;
height: 56px;
margin-top: 8px;
}
2023-03-06 18:16:47 +08:00
2023-03-06 10:24:48 +08:00
p {
font-size: 22px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #c4cad4;
line-height: 8px;
}
2023-03-06 18:16:47 +08:00
2023-03-06 10:24:48 +08:00
.color-3267F0 {
color: #3267f0;
}
}
}
2023-03-06 18:16:47 +08:00
.empty {
2023-03-06 10:24:48 +08:00
text-align: center;
2023-03-06 18:16:47 +08:00
img {
2023-03-06 10:24:48 +08:00
width: 282px;
height: 306px;
margin: 136px auto 0;
}
2023-03-06 18:16:47 +08:00
p {
2023-03-06 10:24:48 +08:00
font-size: 28px;
font-family: PingFangSC-Regular, PingFang SC;
color: #999;
line-height: 40px;
}
}
</style>