瀏覽代碼

集成电路

linwu 4 月之前
父節點
當前提交
a19060492e
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      public/themes/default/views/mobile/app/ic/index.blade.php

+ 5 - 1
public/themes/default/views/mobile/app/ic/index.blade.php

@@ -122,7 +122,11 @@
         <ul>
             <li>
                 @foreach($attract_list as $v)
-                    <a href="{{route("mobile.ic.attract.show")}}?id={{$v['id']}}" rel="nofollow noopener noreferrer"><b>&gt;</b>{{cut_str($v['title'], 15, 0, '...')}}<span class="jc_rt">{{date('Y-m-d',strtotime($v['created_at']))}}</span></a>
+                    @if(empty($v['is_url']))
+                        <a href="{{route("mobile.ic.attract.show")}}?id={{$v['id']}}" rel="nofollow noopener noreferrer"><b>&gt;</b>{{cut_str($v['title'], 15, 0, '...')}}<span class="jc_rt">{{date('Y-m-d',strtotime($v['created_at']))}}</span></a>
+                    @else
+                        <a href="{{$v['is_url']}}" rel="nofollow noopener noreferrer"><b>&gt;</b>{{cut_str($v['title'], 15, 0, '...')}}<span class="jc_rt">{{date('Y-m-d',strtotime($v['created_at']))}}</span></a>
+                    @endif
                 @endforeach
             </li>
         <div onclick="window.location='{{route("mobile.ic.attract.index")}}';" style="text-align:center;height:.8rem;line-height:.8rem;background:#fff;">查看更多</div>