From a0948b21b0ff2dd7ac74fe4b11324e1f87aa2d80 Mon Sep 17 00:00:00 2001 From: yvan.ni Date: Wed, 16 Aug 2023 18:29:43 +0800 Subject: [PATCH] 商品的分组的bug优化 --- pages/goods/goodsList/goodsList.js | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/pages/goods/goodsList/goodsList.js b/pages/goods/goodsList/goodsList.js index c65dc2c..2cd84fd 100644 --- a/pages/goods/goodsList/goodsList.js +++ b/pages/goods/goodsList/goodsList.js @@ -325,6 +325,10 @@ Page({ }, changeTab: function(t) { + + //清空 + this.data.gr_fir=0; + var ord = t.currentTarget.dataset.href; var ad = t.currentTarget.dataset.ad; var url = this.data.requestUrl; @@ -354,7 +358,6 @@ Page({ t += "&orderField=" + e.data.tabname; t += "&orderType=" + e.data.adname; } - this.data.gr_fir=0; t +="&page=" + e.data.currentPage; @@ -568,11 +571,18 @@ Page({ }, /*-- 和筛选相关的 --*/ - bind_pk_sort(e){ com_fil.bind_pk_sort(e,this); }, + bind_pk_sort(e){ //清空 + this.data.gr_fir=0; com_fil.bind_pk_sort(e,this); + }, set_screen(url){ com_fil.set_screen(url,this); }, - filterGoods(e){ com_fil.filterGoods(e,this); }, + filterGoods(e){ + //清空 + this.data.gr_fir=0;com_fil.filterGoods(e,this); + }, open_more(e){ com_fil.open_more(e,this); }, - clear_fil(){ com_fil.clear_fil(this); } + clear_fil(){ //清空 + this.data.gr_fir=0;com_fil.clear_fil(this); + } }); \ No newline at end of file -- libgit2 0.21.4