From 853b28d37e8d2376305f04256e543b019e1a78ee Mon Sep 17 00:00:00 2001 From: hurui Date: Sat, 3 Aug 2019 17:59:19 +0800 Subject: [PATCH] =?UTF-8?q?[=E9=99=90=E6=97=B6=E6=8A=A2=E8=B4=AD][?= =?UTF-8?q?=E4=BF=AE=E6=94=B9][=E5=B1=95=E7=A4=BA=E6=9D=A1=E4=BB=B6]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/main/index.js | 8 ++------ pages/main/index.wxml | 4 +--- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/pages/main/index.js b/pages/main/index.js index 00f5a58..0e04fa1 100644 --- a/pages/main/index.js +++ b/pages/main/index.js @@ -471,7 +471,7 @@ Page({ targetAd: 2 } }).then(res => { - if (res && res.data) { + if (res.data.list.title) { that.setData({ xslist: res.data.list, showQg:true @@ -636,11 +636,7 @@ Page({ // that.selectComponent("#rushtobyCard").getList(); wx.stopPullDownRefresh(); //爆款专区下拉刷新 - // that.selectComponent("#hot").getList(); - that.selectComponent("#hot").getChange(); - if(!that.kSize||!that.pSize){ - that.pSize = 0 - } + that.selectComponent("#hot").getList(); }, //加载更多 onReachBottom: function() { diff --git a/pages/main/index.wxml b/pages/main/index.wxml index 5e1d092..a28f326 100644 --- a/pages/main/index.wxml +++ b/pages/main/index.wxml @@ -59,7 +59,7 @@ - + @@ -71,7 +71,6 @@ - @@ -82,7 +81,6 @@ -