From 06be1c7ccc7533612e4cc7b0e730080d0dd3d2a1 Mon Sep 17 00:00:00 2001
From: quanwei <419654421@qq.com>
Date: Fri, 16 Jan 2026 11:43:36 +0800
Subject: [PATCH] 商品可以赠送优惠券 商品属性增加团购 入驻商家增加实物和团购选项 团购和实物商户分类分开 增加团购商家页面 后台添加页面增加团购组件

---
 admin/app/common/model/page/Page.php |   93 +++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 90 insertions(+), 3 deletions(-)

diff --git a/admin/app/common/model/page/Page.php b/admin/app/common/model/page/Page.php
index 6e20344..ddf944c 100644
--- a/admin/app/common/model/page/Page.php
+++ b/admin/app/common/model/page/Page.php
@@ -209,7 +209,11 @@
                     ]
                 ],
                 'style' => [
-                    'display' => '10'
+                    'display' => '10',
+                    'textColor' => '#000000',
+                    'image' => self::$base_url . 'image/diy/hd.png',
+                    'background' => self::$base_url . 'image/diy/hdbg.png',
+
                 ],
                 // '自动获取' => 默认数据
                 'defaultData' => [
@@ -235,7 +239,10 @@
                     ]
                 ],
                 'style' => [
-                    'display' => '10'
+                    'display' => '10',
+                    'textColor' => '#000000',
+                    'image' => self::$base_url . 'image/diy/hd.png',
+                    'background' => self::$base_url . 'image/diy/hdbg.png',
                 ],
                 // '自动获取' => 默认数据
                 'defaultData' => [
@@ -244,7 +251,6 @@
                     ],
                     [
                         'title' => '此处显示标题',
-                        'show_type' => 10,
                     ]
                 ],
                 // '手动选择' => 默认数据
@@ -767,6 +773,87 @@
                     ],
                 ]
             ],
+            'groupBuy' => [
+                'name' => '团购',
+                'type' => 'groupBuy',
+                'group' => 'shop',
+                'params' => [
+                    'category' => 0,
+                    'merchantSort' => 'all',
+                    'product_num'=>3
+                ],
+                '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' => '商户名称',
+                        'ranking' => '1',
+                        'average_price' => '150',
+                        'distance' => '1km',
+                        'server_score' => '4.8',
+                        'server_score_text'=>'超赞',
+                        'comment' => '3000',
+                        'max_reduce_price' => 5,
+                        'productList' => [
+                            [
+                                'product_name' => '商品名称',
+                                'product_price' => '100',
+                                'product_num' => '商品数量',
+                                'product_image' => self::$base_url . 'image/diy/product/01.png',
+                                'reduce_price' => '5',
+                            ],
+                            [
+                                'product_name' => '商品名称',
+                                'product_price' => '100',
+                                'product_num' => '商品数量',
+                                'product_image' => self::$base_url . 'image/diy/product/01.png',
+                                'reduce_price' => '5',
+                            ],
+                            [
+                                'product_name' => '商品名称',
+                                'product_price' => '100',
+                                'product_num' => '商品数量',
+                                'product_image' => self::$base_url . 'image/diy/product/01.png',
+                                'reduce_price' => '5',
+                            ],
+                            [
+                                'product_name' => '商品名称',
+                                'product_price' => '100',
+                                'product_num' => '商品数量',
+                                'product_image' => self::$base_url . 'image/diy/product/01.png',
+                                'reduce_price' => '5',
+                            ],
+                        ],
+                        'color' => '#666666'
+                    ],
+                    [
+                        'category_name' => '商户名称',
+                        'ranking' => '12',
+                        'distance' => '1.2km',
+                        'server_score' => '4.5',
+                        '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,
+                            ],
+                        ],
+                        'color' => '#666666'
+                    ]
+                ]
+            ],
         ];
     }
 

--
Gitblit v1.9.2