From e1e2fe5710a5b5cd9c19bd3aa99c998a1a613ca8 Mon Sep 17 00:00:00 2001
From: quanwei <419654421@qq.com>
Date: Sat, 17 Jan 2026 17:58:01 +0800
Subject: [PATCH] 团购组件增加筛选

---
 admin/app/common/model/page/Page.php |   32 +++++++++++++++++++++-----------
 1 files changed, 21 insertions(+), 11 deletions(-)

diff --git a/admin/app/common/model/page/Page.php b/admin/app/common/model/page/Page.php
index ddf944c..9c926e8 100644
--- a/admin/app/common/model/page/Page.php
+++ b/admin/app/common/model/page/Page.php
@@ -780,9 +780,12 @@
                 'params' => [
                     'category' => 0,
                     'merchantSort' => 'all',
-                    'product_num'=>3
+                    'product_num' => 3,
+                    'is_sort' => 1,
+                    'is_category' => 1,
+                    'is_filter' => 1
                 ],
-                'style' => ['background' => '#ffffff', 'background_active' => '#ffffff', 'text_active' => '#ef4f4f', 'show_type' => '2','server_score_image'=>self::$base_url . 'image/diy/product/01.png'],
+                'style' => ['background' => '#ffffff', 'background_active' => '#ffffff', 'text_active' => '#ef4f4f', 'show_type' => '2', 'server_score_image' => self::$base_url . 'image/diy/product/01.png'],
                 'data' => [
                     [
                         'name' => '商户名称',
@@ -790,7 +793,7 @@
                         'average_price' => '150',
                         'distance' => '1km',
                         'server_score' => '4.8',
-                        'server_score_text'=>'超赞',
+                        'server_score_text' => '超赞',
                         'comment' => '3000',
                         'max_reduce_price' => 5,
                         'productList' => [
@@ -830,18 +833,18 @@
                         'ranking' => '12',
                         'distance' => '1.2km',
                         'server_score' => '4.5',
-                        'server_score_text'=>'非常棒',
+                        'server_score_text' => '非常棒',
                         'average_price' => '160',
                         'max_reduce_price' => 0,
                         'comment' => '300',
                         'productList' => [
-                           [
-                               'product_name' => '商品名称',
-                               'product_price' => '100',
-                               'product_num' => '商品数量',
-                               'product_image' => self::$base_url . 'image/diy/product/01.png',
-                               'reduce_price' => 0,
-                           ],
+                            [
+                                'product_name' => '商品名称',
+                                'product_price' => '100',
+                                'product_num' => '商品数量',
+                                'product_image' => self::$base_url . 'image/diy/product/01.png',
+                                'reduce_price' => 0,
+                            ],
                             [
                                 'product_name' => '商品名称',
                                 'product_price' => '100',
@@ -852,6 +855,13 @@
                         ],
                         'color' => '#666666'
                     ]
+                ], 'filter' => [
+                    ['label' => '距离优先', 'value' => 'distance', 'type' => 'normal'],
+                    ['label' => '销量优先', 'value' => 'sales', 'type' => 'normal'],
+                    ['label' => '评分优先', 'value' => 'score', 'type' => 'normal'],
+                    ['label' => '价格排序', 'value' => 'price', 'type' => 'price'],
+                    ['label' => '优惠力度', 'value' => 'discount', 'type' => 'normal'],
+                    ['label' => '评论最多', 'value' => 'comment', 'type' => 'normal']
                 ]
             ],
         ];

--
Gitblit v1.9.2