Commit 4e853ce6 authored by 章建武's avatar 章建武

adp

parent b75c29a0
......@@ -18,11 +18,12 @@ class ArticleController extends Controller
{
$param = $request->param();
$model = $model->scope('where', $param);
if(isset($param['_type'])){
$where = ['status'=>0,'type'=>$param['_type']];
if(isset($param['type'])){
$where = ['status'=>0,'type'=>$param['type']];
}else{
$where = ['status'=>0];
}
$data = $model->where($where)->paginate($this->admin['per_page'], false, ['query' => $request->get()]);
foreach ($data as &$v){
$v['language_type'] = $v['language_type'] === 1 ? '英语' : '中文';
......
......@@ -30,13 +30,13 @@
</script>
<div class="form-group">
<select name="_type" id="_cat" class="form-control input-sm index-order">
<select name="type" id="_cat" class="form-control input-sm index-order">
<option value="">分类筛选</option>
<option value="1" {if isset($_type) && $_type==1}selected{/if}>新闻中心</option>
<option value="2" {if isset($_type) && $_type==2}selected{/if}>集团新闻</option>
<option value="3" {if isset($_type) && $_type==3}selected{/if}>项目动态</option>
<option value="4" {if isset($_type) && $_type==4}selected{/if}>媒体聚焦</option>
<option value="5" {if isset($_type) && $_type==5}selected{/if}>首页弹窗</option>
<option value="1" {if isset($type) && $type==1}selected{/if}>新闻中心</option>
<option value="2" {if isset($type) && $type==2}selected{/if}>集团新闻</option>
<option value="3" {if isset($type) && $type==3}selected{/if}>项目动态</option>
<option value="4" {if isset($type) && $type==4}selected{/if}>媒体聚焦</option>
<option value="5" {if isset($type) && $type==5}selected{/if}>首页弹窗</option>
</select>
</div>
<script>
......
......@@ -38,7 +38,7 @@ class IndexController extends Controller
$banner4= IndexBanner::query()
->where('type',4)
->get();
$audio = Audio::query()->limit(1)->value('url');
$audio = Audio::query()->limit(3)->value('url');
$audio_url[] = IndexVideoUrl::query()
->where('type','=',3)
......
......@@ -184,18 +184,30 @@
<ul class="swiper-wrapper" style="width: 9515px; transform: translate3d(-5709px, 0px, 0px); transition-duration: 0.3s; height: 720px;">@foreach($banner3 as $vl)<li class="swiper-slide swiper-slide-duplicate" style="width: 1903px; height: 720px;">
<a class="slide-a"><img src="{{$vl->path}}" style="height: 720px;"></a>
<div class="panel-more">
@if($language_type == 1)
<a href="{{$vl->img_title}}">
<img src="{{asset('images/ea1b4947d173a224e8dcbca0549db8a2.png')}} ">
</a>
@else
<a href="{{$vl->anchor}}">
<img src="{{asset('images/ea1b4947d173a224e8dcbca0549db8a2.png')}}">
</a>
@endif
</div>
</li>@endforeach
@foreach ($banner3 as $vl)
<li class="swiper-slide swiper-slide-duplicate" style="width: 1903px; height: 720px;">
<a class="slide-a"><img src="{{asset($vl->path)}}" style="height: 720px;"></a>
<div class="panel-more">
@if($language_type == 1)
<a href="{{$vl->img_title}}">
<img src="{{asset('images/ea1b4947d173a224e8dcbca0549db8a2.png')}} ">
</a>
@else
<a href="{{$vl->anchor}}">
<img src="{{asset('images/ea1b4947d173a224e8dcbca0549db8a2.png')}}">
</a>
@endif
</div>
</li>@endforeach </ul>
</div>
......
......@@ -107,7 +107,7 @@
<p>深圳市迈超商业运营有限责任公司</p>
<p>地址深圳市福田区华强北地铁三号线龙岗线华新站A口</p>
<p>电话<a href="tel:">0755-83225879</a></p>
<p><a href="{{url('index')}}/#page11" class="more">查看更多联系方式</a></p>
<p><a href="{{url('')}}/#page11" class="more">查看更多联系方式</a></p>
@endif
</li>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment