From 0c2dcc35c0d3c294eaee7ffa81d7834c50ff0bbd Mon Sep 17 00:00:00 2001 From: wangfukang <15630117759@163.com> Date: Tue, 17 Mar 2026 09:32:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E5=91=BD=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package1/group/groupBuyList.vue | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/package1/group/groupBuyList.vue b/package1/group/groupBuyList.vue index a7f258f..3365218 100644 --- a/package1/group/groupBuyList.vue +++ b/package1/group/groupBuyList.vue @@ -95,7 +95,7 @@ - + @@ -132,16 +132,16 @@ duration: 1000, searchScore: false, searchSale: false, - pageNum:1, + pageNumber:1, shopArea:[], totalPages:1, searchForm:{ regionId:JSON.parse(uni.getStorageSync('area')).id, shopType:'', shopArea:'', - pageNum: 1, + pageNumber: 1, pageSize: '10', - sort: "createTime", + sort: "shoprank", order: "desc", sortOrder:'shoprank', orderOrder:'desc', @@ -242,13 +242,16 @@ }else if(type == 'score'){ this.searchScore = !this.searchScore this.searchSale = false + this.searchForm.sort = 'shopScore' }else if(type == 'sale'){ this.searchSale = !this.searchSale this.searchScore = false + this.searchForm.sort = 'saleCount' }else if(type == 'all'){ this.searchForm.sortOrder = 'shoprank' this.searchForm.orderOrder = 'desc' this.searchForm.shopArea = '' + this.searchForm.sort = 'shoprank' this.searchScore = false this.searchSale = false }else if(type == 'typeUp'){ @@ -318,7 +321,7 @@ let that = this that.tui.request("/app/shop/getByCondition", "GET", this.searchForm, false, true).then((res) => { if (res.code == 200) { - if (that.pageNum == 1) { + if (that.pageNumber == 1) { that.shopList = res.result.content } else { that.shopList = [...that.shopList, ...res.result.content]