From de97d87435d7348735a8bac5f5a7a0a0afbb8d53 Mon Sep 17 00:00:00 2001 From: yvan.ni Date: Sat, 23 May 2020 17:48:07 +0800 Subject: [PATCH] 分类列表添加风格页面 商品列表 --- pages/goods/categoryList/categoryList.js | 28 ++++++++++++++++------------ project.config.json | 9 +-------- 2 files changed, 17 insertions(+), 20 deletions(-) diff --git a/pages/goods/categoryList/categoryList.js b/pages/goods/categoryList/categoryList.js index 9792a66..7ef0b66 100644 --- a/pages/goods/categoryList/categoryList.js +++ b/pages/goods/categoryList/categoryList.js @@ -658,17 +658,17 @@ Page({ // ); }, - onReachBottom: function () { - console.log('监听上拉:=') - var that = this; - clearInterval(that.data.timer); - that.setData({ - stylePage: that.data.stylePage + 1, - countDownNum: 3, - lastMsg: false, - }); - that.style(that.data.stylePage, that.data.cat_id); - }, + // onReachBottom: function () { + // console.log('监听上拉:=') + // var that = this; + // clearInterval(that.data.timer); + // that.setData({ + // stylePage: that.data.stylePage + 1, + // countDownNum: 3, + // lastMsg: false, + // }); + // that.style(that.data.stylePage, that.data.cat_id); + // }, // onPullDownRefresh: function () { // console.log('监听下拉:=' + this.data.requestUrl) // this.resetData(), this.requestGoodsList(this.data.requestUrl); @@ -704,7 +704,11 @@ Page({ //如果分页不是在第一页 那么就把返回的数据追加到原有数据后面 var arr = s.data.requestData console.log("arr:=" + JSON.stringify(arr)) - arr.push(e.data.data.pageData); + + for (var i = 0; i < e.data.data.pageData.length;i++){ + arr.push(e.data.data.pageData[i]); + } + console.log(arr) s.setData({ requestData: arr }); diff --git a/project.config.json b/project.config.json index 79d1daa..f8c02e4 100644 --- a/project.config.json +++ b/project.config.json @@ -45,14 +45,7 @@ }, "miniprogram": { "current": -1, - "list": [ - { - "id": -1, - "name": "pages/goods/categoryList/categoryList", - "pathName": "pages/goods/categoryList/categoryList", - "scene": null - } - ] + "list": [] } } } \ No newline at end of file -- libgit2 0.21.4