info
This commit is contained in:
@@ -34,10 +34,6 @@
|
||||
<three-cover v-else-if="item.thumbnail && item.thumbnail.length === 3" :ctype="'historyList'"
|
||||
:data="getNewItem(item)"></three-cover>
|
||||
</view>
|
||||
<view class="" v-else>
|
||||
111
|
||||
</view>
|
||||
|
||||
</template>
|
||||
|
||||
<!-- 加载状态:上拉加载更多,加载中,没有更多数据了,加载错误 -->
|
||||
@@ -157,7 +153,7 @@
|
||||
return item;
|
||||
},
|
||||
async listLoad(data) {
|
||||
if(data[0].article_id) {
|
||||
if(data.length !== 0) {
|
||||
const listData = data.map(item => {
|
||||
if (typeof item.article_id.thumbnail === 'string') {
|
||||
item.article_id[0].thumbnail = [item.article_id[0].thumbnail]
|
||||
@@ -179,6 +175,10 @@
|
||||
|
||||
this.listData = this.loadType === 'loadMore' ? this.listData.concat(listData) : listData
|
||||
this.loadType = null
|
||||
} else {
|
||||
|
||||
this.listData = this.loadType === 'loadMore' ? this.listData.concat([]) : []
|
||||
this.loadType = null
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user