This commit is contained in:
花有清香月有阴
2022-01-14 14:35:17 +08:00
parent e0f60e9549
commit 23e216cf8a
2 changed files with 22 additions and 12 deletions

View File

@@ -15,13 +15,13 @@
<div class="card">
<div class="box">
<span class="count" v-if="peopleList && peopleList['网格长']">{{ peopleList['网格长']}}</span>
<span class="count" v-if="peopleList && peopleList['网格长']">{{ peopleList['网格长'] }}</span>
<span class="count" v-else>0</span>
<span class="girdCount">网格长</span>
</div>
<div class="box">
<span class="count" v-if="peopleList && peopleList['网格员'] ">{{ peopleList['网格员']}}</span>
<span class="count" v-if="peopleList && peopleList['网格员']">{{ peopleList['网格员'] }}</span>
<span class="count" v-else>0</span>
<span class="girdCount">网格员</span>
</div>
@@ -77,15 +77,17 @@ export default {
girdUser: [],
peopleList: {},
girdMsgList: {},
checkType: ''
checkType: '',
}
},
computed: {},
watch: {},
onLoad() {},
mounted() {
this.$dict.load('girdType', 'girdLevel').then(() => {})
this.$dict.load('girdType', 'girdLevel').then(() => {
this.isGirdUser()
})
uni.$on('goback', (res) => {
this.girdMsgList = res
this.getList()
@@ -117,8 +119,8 @@ export default {
})
},
linkTo(url) {
uni.navigateTo({url})
}
uni.navigateTo({ url })
},
},
}
</script>

View File

@@ -20,7 +20,7 @@
<u-search v-model="keyword" :clearabled="true" placeholder="姓名/联系方式/身份证后6位" :show-action="false" bg-color="#F5F5F5" search-icon-color="#E2E8F1" color="#666" height="58" @search="handerSearch" @clear="handerClear"></u-search>
</div>
<div class="datas" v-if="datas.length > 0">
<div class="dataes" v-if="datas.length > 0">
<div class="datass" v-for="(item, iindex) in datas" :key="iindex" @click="toDetailCard(item)">
<div class="left">
<img :src="item.photo" alt="" v-if="item.photo" />
@@ -38,7 +38,7 @@
</div>
</div>
<AiEmpty v-else></AiEmpty>
<AiEmpty class="emptyWrap" v-else></AiEmpty>
</div>
</template>
@@ -66,7 +66,7 @@ export default {
],
currentTabs: 0,
areaId: '',
areaName: ''
areaName: '',
}
},
computed: {
@@ -153,11 +153,13 @@ export default {
height: 16px;
background: #f5f5f5;
}
.seachObjs {
border-bottom: 2px solid #f5f5f5;
border-top: 2px solid #f5f5f5;
padding: 20px 32px;
}
::v-deep .u-form {
width: 100%;
.areaIds {
@@ -186,7 +188,8 @@ export default {
}
}
}
.datas {
.dataes {
.datass {
display: flex;
padding: 24px 32px;
@@ -215,5 +218,10 @@ export default {
}
}
}
.emptyWrap {
background: #f5f5f5;
margin: 0;
}
}
</style>