补充文件
This commit is contained in:
BIN
public/assets/index/images/idxThree_img_03.jpg
Normal file
BIN
public/assets/index/images/idxThree_img_03.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 24 KiB |
BIN
public/assets/index/images/nys_banner.png
Normal file
BIN
public/assets/index/images/nys_banner.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 53 KiB |
49
resources/views/articles/index.blade.php
Normal file
49
resources/views/articles/index.blade.php
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
@extends('layouts.app')
|
||||||
|
|
||||||
|
@section('title', '')
|
||||||
|
@section('keywords', $category->keywords)
|
||||||
|
@section('description', $category->description)
|
||||||
|
|
||||||
|
@section('css')
|
||||||
|
<style type="text/css">
|
||||||
|
.noImg .newsl{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.noImg .newsr{
|
||||||
|
width: 100% !important;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
@endsection
|
||||||
|
@section('content')
|
||||||
|
<div class="mabody">
|
||||||
|
<div class="mainWarp">
|
||||||
|
@include('layouts.left')
|
||||||
|
<div class="mainRight">
|
||||||
|
<div class="brandnavbox">
|
||||||
|
<p class="ccsl">{{ $category->title }}</p>
|
||||||
|
<div class="con ccsl">首页 > {{ $category->title }} ></div>
|
||||||
|
</div>
|
||||||
|
<ul class="listul">
|
||||||
|
@foreach($articles as $article)
|
||||||
|
<li @if(empty($article->cover)) class="noImg" @endif>
|
||||||
|
<div class="newsl">
|
||||||
|
<a href="{{ route('article.show', $article) }}"><img src="{{ \Storage::disk('public')->url($article->cover) }}" /></a>
|
||||||
|
</div>
|
||||||
|
<div class="newsr">
|
||||||
|
<a href="{{ route('article.show', $article) }}" class="ccsl">{{ $article->title }}</a>
|
||||||
|
<hr>
|
||||||
|
<div class="sub">{{ $article->description }}</div>
|
||||||
|
{{-- <a href="{{ route('article.show', $article) }}" class="more">查看更多>> </a> --}}
|
||||||
|
<span style="margin-top: 10px;display: block; color: #999; font-size: 14px;">{{ $article->created_at }}</span>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
@endforeach
|
||||||
|
</ul>
|
||||||
|
<div class="clear"></div>
|
||||||
|
{{ $articles->links() }}
|
||||||
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
@endsection
|
||||||
38
resources/views/articles/search.blade.php
Normal file
38
resources/views/articles/search.blade.php
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
@extends('layouts.app')
|
||||||
|
|
||||||
|
@section('title', '搜索结果')
|
||||||
|
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
<!-- content -->
|
||||||
|
<div class="container mian">
|
||||||
|
<div class="mian-content-header">
|
||||||
|
<a href="#">首页</a>
|
||||||
|
<i class="fa fa-caret-right"></i>
|
||||||
|
<a href="#">搜索结果</a>
|
||||||
|
</div>
|
||||||
|
<!-- 文章列表 -->
|
||||||
|
<ul class="results-news-ul">
|
||||||
|
|
||||||
|
@if ($articles->isNotEmpty())
|
||||||
|
@foreach ($articles as $article)
|
||||||
|
<li>
|
||||||
|
<a class="nowrap" href="{{ $article->link }}">
|
||||||
|
<i class="fa fa-angle-double-right"></i>
|
||||||
|
{{ $article->title }}
|
||||||
|
<span>{{ $article->created_at->format('Y-m-d') }}</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
@endforeach
|
||||||
|
@endif
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<!-- 分页 -->
|
||||||
|
<div class="pages">
|
||||||
|
@if ($articles->isNotEmpty())
|
||||||
|
{{ $articles->links('layouts.pagination') }}
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- end content -->
|
||||||
|
@endsection
|
||||||
@@ -23,8 +23,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="page-right">
|
<div class="page-right">
|
||||||
<div class="pagelujing">
|
<div class="pagelujing">
|
||||||
<div class="name">{{ $category->title }}</div>
|
<!-- <div class="name">{{ $category->title }}</div> -->
|
||||||
<span>
|
<span style="left: 0">
|
||||||
您当前所在位置:<a href="/">首页</a> >
|
您当前所在位置:<a href="/">首页</a> >
|
||||||
@if ($category->id!=$parent->id)
|
@if ($category->id!=$parent->id)
|
||||||
<a href="{{ $parent->link }}">{{ $parent->title }}</a> >
|
<a href="{{ $parent->link }}">{{ $parent->title }}</a> >
|
||||||
@@ -33,12 +33,12 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="news-txt ny mg-t-b">
|
<div class="news-txt ny mg-t-b">
|
||||||
<div class="biaoti">{{ $article->title }}</div>
|
<!-- <div class="biaoti">{{ $article->title }}</div>
|
||||||
<div class="sshuomign"><span>发布时间:{{ $article->created_at->format('Y-m-d') }}</span></div>
|
<div class="sshuomign"><span>发布时间:{{ $article->created_at->format('Y-m-d') }}</span></div> -->
|
||||||
<div class="article_txt">
|
<div class="article_txt">
|
||||||
{{-- @if ($article->cover)--}}
|
@if ($article->cover)
|
||||||
{{-- <img src="{{ $article->cover_path }}">--}}
|
<img src="{{ $article->cover_path }}">
|
||||||
{{-- @endif--}}
|
@endif
|
||||||
{!! $article->content !!}
|
{!! $article->content !!}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -46,6 +46,14 @@
|
|||||||
@if ($articles->isNotEmpty())
|
@if ($articles->isNotEmpty())
|
||||||
{{ $articles->links('layouts.pagination') }}
|
{{ $articles->links('layouts.pagination') }}
|
||||||
@endif
|
@endif
|
||||||
|
{{-- <span class="disabled">上一页</span>--}}
|
||||||
|
{{-- <span class="current">1</span>--}}
|
||||||
|
{{-- <a href="javascript:;" class="tcdNumber">2</a>--}}
|
||||||
|
{{-- <a href="javascript:;" class="tcdNumber">3</a>--}}
|
||||||
|
{{-- <a href="javascript:;" class="tcdNumber">4</a>--}}
|
||||||
|
{{-- <span>...</span>--}}
|
||||||
|
{{-- <a href="javascript:;" class="tcdNumber">100</a>--}}
|
||||||
|
{{-- <a href="javascript:;" class="nextPage">下一页</a>--}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -8,15 +8,15 @@
|
|||||||
<link rel="stylesheet" type="text/css" href="{{ asset('assets/index/css/style.css') }}"/>
|
<link rel="stylesheet" type="text/css" href="{{ asset('assets/index/css/style.css') }}"/>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<!-- 公告 -->
|
<!-- 公告 -->
|
||||||
<div class="notice">
|
<!-- <div class="notice">
|
||||||
<div class="contant">
|
<div class="contant">
|
||||||
<div class="notice-right">
|
<div class="notice-right">
|
||||||
<span onclick="javascript:setHome(this,window.location.href)">设为首页</span>
|
<span onclick="javascript:setHome(this,window.location.href)">设为首页</span>
|
||||||
<span onclick="javascript:addFavorite()">加入收藏</span>
|
<span onclick="javascript:addFavorite()">加入收藏</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> -->
|
||||||
<!-- end 公告 -->
|
<!-- end 公告 -->
|
||||||
|
|
||||||
@include('layouts.header')
|
@include('layouts.header')
|
||||||
@@ -52,11 +52,12 @@
|
|||||||
<ul class="idxFooter-right">
|
<ul class="idxFooter-right">
|
||||||
<li>版权所有:《自动化技术与应用》</li>
|
<li>版权所有:《自动化技术与应用》</li>
|
||||||
<li>传真: 0451-82300049</li>
|
<li>传真: 0451-82300049</li>
|
||||||
<li>编辑部地址: 哈尔滨市开发区汉水路165号</li>
|
<li>编辑部地址: 哈尔滨市开发区汉水路265号</li>
|
||||||
<li>E-mail: zdhjs@vip.163.comzdhjs@0451.com黑ICP备08003035号-1</li>
|
<li>E-mail: zdhjs@vip.163.com</li>
|
||||||
<li>邮编: 150090</li>
|
<li>邮编: 150090</li>
|
||||||
<li></li>
|
<li></li>
|
||||||
<li>电话: 0451-82300049</li>
|
<li>电话: 0451-82300049</li>
|
||||||
|
<li><a href="https://beian.miit.gov.cn" target="_Blank" style="color:white;">黑ICP备18000348号-1</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
@@ -74,9 +75,9 @@
|
|||||||
<div class="line"></div>
|
<div class="line"></div>
|
||||||
<ul class="idxLink-ul">
|
<ul class="idxLink-ul">
|
||||||
@if ($links->isNotEmpty())
|
@if ($links->isNotEmpty())
|
||||||
@foreach ($links as $link)
|
@foreach ($links as $link)
|
||||||
<li data-href="{{ $link->url }}" target="_Blank"> {{ $link->title}}</li>
|
<li data-href="{{ $link->url }}" target="_Blank"> {{ $link->title}}</li>
|
||||||
@endforeach
|
@endforeach
|
||||||
@endif
|
@endif
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user