This commit is contained in:
2025-03-20 19:32:25 +08:00
parent ebc8c7bb26
commit 8e35b74d86
17 changed files with 3170 additions and 1840 deletions
@@ -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
}
},