Browse Source

Merge branch 'master' of http://59.57.98.130:3000/jjhc/jucai

sandm 2 years ago
parent
commit
00fe13b9b7
1 changed files with 9 additions and 1 deletions
  1. 9 1
      public/themes/default/views/app/index.blade.php

+ 9 - 1
public/themes/default/views/app/index.blade.php

@@ -369,12 +369,20 @@
                 <div class="home_pic_news">
                     @if($ad_pic1 && count($ad_pic1)>0)
                         @foreach($ad_pic1 as $k=>$v)
+
+
                             <div class="pic_box"><img src="{{upload_asset($v->small_img)}}" alt="" border="0"/></div>
                             <div class="news_info">
                                 <div class="news_title substring">{{$v->title}}</div>
                                 <div class="title_line"></div>
                                 <div class="news_content">{!!  cut_str(strip_tags(htmlspecialchars_decode($v->content,ENT_QUOTES)),'60',0,'...') !!}</div>
-                                <a href="{{route('news.show',['id'=>$v->id])}}" target="_blank" class="news_more"></a>
+                                <a href="
+                                @if(empty($v->is_url))
+                                    {{route('news.show',['id'=>$v->id])}}
+                                @else
+                                    {{$v->is_url}}
+                                @endif
+                                        " target="_blank" class="news_more"></a>
                             </div>
                         @endforeach
                     @else