添加消息无数据提示

This commit is contained in:
2020-08-24 15:13:38 +08:00
parent 6306573ee4
commit 0a5115b8f4
3 changed files with 45 additions and 13 deletions

View File

@@ -15,6 +15,7 @@
</view>
</view>
</block>
<u-loadmore :status="loadStatus" bg-color="#ECECEC" margin-top="20" v-if="loadStatus=='nomore'" />
</view>
</template>
@@ -23,9 +24,8 @@
data() {
return {
height:'600',
actives: [
]
actives: [],
loadStatus: 'loadmore'
};
},
onLoad(){
@@ -45,7 +45,9 @@
messageactivityList(){
this.$u.api.messageactivityList({}).then((res)=>{
if (res.errCode == 0) {
this.actives = res.data;
this.actives = res.data;
// 目前没有分页,只无数据提示用,他们建议这样做
if(!this.actives.length) this.loadStatus = 'nomore';
}
})
}