更新若干功能
This commit is contained in:
@@ -1,234 +1,382 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* 小程序装修模板预设(20 套)
|
||||
* 小程序装修模板预设(4 套店面轻奢 + 1 套刊页)
|
||||
*
|
||||
* 每套模板的差异不只是主色:字体族与字号梯度、圆角、阴影、动效时长与曲线、
|
||||
* 以及首页/详情/清单/我的四个页面的排布都不一样。这里用紧凑的规格描述,
|
||||
* 由 WxTemplatePresetService 展开成完整令牌,避免 20 份手抄 JSON 互相抄错。
|
||||
*
|
||||
* scale/radius/shadow/motion 的取值见 WxTemplatePresetService 里的对应表。
|
||||
* 首期精修「轻奢」系列(前 4 套),其余先占位可用,后续按期打磨。
|
||||
* 色板共用一族暖中性,差异只在主色/底色深浅。layout 同时带旧枚举
|
||||
* (小程序未升级时仍能用)和 pages.sections(装修工作室拖拽编排)。
|
||||
* card_scheme 指向 30 套 canvas 卡片预设之一。
|
||||
*/
|
||||
|
||||
$section = static function (string $id, string $type, string $variant, array $props = [], bool $visible = true): array {
|
||||
return [
|
||||
'id' => $id,
|
||||
'type' => $type,
|
||||
'variant' => $variant,
|
||||
'visible' => $visible,
|
||||
'props' => $props,
|
||||
];
|
||||
};
|
||||
|
||||
$buildPages = static function (
|
||||
array $home,
|
||||
array $product,
|
||||
string $cardScheme,
|
||||
string $goodsList,
|
||||
string $listStyle,
|
||||
string $mineHeader,
|
||||
string $mineMenu,
|
||||
string $homePreset = 'home-01-classic',
|
||||
string $homeSkin = 'shop',
|
||||
string $searchVariant = 'bar',
|
||||
string $categoryVariant = '',
|
||||
array $homeMeta = [],
|
||||
array $pageCodes = [],
|
||||
array $chrome = [],
|
||||
) use ($section): array {
|
||||
$cat = $categoryVariant !== '' ? $categoryVariant : $home['category'];
|
||||
return [
|
||||
'card_scheme' => $cardScheme,
|
||||
'chrome' => array_merge([
|
||||
'tabbar' => 'plain',
|
||||
'navbar' => 'solid',
|
||||
'tabbar_anim' => 'slide',
|
||||
], $chrome),
|
||||
'page_presets' => array_merge([
|
||||
'home' => $homePreset,
|
||||
'catalog' => 'catalog-01-waterfall',
|
||||
'search' => 'search-01-waterfall',
|
||||
'product' => 'product-00-default',
|
||||
'cart' => 'cart-01-card',
|
||||
'mine' => 'mine-01-gradient',
|
||||
'package' => 'package-00-default',
|
||||
], $pageCodes),
|
||||
'pages' => [
|
||||
'home' => [
|
||||
'skin' => $homeSkin,
|
||||
'density' => $homeMeta['density'] ?? 'regular',
|
||||
'frame' => $homeMeta['frame'] ?? 'none',
|
||||
'card_scheme' => $cardScheme,
|
||||
'sections' => [
|
||||
$section('search', 'search', $searchVariant),
|
||||
$section('hero', 'hero', $home['hero'], ['height' => (int) ($homeMeta['hero_height'] ?? 480)]),
|
||||
$section('category', 'category', $cat, ['cols' => 3]),
|
||||
$section('package', 'package', 'card'),
|
||||
// 原首页没有商品流,默认关,装修里可再打开
|
||||
$section('product', 'product', $home['product'], ['card_scheme' => $cardScheme], false),
|
||||
],
|
||||
],
|
||||
'package' => [
|
||||
'card_scheme' => $cardScheme,
|
||||
'sections' => [
|
||||
$section('list', 'list', 'card'),
|
||||
],
|
||||
],
|
||||
'catalog' => [
|
||||
'card_scheme' => $cardScheme,
|
||||
'sections' => [
|
||||
$section('filter', 'filter', 'chip'),
|
||||
$section('list', 'list', $goodsList, ['card_scheme' => $cardScheme]),
|
||||
],
|
||||
],
|
||||
'search' => [
|
||||
'card_scheme' => $cardScheme,
|
||||
'sections' => [
|
||||
$section('search', 'search', 'bar'),
|
||||
$section('list', 'list', $goodsList, ['card_scheme' => $cardScheme]),
|
||||
],
|
||||
],
|
||||
'product' => [
|
||||
'card_scheme' => $cardScheme,
|
||||
'sections' => [
|
||||
$section('gallery', 'gallery', $product['gallery']),
|
||||
$section('info', 'info', $product['info'] ?? 'plain'),
|
||||
$section('spec', 'spec', $product['spec'] ?? 'plain'),
|
||||
$section('price', 'price', $product['price'] ?? 'inline'),
|
||||
$section('action', 'action', $product['action'] ?? 'fixed'),
|
||||
],
|
||||
],
|
||||
'cart' => [
|
||||
'card_scheme' => $cardScheme,
|
||||
'sections' => [
|
||||
$section('list', 'list', $listStyle),
|
||||
],
|
||||
],
|
||||
'mine' => [
|
||||
'card_scheme' => $cardScheme,
|
||||
'sections' => [
|
||||
$section('header', 'header', $mineHeader),
|
||||
$section('menu', 'menu', $mineMenu),
|
||||
],
|
||||
],
|
||||
],
|
||||
];
|
||||
};
|
||||
|
||||
return [
|
||||
[
|
||||
'code' => 'lux-champagne',
|
||||
'name' => '轻奢·香槟金',
|
||||
'code' => 'nature-clay',
|
||||
'name' => '素胚',
|
||||
'style_tag' => '轻奢',
|
||||
'palette' => ['primary' => '#B08D57', 'accent' => '#8C6A3F', 'bg' => '#FAF7F2', 'surface' => '#FFFFFF', 'text' => '#1C1917', 'border' => '#E7DFD3'],
|
||||
'scale' => 'serif-elegant',
|
||||
'palette' => [
|
||||
'primary' => '#8A8178',
|
||||
'accent' => '#C4B8A8',
|
||||
'bg' => '#F4EFE6',
|
||||
'surface' => '#EFE8DC',
|
||||
'text' => '#1C1917',
|
||||
'border' => '#E7DFD3',
|
||||
],
|
||||
'scale' => 'serif-book',
|
||||
'radius' => 'soft',
|
||||
'shadow' => 'airy',
|
||||
'motion' => 'silk',
|
||||
'layout' => ['home' => ['hero' => 'fullscreen', 'category' => 'scroll', 'product' => 'magazine'], 'product' => ['gallery' => 'fullbleed', 'price' => 'sticky', 'action' => 'fixed'], 'list' => ['style' => 'card'], 'mine' => ['header' => 'gradient', 'menu' => 'list'], 'effect' => ['transition' => 'fade', 'skeleton' => 'shimmer']],
|
||||
],
|
||||
[
|
||||
'code' => 'lux-ink',
|
||||
'name' => '轻奢·墨玉',
|
||||
'style_tag' => '轻奢',
|
||||
'palette' => ['primary' => '#C9A063', 'accent' => '#E8D5AE', 'bg' => '#14110F', 'surface' => '#1F1B18', 'text' => '#F5F0E8', 'border' => '#332C25'],
|
||||
'scale' => 'serif-elegant',
|
||||
'radius' => 'soft',
|
||||
'shadow' => 'deep',
|
||||
'motion' => 'silk',
|
||||
'layout' => ['home' => ['hero' => 'fullscreen', 'category' => 'sidebar', 'product' => 'grid'], 'product' => ['gallery' => 'stack', 'price' => 'card', 'action' => 'fixed'], 'list' => ['style' => 'card'], 'mine' => ['header' => 'image', 'menu' => 'list'], 'effect' => ['transition' => 'fade', 'skeleton' => 'shimmer']],
|
||||
'shadow' => 'flat',
|
||||
'motion' => 'gentle',
|
||||
'layout' => array_merge(
|
||||
[
|
||||
'home' => ['hero' => 'split', 'category' => 'card', 'product' => 'waterfall'],
|
||||
'product' => ['gallery' => 'swiper', 'price' => 'card', 'action' => 'fixed'],
|
||||
'list' => ['style' => 'card'],
|
||||
'mine' => ['header' => 'plain', 'menu' => 'list'],
|
||||
'effect' => [
|
||||
'transition' => 'fade',
|
||||
'skeleton' => 'pulse',
|
||||
'card' => 'plain',
|
||||
'icon' => 'line',
|
||||
],
|
||||
],
|
||||
$buildPages(
|
||||
['hero' => 'split', 'category' => 'card', 'product' => 'waterfall'],
|
||||
['gallery' => 'swiper', 'action' => 'fixed', 'info' => 'editorial', 'spec' => 'table', 'price' => 'card'],
|
||||
'clay-edge',
|
||||
'waterfall',
|
||||
'card',
|
||||
'plain',
|
||||
'list',
|
||||
'home-03-split-card',
|
||||
'shop',
|
||||
'bar',
|
||||
'',
|
||||
[],
|
||||
[
|
||||
'catalog' => 'catalog-02-waterfall',
|
||||
'search' => 'search-02-waterfall',
|
||||
'product' => 'product-00-default',
|
||||
'cart' => 'cart-02-table',
|
||||
'mine' => 'mine-11-plain',
|
||||
],
|
||||
['tabbar' => 'plain', 'navbar' => 'solid', 'tabbar_anim' => 'none'],
|
||||
),
|
||||
),
|
||||
],
|
||||
[
|
||||
'code' => 'lux-pearl',
|
||||
'name' => '轻奢·珠贝白',
|
||||
'style_tag' => '轻奢',
|
||||
'palette' => ['primary' => '#9C8E7E', 'accent' => '#CBBFA8', 'bg' => '#FFFFFF', 'surface' => '#F7F5F1', 'text' => '#2B2724', 'border' => '#EAE5DC'],
|
||||
'palette' => [
|
||||
'primary' => '#9C8E7E',
|
||||
'accent' => '#D4C4A8',
|
||||
'bg' => '#FFFCF8',
|
||||
'surface' => '#F7F4EF',
|
||||
'text' => '#1C1917',
|
||||
'border' => '#E7DFD3',
|
||||
],
|
||||
'scale' => 'sans-refined',
|
||||
'radius' => 'sharp',
|
||||
'shadow' => 'airy',
|
||||
'motion' => 'silk',
|
||||
'layout' => ['home' => ['hero' => 'split', 'category' => 'grid', 'product' => 'waterfall'], 'product' => ['gallery' => 'swiper', 'price' => 'inline', 'action' => 'inline'], 'list' => ['style' => 'table'], 'mine' => ['header' => 'plain', 'menu' => 'grid'], 'effect' => ['transition' => 'slide', 'skeleton' => 'shimmer']],
|
||||
'layout' => array_merge(
|
||||
[
|
||||
'home' => ['hero' => 'split', 'category' => 'grid', 'product' => 'waterfall'],
|
||||
'product' => ['gallery' => 'swiper', 'price' => 'inline', 'action' => 'fixed'],
|
||||
'list' => ['style' => 'table'],
|
||||
'mine' => ['header' => 'plain', 'menu' => 'grid'],
|
||||
'effect' => [
|
||||
'transition' => 'fade',
|
||||
'skeleton' => 'shimmer',
|
||||
'card' => 'elevated',
|
||||
'icon' => 'line',
|
||||
],
|
||||
],
|
||||
$buildPages(
|
||||
['hero' => 'split', 'category' => 'grid', 'product' => 'waterfall'],
|
||||
['gallery' => 'swiper', 'action' => 'fixed', 'info' => 'plain', 'spec' => 'plain', 'price' => 'inline'],
|
||||
'pearl-line',
|
||||
'waterfall',
|
||||
'table',
|
||||
'plain',
|
||||
'grid',
|
||||
'home-01-classic',
|
||||
'shop',
|
||||
'bar',
|
||||
'',
|
||||
[],
|
||||
[
|
||||
'catalog' => 'catalog-04-grid',
|
||||
'search' => 'search-04-grid',
|
||||
'product' => 'product-00-default',
|
||||
'cart' => 'cart-02-table',
|
||||
'mine' => 'mine-03-gradient',
|
||||
],
|
||||
['tabbar' => 'line', 'navbar' => 'line', 'tabbar_anim' => 'slide'],
|
||||
),
|
||||
),
|
||||
],
|
||||
[
|
||||
'code' => 'lux-walnut',
|
||||
'name' => '轻奢·胡桃木',
|
||||
'style_tag' => '轻奢',
|
||||
'palette' => ['primary' => '#6F4E37', 'accent' => '#A9784F', 'bg' => '#F6F1EA', 'surface' => '#FFFDFA', 'text' => '#241B14', 'border' => '#E2D6C7'],
|
||||
'palette' => [
|
||||
'primary' => '#6F4E37',
|
||||
'accent' => '#A9784F',
|
||||
'bg' => '#F6F1EA',
|
||||
'surface' => '#FFFDFA',
|
||||
'text' => '#1C1917',
|
||||
'border' => '#E7DFD3',
|
||||
],
|
||||
'scale' => 'serif-elegant',
|
||||
'radius' => 'round',
|
||||
'shadow' => 'soft',
|
||||
'motion' => 'gentle',
|
||||
'layout' => ['home' => ['hero' => 'carousel', 'category' => 'card', 'product' => 'magazine'], 'product' => ['gallery' => 'fullbleed', 'price' => 'card', 'action' => 'fixed'], 'list' => ['style' => 'card'], 'mine' => ['header' => 'gradient', 'menu' => 'list'], 'effect' => ['transition' => 'fade', 'skeleton' => 'pulse']],
|
||||
'layout' => array_merge(
|
||||
[
|
||||
'home' => ['hero' => 'carousel', 'category' => 'card', 'product' => 'waterfall'],
|
||||
'product' => ['gallery' => 'fullbleed', 'price' => 'card', 'action' => 'fixed'],
|
||||
'list' => ['style' => 'card'],
|
||||
'mine' => ['header' => 'gradient', 'menu' => 'list'],
|
||||
'effect' => [
|
||||
'transition' => 'fade',
|
||||
'skeleton' => 'shimmer',
|
||||
'card' => 'elevated',
|
||||
'icon' => 'line',
|
||||
],
|
||||
],
|
||||
$buildPages(
|
||||
['hero' => 'carousel', 'category' => 'card', 'product' => 'waterfall'],
|
||||
['gallery' => 'fullbleed', 'action' => 'fixed', 'info' => 'plain', 'spec' => 'table', 'price' => 'card'],
|
||||
'walnut-frame',
|
||||
'featured',
|
||||
'card',
|
||||
'gradient',
|
||||
'list',
|
||||
'home-11-carousel-card',
|
||||
'shop',
|
||||
'bar',
|
||||
'',
|
||||
[],
|
||||
[
|
||||
'catalog' => 'catalog-13-featured',
|
||||
'search' => 'search-13-featured',
|
||||
'product' => 'product-00-default',
|
||||
'cart' => 'cart-01-card',
|
||||
'mine' => 'mine-01-gradient',
|
||||
],
|
||||
['tabbar' => 'pill', 'navbar' => 'solid', 'tabbar_anim' => 'spring'],
|
||||
),
|
||||
),
|
||||
],
|
||||
[
|
||||
'code' => 'minimal-linen',
|
||||
'name' => '极简·亚麻',
|
||||
'style_tag' => '极简',
|
||||
'palette' => ['primary' => '#3F3F46', 'accent' => '#A1A1AA', 'bg' => '#FAFAF9', 'surface' => '#FFFFFF', 'text' => '#18181B', 'border' => '#E4E4E7'],
|
||||
'scale' => 'sans-compact',
|
||||
'radius' => 'sharp',
|
||||
'shadow' => 'flat',
|
||||
'motion' => 'snappy',
|
||||
'layout' => ['home' => ['hero' => 'banner', 'category' => 'grid', 'product' => 'grid'], 'product' => ['gallery' => 'swiper', 'price' => 'inline', 'action' => 'inline'], 'list' => ['style' => 'table'], 'mine' => ['header' => 'plain', 'menu' => 'list'], 'effect' => ['transition' => 'none', 'skeleton' => 'pulse']],
|
||||
],
|
||||
[
|
||||
'code' => 'minimal-mono',
|
||||
'name' => '极简·黑白',
|
||||
'style_tag' => '极简',
|
||||
'palette' => ['primary' => '#000000', 'accent' => '#525252', 'bg' => '#FFFFFF', 'surface' => '#F5F5F5', 'text' => '#0A0A0A', 'border' => '#D4D4D4'],
|
||||
'scale' => 'sans-wide',
|
||||
'radius' => 'none',
|
||||
'shadow' => 'flat',
|
||||
'motion' => 'snappy',
|
||||
'layout' => ['home' => ['hero' => 'split', 'category' => 'scroll', 'product' => 'list'], 'product' => ['gallery' => 'stack', 'price' => 'inline', 'action' => 'inline'], 'list' => ['style' => 'table'], 'mine' => ['header' => 'plain', 'menu' => 'list'], 'effect' => ['transition' => 'slide', 'skeleton' => 'none']],
|
||||
],
|
||||
[
|
||||
'code' => 'modern-indigo',
|
||||
'name' => '现代·靛蓝',
|
||||
'style_tag' => '现代',
|
||||
'palette' => ['primary' => '#4F46E5', 'accent' => '#818CF8', 'bg' => '#F8FAFC', 'surface' => '#FFFFFF', 'text' => '#0F172A', 'border' => '#E2E8F0'],
|
||||
'scale' => 'sans-refined',
|
||||
'radius' => 'round',
|
||||
'shadow' => 'soft',
|
||||
'motion' => 'bouncy',
|
||||
'layout' => ['home' => ['hero' => 'carousel', 'category' => 'card', 'product' => 'waterfall'], 'product' => ['gallery' => 'swiper', 'price' => 'card', 'action' => 'fixed'], 'list' => ['style' => 'card'], 'mine' => ['header' => 'gradient', 'menu' => 'grid'], 'effect' => ['transition' => 'zoom', 'skeleton' => 'shimmer']],
|
||||
],
|
||||
[
|
||||
'code' => 'modern-teal',
|
||||
'name' => '现代·青瓷',
|
||||
'style_tag' => '现代',
|
||||
'palette' => ['primary' => '#0D9488', 'accent' => '#5EEAD4', 'bg' => '#F0FDFA', 'surface' => '#FFFFFF', 'text' => '#134E4A', 'border' => '#CCFBF1'],
|
||||
'scale' => 'sans-refined',
|
||||
'radius' => 'round',
|
||||
'shadow' => 'soft',
|
||||
'motion' => 'gentle',
|
||||
'layout' => ['home' => ['hero' => 'banner', 'category' => 'grid', 'product' => 'grid'], 'product' => ['gallery' => 'swiper', 'price' => 'inline', 'action' => 'fixed'], 'list' => ['style' => 'card'], 'mine' => ['header' => 'gradient', 'menu' => 'grid'], 'effect' => ['transition' => 'fade', 'skeleton' => 'shimmer']],
|
||||
],
|
||||
[
|
||||
'code' => 'warm-terracotta',
|
||||
'name' => '暖调·陶土',
|
||||
'style_tag' => '暖调',
|
||||
'palette' => ['primary' => '#C05621', 'accent' => '#F6AD55', 'bg' => '#FFFAF0', 'surface' => '#FFFFFF', 'text' => '#2D2016', 'border' => '#FBD9B5'],
|
||||
'scale' => 'sans-compact',
|
||||
'radius' => 'round',
|
||||
'shadow' => 'soft',
|
||||
'motion' => 'bouncy',
|
||||
'layout' => ['home' => ['hero' => 'carousel', 'category' => 'scroll', 'product' => 'waterfall'], 'product' => ['gallery' => 'swiper', 'price' => 'card', 'action' => 'fixed'], 'list' => ['style' => 'card'], 'mine' => ['header' => 'image', 'menu' => 'grid'], 'effect' => ['transition' => 'slide', 'skeleton' => 'pulse']],
|
||||
],
|
||||
[
|
||||
'code' => 'warm-sand',
|
||||
'name' => '暖调·沙丘',
|
||||
'style_tag' => '暖调',
|
||||
'palette' => ['primary' => '#A16207', 'accent' => '#FDE68A', 'bg' => '#FEFCE8', 'surface' => '#FFFFFF', 'text' => '#292524', 'border' => '#F3E8C8'],
|
||||
'scale' => 'serif-book',
|
||||
'code' => 'lux-champagne',
|
||||
'name' => '轻奢·香槟金',
|
||||
'style_tag' => '轻奢',
|
||||
'palette' => [
|
||||
'primary' => '#B08D57',
|
||||
'accent' => '#8C6A3F',
|
||||
'bg' => '#FAF7F2',
|
||||
'surface' => '#FFFFFF',
|
||||
'text' => '#1C1917',
|
||||
'border' => '#E7DFD3',
|
||||
],
|
||||
'scale' => 'serif-elegant',
|
||||
'radius' => 'soft',
|
||||
'shadow' => 'airy',
|
||||
'motion' => 'gentle',
|
||||
'layout' => ['home' => ['hero' => 'split', 'category' => 'card', 'product' => 'magazine'], 'product' => ['gallery' => 'stack', 'price' => 'inline', 'action' => 'inline'], 'list' => ['style' => 'timeline'], 'mine' => ['header' => 'plain', 'menu' => 'list'], 'effect' => ['transition' => 'fade', 'skeleton' => 'shimmer']],
|
||||
],
|
||||
[
|
||||
'code' => 'cool-slate',
|
||||
'name' => '冷调·石板',
|
||||
'style_tag' => '冷调',
|
||||
'palette' => ['primary' => '#334155', 'accent' => '#94A3B8', 'bg' => '#F1F5F9', 'surface' => '#FFFFFF', 'text' => '#0F172A', 'border' => '#CBD5E1'],
|
||||
'scale' => 'sans-wide',
|
||||
'radius' => 'sharp',
|
||||
'shadow' => 'flat',
|
||||
'motion' => 'snappy',
|
||||
'layout' => ['home' => ['hero' => 'banner', 'category' => 'sidebar', 'product' => 'list'], 'product' => ['gallery' => 'swiper', 'price' => 'sticky', 'action' => 'fixed'], 'list' => ['style' => 'table'], 'mine' => ['header' => 'plain', 'menu' => 'list'], 'effect' => ['transition' => 'slide', 'skeleton' => 'pulse']],
|
||||
],
|
||||
[
|
||||
'code' => 'cool-mist',
|
||||
'name' => '冷调·雾蓝',
|
||||
'style_tag' => '冷调',
|
||||
'palette' => ['primary' => '#0369A1', 'accent' => '#7DD3FC', 'bg' => '#F0F9FF', 'surface' => '#FFFFFF', 'text' => '#0C4A6E', 'border' => '#BAE6FD'],
|
||||
'scale' => 'sans-refined',
|
||||
'radius' => 'round',
|
||||
'shadow' => 'airy',
|
||||
'motion' => 'silk',
|
||||
'layout' => ['home' => ['hero' => 'carousel', 'category' => 'grid', 'product' => 'grid'], 'product' => ['gallery' => 'swiper', 'price' => 'card', 'action' => 'fixed'], 'list' => ['style' => 'card'], 'mine' => ['header' => 'gradient', 'menu' => 'grid'], 'effect' => ['transition' => 'fade', 'skeleton' => 'shimmer']],
|
||||
'layout' => array_merge(
|
||||
[
|
||||
'home' => ['hero' => 'fullscreen', 'category' => 'scroll', 'product' => 'waterfall'],
|
||||
'product' => ['gallery' => 'fullbleed', 'price' => 'sticky', 'action' => 'fixed'],
|
||||
'list' => ['style' => 'ticket'],
|
||||
'mine' => ['header' => 'split', 'menu' => 'card'],
|
||||
'effect' => [
|
||||
'transition' => 'fade',
|
||||
'skeleton' => 'shimmer',
|
||||
'card' => 'canvas-frame',
|
||||
'icon' => 'line',
|
||||
],
|
||||
],
|
||||
$buildPages(
|
||||
['hero' => 'fullscreen', 'category' => 'scroll', 'product' => 'waterfall'],
|
||||
['gallery' => 'fullbleed', 'action' => 'fixed', 'info' => 'overlay', 'spec' => 'plain', 'price' => 'sticky'],
|
||||
'champagne-foil',
|
||||
'shelf',
|
||||
'ticket',
|
||||
'split',
|
||||
'card',
|
||||
'home-04-full-scroll',
|
||||
'shop',
|
||||
'bar',
|
||||
'',
|
||||
[],
|
||||
[
|
||||
'catalog' => 'catalog-16-shelf',
|
||||
'search' => 'search-16-shelf',
|
||||
'product' => 'product-00-default',
|
||||
'cart' => 'cart-05-ticket',
|
||||
'mine' => 'mine-16-split',
|
||||
],
|
||||
['tabbar' => 'pill', 'navbar' => 'line', 'tabbar_anim' => 'fade'],
|
||||
),
|
||||
),
|
||||
],
|
||||
[
|
||||
'code' => 'nature-olive',
|
||||
'name' => '自然·橄榄',
|
||||
'style_tag' => '自然',
|
||||
'palette' => ['primary' => '#4D7C0F', 'accent' => '#BEF264', 'bg' => '#F7FEE7', 'surface' => '#FFFFFF', 'text' => '#1A2E05', 'border' => '#D9F99D'],
|
||||
'scale' => 'sans-compact',
|
||||
'radius' => 'soft',
|
||||
'shadow' => 'soft',
|
||||
'motion' => 'gentle',
|
||||
'layout' => ['home' => ['hero' => 'banner', 'category' => 'scroll', 'product' => 'waterfall'], 'product' => ['gallery' => 'swiper', 'price' => 'inline', 'action' => 'inline'], 'list' => ['style' => 'card'], 'mine' => ['header' => 'image', 'menu' => 'grid'], 'effect' => ['transition' => 'fade', 'skeleton' => 'pulse']],
|
||||
],
|
||||
[
|
||||
'code' => 'nature-clay',
|
||||
'name' => '自然·素坯',
|
||||
'style_tag' => '自然',
|
||||
'palette' => ['primary' => '#78716C', 'accent' => '#D6D3D1', 'bg' => '#FAFAF9', 'surface' => '#F5F5F4', 'text' => '#1C1917', 'border' => '#E7E5E4'],
|
||||
'scale' => 'serif-book',
|
||||
'radius' => 'soft',
|
||||
'shadow' => 'flat',
|
||||
'motion' => 'gentle',
|
||||
'layout' => ['home' => ['hero' => 'split', 'category' => 'card', 'product' => 'magazine'], 'product' => ['gallery' => 'fullbleed', 'price' => 'inline', 'action' => 'inline'], 'list' => ['style' => 'timeline'], 'mine' => ['header' => 'plain', 'menu' => 'list'], 'effect' => ['transition' => 'fade', 'skeleton' => 'shimmer']],
|
||||
],
|
||||
[
|
||||
'code' => 'bold-crimson',
|
||||
'name' => '张扬·绛红',
|
||||
'style_tag' => '浓烈',
|
||||
'palette' => ['primary' => '#9F1239', 'accent' => '#FB7185', 'bg' => '#FFF1F2', 'surface' => '#FFFFFF', 'text' => '#4C0519', 'border' => '#FECDD3'],
|
||||
'scale' => 'sans-wide',
|
||||
'radius' => 'round',
|
||||
'shadow' => 'deep',
|
||||
'motion' => 'bouncy',
|
||||
'layout' => ['home' => ['hero' => 'fullscreen', 'category' => 'card', 'product' => 'grid'], 'product' => ['gallery' => 'stack', 'price' => 'sticky', 'action' => 'fixed'], 'list' => ['style' => 'card'], 'mine' => ['header' => 'gradient', 'menu' => 'grid'], 'effect' => ['transition' => 'zoom', 'skeleton' => 'shimmer']],
|
||||
],
|
||||
[
|
||||
'code' => 'bold-violet',
|
||||
'name' => '张扬·紫罗兰',
|
||||
'style_tag' => '浓烈',
|
||||
'palette' => ['primary' => '#7E22CE', 'accent' => '#D8B4FE', 'bg' => '#FAF5FF', 'surface' => '#FFFFFF', 'text' => '#3B0764', 'border' => '#E9D5FF'],
|
||||
'scale' => 'sans-refined',
|
||||
'radius' => 'pill',
|
||||
'shadow' => 'deep',
|
||||
'motion' => 'bouncy',
|
||||
'layout' => ['home' => ['hero' => 'carousel', 'category' => 'scroll', 'product' => 'waterfall'], 'product' => ['gallery' => 'swiper', 'price' => 'card', 'action' => 'fixed'], 'list' => ['style' => 'card'], 'mine' => ['header' => 'gradient', 'menu' => 'grid'], 'effect' => ['transition' => 'zoom', 'skeleton' => 'shimmer']],
|
||||
],
|
||||
[
|
||||
'code' => 'dark-graphite',
|
||||
'name' => '暗色·石墨',
|
||||
'style_tag' => '暗色',
|
||||
'palette' => ['primary' => '#E5E5E5', 'accent' => '#A3A3A3', 'bg' => '#0A0A0A', 'surface' => '#171717', 'text' => '#FAFAFA', 'border' => '#262626'],
|
||||
'scale' => 'sans-compact',
|
||||
'code' => 'lux-folio',
|
||||
'name' => '轻奢·刊页',
|
||||
'style_tag' => '刊页',
|
||||
'palette' => [
|
||||
'primary' => '#C4A574',
|
||||
'accent' => '#A3845A',
|
||||
'bg' => '#F7F1E6',
|
||||
'surface' => '#FFF9F0',
|
||||
'text' => '#3F2F24',
|
||||
'border' => '#E4D6C2',
|
||||
],
|
||||
'scale' => 'serif-elegant',
|
||||
'radius' => 'sharp',
|
||||
'shadow' => 'deep',
|
||||
'motion' => 'snappy',
|
||||
'layout' => ['home' => ['hero' => 'banner', 'category' => 'grid', 'product' => 'grid'], 'product' => ['gallery' => 'stack', 'price' => 'sticky', 'action' => 'fixed'], 'list' => ['style' => 'table'], 'mine' => ['header' => 'plain', 'menu' => 'list'], 'effect' => ['transition' => 'slide', 'skeleton' => 'pulse']],
|
||||
],
|
||||
[
|
||||
'code' => 'dark-emerald',
|
||||
'name' => '暗色·祖母绿',
|
||||
'style_tag' => '暗色',
|
||||
'palette' => ['primary' => '#34D399', 'accent' => '#065F46', 'bg' => '#04120D', 'surface' => '#0B1F18', 'text' => '#ECFDF5', 'border' => '#14392C'],
|
||||
'scale' => 'sans-refined',
|
||||
'radius' => 'round',
|
||||
'shadow' => 'deep',
|
||||
'motion' => 'silk',
|
||||
'layout' => ['home' => ['hero' => 'fullscreen', 'category' => 'sidebar', 'product' => 'waterfall'], 'product' => ['gallery' => 'fullbleed', 'price' => 'card', 'action' => 'fixed'], 'list' => ['style' => 'card'], 'mine' => ['header' => 'image', 'menu' => 'list'], 'effect' => ['transition' => 'fade', 'skeleton' => 'shimmer']],
|
||||
],
|
||||
[
|
||||
'code' => 'retro-cream',
|
||||
'name' => '复古·奶油',
|
||||
'style_tag' => '复古',
|
||||
'palette' => ['primary' => '#92400E', 'accent' => '#FBBF24', 'bg' => '#FFFBEB', 'surface' => '#FEF3C7', 'text' => '#451A03', 'border' => '#FDE68A'],
|
||||
'scale' => 'serif-book',
|
||||
'radius' => 'soft',
|
||||
'shadow' => 'soft',
|
||||
'motion' => 'gentle',
|
||||
'layout' => ['home' => ['hero' => 'split', 'category' => 'card', 'product' => 'magazine'], 'product' => ['gallery' => 'swiper', 'price' => 'inline', 'action' => 'inline'], 'list' => ['style' => 'timeline'], 'mine' => ['header' => 'image', 'menu' => 'list'], 'effect' => ['transition' => 'fade', 'skeleton' => 'pulse']],
|
||||
],
|
||||
[
|
||||
'code' => 'retro-ocean',
|
||||
'name' => '复古·海蓝',
|
||||
'style_tag' => '复古',
|
||||
'palette' => ['primary' => '#155E75', 'accent' => '#67E8F9', 'bg' => '#ECFEFF', 'surface' => '#FFFFFF', 'text' => '#083344', 'border' => '#A5F3FC'],
|
||||
'scale' => 'sans-wide',
|
||||
'radius' => 'pill',
|
||||
'shadow' => 'airy',
|
||||
'motion' => 'bouncy',
|
||||
'layout' => ['home' => ['hero' => 'carousel', 'category' => 'scroll', 'product' => 'list'], 'product' => ['gallery' => 'swiper', 'price' => 'card', 'action' => 'inline'], 'list' => ['style' => 'card'], 'mine' => ['header' => 'gradient', 'menu' => 'grid'], 'effect' => ['transition' => 'slide', 'skeleton' => 'shimmer']],
|
||||
'motion' => 'silk',
|
||||
'layout' => array_merge(
|
||||
[
|
||||
'home' => ['hero' => 'caption', 'category' => 'contents', 'product' => 'waterfall'],
|
||||
'product' => ['gallery' => 'filmstrip', 'price' => 'sticky', 'action' => 'fixed'],
|
||||
'list' => ['style' => 'stacked'],
|
||||
'mine' => ['header' => 'editorial', 'menu' => 'list'],
|
||||
'effect' => [
|
||||
'transition' => 'fade',
|
||||
'skeleton' => 'shimmer',
|
||||
'card' => 'canvas-frame',
|
||||
'icon' => 'line',
|
||||
],
|
||||
],
|
||||
$buildPages(
|
||||
['hero' => 'caption', 'category' => 'contents', 'product' => 'waterfall'],
|
||||
['gallery' => 'filmstrip', 'action' => 'fixed', 'info' => 'overlay', 'spec' => 'cards', 'price' => 'sticky'],
|
||||
'folio-number',
|
||||
'featured',
|
||||
'stacked',
|
||||
'editorial',
|
||||
'list',
|
||||
'home-magazine-folio',
|
||||
'magazine',
|
||||
'overlay',
|
||||
'contents',
|
||||
['density' => 'airy', 'frame' => 'ornament', 'hero_height' => 640],
|
||||
[
|
||||
'catalog' => 'catalog-13-featured',
|
||||
'search' => 'search-13-featured',
|
||||
'product' => 'product-00-default',
|
||||
'cart' => 'cart-06-stacked',
|
||||
'mine' => 'mine-26-editorial',
|
||||
],
|
||||
['tabbar' => 'dot', 'navbar' => 'line', 'tabbar_anim' => 'spring'],
|
||||
),
|
||||
),
|
||||
],
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user