Browse Source

页面修改

lizhen_gitee 9 months ago
parent
commit
93e78bafca

+ 10 - 2
application/api/controller/Tvindex.php

@@ -169,7 +169,7 @@ class Tvindex extends Api
 
         //猜你喜欢
         $guess_list = Db::name('video')->field('id, title, image, is_pay')->where(['status' => 1, 'inject_status' => 2])
-            ->orderRaw('rand()')->limit(4)->select();
+            ->orderRaw('rand()')->limit(6)->select();
         $guess_list = list_domain_image($guess_list, ['image']);
 
         //记录浏览历史,给浏览历史列表用的,即时的
@@ -257,10 +257,18 @@ class Tvindex extends Api
             $this->error('您的网络开小差了~');
         }
 
+        $video_type = Db::name('video_type')->field('id,name,bg_image')->where('id',$type_id)->find();
+        $video_type = info_domain_image($video_type,['bg_image']);
+
         $list = Db::name('video')->field('id, title, image, is_pay, status, inject_status, seriesid, programid, movieid')->where(['video_type_id' => $type_id, 'status' => 1, 'inject_status' => 2])->order('weigh asc, id desc')->limit(5)->select();
 
         $list = list_domain_image($list, ['image']);
-        $this->success('视频', $list);
+
+        $result = [
+            'info' => $video_type,
+            'list' => $list,
+        ];
+        $this->success('视频', $result);
     }
 
     //退订服务

+ 1 - 0
application/extra/site.php

@@ -59,6 +59,7 @@ return array (
   'index_right_1' => '服务电话:13625150009',
   'index_right_2' => '服务时间:周一至周五8:00 - 18:00',
   'index_right_3' => '收视路径:首页-爱家会员-健康e家',
+  'index_right_4' => '预备行',
   'index_top_video_id' => '500',
   'text_tuiding' => '亲爱的用户:
 如果您想退订健康e家业务,可以通过以下方式:

+ 3 - 0
public/assets/js/backend/general/config.js

@@ -127,6 +127,9 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
         add: function () {
             Controller.api.bindevent();
         },
+        newindex: function () {
+            Controller.api.bindevent();
+        },
         edit: function () {
             Controller.api.bindevent();
         },