Commit a0948b21b0ff2dd7ac74fe4b11324e1f87aa2d80
1 parent
26c9e174
商品的分组的bug优化
Showing
1 changed file
with
14 additions
and
4 deletions
pages/goods/goodsList/goodsList.js
... | ... | @@ -325,6 +325,10 @@ Page({ |
325 | 325 | }, |
326 | 326 | |
327 | 327 | changeTab: function(t) { |
328 | + | |
329 | + //清空 | |
330 | + this.data.gr_fir=0; | |
331 | + | |
328 | 332 | var ord = t.currentTarget.dataset.href; |
329 | 333 | var ad = t.currentTarget.dataset.ad; |
330 | 334 | var url = this.data.requestUrl; |
... | ... | @@ -354,7 +358,6 @@ Page({ |
354 | 358 | t += "&orderField=" + e.data.tabname; |
355 | 359 | t += "&orderType=" + e.data.adname; |
356 | 360 | } |
357 | - this.data.gr_fir=0; | |
358 | 361 | |
359 | 362 | |
360 | 363 | t +="&page=" + e.data.currentPage; |
... | ... | @@ -568,11 +571,18 @@ Page({ |
568 | 571 | }, |
569 | 572 | |
570 | 573 | /*-- 和筛选相关的 --*/ |
571 | - bind_pk_sort(e){ com_fil.bind_pk_sort(e,this); }, | |
574 | + bind_pk_sort(e){ //清空 | |
575 | + this.data.gr_fir=0; com_fil.bind_pk_sort(e,this); | |
576 | + }, | |
572 | 577 | set_screen(url){ com_fil.set_screen(url,this); }, |
573 | - filterGoods(e){ com_fil.filterGoods(e,this); }, | |
578 | + filterGoods(e){ | |
579 | + //清空 | |
580 | + this.data.gr_fir=0;com_fil.filterGoods(e,this); | |
581 | + }, | |
574 | 582 | open_more(e){ com_fil.open_more(e,this); }, |
575 | - clear_fil(){ com_fil.clear_fil(this); } | |
583 | + clear_fil(){ //清空 | |
584 | + this.data.gr_fir=0;com_fil.clear_fil(this); | |
585 | + } | |
576 | 586 | |
577 | 587 | |
578 | 588 | }); |
579 | 589 | \ No newline at end of file | ... | ... |