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]