|
@@ -12,12 +12,23 @@ $type_config = array
|
|
|
|
|
|
3 => '图文内容',
|
|
|
1 => '全屏图',
|
|
|
+
|
|
|
+
|
|
|
+ 7 => '长屏图',
|
|
|
+ 8 => '横屏图',
|
|
|
+
|
|
|
2 => '长图',
|
|
|
+ 9 => '无边框图片',
|
|
|
+ 10 => '四宫格图片',
|
|
|
+
|
|
|
|
|
|
4 => '全屏视频',
|
|
|
5 => '留言视频',
|
|
|
6 => '留言音频',
|
|
|
|
|
|
+
|
|
|
+ 21 => '对话模板',
|
|
|
+
|
|
|
|
|
|
11 => '关联图文',
|
|
|
12 => '关联视频',
|
|
@@ -63,11 +74,32 @@ $text = array
|
|
|
|
|
|
);
|
|
|
|
|
|
+
|
|
|
+$palaces = array
|
|
|
+(
|
|
|
+ 1 => '上左',
|
|
|
+ 2 => '上右',
|
|
|
+ 3 => '下左',
|
|
|
+ 4 => '下右',
|
|
|
+);
|
|
|
+
|
|
|
$bgcolor_type = array
|
|
|
(
|
|
|
1 => '设置背景颜色',
|
|
|
2 => '不设置背景颜色',
|
|
|
);
|
|
|
+$talk_type = array
|
|
|
+(
|
|
|
+ 1 => '文字',
|
|
|
+ 2 => '图片',
|
|
|
+ 3 => '音频',
|
|
|
+);
|
|
|
+
|
|
|
+$talk_location = array
|
|
|
+(
|
|
|
+ 1 => '显示在左侧',
|
|
|
+ 2 => '显示在右侧',
|
|
|
+);
|
|
|
|
|
|
$author = function()
|
|
|
{
|
|
@@ -280,14 +312,14 @@ return array
|
|
|
'pic' => array
|
|
|
(
|
|
|
'type' => 'varchar-150',
|
|
|
- 'name' => '图片-全屏图图片尺寸750*1386px或等比尺寸,长图图片尺寸750*高度不限 或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
|
|
|
+ 'name' => '图片-全屏图图片尺寸750*1386px或等比尺寸,长屏图图片尺寸750*高度不限或等比尺寸,横屏图图片尺寸高度不限*1386px或等比尺寸,长图图片尺寸750*高度不限或等比尺寸,无边框图片尺寸长和宽均没有限制,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
|
|
|
'default' => '',
|
|
|
'desc' => '图片',
|
|
|
'match' => 'option',
|
|
|
'update' => 'image',
|
|
|
'key' => '1',
|
|
|
'place' => '150',
|
|
|
- 'show' => 'type=1,2',
|
|
|
+ 'show' => 'type=1,2,7,8,9',
|
|
|
),
|
|
|
|
|
|
'is_button' => array
|
|
@@ -300,7 +332,7 @@ return array
|
|
|
'update' => 'radio',
|
|
|
'option' => $is_button,
|
|
|
|
|
|
- 'show' => 'type=1',
|
|
|
+ 'show' => 'type=1,7,8',
|
|
|
'control' => 'is_button',
|
|
|
),
|
|
|
|
|
@@ -312,7 +344,7 @@ return array
|
|
|
'desc' => '保存按钮文字内容',
|
|
|
'match' => 'option',
|
|
|
'update' => 'textarea',
|
|
|
- 'show' => 'type=1',
|
|
|
+ 'show' => 'type=1,7,8',
|
|
|
),
|
|
|
|
|
|
'button_color' => array
|
|
@@ -323,7 +355,7 @@ return array
|
|
|
'desc' => '保存按钮文字颜色',
|
|
|
'match' => 'option',
|
|
|
'update' => 'color',
|
|
|
- 'show' => 'type=1',
|
|
|
+ 'show' => 'type=1,7,8',
|
|
|
),
|
|
|
|
|
|
'article_id' => array
|
|
@@ -370,7 +402,7 @@ return array
|
|
|
'desc' => '文字设置',
|
|
|
'match' => 'is_string',
|
|
|
'option' => $text,
|
|
|
- 'show' => 'type=1',
|
|
|
+ 'show' => 'type=1,7,8',
|
|
|
'update' => array
|
|
|
(
|
|
|
array
|
|
@@ -428,6 +460,124 @@ return array
|
|
|
),
|
|
|
),
|
|
|
|
|
|
+ 'palaces' => array
|
|
|
+ (
|
|
|
+ 'type' => 'text-1000',
|
|
|
+ 'name' => '四宫格图片',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '四宫格图片',
|
|
|
+ 'match' => 'is_string',
|
|
|
+ 'option' => $palaces,
|
|
|
+ 'show' => 'type=10',
|
|
|
+ 'update' => array
|
|
|
+ (
|
|
|
+ array
|
|
|
+ (
|
|
|
+ 'col' => 'pic',
|
|
|
+ 'name' => '图片',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '图片',
|
|
|
+ 'match' => 'is_string',
|
|
|
+ 'update' => 'image',
|
|
|
+ 'key' => 1,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'talk_pic' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-150',
|
|
|
+ 'name' => '置顶图片-图片尺寸750*1386px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式。为空则不显示',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '图片',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'update' => 'image',
|
|
|
+ 'key' => '1',
|
|
|
+ 'place' => '150',
|
|
|
+ 'show' => 'type=21',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'talk' => array
|
|
|
+ (
|
|
|
+ 'type' => 'text-1000',
|
|
|
+ 'name' => '对话设置',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '对话设置',
|
|
|
+ 'match' => 'is_string',
|
|
|
+ 'show' => 'type=21',
|
|
|
+ 'update' => array
|
|
|
+ (
|
|
|
+ array
|
|
|
+ (
|
|
|
+ 'col' => 'talk_location',
|
|
|
+ 'name' => '对话位置',
|
|
|
+ 'default' => '1',
|
|
|
+ 'desc' => '对话位置',
|
|
|
+ 'match' => 'is_string',
|
|
|
+ 'update' => 'radio',
|
|
|
+ 'option' => $talk_location,
|
|
|
+ ),
|
|
|
+
|
|
|
+ array
|
|
|
+ (
|
|
|
+ 'col' => 'avatar',
|
|
|
+ 'name' => '头像-图片尺寸120*120px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式。',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '头像',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'update' => 'image',
|
|
|
+ 'key' => 1,
|
|
|
+ ),
|
|
|
+
|
|
|
+ array
|
|
|
+ (
|
|
|
+ 'col' => 'talk_type',
|
|
|
+ 'name' => '对话类型',
|
|
|
+ 'default' => '1',
|
|
|
+ 'desc' => '对话类型',
|
|
|
+ 'match' => 'is_string',
|
|
|
+ 'update' => 'radio',
|
|
|
+ 'option' => $talk_type,
|
|
|
+ 'control' => 'talk_type',
|
|
|
+ ),
|
|
|
+
|
|
|
+ array
|
|
|
+ (
|
|
|
+ 'col' => 'text',
|
|
|
+ 'name' => '文字内容-为空则不显示',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '文字内容',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'update' => 'textarea',
|
|
|
+ 'show' => 'talk_type=1'
|
|
|
+ ),
|
|
|
+
|
|
|
+ array
|
|
|
+ (
|
|
|
+ 'col' => 'pic',
|
|
|
+ 'name' => '图片-图片尺寸750*1386px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式,可以上传GIF格式。为空则不显示',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '图片',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'update' => 'image',
|
|
|
+ 'key' => 1,
|
|
|
+ 'show' => 'talk_type=2'
|
|
|
+ ),
|
|
|
+
|
|
|
+ array
|
|
|
+ (
|
|
|
+ 'col' => 'audio',
|
|
|
+ 'name' => '音频-音频格式mp3,上传大小不能超过100M,为空则不显示',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '音频',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'update' => 'upload',
|
|
|
+ 'key' => 2,
|
|
|
+ 'show' => 'talk_type=3'
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+
|
|
|
'reorder' => array
|
|
|
(
|
|
|
'type' => 'int-11',
|