全栈小学生 abaa4201fb add shop
2026-01-13 09:16:43 +08:00

349 lines
12 KiB
PHP

<?php
return [
[
"name" => "商品模板", // 海报模板名称
'type' => 'shop_goods', // 海报类型
"data" => [
"global" => [
"bgType" => "color",
"bgColor" => "#ffffff",
"bgUrl" => "",
"width" => 720,
"height" => 1280
],
"value" => [
[
"id" => "2v1nc497xhc0",
"componentName" => "GoodsImage",
"componentTitle" => "商品图片",
"type" => "image",
"path" => "goods-image",
"uses" => 1,
"relate" => "goods_img",
"value" => "",
"width" => 720,
"height" => 720,
"minWidth" => 60,
"minHeight" => 60,
"x" => 0,
"y" => 0,
"angle" => 0,
"zIndex" => 1
],
[
"id" => "29f3czpuw134",
"componentName" => "GoodsName",
"componentTitle" => "商品名称",
"type" => "text",
"path" => "goods-name",
"uses" => 1,
"relate" => "goods_name",
"value" => "",
"width" => 640,
"height" => 94,
"minWidth" => 120,
"minHeight" => 44,
"x" => 40,
"y" => 760,
"angle" => 0,
"zIndex" => 2,
"fontFamily" => "",
"fontSize" => 44,
"weight" => false,
"space" => 0,
"lineHeight" => 1,
"fontColor" => "#303133"
],
[
"id" => "2vmf9ovhene0",
"componentName" => "GoodsPrice",
"componentTitle" => "商品价格",
"type" => "text",
"path" => "goods-price",
"uses" => 1,
"relate" => "goods_price",
"value" => "",
"width" => 330,
"height" => 60,
"minWidth" => 120,
"minHeight" => 44,
"x" => 40,
"y" => 940,
"weight" => false,
"space" => 0,
"lineHeight" => 0,
"angle" => 0,
"zIndex" => 3,
"fontFamily" => "static/font/OPLUSSANS3-REGULAR.ttf",
"fontSize" => 44,
"fontColor" => "#E4163F"
],
[
"id" => "2vef9ovhene9",
"componentName" => "GoodsMarketPrice",
"componentTitle" => "划线价",
"type" => "text",
'path' => "goods-market-price",
"uses" => 1,
'relate' => 'goods_market_price',
"value" => "",
"width" => 330,
"height" => 54,
"minWidth" => 120,
"minHeight" => 44,
"x" => 40,
"y" => 1040,
"angle" => 0,
"zIndex" => 4,
"fontFamily" => "static/font/OPLUSSANS3-REGULAR.ttf",
"fontSize" => 36,
"weight" => false,
"space" => 0,
"lineHeight" => 0,
"fontColor" => "#999999"
],
[
"id" => "2rlojy3o60i0",
"componentName" => "Qrcode",
"componentTitle" => "二维码",
"type" => "qrcode",
"path" => "qrcode",
"uses" => 1,
"relate" => "url",
"value" => "",
"width" => 200,
"height" => 200,
"minWidth" => 60,
"minHeight" => 60,
"x" => 480,
"y" => 940,
"angle" => 0,
"zIndex" => 5
],
[
"id" => "7a18udv7t950",
"componentName" => "draw",
"componentTitle" => "绘画",
"type" => "draw",
"path" => "draw",
"uses" => 1,
"relate" => "draw",
"value" => "",
"width" => 720,
"height" => 70,
"minWidth" => 60,
"minHeight" => 60,
"x" => 0,
"y" => 1206,
"angle" => 0,
"zIndex" => 6,
"drawType" => "Polygon",
"bgColor" => "#eeeeee",
"points" => [
[
0,
1206
],
[
720,
1206
],
[
720,
1280
],
[
0,
1280
]
]
],
[
"id" => "6hlj5l3as0w0",
"componentName" => "Text",
"componentTitle" => "文本",
"type" => "text",
"path" => "text",
"uses" => 0,
"relate" => "",
"value" => "长按识别图中的二维码查看商品详情",
"width" => 512,
"height" => 48,
"minWidth" => 120,
"minHeight" => 44,
"x" => 110,
"y" => 1230,
"angle" => 0,
"zIndex" => 7,
"weight" => false,
"space" => 0,
"lineHeight" => 0,
"fontFamily" => "",
"fontSize" => 32,
"fontColor" => "#666666"
],
]
]
],
[
"name" => "积分商品模板", // 海报模板名称
'type' => 'shop_point_goods', // 海报类型
"data" => [
"global" => [
"bgType" => "color",
"bgColor" => "#ffffff",
"bgUrl" => "",
"width" => 720,
"height" => 1280
],
"value" => [
[
"id" => "2v1nc497xhc0",
"componentName" => "GoodsImage",
"componentTitle" => "商品图片",
"type" => "image",
"path" => "goods-image",
"uses" => 1,
"relate" => "goods_img",
"value" => "",
"width" => 720,
"height" => 720,
"minWidth" => 60,
"minHeight" => 60,
"x" => 0,
"y" => 0,
"angle" => 0,
"zIndex" => 1
],
[
"id" => "29f3czpuw134",
"componentName" => "GoodsName",
"componentTitle" => "商品名称",
"type" => "text",
"path" => "goods-name",
"uses" => 1,
"relate" => "goods_name",
"value" => "",
"width" => 640,
"height" => 94,
"minWidth" => 120,
"minHeight" => 44,
"x" => 40,
"y" => 760,
"angle" => 0,
"zIndex" => 2,
"fontFamily" => "",
"fontSize" => 44,
"weight" => false,
"space" => 0,
"lineHeight" => 0,
"fontColor" => "#303133"
],
[
"id" => "2vmf9ovhene0",
"componentName" => "GoodsPrice",
"componentTitle" => "商品价格",
"type" => "text",
"path" => "goods-price",
"uses" => 1,
"relate" => "goods_price",
"value" => "",
"width" => 330,
"height" => 60,
"minWidth" => 120,
"minHeight" => 44,
"x" => 40,
"y" => 940,
"angle" => 0,
"zIndex" => 3,
"fontFamily" => "",
"fontSize" => 40,
"weight" => false,
"space" => 0,
"lineHeight" => 0,
"fontColor" => "#E4163F"
],
[
"id" => "2rlojy3o60i0",
"componentName" => "Qrcode",
"componentTitle" => "二维码",
"type" => "qrcode",
"path" => "qrcode",
"uses" => 1,
"relate" => "url",
"value" => "",
"width" => 200,
"height" => 200,
"minWidth" => 60,
"minHeight" => 60,
"x" => 480,
"y" => 940,
"angle" => 0,
"zIndex" => 5
],
[
"id" => "7a18udv7t950",
"componentName" => "draw",
"componentTitle" => "绘画",
"type" => "draw",
"path" => "draw",
"uses" => 1,
"relate" => "draw",
"value" => "",
"width" => 720,
"height" => 70,
"minWidth" => 60,
"minHeight" => 60,
"x" => 0,
"y" => 1206,
"angle" => 0,
"zIndex" => 6,
"drawType" => "Polygon",
"bgColor" => "#eeeeee",
"points" => [
[
0,
1206
],
[
720,
1206
],
[
720,
1280
],
[
0,
1280
]
]
],
[
"id" => "6hlj5l3as0w0",
"componentName" => "Text",
"componentTitle" => "文本",
"type" => "text",
"path" => "text",
"uses" => 0,
"relate" => "",
"value" => "长按识别图中的二维码查看商品详情",
"width" => 512,
"height" => 48,
"minWidth" => 120,
"minHeight" => 44,
"x" => 110,
"y" => 1230,
"angle" => 0,
"zIndex" => 7,
"fontFamily" => "",
"fontSize" => 32,
"weight" => false,
"space" => 0,
"lineHeight" => 0,
"fontColor" => "#666666"
],
]
]
]
];