作者 开飞机的舒克

图片上传

<?php
return array(
array(
'name' => 'background-color',
'title' => '背景色',
'type' => 'string',
'content' =>
array(),
'value' => '',
'rule' => '',
'msg' => '',
'tip' => '',
'ok' => '',
'extend' => '',
),
array(
'name' => 'background-image',
'title' => '背景图片URL',
'type' => 'image',
'content' =>
array(),
'value' => 'https://wx2.sinaimg.cn/large/0060lm7Tly1fvblyjxs3dj31hc0u0tc1.jpg',
'rule' => '',
'msg' => '',
'tip' => '',
'ok' => '',
'extend' => '',
),
array(
'name' => 'background-video',
'title' => '背景视频URL',
'type' => 'file',
'content' =>
array(),
'value' => 'https://t1.aixinxi.net/o_1cnh2rofs19skpcq11u6g921qm9a.mp4',
'rule' => '',
'msg' => '',
'tip' => '',
'ok' => '',
'extend' => '',
),
);
return [
[
'name' => 'background-color',
'title' => '背景色',
'type' => 'string',
'content' => [],
'value' => '',
'rule' => '',
'msg' => '',
'tip' => '',
'ok' => '',
'extend' => '',
],
[
'name' => 'background-image',
'title' => '背景图片URL',
'type' => 'image',
'content' => [],
'value' => 'https://pic.vjshi.com/2019-08-26/a63b09dfb1a05ffd356a3f75dd6ab053/online/puzzle.jpg?x-oss-process=style/resize_w_720',
'rule' => '',
'msg' => '',
'tip' => '',
'ok' => '',
'extend' => '',
],
[
'name' => 'background-video',
'title' => '背景视频URL',
'type' => 'file',
'content' => [],
'value' => 'https://t1.aixinxi.net/o_1cnh2rofs19skpcq11u6g921qm9a.mp4',
'rule' => '',
'msg' => '',
'tip' => '',
'ok' => '',
'extend' => '',
],
];
... ...