Commit de97d87435d7348735a8bac5f5a7a0a0afbb8d53
1 parent
f84d9327
分类列表添加风格页面 商品列表
Showing
2 changed files
with
17 additions
and
20 deletions
pages/goods/categoryList/categoryList.js
@@ -658,17 +658,17 @@ Page({ | @@ -658,17 +658,17 @@ Page({ | ||
658 | // ); | 658 | // ); |
659 | }, | 659 | }, |
660 | 660 | ||
661 | - onReachBottom: function () { | ||
662 | - console.log('监听上拉:=') | ||
663 | - var that = this; | ||
664 | - clearInterval(that.data.timer); | ||
665 | - that.setData({ | ||
666 | - stylePage: that.data.stylePage + 1, | ||
667 | - countDownNum: 3, | ||
668 | - lastMsg: false, | ||
669 | - }); | ||
670 | - that.style(that.data.stylePage, that.data.cat_id); | ||
671 | - }, | 661 | + // onReachBottom: function () { |
662 | + // console.log('监听上拉:=') | ||
663 | + // var that = this; | ||
664 | + // clearInterval(that.data.timer); | ||
665 | + // that.setData({ | ||
666 | + // stylePage: that.data.stylePage + 1, | ||
667 | + // countDownNum: 3, | ||
668 | + // lastMsg: false, | ||
669 | + // }); | ||
670 | + // that.style(that.data.stylePage, that.data.cat_id); | ||
671 | + // }, | ||
672 | // onPullDownRefresh: function () { | 672 | // onPullDownRefresh: function () { |
673 | // console.log('监听下拉:=' + this.data.requestUrl) | 673 | // console.log('监听下拉:=' + this.data.requestUrl) |
674 | // this.resetData(), this.requestGoodsList(this.data.requestUrl); | 674 | // this.resetData(), this.requestGoodsList(this.data.requestUrl); |
@@ -704,7 +704,11 @@ Page({ | @@ -704,7 +704,11 @@ Page({ | ||
704 | //如果分页不是在第一页 那么就把返回的数据追加到原有数据后面 | 704 | //如果分页不是在第一页 那么就把返回的数据追加到原有数据后面 |
705 | var arr = s.data.requestData | 705 | var arr = s.data.requestData |
706 | console.log("arr:=" + JSON.stringify(arr)) | 706 | console.log("arr:=" + JSON.stringify(arr)) |
707 | - arr.push(e.data.data.pageData); | 707 | + |
708 | + for (var i = 0; i < e.data.data.pageData.length;i++){ | ||
709 | + arr.push(e.data.data.pageData[i]); | ||
710 | + } | ||
711 | + console.log(arr) | ||
708 | s.setData({ | 712 | s.setData({ |
709 | requestData: arr | 713 | requestData: arr |
710 | }); | 714 | }); |
project.config.json
@@ -45,14 +45,7 @@ | @@ -45,14 +45,7 @@ | ||
45 | }, | 45 | }, |
46 | "miniprogram": { | 46 | "miniprogram": { |
47 | "current": -1, | 47 | "current": -1, |
48 | - "list": [ | ||
49 | - { | ||
50 | - "id": -1, | ||
51 | - "name": "pages/goods/categoryList/categoryList", | ||
52 | - "pathName": "pages/goods/categoryList/categoryList", | ||
53 | - "scene": null | ||
54 | - } | ||
55 | - ] | 48 | + "list": [] |
56 | } | 49 | } |
57 | } | 50 | } |
58 | } | 51 | } |
59 | \ No newline at end of file | 52 | \ No newline at end of file |