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

106 lines
1.9 KiB
Vue
Raw Normal View History

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