From 96bbbd253fd9ad3ac4edca3e006897639bfea82c Mon Sep 17 00:00:00 2001 From: zhangwentao <09094219www> Date: Thu, 31 Oct 2024 19:08:09 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E6=9C=AC=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/home/home.vue | 10 +++++----- pages/mine/history.vue | 10 +++++----- pages/news/cpns/topic-list.vue | 2 +- pages/news/cpns/topic-lists.vue | 8 ++++++-- pages/news/news-topic-cate.vue | 12 ++++++------ static/img/demo/logo.jpg | Bin 288562 -> 0 bytes 6 files changed, 23 insertions(+), 19 deletions(-) delete mode 100644 static/img/demo/logo.jpg diff --git a/pages/home/home.vue b/pages/home/home.vue index bf87025..f82dcce 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -61,7 +61,7 @@ org_id: getApp().globalData.org_id, type: 3, page: 1, - limit: 10, + limit: 20, }, swiperList: [], assetList: [], @@ -96,11 +96,11 @@ } }, onReachBottom() { - if (this.assetList.length >= that.count) { + if (this.assetList.length >= this.count) { this.status = 'nomore'; return } - this.page++ + this.queryParams.page++ this.status = 'loading'; this.getList() @@ -148,7 +148,7 @@ }) }, search() { - this.page = 1 + this.queryParams.page=1 this.assetList = [] this.getList() }, @@ -180,7 +180,7 @@ }, btntabs(item) { this.queryParams.type = item.type - this.page = 1 + this.queryParams.page = 1 this.assetList = [] this.getList() }, diff --git a/pages/mine/history.vue b/pages/mine/history.vue index 35e8278..4c75529 100644 --- a/pages/mine/history.vue +++ b/pages/mine/history.vue @@ -12,7 +12,7 @@ - @@ -84,13 +84,13 @@ } }, onReachBottom() { - if (this.assetList.length >= that.count) { + if (this.assetList.length >= this.count) { this.status = 'nomore'; return } - this.page++ + this.queryParams.page++ this.status = 'loading'; - this.getList() + this.getLists() }, onLoad(options) { @@ -214,7 +214,7 @@ changeTab(item) { this.tabIndex = item.index this.swiperIndex = item.index - this.page = 1 + this.queryParams.page = 1 this.assetList = [] this.queryParams.type = item.type this.getLists() diff --git a/pages/news/cpns/topic-list.vue b/pages/news/cpns/topic-list.vue index 3f7193c..8c60a14 100644 --- a/pages/news/cpns/topic-list.vue +++ b/pages/news/cpns/topic-list.vue @@ -2,7 +2,7 @@ - + {{item.asset_name}} {{item.digest}} diff --git a/pages/news/cpns/topic-lists.vue b/pages/news/cpns/topic-lists.vue index 3f7193c..ca1c757 100644 --- a/pages/news/cpns/topic-lists.vue +++ b/pages/news/cpns/topic-lists.vue @@ -2,10 +2,10 @@ - + {{item.asset_name}} {{item.digest}} - + 点击量:{{formatNumber(item.read_num)}} 今日:{{formatNumber(item.today)}}