Commit d08467468ef88a06b79139dd43295c6df57f0cec
1 parent
1cc33aba
注释的清理。
Showing
1 changed file
with
4 additions
and
49 deletions
pages/goods/categoryList/categoryList.js
@@ -655,18 +655,7 @@ Page({ | @@ -655,18 +655,7 @@ Page({ | ||
655 | var _errImg = e.target.dataset.errorimg; | 655 | var _errImg = e.target.dataset.errorimg; |
656 | var idx = e.target.dataset.idx; | 656 | var idx = e.target.dataset.idx; |
657 | var pix = e.target.dataset.pix; | 657 | var pix = e.target.dataset.pix; |
658 | - // for(var i=0;i< list.length;i++){ | ||
659 | - // for(var j=0;j<list[i].array.length;j++){ | ||
660 | - // if(list[i].array[j].logo == ""){ | ||
661 | - // list[i].array[j].logo= this.data.iurl+"/miniapp/images/no_brand_def.jpg"; | ||
662 | - // } | ||
663 | - // } | ||
664 | - // } | ||
665 | - // this.setData({groups:list}) | ||
666 | - // var _errObj = {}; | ||
667 | - // _errObj[_errImg] = this.data.iurl+"/miniapp/images/no_brand_def.jpg\n"; | ||
668 | - //console.log(this.data.groups) | ||
669 | - //this.setData(_errObj) //注意这里的赋值方式,只是将数据列表中的此项图片路径值替换掉 ; | 658 | + |
670 | }, | 659 | }, |
671 | //商品图片失败,默认图片 | 660 | //商品图片失败,默认图片 |
672 | goods_bnerr: function (e) { | 661 | goods_bnerr: function (e) { |
@@ -730,13 +719,7 @@ Page({ | @@ -730,13 +719,7 @@ Page({ | ||
730 | this.setData({ | 719 | this.setData({ |
731 | countDownNum: 3, | 720 | countDownNum: 3, |
732 | }); | 721 | }); |
733 | - // if(e.currentTarget.dataset.index == 223){ | ||
734 | - // this.setData({ status_show: 1}); | ||
735 | - // }else if(e.currentTarget.dataset.index == 220){ | ||
736 | - // this.setData({ status_show: 2}); | ||
737 | - // }else{ | ||
738 | - // this.setData({ status_show: 0}); | ||
739 | - // } | 722 | + |
740 | var arr2 = this.data.one_level_classify | 723 | var arr2 = this.data.one_level_classify |
741 | for(var i=0;i<arr2.length;i++){ | 724 | for(var i=0;i<arr2.length;i++){ |
742 | if(i == e.currentTarget.dataset.index){ | 725 | if(i == e.currentTarget.dataset.index){ |
@@ -864,38 +847,10 @@ Page({ | @@ -864,38 +847,10 @@ Page({ | ||
864 | wx.stopPullDownRefresh(); | 847 | wx.stopPullDownRefresh(); |
865 | } | 848 | } |
866 | }); | 849 | }); |
867 | - // //不是商品分组的,不是默认排序的 | ||
868 | - // if (t.indexOf("group_id") == -1 || e.data.tabname != "goods_id") { | ||
869 | - // t += "&orderField=" + e.data.tabname; | ||
870 | - // t += "&orderType=" + e.data.adname; | ||
871 | - // } | ||
872 | - // + "&parent_id=0&orderField=goods_id&orderType=desc&page="+this.data.page+"&is_mainshow=1&isonsale=1&store_id=1&is_recommend=1" | ||
873 | - // t += "&page=" + e.data.page; | ||
874 | - // a.request(t, | ||
875 | - // function (t) { | ||
876 | - // e.setData({ is_go: 1 }); | ||
877 | - // e.data.page++ , null == e.data.allData && (e.data.allData = Object.assign({}, t.data.result)), | ||
878 | - // wx.stopPullDownRefresh(); | ||
879 | - // }, | ||
880 | - // null, { is_mainshow: 1, isonsale: 1, store_id: oo.stoid } | ||
881 | - // ); | 850 | + |
882 | }, | 851 | }, |
883 | 852 | ||
884 | - // onReachBottom: function () { | ||
885 | - // console.log('监听上拉:=') | ||
886 | - // var that = this; | ||
887 | - // clearInterval(that.data.timer); | ||
888 | - // that.setData({ | ||
889 | - // stylePage: that.data.stylePage + 1, | ||
890 | - // countDownNum: 3, | ||
891 | - // lastMsg: false, | ||
892 | - // }); | ||
893 | - // that.style(that.data.stylePage, that.data.cat_id); | ||
894 | - // }, | ||
895 | - // onPullDownRefresh: function () { | ||
896 | - // console.log('监听下拉:=' + this.data.requestUrl) | ||
897 | - // this.resetData(), this.requestGoodsList(this.data.requestUrl); | ||
898 | - // }, | 853 | + |
899 | // 左侧更新 | 854 | // 左侧更新 |
900 | scrollLower: function (data) { | 855 | scrollLower: function (data) { |
901 | if(this.data.is_no_more) return false; | 856 | if(this.data.is_no_more) return false; |