调整过

This commit is contained in:
2020-09-17 10:36:13 +08:00
parent 6366331f55
commit aca6e7b1eb
3 changed files with 108 additions and 200 deletions

View File

@@ -46,7 +46,7 @@ class IndexController extends AdminController
->required(); ->required();
$form->textarea('description', '分类简介') $form->textarea('description', '分类简介')
->rules('nullable'); ->rules('nullable');
$form->image('cover', 'Logo') $form->image('cover', '封面')
->move('images/' . date('Y/m/d')) ->move('images/' . date('Y/m/d'))
->removable() ->removable()
->uniqueName(); ->uniqueName();
@@ -109,7 +109,7 @@ class IndexController extends AdminController
->required() ->required()
->rules('required'); ->rules('required');
$form->textarea('description', '分类简介')->rows(4)->rules('nullable'); $form->textarea('description', '分类简介')->rows(4)->rules('nullable');
$form->image('cover', 'Logo') $form->image('cover', '封面')
->move('images/' . date('Y/m/d')) ->move('images/' . date('Y/m/d'))
->removable() ->removable()
->uniqueName(); ->uniqueName();

View File

@@ -25,11 +25,11 @@
<div class="pagelujing"> <div class="pagelujing">
<div class="name">{{ $category->title }}</div> <div class="name">{{ $category->title }}</div>
<span> <span>
您当前所在位置:<a href="/">首页</a> &gt; 您当前所在位置:<a href="/">首页</a>
@if ($category->id!=$parent->id) @if ($category->id!=$parent->id)
<a href="{{ $parent->link }}">{{ $parent->title }}</a> &gt; &gt; <a href="{{ $parent->link }}">{{ $parent->title }}</a> &gt;
@endif @endif
<a href="{{ $category->link }}">{{ $category->title }}</a> &gt; <a href="{{ $category->link }}">{{ $category->title }}</a>
</span> </span>
</div> </div>
<div class="news-txt ny mg-t-b"> <div class="news-txt ny mg-t-b">

View File

@@ -50,43 +50,21 @@
<div class="contant-right"> <div class="contant-right">
<div class="idxTitle"> <div class="idxTitle">
<div class="idxTitle-name"> <div class="idxTitle-name">
通知公告 {{ getOneCategory(6,'title') }}
</div>
<div class="idxTitle-more" data-href="{{ getOneCategory(6,'link') }}">
查看更多<img src="/assets/index/images/idxRow.png">
</div> </div>
<div class="idxTitle-more" data-href="">查看更多<img src="images/idxRow.png"></div>
</div> </div>
<ul class="contant-right-list"> <ul class="contant-right-list">
<li data-href=""> @if (getArticlesBYCate(6,5)->isNotEmpty())
<p class="ce-nowrap">掀民法典学习热潮 强加党建引领 推进各项工作不断向前</p> @foreach (getArticlesBYCate(6,5) as $article)
<span>2017-09-16</span> <li data-href="{{ $article->link }}">
</li> <p class="ce-nowrap">{{ $article->title }}</p>
<li data-href=""> <span>{{ $article->created_at->format('Y-m-d') }}</span>
<p class="ce-nowrap">掀民法典学习热潮 强加党建引领 推进各项工作不断向前</p> </li>
<span>2017-09-16</span> @endforeach
</li> @endif
<li data-href="">
<p class="ce-nowrap">掀民法典学习热潮 强加党建引领 推进各项工作不断向前</p>
<span>2017-09-16</span>
</li>
<li data-href="">
<p class="ce-nowrap">掀民法典学习热潮 强加党建引领 推进各项工作不断向前</p>
<span>2017-09-16</span>
</li>
<li data-href="">
<p class="ce-nowrap">掀民法典学习热潮 强加党建引领 推进各项工作不断向前</p>
<span>2017-09-16</span>
</li>
<li data-href="">
<p class="ce-nowrap">掀民法典学习热潮 强加党建引领 推进各项工作不断向前</p>
<span>2017-09-16</span>
</li>
<li data-href="">
<p class="ce-nowrap">掀民法典学习热潮 强加党建引领 推进各项工作不断向前</p>
<span>2017-09-16</span>
</li>
<li data-href="">
<p class="ce-nowrap">掀民法典学习热潮 强加党建引领 推进各项工作不断向前</p>
<span>2017-09-16</span>
</li>
</ul> </ul>
</div> </div>
</div> </div>
@@ -98,47 +76,26 @@
<div class="contant"> <div class="contant">
<div class="idxTitle"> <div class="idxTitle">
<div class="idxTitle-name"> <div class="idxTitle-name">
科研进展<span>/ Scientific research achievements</span> {{ getOneCategory(24,'title') }}<span>/ {{ getOneCategory(24,'description') }}</span>
</div>
<div class="idxTitle-more" data-href="{{ getOneCategory(24,'link') }}">
查看更多<img src="/assets/index/images/idxRow.png">
</div> </div>
<div class="idxTitle-more" data-href="">查看更多<img src="images/idxRow.png"></div>
</div> </div>
<ul class="newTwo-list"> <ul class="newTwo-list">
<li data-href=""> @if (getArticlesBYCate(24,4)->isNotEmpty())
<div class="ce-img newTwo-list-img"> @foreach (getArticlesBYCate(24,4) as $article)
<span style="background-image: url(/assets/index/images/img.png);"></span> <li data-href="{{ $article->link }}">
</div> <div class="ce-img newTwo-list-img">
<div class="newTwo-list-cont"> <span style="background-image: url({{ $article->cover_path }});"></span>
<div class="ce-nowrap newTwo-list-title">广州能源所参加国家重点研发计划项目课题“梯次利用动力电池</div> </div>
<div class="ce-nowrap newTwo-list-text">2020-08-03</div> <div class="newTwo-list-cont">
</div> <div class="ce-nowrap newTwo-list-title">{{ $article->title }}</div>
</li> <div class="ce-nowrap newTwo-list-text">{{ $article->created_at->format('Y-m-d') }}</div>
<li data-href=""> </div>
<div class="ce-img newTwo-list-img"> </li>
<span style="background-image: url(/assets/index/images/img.png);"></span> @endforeach
</div> @endif
<div class="newTwo-list-cont">
<div class="ce-nowrap newTwo-list-title">广州能源所参加国家重点研发计划项目课题“梯次利用动力电池</div>
<div class="ce-nowrap newTwo-list-text">2020-08-03</div>
</div>
</li>
<li data-href="">
<div class="ce-img newTwo-list-img">
<span style="background-image: url(/assets/index/images/img.png);"></span>
</div>
<div class="newTwo-list-cont">
<div class="ce-nowrap newTwo-list-title">广州能源所参加国家重点研发计划项目课题“梯次利用动力电池</div>
<div class="ce-nowrap newTwo-list-text">2020-08-03</div>
</div>
</li>
<li data-href="">
<div class="ce-img newTwo-list-img">
<span style="background-image: url(/assets/index/images/img.png);"></span>
</div>
<div class="newTwo-list-cont">
<div class="ce-nowrap newTwo-list-title">广州能源所参加国家重点研发计划项目课题“梯次利用动力电池</div>
<div class="ce-nowrap newTwo-list-text">2020-08-03</div>
</div>
</li>
</ul> </ul>
</div> </div>
</div> </div>
@@ -151,87 +108,81 @@
<div class="idxThree-title"> <div class="idxThree-title">
<div class="idxThree-title-name"> <div class="idxThree-title-name">
<div class="idxThree-title-icon"> <div class="idxThree-title-icon">
<img src="images/title_icon_00.png"> <img src="/assets/index/images/title_icon_00.png">
获奖 {{ getOneCategory(20,'title') }}
</div> </div>
</div> </div>
<div class="idxThree-title-more" data-href=""> <div class="idxThree-title-more" data-href="{{ getOneCategory(20,'link') }}">
更多 + 更多 +
</div> </div>
</div> </div>
<div class="threeCont-top" data-href=""> @if (getArticlesBYCate(20,5)->isNotEmpty())
<div class="ce-img threeCont-top-img"> <div class="threeCont-top" data-href="{{ getArticlesBYCate(20,5)->first()->link }}">
<span style="background-image: url(/assets/index/images/img.png);"></span> <div class="ce-img threeCont-top-img">
</div> <span style="background-image: url({{ getArticlesBYCate(20,5)->first()->cover_path }});"></span>
<div class="threeCont-top-cont"> </div>
<div class="ce-nowrap threeCont-top-title">国家及省部级奖励</div> <div class="threeCont-top-cont">
<div class="ce-nowrap-multi threeCont-top-text"> <div class="ce-nowrap threeCont-top-title">{{ getArticlesBYCate(20,5)->first()->title }}</div>
LZS3型小流域水文自动测报系统 1982 黑龙江省科技进步黑龙江省科技进步二等奖小流域水文自动测报系统1985年国家科技进步三等奖ZT-1型酒心糖生 <div class="ce-nowrap-multi threeCont-top-text">
危险天气预报系统 {{ getArticlesBYCate(20,5)->first()->description }}
</div>
</div> </div>
</div> </div>
</div> @endif
<ul class="threeCont-list"> <ul class="threeCont-list">
<li data-href=""> @if (getArticlesBYCate(20,5)->isNotEmpty())
<p>熔融沉积式工业3D打印机及其颗粒高分子复合材料的示范应用</p> @foreach (getArticlesBYCate(20,5) as $article)
<span>2017-09-20</span> @if ($loop->iteration>1)
</li> <li data-href="{{ $article->link }}">
<li data-href=""> <p>{{ $article->title }}</p>
<p>熔融沉积式工业3D打印机及其颗粒高分子复合材料的示范应用</p> <span>{{ $article->created_at->format('Y-m-d') }}</span>
<span>2017-09-20</span> </li>
</li> @endif
<li data-href="">
<p>熔融沉积式工业3D打印机及其颗粒高分子复合材料的示范应用</p> @endforeach
<span>2017-09-20</span> @endif
</li>
<li data-href="">
<p>熔融沉积式工业3D打印机及其颗粒高分子复合材料的示范应用</p>
<span>2017-09-20</span>
</li>
</ul> </ul>
</div> </div>
<div class="threeCont"> <div class="threeCont">
<div class="idxThree-title"> <div class="idxThree-title">
<div class="idxThree-title-name"> <div class="idxThree-title-name">
<div class="idxThree-title-icon"> <div class="idxThree-title-icon">
<img src="images/title_icon_01.png"> <img src="/assets/index/images/title_icon_01.png">
成果专利 {{ getOneCategory(21,'title') }}
</div> </div>
</div> </div>
<div class="idxThree-title-more" data-href=""> <div class="idxThree-title-more" data-href="{{ getOneCategory(21,'link') }}">
更多 + 更多 +
</div> </div>
</div> </div>
<div class="threeCont-top" data-href=""> @if (getArticlesBYCate(21,5)->isNotEmpty())
<div class="ce-img threeCont-top-img"> <div class="threeCont-top" data-href="{{ getArticlesBYCate(21,5)->first()->link }}">
<span style="background-image: url(/assets/index/images/img.png);"></span> <div class="ce-img threeCont-top-img">
</div> <span style="background-image: url({{ getArticlesBYCate(21,5)->first()->cover_path }});"></span>
<div class="threeCont-top-cont"> </div>
<div class="ce-nowrap threeCont-top-title">国家及省部级奖励</div> <div class="threeCont-top-cont">
<div class="ce-nowrap-multi threeCont-top-text"> <div class="ce-nowrap threeCont-top-title">{{ getArticlesBYCate(21,5)->first()->title }}</div>
LZS3型小流域水文自动测报系统 1982 黑龙江省科技进步黑龙江省科技进步二等奖小流域水文自动测报系统1985年国家科技进步三等奖ZT-1型酒心糖生... <div class="ce-nowrap-multi threeCont-top-text">
危险天气预报系统 1987 空军科技进步三等奖 {{ getArticlesBYCate(21,5)->first()->description }}
YFW烟叶发酵控制系统 </div>
</div> </div>
</div> </div>
</div> @endif
<ul class="threeCont-list"> <ul class="threeCont-list">
<li data-href=""> @if (getArticlesBYCate(21,5)->isNotEmpty())
<p>熔融沉积式工业3D打印机及其颗粒高分子复合材料的示范应用</p> @foreach (getArticlesBYCate(21,5) as $article)
<span>2017-09-20</span> @if ($loop->iteration>1)
</li> <li data-href="{{ $article->link }}">
<li data-href=""> <p>{{ $article->title }}</p>
<p>熔融沉积式工业3D打印机及其颗粒高分子复合材料的示范应用</p> <span>{{ $article->created_at->format('Y-m-d') }}</span>
<span>2017-09-20</span> </li>
</li> @endif
<li data-href=""> @endforeach
<p>熔融沉积式工业3D打印机及其颗粒高分子复合材料的示范应用</p> @endif
<span>2017-09-20</span>
</li>
<li data-href="">
<p>熔融沉积式工业3D打印机及其颗粒高分子复合材料的示范应用</p>
<span>2017-09-20</span>
</li>
</ul> </ul>
</div> </div>
</div> </div>
@@ -243,77 +194,34 @@
<div class="contant"> <div class="contant">
<div class="idxTitle"> <div class="idxTitle">
<div class="idxTitle-name"> <div class="idxTitle-name">
党建园地<span>/ Party building garden</span> {{ getOneCategory(8,'title') }}<span>/ {{ getOneCategory(8,'description') }}</span>
</div> </div>
</div> </div>
<div class="idxFourSwiper"> <div class="idxFourSwiper">
<!-- Swiper --> <!-- Swiper -->
<div class="swiper-container idxFour-container"> <div class="swiper-container idxFour-container">
<div class="swiper-wrapper"> <div class="swiper-wrapper">
<div class="swiper-slide idxFour-slide">
<div class="ce-img idxFour-img"> @if (getArticlesBYCate(8,4)->isNotEmpty())
<span style="background-image: url(/assets/index/images/banner.png);"></span> @foreach (getArticlesBYCate(8,4) as $article)
</div> <div class="swiper-slide idxFour-slide">
<div class="idxFour-cont"> <div class="ce-img idxFour-img">
<div class="ce-nowrap idxFour-title"> <span style="background-image: url({{ $article->cover_path }});"></span>
新型煤化工五路径:谁能走得更远? </div>
<div class="idxFour-cont">
<div class="ce-nowrap idxFour-title">
{{ $article->title }}
</div>
<div class="ce-nowrap-multi idxFour-text">
{{ $article->description }}
</div>
<div class="idxFour-more" data-href="{{ $article->link }}">
查看详情
</div>
</div>
</div> </div>
<div class="ce-nowrap-multi idxFour-text"> @endforeach
位于青岛市黄岛西海岸新区。占地面积3000亩总建筑面积为320万平米其中地上面积为250万平共分为六个地块。能源方案涵盖天然气锅炉、海水源、空气源、蓄能技术等等多能源复合式供应方式。 @endif
</div>
<div class="idxFour-more" data-href="">
查看详情
</div>
</div>
</div>
<div class="swiper-slide idxFour-slide">
<div class="ce-img idxFour-img">
<span style="background-image: url(/assets/index/images/img.png);"></span>
</div>
<div class="idxFour-cont">
<div class="ce-nowrap idxFour-title">
新型煤化工五路径:谁能走得更远?
</div>
<div class="ce-nowrap-multi idxFour-text">
位于青岛市黄岛西海岸新区。占地面积3000亩总建筑面积为320万平米其中地上面积为250万平共分为六个地块。能源方案涵盖天然气锅炉、海水源、空气源、蓄能技术等等多能源复合式供应方式。
</div>
<div class="idxFour-more" data-href="">
查看详情
</div>
</div>
</div>
<div class="swiper-slide idxFour-slide">
<div class="ce-img idxFour-img">
<span style="background-image: url(/assets/index/images/img.png);"></span>
</div>
<div class="idxFour-cont">
<div class="ce-nowrap idxFour-title">
新型煤化工五路径:谁能走得更远?
</div>
<div class="ce-nowrap-multi idxFour-text">
位于青岛市黄岛西海岸新区。占地面积3000亩总建筑面积为320万平米其中地上面积为250万平共分为六个地块。能源方案涵盖天然气锅炉、海水源、空气源、蓄能技术等等多能源复合式供应方式。
</div>
<div class="idxFour-more" data-href="">
查看详情
</div>
</div>
</div>
<div class="swiper-slide idxFour-slide">
<div class="ce-img idxFour-img">
<span style="background-image: url(/assets/index/images/img.png);"></span>
</div>
<div class="idxFour-cont">
<div class="ce-nowrap idxFour-title">
新型煤化工五路径:谁能走得更远?
</div>
<div class="ce-nowrap-multi idxFour-text">
位于青岛市黄岛西海岸新区。占地面积3000亩总建筑面积为320万平米其中地上面积为250万平共分为六个地块。能源方案涵盖天然气锅炉、海水源、空气源、蓄能技术等等多能源复合式供应方式。
</div>
<div class="idxFour-more" data-href="">
查看详情
</div>
</div>
</div>
</div> </div>
</div> </div>
<!-- Add Arrows --> <!-- Add Arrows -->