|
@@ -24,6 +24,25 @@ $type = array
|
|
|
|
|
|
$type_value = Dever::input('search_option_type', 1);
|
|
|
|
|
|
+if ($type_value == 2) {
|
|
|
+
|
|
|
+ $small_pic_name = '首页专题封面图';
|
|
|
+ $small_pic_size = '700*460';
|
|
|
+ $small_pic_update = 'image';
|
|
|
+ $small_pic_match = 'is_string';
|
|
|
+} elseif ($type_value == 4) {
|
|
|
+
|
|
|
+ $small_pic_name = '活动封面小图';
|
|
|
+ $small_pic_size = '288*384';
|
|
|
+ $small_pic_update = 'image';
|
|
|
+ $small_pic_match = 'is_string';
|
|
|
+} else {
|
|
|
+ $small_pic_name = '活动封面小图';
|
|
|
+ $small_pic_size = '288*384';
|
|
|
+ $small_pic_update = 'hidden';
|
|
|
+ $small_pic_match = 'option';
|
|
|
+}
|
|
|
+
|
|
|
$name = $type[$type_value];
|
|
|
|
|
|
return array
|
|
@@ -114,31 +133,31 @@ return array
|
|
|
'pic' => array
|
|
|
(
|
|
|
'type' => 'varchar-150',
|
|
|
- 'name' => '封面图-图片尺寸1200*500px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
|
|
|
+ 'name' => '封面图-图片尺寸'.($type_value == 3 ? '1200*670' : '1200*530').'px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
|
|
|
'default' => '',
|
|
|
'desc' => '封面图',
|
|
|
'match' => 'is_string',
|
|
|
'update' => 'image',
|
|
|
'key' => '1',
|
|
|
- 'place' => '1200*500',
|
|
|
+ 'place' => $type_value == 3 ? '1200*670' : '1200*530',
|
|
|
),
|
|
|
|
|
|
'small_pic' => array
|
|
|
(
|
|
|
'type' => 'varchar-150',
|
|
|
- 'name' => '封面小图-图片尺寸270*363px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
|
|
|
+ 'name' => $small_pic_name . '-图片尺寸'.$small_pic_size.'px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
|
|
|
'default' => '',
|
|
|
'desc' => '封面图',
|
|
|
- 'match' => $type_value == 4 ? 'is_string' : 'option',
|
|
|
- 'update' => $type_value == 4 ? 'image' : 'hidden',
|
|
|
+ 'match' => $small_pic_match,
|
|
|
+ 'update' => $small_pic_update,
|
|
|
'key' => '1',
|
|
|
- 'place' => '270*363',
|
|
|
+ 'place' => $small_pic_size,
|
|
|
),
|
|
|
|
|
|
'video' => array
|
|
|
(
|
|
|
'type' => 'varchar-800',
|
|
|
- 'name' => '上传视频-视频格式mp4,上传大小不能超过4G,上述封面图将作为视频封面',
|
|
|
+ 'name' => '上传视频-视频格式为MP4,上传大小不能超过4M。如需添加腾讯视频,请将腾讯视频分享链接添加至【上传视频】按钮下方地址输入框中',
|
|
|
'default' => '',
|
|
|
'desc' => '上传推荐视频',
|
|
|
'match' => $type_value == 3 ? 'is_string' : 'option',
|
|
@@ -187,13 +206,13 @@ return array
|
|
|
'share_pic' => array
|
|
|
(
|
|
|
'type' => 'varchar-150',
|
|
|
- 'name' => '分享图片-图片尺寸570*570px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
|
|
|
+ 'name' => '分享图片-图片尺寸200*200px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
|
|
|
'default' => '',
|
|
|
'desc' => '分享图片',
|
|
|
'match' => 'option',
|
|
|
'update' => 'image',
|
|
|
'key' => '1',
|
|
|
- 'place' => '150',
|
|
|
+ 'place' => '200*200',
|
|
|
|
|
|
|
|
|
),
|
|
@@ -222,7 +241,7 @@ return array
|
|
|
'content_video' => array
|
|
|
(
|
|
|
'type' => 'varchar-800',
|
|
|
- 'name' => '上传内容视频-视频格式mp4,上传大小不能超过4G,如果上传了视频',
|
|
|
+ 'name' => '上传内容视频-视频格式为MP4,上传大小不能超过4M。如需添加腾讯视频,请将腾讯视频分享链接添加至【上传视频】按钮下方地址输入框中',
|
|
|
'default' => '',
|
|
|
'desc' => '上传推荐视频',
|
|
|
'match' => $type_value != 3 ? 'option' : 'option',
|
|
@@ -236,13 +255,13 @@ return array
|
|
|
'content_video_pic' => array
|
|
|
(
|
|
|
'type' => 'varchar-150',
|
|
|
- 'name' => '内容视频封面图-图片尺寸1200*500px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
|
|
|
+ 'name' => '内容视频封面图-图片尺寸1200*670px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
|
|
|
'default' => '',
|
|
|
'desc' => '封面图',
|
|
|
'match' => $type_value != 3 ? 'option' : 'option',
|
|
|
'update' => $type_value != 3 ? 'image' : 'hidden',
|
|
|
'key' => '1',
|
|
|
- 'place' => '1200*500',
|
|
|
+ 'place' => '1200*670',
|
|
|
),
|
|
|
|
|
|
'beizhu' => array
|