Przeglądaj źródła

首页修改配置

lizhen_gitee 9 miesięcy temu
rodzic
commit
0b1370c02b

+ 8 - 4
application/api/controller/Tvindex.php

@@ -22,16 +22,20 @@ class Tvindex extends Api
         $data['index_search_switch']  = config('site.index_search_switch');
         $data['index_history_switch'] = config('site.index_history_switch');
         $data['index_dinggou_switch'] = config('site.index_dinggou_switch');
+        $data['index_account_switch'] = config('site.index_account_switch');
 
         //右上角 三行
-
         $data['index_right_1'] = config('site.index_right_1');
         $data['index_right_2'] = config('site.index_right_2');
         $data['index_right_3'] = config('site.index_right_3');
 
-        //固定五个
-        $data['index_top_video_image'] = localpath_to_netpath(config('site.index_top_video_image'));
-        $data['index_top_video']       = localpath_to_netpath(config('site.index_top_video'));
+        //主视频
+        $index_top_video_id = config('site.index_top_video_id');
+        $index_top_video = Db::name('video')->field('id,image,programid,movieid')->where('id',$index_top_video_id)->where('inject_status',2)->find();
+        if(!empty($index_top_video)){
+            $index_top_video['image'] = localpath_to_netpath($index_top_video['image']);
+        }
+        $data['index_top_video'] = $index_top_video;
 
         //问诊四个
         $page_wenzhen = Db::name('page_wenzhen')->field('id,name,image,url')->where('status',1)->order('weigh asc')->select();

+ 2 - 2
application/extra/site.php

@@ -55,11 +55,11 @@ return array (
   'index_search_switch' => '1',
   'index_history_switch' => '1',
   'index_dinggou_switch' => '1',
+  'index_account_switch' => '1',
   'index_right_1' => '服务电话:13625150009',
   'index_right_2' => '服务时间:周一至周五8:00 - 18:00',
   'index_right_3' => '收视路径:首页-爱家会员-健康e家',
-  'index_top_video_image' => '/uploads/20240529/4869a6b6fc17f44913e5dcc76fea694d.png',
-  'index_top_video' => 'https://imgcdn.xiaoyi99.com/jsyd_file/f08cd8f5c26b4426a2577d958eb5c966.mp4',
+  'index_top_video_id' => '500',
   'text_tuiding' => '亲爱的用户:
 如果您想退订健康e家业务,可以通过以下方式:
 1、电视屏 一 家庭专区 一 个人中心 一 我的订单,点击退订取消订购。