dever 4 years ago
parent
commit
fa2fb08034

+ 2 - 2
app/content/database/news.php

@@ -157,7 +157,7 @@ return array
         'video'     => array
         (
             'type'      => 'varchar-800',
-            'name'      => '上传视频-视频格式mp4,上传大小不能超过4G,上述封面图将作为视频封面',
+            'name'      => '上传视频-视频格式为MP4,上传大小不能超过4M。如需添加腾讯视频,请将腾讯视频分享链接添加至【上传视频】按钮下方地址输入框中',
             'default'   => '',
             'desc'      => '上传推荐视频',
             'match'     => $type_value == 3 ? 'is_string' : 'option',
@@ -241,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',

+ 8 - 8
main/database/config.php

@@ -66,13 +66,13 @@ return array
 		'logo'		=> array
 		(
 			'type' 		=> 'varchar-150',
-			'name' 		=> '站点logo',
+			'name' 		=> '站点logo-图片尺寸170*60px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
 			'default' 	=> '',
 			'desc' 		=> '站点logo',
 			'match' 	=> 'is_string',
 			'update'	=> 'image',
 			'key' 		=> '1',
-			'place'		=> '150',
+			'place'		=> '170*60',
 		),
 
 		'beian'		=> array
@@ -88,25 +88,25 @@ return array
 		'xnr_pic'       => array
         (
             'type'      => 'varchar-150',
-            'name'      => '虚拟人封面图-图片尺寸822*542px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
+            'name'      => '虚拟人封面图-图片尺寸595*330px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
             'default'   => '',
             'desc'      => '虚拟人封面图',
             'match'     => 'is_string',
             'update'    => 'image',
             'key'       => '1',
-            'place'     => '822*542',
+            'place'     => '595*330',
         ),
 
         'zwz_pic'       => array
         (
             'type'      => 'varchar-150',
-            'name'      => '造物主封面图-图片尺寸822*542px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
+            'name'      => '造物主封面图-图片尺寸595*330px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
             'default'   => '',
             'desc'      => '造物主封面图',
             'match'     => 'is_string',
             'update'    => 'image',
             'key'       => '1',
-            'place'     => '822*542',
+            'place'     => '595*330',
         ),
 
 		'weibo'		=> array
@@ -122,13 +122,13 @@ return array
 		'weixin_qrcode'		=> array
 		(
 			'type' 		=> 'varchar-150',
-			'name' 		=> '微信二维码',
+			'name' 		=> '微信二维码-图片尺寸250*250px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
 			'default' 	=> '',
 			'desc' 		=> '微信二维码',
 			'match' 	=> 'option',
 			'update'	=> 'image',
 			'key' 		=> '1',
-			'place'		=> '150',
+			'place'		=> '250*250',
 		),
 		/*
 		'email'		=> array

+ 12 - 0
main/src/Content.php

@@ -148,6 +148,18 @@ class Content
         return $data;
     }
 
+    # 获取列表页专题
+    public function list_feature()
+    {
+        $data = Dever::load('push/lib/data')->get('home_feature', '专题列表顶部推荐位', 5, '1,2,3,4,5,6,7');
+        //$data = false;
+        if (!$data) {
+            $data = Dever::load('content/lib/news')->getHome(2, 5);
+        }
+
+        return $data;
+    }
+
     # 获取首页视频
     public function home_video_first()
     {

+ 1 - 1
main/template/xuniren/feature.php

@@ -11,7 +11,7 @@ $view
 ->loop
 (
     '.features-module .swiper-slide',
-    'main/content.home_feature',
+    'main/content.list_feature',
     array
     (
         'a|0' => array