Ver código fonte

手机端首页公告更改

linwu 1 ano atrás
pai
commit
8238d0cf95

+ 1 - 1
app/Http/Controllers/Mobile/HomeController.php

@@ -155,7 +155,7 @@ class HomeController extends MobileBaseController
         $articles2_map = [
             'type_id'  => [58],
             'limit'    => 8,
-            'titlelen' => 25,
+            'titlelen' => 15,
             'dot'      => '...',
         ];
         $articles2     = $this->articleService->getArticleCache($articles2_map, 'home');

+ 3 - 2
public/themes/default/views/mobile/app/index.blade.php

@@ -129,7 +129,7 @@
                     @else
                         <a href="{{route('mobile.login')}}"><dl class="l1"><dt class="fabu for-event"></dt><dd class="font12">我要发布</dd></dl></a>
                     @endif
-                    <a href="{{route('mobile.notice')}}"><dl class="l1"><dt class="notice"></dt><dd class="font12 for-event">公告</dd></dl></a>
+                    <a href="{{route($sub_site."mobile.news.list",['id'=>57])}}"><dl class="l1"><dt class="notice"></dt><dd class="font12 for-event">公告</dd></dl></a>
 {{--                    <a href="{{ route('mobile.jobfair.index') }}"><dl class="l1"><dt class="zhaoph"></dt><dd class="font12 for-event">招聘会</dd></dl></a>--}}
                     <div class="clear"></div>
                 </li>
@@ -282,7 +282,7 @@
                             @endif
                         </li>
                     @endforeach
-                        <div onclick="window.location='{{route($sub_site."mobile.news.list",['id'=>3])}}';" style="text-align:center;height:.8rem;line-height:.8rem;background:#fff;">查看更多</div>
+                        <div onclick="window.location='{{route($sub_site."mobile.news.list",['id'=>59])}}';" style="text-align:center;height:.8rem;line-height:.8rem;background:#fff;">查看更多</div>
                 @else
                     <div style="text-align:center;height:.8rem;line-height:.8rem;background:#fff;">暂无动态</div>
                 @endif
@@ -296,6 +296,7 @@
                             <a href="{{route('mobile.news.show',['id'=>$v->id])}}" target="_blank" rel="nofollow noopener noreferrer"><b class="b2"></b>{{cut_str($v->title, 25, 0, '...')}}</a>
                         </li>
                     @endforeach
+                        <div onclick="window.location='{{route($sub_site."mobile.news.list",['id'=>58])}}';" style="text-align:center;height:.8rem;line-height:.8rem;background:#fff;">查看更多</div>
                 @else
                     <div style="text-align:center;height:.8rem;line-height:.8rem;background:#fff;">暂无动态</div>
                 @endif