[更新]微调
This commit is contained in:
@@ -3,12 +3,14 @@
|
|||||||
namespace App\Admin\Controllers\Article;
|
namespace App\Admin\Controllers\Article;
|
||||||
|
|
||||||
use App\Models\ArticlePicture;
|
use App\Models\ArticlePicture;
|
||||||
|
use App\Models\Category;
|
||||||
use Encore\Admin\Controllers\AdminController;
|
use Encore\Admin\Controllers\AdminController;
|
||||||
use Encore\Admin\Form;
|
use Encore\Admin\Form;
|
||||||
use Encore\Admin\Grid;
|
use Encore\Admin\Grid;
|
||||||
|
|
||||||
class PictureController extends AdminController
|
class PictureController extends AdminController
|
||||||
{
|
{
|
||||||
|
|
||||||
protected $title = '随手拍';
|
protected $title = '随手拍';
|
||||||
|
|
||||||
public function grid()
|
public function grid()
|
||||||
@@ -24,7 +26,7 @@ class PictureController extends AdminController
|
|||||||
});
|
});
|
||||||
|
|
||||||
$grid->column('id', '#ID#');
|
$grid->column('id', '#ID#');
|
||||||
$grid->column('cover')->display(function () {
|
$grid->column('cover', '图片')->display(function () {
|
||||||
return $this->one_picture_path;
|
return $this->one_picture_path;
|
||||||
})->image('', 100);
|
})->image('', 100);
|
||||||
$grid->column('category.title', '所属分类');
|
$grid->column('category.title', '所属分类');
|
||||||
@@ -40,11 +42,18 @@ class PictureController extends AdminController
|
|||||||
$form = new Form(new ArticlePicture);
|
$form = new Form(new ArticlePicture);
|
||||||
|
|
||||||
$form->text('title', '文章标题')->rules('min:2');
|
$form->text('title', '文章标题')->rules('min:2');
|
||||||
$form->hidden('category_id')->value(6);
|
$form->select('category_id', '所属分类')
|
||||||
|
->options(Category::selectOptions(function ($model) {
|
||||||
|
return $model->whereIn('type', [Category::TYPE_PICTURE]);
|
||||||
|
}, '选择分类'))
|
||||||
|
->rules('required|min:1', [
|
||||||
|
'required' => '必须选择所属分类',
|
||||||
|
'min' => '必须选择所属分类',
|
||||||
|
]);
|
||||||
$form->multipleImage('pictures', '封面')
|
$form->multipleImage('pictures', '封面')
|
||||||
->move('images/' . date('Y/m/d'))
|
->move('images/' . date('Y/m/d'))
|
||||||
->removable()
|
->removable()
|
||||||
->uniqueName();
|
->uniqueName();
|
||||||
|
|
||||||
$form->number('sort', '序号')->default(0)->rules('required', ['required' => '序号必须填写'])->help('倒序优先');
|
$form->number('sort', '序号')->default(0)->rules('required', ['required' => '序号必须填写'])->help('倒序优先');
|
||||||
|
|
||||||
|
|||||||
@@ -16,17 +16,50 @@ class IndexController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
$ssp = ArticlePicture::orderBy('sort', 'desc')->take(3)->get(); //随手拍
|
$ssp = ArticlePicture::orderBy('sort', 'desc')->where('category_id', 6)->take(3)->get();
|
||||||
$all_articles = Article::orderBy('sort', 'desc')->whereNotIn('category_id', [20, 21, 22])->take(7)->get(); //最新资讯
|
//随手拍
|
||||||
$danwei = Article::where('category_id', 15)->latest()->first(); //单位概况
|
$all_articles = Article::orderBy('sort', 'desc')
|
||||||
$ysbj = Article::where('category_id', 12)->latest()->take(3)->get(); //养生保健
|
->whereNotIn('category_id', [20, 21, 22])
|
||||||
$dcyfx = Article::where('category_id', 10)->latest()->take(7)->get(); //调研与分析
|
->take(7)
|
||||||
$yyjcyj = Article::where('category_id', 9)->latest()->take(7)->get(); //应用基础研究
|
->get();
|
||||||
$jsyt = Article::where('category_id', 11)->latest()->take(7)->get(); //技术研讨
|
//最新资讯
|
||||||
$kyyyy = Article::where('category_id', 12)->latest()->take(7)->get(); //科研与应用
|
$danwei = Article::where('category_id', 15)
|
||||||
$qkys = Article::where('category_id', 9)->latest()->take(7)->get(); //全科医学
|
->latest()
|
||||||
|
->first();
|
||||||
|
//单位概况
|
||||||
|
$ysbj = Article::where('category_id', 12)
|
||||||
|
->latest()
|
||||||
|
->take(3)
|
||||||
|
->get();
|
||||||
|
//养生保健
|
||||||
|
$dcyfx = Article::where('category_id', 10)
|
||||||
|
->latest()
|
||||||
|
->take(7)
|
||||||
|
->get();
|
||||||
|
//调研与分析
|
||||||
|
$yyjcyj = Article::where('category_id', 9)
|
||||||
|
->latest()
|
||||||
|
->take(7)
|
||||||
|
->get();
|
||||||
|
//应用基础研究
|
||||||
|
$jsyt = Article::where('category_id', 11)
|
||||||
|
->latest()
|
||||||
|
->take(7)
|
||||||
|
->get();
|
||||||
|
//技术研讨
|
||||||
|
$kyyyy = Article::where('category_id', 12)
|
||||||
|
->latest()
|
||||||
|
->take(7)
|
||||||
|
->get();
|
||||||
|
//科研与应用
|
||||||
|
$qkys = Article::where('category_id', 13)
|
||||||
|
->latest()
|
||||||
|
->take(7)
|
||||||
|
->get();
|
||||||
|
//全科医学
|
||||||
$center_advert = Advert::where('category_id', 18)->first();
|
$center_advert = Advert::where('category_id', 18)->first();
|
||||||
$qikan_advert = Advert::where('category_id', 19)->take(4)->orderBy('sort', 'desc')->get();
|
//期刊
|
||||||
|
$qikan_advert = ArticlePicture::latest()->take(4)->where('category_id', 23)->get();
|
||||||
|
|
||||||
return view('index.index', compact('ssp', 'all_articles', 'danwei', 'ysbj', 'dcyfx', 'yyjcyj', 'jsyt', 'kyyyy', 'qkys', 'center_advert', 'qikan_advert'));
|
return view('index.index', compact('ssp', 'all_articles', 'danwei', 'ysbj', 'dcyfx', 'yyjcyj', 'jsyt', 'kyyyy', 'qkys', 'center_advert', 'qikan_advert'));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,20 +9,21 @@ use Illuminate\Database\Eloquent\Relations\HasMany;
|
|||||||
|
|
||||||
class Category extends Model
|
class Category extends Model
|
||||||
{
|
{
|
||||||
use AdminBuilder, ModelTree;
|
|
||||||
|
|
||||||
public const TYPES = [
|
use AdminBuilder, ModelTree;
|
||||||
'article' => '文章列表',
|
|
||||||
'show' => '文章详情',
|
|
||||||
'advert' => '广告',
|
|
||||||
'picture' => '图册',
|
|
||||||
];
|
|
||||||
|
|
||||||
public const TYPE_SHOW = 'show';
|
public const TYPE_SHOW = 'show';
|
||||||
public const TYPE_ARTICLE = 'article';
|
public const TYPE_ARTICLE = 'article';
|
||||||
public const TYPE_ADVERT = 'advert';
|
public const TYPE_ADVERT = 'advert';
|
||||||
public const TYPE_PICTURE = 'picture';
|
public const TYPE_PICTURE = 'picture';
|
||||||
|
|
||||||
|
public const TYPES = [
|
||||||
|
self::TYPE_ARTICLE => '文章列表',
|
||||||
|
self::TYPE_SHOW => '文章详情',
|
||||||
|
self::TYPE_ADVERT => '广告',
|
||||||
|
self::TYPE_PICTURE => '图册',
|
||||||
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 关联的数据
|
* 关联的数据
|
||||||
* @return [type] [description]
|
* @return [type] [description]
|
||||||
@@ -31,7 +32,7 @@ class Category extends Model
|
|||||||
{
|
{
|
||||||
switch ($this->type) {
|
switch ($this->type) {
|
||||||
case self::TYPE_SHOW:
|
case self::TYPE_SHOW:
|
||||||
return $this->hasOne(Article::class,'id','article_id');
|
return $this->hasOne(Article::class, 'id', 'article_id');
|
||||||
break;
|
break;
|
||||||
case self::TYPE_ARTICLE:
|
case self::TYPE_ARTICLE:
|
||||||
return $this->hasMany(Article::class);
|
return $this->hasMany(Article::class);
|
||||||
|
|||||||
@@ -4,317 +4,324 @@
|
|||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
|
|
||||||
<!-- 随手拍+最新资讯 -->
|
<!-- 随手拍+最新资讯 -->
|
||||||
<div class="ce-white ui-margin-b">
|
<div class="ce-white ui-margin-b">
|
||||||
<div class="contant">
|
<div class="contant">
|
||||||
<div class="idxShoot">
|
<div class="idxShoot">
|
||||||
<div class="idxShoot-title">
|
<div class="idxShoot-title">
|
||||||
<p>随手拍</p>
|
<p>随手拍</p>
|
||||||
<span>/ BEAT</span>
|
<span>/ BEAT</span>
|
||||||
</div>
|
|
||||||
<div class="idxShoot-swiper">
|
|
||||||
<!-- Swiper -->
|
|
||||||
<div class="swiper-container gallery-top">
|
|
||||||
<div class="swiper-wrapper">
|
|
||||||
@foreach ($ssp as $element)
|
|
||||||
@foreach ($element->pictures as $picture)
|
|
||||||
<div class="swiper-slide" style="background-image:url({{ Storage::disk('public')->url($picture ) }})"></div>
|
|
||||||
@endforeach
|
|
||||||
@endforeach
|
|
||||||
</div>
|
|
||||||
<!-- Add Arrows -->
|
|
||||||
</div>
|
</div>
|
||||||
<div class="swiper-container gallery-thumbs">
|
<div class="idxShoot-swiper">
|
||||||
<div class="swiper-wrapper">
|
<!-- Swiper -->
|
||||||
@foreach ($ssp as $element)
|
<div class="swiper-container gallery-top">
|
||||||
@foreach ($element->pictures as $picture)
|
<div class="swiper-wrapper">
|
||||||
<div class="swiper-slide" style="background-image:url({{ Storage::disk('public')->url($picture ) }})"></div>
|
@foreach ($ssp as $element)
|
||||||
@endforeach
|
@foreach ($element->pictures as $picture)
|
||||||
@endforeach
|
<div class="swiper-slide" style="background-image:url({{ Storage::disk('public')->url($picture ) }})"></div>
|
||||||
|
@endforeach
|
||||||
|
@endforeach
|
||||||
|
</div>
|
||||||
|
<!-- Add Arrows -->
|
||||||
</div>
|
</div>
|
||||||
|
<div class="swiper-container gallery-thumbs">
|
||||||
|
<div class="swiper-wrapper">
|
||||||
|
@foreach ($ssp as $element)
|
||||||
|
@foreach ($element->pictures as $picture)
|
||||||
|
<div class="swiper-slide" style="background-image:url({{ Storage::disk('public')->url($picture ) }})"></div>
|
||||||
|
@endforeach
|
||||||
|
@endforeach
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="idxNews">
|
||||||
|
<div class="idxShoot-title">
|
||||||
|
<p>最新资讯</p>
|
||||||
|
<span>/ NEW</span>
|
||||||
|
</div>
|
||||||
|
<ul class="idxNews-ul">
|
||||||
|
@foreach ($all_articles as $article)
|
||||||
|
<li>
|
||||||
|
<div class="idxNews-ul-title">
|
||||||
|
<a href="{{ route('article.show', $article) }}">
|
||||||
|
<p class="ce-nowrap">{{ $article->title }}</p></a>
|
||||||
|
<span>{{ $article->created_at }}</span>
|
||||||
|
</div>
|
||||||
|
<div class="ce-nowrap-multi idxNews-ul-text">
|
||||||
|
{{ $article->description }}
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
@endforeach
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 单位概况 -->
|
||||||
|
<div class="contant idxSurvey">
|
||||||
|
<div class="idxShoot-title">
|
||||||
|
<div class="idxShoot-title-name">
|
||||||
|
<p>期刊简介</p>
|
||||||
|
<span>/ INTRODUCTION OF THE JOURNAL</span>
|
||||||
|
</div>
|
||||||
|
<a href="@if ($danwei) {{ route('article.show', $danwei) }} @endif">更多 ></a>
|
||||||
|
</div>
|
||||||
|
<div class="idxSurveyCont">
|
||||||
|
<div class="idxSurveyCont-left">
|
||||||
|
@if ($danwei) {{ $danwei->description }} @endif
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="idxSurveyCont-right">
|
||||||
|
<div class="idxSurveyCont-right-img">
|
||||||
|
<img src=" @if ($danwei) {{ $danwei->cover_path }} @endif">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="idxNews">
|
<!-- 养生保健 -->
|
||||||
|
<div class="ce-white ui-margin-t">
|
||||||
|
<div class="contant">
|
||||||
<div class="idxShoot-title">
|
<div class="idxShoot-title">
|
||||||
<p>最新资讯</p>
|
<p>养生保健</p>
|
||||||
<span>/ NEW</span>
|
<span>/ HEALTH CARE</span>
|
||||||
</div>
|
</div>
|
||||||
<ul class="idxNews-ul">
|
<ul class="idxHealthUl">
|
||||||
@foreach ($all_articles as $article)
|
@foreach ($ysbj as $article)
|
||||||
<li>
|
<li>
|
||||||
<div class="idxNews-ul-title">
|
<div class="ce-img idxHealthUl-img">
|
||||||
<a href="{{ route('article.show', $article) }}"><p class="ce-nowrap">{{ $article->title }}</p></a>
|
<span style="background-image: url( {{ $article->cover_path }} );"></span>
|
||||||
<span>{{ $article->created_at }}</span>
|
</div>
|
||||||
</div>
|
<div class="idxHealthUl-text">
|
||||||
<div class="ce-nowrap-multi idxNews-ul-text">
|
<div class="idxHealthUl-title">{{ $article->title }}</div>
|
||||||
{{ $article->description }}
|
<div class="idxHealthUl-tips">
|
||||||
</div>
|
{{ $article->description }}
|
||||||
</li>
|
</div>
|
||||||
|
<a href="{{ route('article.show', $article) }}">
|
||||||
|
<div class="idxHealthUl-btn">
|
||||||
|
MORE
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- 单位概况 -->
|
<!-- 广告位 -->
|
||||||
<div class="contant idxSurvey">
|
<div class="idxPoster" style="background-image: url({{ $center_advert->cover_path }});"></div>
|
||||||
<div class="idxShoot-title">
|
|
||||||
<div class="idxShoot-title-name">
|
<!-- 精彩推介 -->
|
||||||
<p>期刊简介</p>
|
<div class="ce-white" style="padding: 30px 0 50px">
|
||||||
<span>/ INTRODUCTION OF THE JOURNAL</span>
|
<div class="contant">
|
||||||
|
<div class="idxShoot-title">
|
||||||
|
<p>精彩推介</p>
|
||||||
|
<span>/ Wonderful promotion</span>
|
||||||
|
</div>
|
||||||
|
<ul class="recomdUl">
|
||||||
|
<li>
|
||||||
|
<div class="recomdUl-title">
|
||||||
|
<div class="recomdUl-title-img">
|
||||||
|
<img src="/assets/index/images/idx/idxIcon_00.png">
|
||||||
|
<span>调研与分析</span>
|
||||||
|
</div>
|
||||||
|
<img class="idxIconRow" src="/assets/index/images/idx/idxIcon_row.png">
|
||||||
|
</div>
|
||||||
|
@if ($dcyfx->isNotEmpty())
|
||||||
|
|
||||||
|
<div class="recomdUl-top">
|
||||||
|
<div class="ce-img recomdUl-top-img">
|
||||||
|
<span style="background-image: url({{ $dcyfx->first()->cover_path }});"></span>
|
||||||
|
</div>
|
||||||
|
<div class="recomdUl-top-text">
|
||||||
|
<p class="ce-nowrap">
|
||||||
|
<a href="{{ route('article.show', $dcyfx->first()) }}"> {{ $dcyfx->first()->title }}</a>
|
||||||
|
</p>
|
||||||
|
<span class="ce-nowrap-multi">{{ $dcyfx->first()->description }}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<ul class="recomdUl-list">
|
||||||
|
@foreach ($dcyfx as $article)
|
||||||
|
@if ($loop->iteration>1)
|
||||||
|
<li class="ce-nowrap">
|
||||||
|
<a href="{{ route('article.show', $article) }}">
|
||||||
|
{{ $article->title }}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
@endif
|
||||||
|
@endforeach
|
||||||
|
</ul>
|
||||||
|
@endif
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<div class="recomdUl-title">
|
||||||
|
<div class="recomdUl-title-img">
|
||||||
|
<img src="/assets/index/images/idx/idxIcon_01.png">
|
||||||
|
<span>应用基础研究</span>
|
||||||
|
</div>
|
||||||
|
<img class="idxIconRow" src="/assets/index/images/idx/idxIcon_row.png">
|
||||||
|
</div>
|
||||||
|
@if ($yyjcyj->isNotEmpty())
|
||||||
|
|
||||||
|
<div class="recomdUl-top">
|
||||||
|
<div class="ce-img recomdUl-top-img">
|
||||||
|
<span style="background-image: url({{ $yyjcyj->first()->cover_path }});"></span>
|
||||||
|
</div>
|
||||||
|
<div class="recomdUl-top-text">
|
||||||
|
<p class="ce-nowrap">
|
||||||
|
<a href="{{ route('article.show', $yyjcyj->first()) }}"> {{ $yyjcyj->first()->title }}</a>
|
||||||
|
</p>
|
||||||
|
<span class="ce-nowrap-multi">{{ $yyjcyj->first()->description }}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<ul class="recomdUl-list">
|
||||||
|
@foreach ($yyjcyj as $article)
|
||||||
|
@if ($loop->iteration>1)
|
||||||
|
<li class="ce-nowrap">
|
||||||
|
<a href="{{ route('article.show', $article) }}">
|
||||||
|
{{ $article->title }}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
@endif
|
||||||
|
@endforeach
|
||||||
|
</ul>
|
||||||
|
@endif
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<div class="recomdUl-title">
|
||||||
|
<div class="recomdUl-title-img">
|
||||||
|
<img src="/assets/index/images/idx/idxIcon_02.png">
|
||||||
|
<span>技术研讨</span>
|
||||||
|
</div>
|
||||||
|
<img class="idxIconRow" src="/assets/index/images/idx/idxIcon_row.png">
|
||||||
|
</div>
|
||||||
|
@if ($jsyt->isNotEmpty())
|
||||||
|
|
||||||
|
<div class="recomdUl-top">
|
||||||
|
<div class="ce-img recomdUl-top-img">
|
||||||
|
<span style="background-image: url({{ $jsyt->first()->cover_path }});"></span>
|
||||||
|
</div>
|
||||||
|
<div class="recomdUl-top-text">
|
||||||
|
<p class="ce-nowrap">
|
||||||
|
<a href="{{ route('article.show', $jsyt->first()) }}"> {{ $jsyt->first()->title }}</a>
|
||||||
|
</p>
|
||||||
|
<span class="ce-nowrap-multi">{{ $jsyt->first()->description }}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<ul class="recomdUl-list">
|
||||||
|
@foreach ($jsyt as $article)
|
||||||
|
@if ($loop->iteration>1)
|
||||||
|
<li class="ce-nowrap">
|
||||||
|
<a href="{{ route('article.show', $article) }}">
|
||||||
|
{{ $article->title }}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
@endif
|
||||||
|
@endforeach
|
||||||
|
</ul>
|
||||||
|
@endif
|
||||||
|
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<ul class="recomdBtom">
|
||||||
|
<li>
|
||||||
|
<div class="recomdUl-title">
|
||||||
|
<div class="recomdUl-title-img">
|
||||||
|
<img src="/assets/index/images/idx/idxIcon_03.png">
|
||||||
|
<span>科研与应用</span>
|
||||||
|
</div>
|
||||||
|
<img class="idxIconRow" src="/assets/index/images/idx/idxIcon_row.png">
|
||||||
|
</div>
|
||||||
|
@if ($kyyyy->isNotEmpty())
|
||||||
|
|
||||||
|
<ul class="recomdUl-list">
|
||||||
|
@foreach ($kyyyy as $article)
|
||||||
|
<li class="ce-nowrap">
|
||||||
|
<a href="{{ route('article.show', $article) }}">
|
||||||
|
{{ $article->title }}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
@endforeach
|
||||||
|
</ul>
|
||||||
|
@endif
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<div class="recomdUl-title">
|
||||||
|
<div class="recomdUl-title-img">
|
||||||
|
<img src="/assets/index/images/idx/idxIcon_03.png">
|
||||||
|
<span>全科医学</span>
|
||||||
|
</div>
|
||||||
|
<img class="idxIconRow" src="/assets/index/images/idx/idxIcon_row.png">
|
||||||
|
</div>
|
||||||
|
@if ($qkys->isNotEmpty())
|
||||||
|
|
||||||
|
<ul class="recomdUl-list">
|
||||||
|
@foreach ($qkys as $article)
|
||||||
|
<li class="ce-nowrap">
|
||||||
|
<a href="{{ route('article.show', $article) }}">
|
||||||
|
{{ $article->title }}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
@endforeach
|
||||||
|
</ul>
|
||||||
|
@endif
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<a href="@if ($danwei) {{ route('article.show', $danwei) }} @endif">更多 ></a>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="idxSurveyCont">
|
|
||||||
<div class="idxSurveyCont-left">
|
|
||||||
@if ($danwei) {{ $danwei->description }} @endif
|
|
||||||
|
|
||||||
</div>
|
@if($qikan_advert->isNotEmpty())
|
||||||
<div class="idxSurveyCont-right">
|
<!-- 期刊 -->
|
||||||
<div class="idxSurveyCont-right-img">
|
<div class="idxWeekly" style="background-image: url(/assets/index/images/idx/idxWeekly_img.png);">
|
||||||
<img src=" @if ($danwei) {{ $danwei->cover_path }} @endif">
|
<div class="contant">
|
||||||
|
<div class="idxWeekly-title idxShoot-title" style="margin: 0 16px;">
|
||||||
|
<p>期刊</p>
|
||||||
|
<span>/ PERIODICAL</span>
|
||||||
|
</div>
|
||||||
|
<div class="idxWeekly-ul">
|
||||||
|
@foreach ($qikan_advert as $advert)
|
||||||
|
<div class="idxWeekly-back" style="background-image: url({{ $advert->one_picture_path }});"></div>
|
||||||
|
@endforeach
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
@endif
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- 养生保健 -->
|
|
||||||
<div class="ce-white ui-margin-t">
|
|
||||||
<div class="contant">
|
|
||||||
<div class="idxShoot-title">
|
|
||||||
<p>养生保健</p>
|
|
||||||
<span>/ HEALTH CARE</span>
|
|
||||||
</div>
|
|
||||||
<ul class="idxHealthUl">
|
|
||||||
@foreach ($ysbj as $article)
|
|
||||||
<li>
|
|
||||||
<div class="ce-img idxHealthUl-img">
|
|
||||||
<span style="background-image: url( {{ $article->cover_path }} );"></span>
|
|
||||||
</div>
|
|
||||||
<div class="idxHealthUl-text">
|
|
||||||
<div class="idxHealthUl-title">{{ $article->title }}</div>
|
|
||||||
<div class="idxHealthUl-tips">
|
|
||||||
{{ $article->description }}
|
|
||||||
</div>
|
|
||||||
<a href="{{ route('article.show', $article) }}">
|
|
||||||
<div class="idxHealthUl-btn">
|
|
||||||
MORE
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
@endforeach
|
|
||||||
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- 广告位 -->
|
|
||||||
<div class="idxPoster" style="background-image: url({{ $center_advert->cover_path }});"></div>
|
|
||||||
|
|
||||||
<!-- 精彩推介 -->
|
|
||||||
<div class="ce-white" style="padding: 30px 0 50px">
|
|
||||||
<div class="contant">
|
|
||||||
<div class="idxShoot-title">
|
|
||||||
<p>精彩推介</p>
|
|
||||||
<span>/ Wonderful promotion</span>
|
|
||||||
</div>
|
|
||||||
<ul class="recomdUl">
|
|
||||||
<li>
|
|
||||||
<div class="recomdUl-title">
|
|
||||||
<div class="recomdUl-title-img">
|
|
||||||
<img src="/assets/index/images/idx/idxIcon_00.png">
|
|
||||||
<span>调研与分析</span>
|
|
||||||
</div>
|
|
||||||
<img class="idxIconRow" src="/assets/index/images/idx/idxIcon_row.png">
|
|
||||||
</div>
|
|
||||||
@if ($dcyfx->isNotEmpty())
|
|
||||||
|
|
||||||
<div class="recomdUl-top">
|
|
||||||
<div class="ce-img recomdUl-top-img">
|
|
||||||
<span style="background-image: url({{ $dcyfx->first()->cover_path }});"></span>
|
|
||||||
</div>
|
|
||||||
<div class="recomdUl-top-text">
|
|
||||||
<p class="ce-nowrap"><a href="{{ route('article.show', $dcyfx->first()) }}"> {{ $dcyfx->first()->title }}</a></p>
|
|
||||||
<span class="ce-nowrap-multi">{{ $dcyfx->first()->description }}</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<ul class="recomdUl-list">
|
|
||||||
@foreach ($dcyfx as $article)
|
|
||||||
@if ($loop->iteration>1)
|
|
||||||
<li class="ce-nowrap">
|
|
||||||
<a href="{{ route('article.show', $article) }}">
|
|
||||||
{{ $article->title }}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
@endif
|
|
||||||
@endforeach
|
|
||||||
</ul>
|
|
||||||
@endif
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<div class="recomdUl-title">
|
|
||||||
<div class="recomdUl-title-img">
|
|
||||||
<img src="/assets/index/images/idx/idxIcon_01.png">
|
|
||||||
<span>应用基础研究</span>
|
|
||||||
</div>
|
|
||||||
<img class="idxIconRow" src="/assets/index/images/idx/idxIcon_row.png">
|
|
||||||
</div>
|
|
||||||
@if ($yyjcyj->isNotEmpty())
|
|
||||||
|
|
||||||
<div class="recomdUl-top">
|
|
||||||
<div class="ce-img recomdUl-top-img">
|
|
||||||
<span style="background-image: url({{ $yyjcyj->first()->cover_path }});"></span>
|
|
||||||
</div>
|
|
||||||
<div class="recomdUl-top-text">
|
|
||||||
<p class="ce-nowrap"><a href="{{ route('article.show', $yyjcyj->first()) }}"> {{ $yyjcyj->first()->title }}</a></p>
|
|
||||||
<span class="ce-nowrap-multi">{{ $yyjcyj->first()->description }}</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<ul class="recomdUl-list">
|
|
||||||
@foreach ($yyjcyj as $article)
|
|
||||||
@if ($loop->iteration>1)
|
|
||||||
<li class="ce-nowrap">
|
|
||||||
<a href="{{ route('article.show', $article) }}">
|
|
||||||
{{ $article->title }}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
@endif
|
|
||||||
@endforeach
|
|
||||||
</ul>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<div class="recomdUl-title">
|
|
||||||
<div class="recomdUl-title-img">
|
|
||||||
<img src="/assets/index/images/idx/idxIcon_02.png">
|
|
||||||
<span>技术研讨</span>
|
|
||||||
</div>
|
|
||||||
<img class="idxIconRow" src="/assets/index/images/idx/idxIcon_row.png">
|
|
||||||
</div>
|
|
||||||
@if ($jsyt->isNotEmpty())
|
|
||||||
|
|
||||||
<div class="recomdUl-top">
|
|
||||||
<div class="ce-img recomdUl-top-img">
|
|
||||||
<span style="background-image: url({{ $jsyt->first()->cover_path }});"></span>
|
|
||||||
</div>
|
|
||||||
<div class="recomdUl-top-text">
|
|
||||||
<p class="ce-nowrap"><a href="{{ route('article.show', $jsyt->first()) }}"> {{ $jsyt->first()->title }}</a></p>
|
|
||||||
<span class="ce-nowrap-multi">{{ $jsyt->first()->description }}</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<ul class="recomdUl-list">
|
|
||||||
@foreach ($jsyt as $article)
|
|
||||||
@if ($loop->iteration>1)
|
|
||||||
<li class="ce-nowrap">
|
|
||||||
<a href="{{ route('article.show', $article) }}">
|
|
||||||
{{ $article->title }}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
@endif
|
|
||||||
@endforeach
|
|
||||||
</ul>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<ul class="recomdBtom">
|
|
||||||
<li>
|
|
||||||
<div class="recomdUl-title">
|
|
||||||
<div class="recomdUl-title-img">
|
|
||||||
<img src="/assets/index/images/idx/idxIcon_03.png">
|
|
||||||
<span>科研与应用</span>
|
|
||||||
</div>
|
|
||||||
<img class="idxIconRow" src="/assets/index/images/idx/idxIcon_row.png">
|
|
||||||
</div>
|
|
||||||
@if ($kyyyy->isNotEmpty())
|
|
||||||
|
|
||||||
<ul class="recomdUl-list">
|
|
||||||
@foreach ($kyyyy as $article)
|
|
||||||
<li class="ce-nowrap">
|
|
||||||
<a href="{{ route('article.show', $article) }}">
|
|
||||||
{{ $article->title }}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
@endforeach
|
|
||||||
</ul>
|
|
||||||
@endif
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<div class="recomdUl-title">
|
|
||||||
<div class="recomdUl-title-img">
|
|
||||||
<img src="/assets/index/images/idx/idxIcon_03.png">
|
|
||||||
<span>全科医学</span>
|
|
||||||
</div>
|
|
||||||
<img class="idxIconRow" src="/assets/index/images/idx/idxIcon_row.png">
|
|
||||||
</div>
|
|
||||||
@if ($qkys->isNotEmpty())
|
|
||||||
|
|
||||||
<ul class="recomdUl-list">
|
|
||||||
@foreach ($qkys as $article)
|
|
||||||
<li class="ce-nowrap">
|
|
||||||
<a href="{{ route('article.show', $article) }}">
|
|
||||||
{{ $article->title }}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
@endforeach
|
|
||||||
</ul>
|
|
||||||
@endif
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
@if($qikan_advert->isNotEmpty())
|
|
||||||
<!-- 期刊 -->
|
|
||||||
<div class="idxWeekly" style="background-image: url(/assets/index/images/idx/idxWeekly_img.png);">
|
|
||||||
<div class="contant">
|
|
||||||
<div class="idxWeekly-title idxShoot-title" style="margin: 0 16px;">
|
|
||||||
<p>期刊</p>
|
|
||||||
<span>/ PERIODICAL</span>
|
|
||||||
</div>
|
|
||||||
<div class="idxWeekly-ul">
|
|
||||||
@foreach ($qikan_advert as $advert)
|
|
||||||
<div class="idxWeekly-back" style="background-image: url({{ $advert->cover_path }});"></div>
|
|
||||||
@endforeach
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@push('script')
|
@push('script')
|
||||||
<script>
|
<script>
|
||||||
var galleryTop = new Swiper('.gallery-top', {
|
var galleryTop = new Swiper('.gallery-top', {
|
||||||
spaceBetween: 10,
|
spaceBetween: 10,
|
||||||
loop:true
|
loop: true
|
||||||
});
|
});
|
||||||
var galleryThumbs = new Swiper('.gallery-thumbs', {
|
var galleryThumbs = new Swiper('.gallery-thumbs', {
|
||||||
spaceBetween: 10,
|
spaceBetween: 10,
|
||||||
slidesPerView: 3,
|
slidesPerView: 3,
|
||||||
touchRatio: 0.2,
|
touchRatio: 0.2,
|
||||||
loop:true,
|
loop: true,
|
||||||
slideToClickedSlide: true
|
slideToClickedSlide: true
|
||||||
});
|
});
|
||||||
galleryTop.params.control = galleryThumbs;
|
galleryTop.params.control = galleryThumbs;
|
||||||
galleryThumbs.params.control = galleryTop;
|
galleryThumbs.params.control = galleryTop;
|
||||||
|
|
||||||
|
|
||||||
// 期刊
|
// 期刊
|
||||||
var aswiper = new Swiper('.weekly-container', {
|
var aswiper = new Swiper('.weekly-container', {
|
||||||
pagination: '.swiper-pagination',
|
pagination: '.swiper-pagination',
|
||||||
slidesPerView: 4,
|
slidesPerView: 4,
|
||||||
paginationClickable: true,
|
paginationClickable: true,
|
||||||
spaceBetween: 30,
|
spaceBetween: 30,
|
||||||
nextButton: '.swiper-button-next',
|
nextButton: '.swiper-button-next',
|
||||||
prevButton: '.swiper-button-prev'
|
prevButton: '.swiper-button-prev'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
@endpush
|
@endpush
|
||||||
|
|||||||
@@ -121,8 +121,8 @@
|
|||||||
<div class="idxFooter-tips">
|
<div class="idxFooter-tips">
|
||||||
<p>版权所有: 黑龙江易代文化产业有限公司 <a href="http://www.beian.miit.gov.cn/" style="color: #fff">黑ICP备18000348号-1</a>
|
<p>版权所有: 黑龙江易代文化产业有限公司 <a href="http://www.beian.miit.gov.cn/" style="color: #fff">黑ICP备18000348号-1</a>
|
||||||
</p>
|
</p>
|
||||||
<p>地址:哈尔滨市嵩山路15号(150090) 电话:0451-82316133/82321706 E-Mail:
|
<p>地址:哈尔滨市嵩山路15号(150090) 电话:{{ config('mobile') }}
|
||||||
hlj16133@163.com</p>
|
E-Mail:{{ config('email') }}</p>
|
||||||
<p>印刷单位:哈尔滨市工大节能印刷厂 总发行:哈尔滨市邮局 订阅:全国各地邮局 刊期:半月</p>
|
<p>印刷单位:哈尔滨市工大节能印刷厂 总发行:哈尔滨市邮局 订阅:全国各地邮局 刊期:半月</p>
|
||||||
<p>广告发布登记编号:哈南市监逛变字【2019】第21号</p>
|
<p>广告发布登记编号:哈南市监逛变字【2019】第21号</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
<p class="ccsl">联系我们 </p>
|
<p class="ccsl">联系我们 </p>
|
||||||
</div>
|
</div>
|
||||||
<div class="lxwmbox">
|
<div class="lxwmbox">
|
||||||
<div>黑龙江省杂志社<br/> 联系电话:82316133<br/>投稿邮箱:hlj16133@163.com</div>
|
<div>黑龙江省杂志社<br/> 联系电话:0451-82321706<br/>投稿邮箱:{{ config('email') }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user