|
|
<template>
|
|
|
<LayoutApp :show-back="true" :hideHeader="hideHeader">
|
|
|
<div class="scroll-list-wrap">
|
|
|
<LayoutScroll
|
|
|
<Scroll
|
|
|
ref="scroll"
|
|
|
:options="options"
|
|
|
:loading="loadingOptions"
|
|
|
@pulling-up="onPullingUp"
|
|
|
:data="newsList.list">
|
|
|
<div class="news-content">
|
...
|
...
|
@@ -12,7 +11,7 @@ |
|
|
<List v-if="newsList.list && newsList.list.length > 0" isTitle :list="newsList.list || []"></List>
|
|
|
<UfoNoItem v-else :tip="`暂无数据`" style="margin-top: 60px"></UfoNoItem>
|
|
|
</div>
|
|
|
</LayoutScroll>
|
|
|
</Scroll>
|
|
|
</div>
|
|
|
</LayoutApp>
|
|
|
</template>
|
...
|
...
|
@@ -69,12 +68,6 @@ export default { |
|
|
return {
|
|
|
pullUpLoad: this.newsList.list.length > 0 ? true : false,
|
|
|
}
|
|
|
},
|
|
|
loadingOptions() {
|
|
|
return {
|
|
|
hide: !this.newsList.list || this.newsList.list.length === 0,
|
|
|
noMore: !this.newsList.isMoreData
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
created() {
|
...
|
...
|
|