From 63813897677e57a3cf8f03e76802872cf8c501a3 Mon Sep 17 00:00:00 2001
From: tianyi <13521030702@163.com>
Date: Tue, 17 Mar 2026 10:49:08 +0800
Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=AE=B6=E6=90=9C=E7=B4=A2=E9=A1=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
package1/group/groupBuyList.vue | 24 +-
package1/group/searchGroup.vue | 486 ++++++++++++++++++++++++++++++++
2 files changed, 505 insertions(+), 5 deletions(-)
create mode 100644 package1/group/searchGroup.vue
diff --git a/package1/group/groupBuyList.vue b/package1/group/groupBuyList.vue
index bc15de9..2a065ee 100644
--- a/package1/group/groupBuyList.vue
+++ b/package1/group/groupBuyList.vue
@@ -9,9 +9,9 @@
代买饭
-
+
-
+
@@ -113,6 +113,7 @@
+
当前2000名配送员在线
@@ -125,6 +126,7 @@
export default {
data() {
return {
+ loadStatus: 'more',
isArea:false,
indicatorDots: false,
autoplay: true,
@@ -132,7 +134,6 @@
duration: 1000,
searchScore: false,
searchSale: false,
- pageNumber:1,
shopArea:[],
totalPages:1,
searchForm:{
@@ -223,6 +224,13 @@
return begin;
}
},
+ onReachBottom() {
+ if (this.searchForm.pageNumber >= this.totalPages) return;
+ // this.status = 'loading';
+ this.searchForm.pageNumber ++;
+ this.getShopList();
+
+ },
onLoad() {
this.getEatType();
this.getShopArea();
@@ -305,6 +313,7 @@
}).catch((res) => {})
},
getShopList(){
+ this.loadStatus = 'loading'
if(this.searchSale){
this.searchForm.sortSale = 'saleCount'
this.searchForm.orderSale = 'desc'
@@ -321,14 +330,15 @@
}
let that = this
that.tui.request("/app/shop/getByCondition", "GET", this.searchForm, false, true).then((res) => {
+ that.loadStatus = 'nomore';
if (res.code == 200) {
- if (that.pageNumber == 1) {
+ if (that.searchForm.pageNumber == 1) {
that.shopList = res.result.content
} else {
that.shopList = [...that.shopList, ...res.result.content]
}
that.totalPages = res.result.totalPages
- this.isArea = false
+ that.isArea = false
that.$forceUpdate()
} else {
that.tui.toast(res.message)
@@ -342,6 +352,10 @@
uni.navigateTo({
url:'/package1/group/groupBuySingle?type=shop&item=' + JSON.stringify(item)
})
+ }else if(type == 'search'){
+ uni.navigateTo({
+ url:'/package1/group/searchGroup'
+ })
}else{
uni.navigateTo({
url:'/package1/group/groupBuySingle?type=product&item=' + JSON.stringify(item)
diff --git a/package1/group/searchGroup.vue b/package1/group/searchGroup.vue
new file mode 100644
index 0000000..900ad39
--- /dev/null
+++ b/package1/group/searchGroup.vue
@@ -0,0 +1,486 @@
+
+
+
+
+
+
+
+
+
+ 搜索页
+
+
+
+
+
+
+
+
+ 历史搜索
+
+
+
+ 麻辣
+
+
+ 牛肉
+
+
+ 雪
+
+
+ 面
+
+
+ 茶
+
+
+
+
+
+
+ 综合排序 ▼
+
+
+
+
+ 销量优先 ▼
+
+
+
+
+ 评分优先 ▼
+
+
+
+
+ 区域选择 ▼
+
+
+ {{item.title}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.shopName}}
+
+
+
+ {{item.shopScore}}
+
+
+
+
+ {{item.shopTakeaway.type}}
+
+
+
+
+
+
+ {{item.subtitle}}
+
+
+
+ 已拼 {{item.saleCount != null ? item.saleCount : 0}} 单
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file