| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188 | <?phpreturn [    [        "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/price.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/price.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"                ],            ]        ]    ]];
 |