This commit is contained in:
2020-09-17 10:40:01 +08:00
parent b266a81b29
commit fec199aa7b
4 changed files with 789 additions and 779 deletions

View File

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

View File

@@ -124,8 +124,8 @@ body {
padding: 0 26px;
}
.nav li>a:hover,
.nav li.active>a {
.nav li > a:hover,
.nav li.active > a {
background: #007900;
color: #FF0;
}
@@ -202,7 +202,6 @@ body {
}
.news-notice {
margin: 20px 0;
}
@@ -528,7 +527,8 @@ body {
color: #0594c9;
}
.col-2-l {}
.col-2-l {
}
.col-2-l .tit {
height: 40px;
@@ -603,7 +603,8 @@ body {
background: #084466;
}
.col-2-r {}
.col-2-r {
}
.gsht {
float: left;
@@ -860,7 +861,7 @@ body {
.ft-menu {
height: 230px;
width: 100%;
background: linear-gradient( rgb(63, 155, 11) , #3e8a1a);
background: linear-gradient(rgb(63, 155, 11), #3e8a1a);
overflow: hidden;
}
@@ -973,8 +974,9 @@ body {
}
.pagelist li a {
height: 35px;
line-height: 35px;
/* height: 35px; */
line-height: 30px;
padding-right: 40px;
display: block;
background: url(../images/sanjiao2.png) 220px 14px no-repeat #fafafa;
font-size: 12px;
@@ -983,7 +985,7 @@ body {
}
.pagelist li a:hover,
.pagelist li.active>a {
.pagelist li.active > a {
background: url(../images/sanjiao.png) 218px 14px no-repeat #fafafa;
font-weight: bold;
}
@@ -1026,6 +1028,7 @@ body {
margin: 12px 12px 0 12px;
}
.pagelujing {
height: 40px;
border-bottom: 2px solid #efefef;
@@ -1033,6 +1036,7 @@ body {
}
.pagelujing .name {
width: 48%;
position: absolute;
left: 0;
top: 0;
@@ -1041,13 +1045,20 @@ body {
line-height: 40px;
font-size: 16px;
font-weight: bold;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.pagelujing span {
/* width:48%; */
position: absolute;
right: 0;
/* right: 0; */
line-height: 40px;
color: #888;
/* overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis; */
}
.news-txt.ny,
@@ -1167,7 +1178,6 @@ body {
}
.words11 {
overflow: hidden;
padding-top: 20px;
@@ -1412,7 +1422,7 @@ body {
}
.poster li>img {
.poster li > img {
width: 100%;
height: 100%;
display: block;

View File

@@ -30,20 +30,19 @@
</div>
<div class="page-right">
<div class="pagelujing">
<div class="name">{{ $category->title }}</div>
{{-- <div class="name">{{ $category->title }}</div>--}}
<span>
您当前所在位置:<a href="/">首页</a> >
您当前所在位置:<a href="/">首页</a>
@if ($parent->id!=$category->id)
<a href="{{ $parent->link }}">{{ $parent->title }}</a> >
> <a href="{{ $parent->link }}">{{ $parent->title }}</a>
@endif
<a href="{{ $category->link }}">{{ $category->title }}</a> >
> <a href="{{ $category->link }}">{{ $category->title }}</a>
</span>
</div>
<div class="biaoti">{{ $article->title }}</div>
<div class="sshuomign"><span>发布时间:{{ $article->created_at->format('Y-m-d') }}</span></div>
<div class="article_txt">
{{-- @if ($article->cover)--}}
{{-- @if ($article->cover)--}}
{{-- <img src="{{ $article->cover_path }}">--}}
{{-- @endif--}}
{!! $article->content !!}

View File

@@ -1,12 +1,13 @@
<div class="header">
{{-- <div class="container">--}}
{{-- <div id="weather"></div>--}}
<div class="container">
<div id="weather"></div>
{{-- <div class="toptxt"><a href="#">加入收藏</a><a href="#">设为首页</a></div>--}}
{{-- <div class="logo"><a href="#"><img src="images/logo.png"/></a></div>--}}
<div class="logo"><a href="#"><img src="/assets/index/images/logo.png"/></a></div>
{{-- <div class="search">--}}
{{-- <input type="text" class="ipt-sea" placeholder="请输入搜索关键词"/>--}}
{{-- <a href="javascript:;">搜索</a></div>--}}
{{-- <a href="javascript:;">搜索</a>--}}
{{-- </div>--}}
</div>
</div>
<div class="nav">
<ul class="" id="navul">