更新若干功能
Some checks failed
Tests / PHP 8.2 (push) Has been cancelled
Tests / PHP 8.3 (push) Has been cancelled
Tests / PHP 8.4 (push) Has been cancelled

This commit is contained in:
2026-08-20 19:16:49 +08:00
parent 72bc6502eb
commit 4ddf5e3c5f
48 changed files with 1908 additions and 18 deletions

View File

@@ -56,6 +56,9 @@ class WxTemplateSchemaService
'header' => ['gradient', 'image', 'plain', 'split', 'editorial'],
'menu' => ['grid', 'list', 'card', 'tile', 'compact'],
],
'package' => [
'list' => ['card', 'featured', 'magazine', 'list'],
],
'effect' => [
'transition' => ['fade', 'slide', 'zoom', 'none'],
'skeleton' => ['shimmer', 'pulse', 'none'],
@@ -70,7 +73,7 @@ class WxTemplateSchemaService
*/
public const PAGE_SECTION_TYPES = [
'home' => ['search', 'hero', 'category', 'package', 'product'],
'package' => ['list'],
'package' => ['search', 'list'],
'catalog' => ['filter', 'list'],
'search' => ['search', 'list'],
'product' => ['gallery', 'info', 'spec', 'price', 'action'],
@@ -90,7 +93,7 @@ class WxTemplateSchemaService
'filter' => ['chip', 'bar', 'sidebar', 'hidden'],
'list' => [
'card', 'table', 'timeline', 'waterfall', 'grid', 'list',
'masonry', 'featured', 'shelf', 'compact', 'airy', 'mosaic', 'duo',
'masonry', 'featured', 'magazine', 'shelf', 'compact', 'airy', 'mosaic', 'duo',
'ticket', 'stacked',
],
'gallery' => ['swiper', 'stack', 'fullbleed', 'peek', 'fade', 'coverflow', 'mosaic', 'filmstrip'],
@@ -111,6 +114,7 @@ class WxTemplateSchemaService
'package' => ['card', 'scroll', 'featured', 'magazine'],
],
'package' => [
'search' => ['bar', 'overlay', 'pill', 'float'],
'list' => ['card', 'featured', 'magazine', 'list'],
],
'catalog' => [
@@ -198,6 +202,7 @@ class WxTemplateSchemaService
'mosaic' => '马赛克',
'duo' => '对开',
'card' => '卡片',
'magazine' => '刊名条',
'table' => '表格',
'timeline' => '时间线',
'ticket' => '票根',