Browse Source

修复网上办事轮播图

linwu 2 years ago
parent
commit
6924cd44ec

+ 38 - 3
app/Http/Controllers/Web/HomeController.php

@@ -123,7 +123,7 @@ class HomeController extends WebBaseController
         //分站
         //分站
         $subsite_id = get_subsite_id();
         $subsite_id = get_subsite_id();
         if ($subsite_id > 0) {
         if ($subsite_id > 0) {
-            return $this->subsite();
+            return $this->_subsite();
         }
         }
 
 
         $filter_data = [
         $filter_data = [
@@ -426,12 +426,12 @@ class HomeController extends WebBaseController
     /**
     /**
      * 分站
      * 分站
      */
      */
-    private function subsite()
+    private function _subsite()
     {
     {
         //特殊网站
         //特殊网站
         $site_module = explode('.', request()->server('HTTP_HOST'))[0];
         $site_module = explode('.', request()->server('HTTP_HOST'))[0];
         if (method_exists($this, $site_module)) {
         if (method_exists($this, $site_module)) {
-            $this->$site_module();
+            return $this->$site_module();
         }
         }
 
 
         $return_data = [];
         $return_data = [];
@@ -495,4 +495,39 @@ class HomeController extends WebBaseController
 
 
         return json_encode($res, JSON_UNESCAPED_UNICODE + JSON_UNESCAPED_SLASHES);
         return json_encode($res, JSON_UNESCAPED_UNICODE + JSON_UNESCAPED_SLASHES);
     }
     }
+
+    /**
+     * 经开区分站
+     */
+    private function jkq()
+    {
+        $return_data = [];
+        $subsite_id  = get_subsite_id();
+
+        //公司
+        $return_data['seatmeal_companies'] = $this->_dealCompany($subsite_id);
+
+        //个人登录
+        if (auth('web-member')->check()) {
+            $return_data['memberInfo'] = $this->memberInfoRepository->getMemberInfo(auth('web-member')->id());
+        }
+
+        //首页轮播图
+        $return_data['ad_list'] = [];
+        $ad_ids                 = SubsiteAd::where('subsite_id', $subsite_id)->get(['ad_id'])->pluck('ad_id')->toArray();
+        if (!empty($ad_ids)) {
+            $return_data['ad_list'] = Ad::whereIn('id', $ad_ids)->get();
+        }
+
+        //文章列表
+        $return_data['article_list'] = (new Article())->whereHas('subsites', function ($query) {
+            $query->where('subsite_id', get_subsite_id());
+        })->orderByRaw('list_order desc,created_at desc')->limit(10)->get();
+
+        //办理人数
+        $jkq_order                = collect(DB::table('configs')->where('type_id', '=', 73)->get(['alias', 'value']))->keyBy('alias');
+        $return_data['jkq_order'] = $jkq_order;
+
+        return view('subsite.jkq.index', $return_data);
+    }
 }
 }

+ 1 - 1
public/themes/default/assets/app/css/knowall/knowall.css

@@ -10,7 +10,7 @@ body{background-color: #fafafa; }
 .wheel{height: 350px; border: 1px #ebebeb solid; margin-top: 25px; padding: 18px; background-color: #fff;}
 .wheel{height: 350px; border: 1px #ebebeb solid; margin-top: 25px; padding: 18px; background-color: #fff;}
 .fullSlide{position:relative; height: 314px; background:#000;}
 .fullSlide{position:relative; height: 314px; background:#000;}
 .fullSlide .bd{position:relative; z-index:0; }
 .fullSlide .bd{position:relative; z-index:0; }
-.fullSlide .bd li img{width:1165px; height: 314px; vertical-align:top;}
+.fullSlide .bd li img{width:1162px; height: 314px; vertical-align:top;margin-top: -31px;}
 .fullSlide .dot{position:relative; z-index:1; margin-top:-30px; height:30px; line-height:30px;  text-align:center;}
 .fullSlide .dot{position:relative; z-index:1; margin-top:-30px; height:30px; line-height:30px;  text-align:center;}
 .fullSlide .dot ul li{ cursor:pointer; display:inline-block; *display:inline; zoom:1; width:14px; height:14px; margin:5px; background:url(../../images/dotW.png) no-repeat ; overflow:hidden; 
 .fullSlide .dot ul li{ cursor:pointer; display:inline-block; *display:inline; zoom:1; width:14px; height:14px; margin:5px; background:url(../../images/dotW.png) no-repeat ; overflow:hidden; 
 	font-size:0;
 	font-size:0;

+ 12 - 5
public/themes/default/views/app/content/knowall/index.blade.php

@@ -20,10 +20,10 @@
         <div class="fullSlide">
         <div class="fullSlide">
             <div class="bd">
             <div class="bd">
                 <ul>
                 <ul>
-                    <li><a href="#"><img src="{{theme_asset('app/images/kbanner.png')}}"/></a></li>
-                    <li><a href="#"><img src="{{theme_asset('app/images/kbanner1.jpg')}}"/></a></li>
-                    <li><a href="#"><img src="{{theme_asset('app/images/kbanner2.jpg')}}"/></a></li>
-                    <li><a href="#"><img src="{{theme_asset('app/images/kbanner3.jpg')}}"/></a></li>
+                    <li><img src="{{theme_asset('app/images/kbanner.png')}}"/></li>
+                    <li><img src="{{theme_asset('app/images/kbanner1.jpg')}}"/></li>
+                    <li><img src="{{theme_asset('app/images/kbanner2.jpg')}}"/></li>
+                    <li><img src="{{theme_asset('app/images/kbanner3.jpg')}}"/></li>
                 </ul>
                 </ul>
             </div>
             </div>
 
 
@@ -312,7 +312,7 @@
     <script type="text/javascript" src="{{theme_asset('app/js/jquery.SuperSlide.2.1.2.js')}}"></script>
     <script type="text/javascript" src="{{theme_asset('app/js/jquery.SuperSlide.2.1.2.js')}}"></script>
 <script>
 <script>
     //轮转
     //轮转
-    $(".fullSlide").slide({
+    /*$(".fullSlide").slide({
         titCell:".dot ul",
         titCell:".dot ul",
         mainCell:".bd ul",
         mainCell:".bd ul",
         effect:"leftLoop",
         effect:"leftLoop",
@@ -320,6 +320,13 @@
         autoPlay:true,
         autoPlay:true,
         autoPage:true,
         autoPage:true,
         trigger:"click"
         trigger:"click"
+    });*/
+    jQuery(".fullSlide").slide({
+        mainCell: ".bd ul",
+        titCell: '.dot ul',
+        autoPage: '<li></li>',
+        autoPlay: true,
+        interTime: 5000,
     });
     });
 
 
     //分类切换
     //分类切换

File diff suppressed because it is too large
+ 0 - 4
public/themes/default/views/subsite/index.blade.php


File diff suppressed because it is too large
+ 28 - 0
public/themes/default/views/subsite/jkq/index.blade.php


Some files were not shown because too many files changed in this diff