添加消息无数据提示
This commit is contained in:
@@ -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';
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user