阶段更新
This commit is contained in:
@@ -21,6 +21,7 @@ function getOneCategory($categoryId, $return = '')
|
||||
|
||||
/**
|
||||
* Notes: 获取文章分类详情
|
||||
*
|
||||
* @Author: 玄尘
|
||||
* @Date : 2020/9/10 13:21
|
||||
* @param $categoryId
|
||||
@@ -30,8 +31,8 @@ function getOneCategory($categoryId, $return = '')
|
||||
function getOneArticleBYCate($categoryId, $result = '')
|
||||
{
|
||||
$info = Article::where('status', 1)
|
||||
->ByCategory($categoryId)
|
||||
->latest('sort')->latest()->first();
|
||||
->ByCategory($categoryId)
|
||||
->latest('sort')->latest()->first();
|
||||
|
||||
if ($info) {
|
||||
if ($result) {
|
||||
@@ -48,11 +49,12 @@ function getOneArticleBYCate($categoryId, $result = '')
|
||||
|
||||
/**
|
||||
* Notes: 获取分类下的文章
|
||||
*
|
||||
* @Author: 玄尘
|
||||
* @Date : 2020/9/10 10:05
|
||||
* @param $categoryId
|
||||
* @param int $take
|
||||
* @param int $recommen
|
||||
* @param int $take
|
||||
* @param int $recommen
|
||||
* @return \App\Models\Article
|
||||
*/
|
||||
function getArticlesBYCate($categoryId, $take = 8, $recommen = 0)
|
||||
@@ -61,14 +63,14 @@ function getArticlesBYCate($categoryId, $take = 8, $recommen = 0)
|
||||
$ids = $cate ? $cate->getAllChildrenId() : [];
|
||||
|
||||
$articles = Article::where('status', 1)
|
||||
->ByCategory([$categoryId])
|
||||
->latest('sort')
|
||||
->latest()
|
||||
->when($recommen, function ($q) use ($recommen) {
|
||||
$q->where('recommen', 1);
|
||||
})
|
||||
->take($take)
|
||||
->get();
|
||||
->ByCategory([$categoryId])
|
||||
->latest('sort')
|
||||
->latest()
|
||||
->when($recommen, function ($q) use ($recommen) {
|
||||
$q->where('recommen', 1);
|
||||
})
|
||||
->take($take)
|
||||
->get();
|
||||
|
||||
return $articles;
|
||||
}
|
||||
@@ -77,12 +79,12 @@ function getArticlesBYCate($categoryId, $take = 8, $recommen = 0)
|
||||
function getCateChild($categoryId, $take = '')
|
||||
{
|
||||
return Category::where('status', 1)
|
||||
->where('parent_id', $categoryId)
|
||||
->orderBy('order', 'desc')
|
||||
->when($take, function ($q) use ($take) {
|
||||
$q->take($take);
|
||||
})
|
||||
->get();
|
||||
->where('parent_id', $categoryId)
|
||||
->orderBy('order', 'desc')
|
||||
->when($take, function ($q) use ($take) {
|
||||
$q->take($take);
|
||||
})
|
||||
->get();
|
||||
}
|
||||
|
||||
//获取顶级分类
|
||||
@@ -99,6 +101,7 @@ function getTopCate($categoryId)
|
||||
|
||||
/**
|
||||
* Notes: 根据分类获取一张图片
|
||||
*
|
||||
* @Author: 玄尘
|
||||
* @Date : 2021/10/8 13:53
|
||||
* @param $categoryId
|
||||
@@ -108,9 +111,9 @@ function getTopCate($categoryId)
|
||||
function getOneAdvertByCate($categoryId, $result = '')
|
||||
{
|
||||
$info = Advert::where('category_id', $categoryId)
|
||||
->latest('sort')
|
||||
->latest()
|
||||
->first();
|
||||
->latest('sort')
|
||||
->latest()
|
||||
->first();
|
||||
|
||||
if ($info) {
|
||||
if ($result) {
|
||||
@@ -123,19 +126,35 @@ function getOneAdvertByCate($categoryId, $result = '')
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Notes: 获取图片
|
||||
*
|
||||
* @Author: 玄尘
|
||||
* @Date: 2021/11/29 10:05
|
||||
* @param $categoryId
|
||||
* @param string $take
|
||||
* @return mixed
|
||||
*/
|
||||
function getAdvertsByCate($categoryId, $take = '8')
|
||||
{
|
||||
return Advert::where('category_id', $categoryId)
|
||||
->latest()
|
||||
->take($take)
|
||||
->get();
|
||||
->latest()
|
||||
->take($take)
|
||||
->get();
|
||||
}
|
||||
|
||||
function getVideoByCate($categoryId, $result = '')
|
||||
/**
|
||||
* Notes: 根据分类获取视频
|
||||
*
|
||||
* @Author: 玄尘
|
||||
* @Date: 2021/11/29 10:05
|
||||
* @param $categoryId
|
||||
* @param string $result
|
||||
* @return string
|
||||
*/
|
||||
function getVideoByCate($categoryId, string $result = '')
|
||||
{
|
||||
$video = Video::where('category_id', $categoryId)
|
||||
->latest()
|
||||
->first();
|
||||
$video = Video::where('category_id', $categoryId)->latest()->first();
|
||||
|
||||
if ($video) {
|
||||
if ($result) {
|
||||
@@ -148,12 +167,21 @@ function getVideoByCate($categoryId, $result = '')
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Notes: 获取视频列表
|
||||
*
|
||||
* @Author: 玄尘
|
||||
* @Date: 2021/11/29 10:21
|
||||
* @param $categoryId
|
||||
* @param string $take
|
||||
* @return mixed
|
||||
*/
|
||||
function getVideosByCate($categoryId, $take = '8')
|
||||
{
|
||||
return Video::where('category_id', $categoryId)
|
||||
->latest()
|
||||
->take($take)
|
||||
->get();
|
||||
->latest()
|
||||
->take($take)
|
||||
->get();
|
||||
}
|
||||
|
||||
function dateLocalMonth($m): string
|
||||
|
||||
23
config/template.php
Normal file
23
config/template.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'name' => '分类模板',
|
||||
|
||||
/**
|
||||
* 分类所有模板
|
||||
*/
|
||||
'lists' => [
|
||||
'djwh' => '党建文化',
|
||||
'images' => '图片',
|
||||
'jianjie' => '简介',
|
||||
'kjpt' => '科技平台',
|
||||
'kxjs' => '学科建设与人才队伍',
|
||||
'kxyj' => '科学研究',
|
||||
'personnel' => '人员列表',
|
||||
'photos' => 'XXXXXX',
|
||||
'sqhg' => '所庆回顾',
|
||||
'videos' => '媒体宣传视频',
|
||||
'xh_qk' => '学会与期刊',
|
||||
'yjsjy' => '研究生教育',
|
||||
],
|
||||
];
|
||||
@@ -1,20 +0,0 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('title', $parent->title)
|
||||
|
||||
@section('content')
|
||||
<!-- 面包屑导航 -->
|
||||
@include('category.navigation')
|
||||
|
||||
<!-- 内容 -->
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<!-- 左侧导航部分 -->
|
||||
@include('category.left')
|
||||
<!-- 右侧内容部分 -->
|
||||
<div class="col-xs-12 col-md-9">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
@if (getArticlesBYCate(31,3)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(31,1) as $info)
|
||||
@foreach (getArticlesBYCate(31,3) as $info)
|
||||
<div class="col-xs-12 col-md-4" data-href="{{ $info->link }}">
|
||||
<div class="ranksEchelon-title"> {{ $info->title }}</div>
|
||||
<div class="ce-img ranksEchelon-img">
|
||||
@@ -43,51 +43,29 @@
|
||||
{{ getOneCategory(32,'title') }}
|
||||
</div>
|
||||
<div class="ranksSubject">
|
||||
<ul id="myTabs" class="ranksSubject-ul" role="tablist"
|
||||
style="background-image: url(/assets/index/images/ranksIcon/ranksTitle_img.png);">
|
||||
@if(getCateChild(32)->isNotEmpty())
|
||||
@foreach(getCateChild(32) as $cate)
|
||||
<li role="presentation" @if($loop->iteration==1) class="active" @endif >
|
||||
<a href="#ranksTab0{{ $loop->iteration }}"
|
||||
id="ranksTab-0{{ $loop->iteration }}"
|
||||
role="tab"
|
||||
data-toggle="tab"
|
||||
>
|
||||
{{ $cate->title }}
|
||||
</a>
|
||||
</li>
|
||||
@endforeach
|
||||
@endif
|
||||
</ul>
|
||||
<div id="myTabContent" class="tab-content ranksSubject-cont">
|
||||
<!-- 区域地理学 -->
|
||||
<!-- 区域地理学 -->
|
||||
|
||||
@if(getCateChild(32)->isNotEmpty())
|
||||
@foreach(getCateChild(32) as $cate)
|
||||
<div role="tabpanel"
|
||||
class="tab-pane fade in @if($loop->iteration==1) active @endif"
|
||||
id="ranksTab0{{ $loop->iteration }}">
|
||||
<div class="row">
|
||||
@if (getArticlesBYCate($cate->id,3)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate($cate->id,3) as $info)
|
||||
<div class="col-xs-12 col-md-4" data-href="{{ $info->link }}">
|
||||
<div class="ranksSubject-list">
|
||||
<div class="ranksSubject-list-name">
|
||||
<span>{{ $info->title }}</span>
|
||||
</div>
|
||||
<div class="ce-img ranksSubject-list-img">
|
||||
<!-- 图片为4:3 -->
|
||||
<span style="background-image: url({{ $info->cover_url }});"></span>
|
||||
</div>
|
||||
</div>
|
||||
@if(getCateChild(32)->isNotEmpty())
|
||||
@foreach(getCateChild(32) as $cate)
|
||||
<div class="row">
|
||||
@if (getArticlesBYCate($cate->id,3)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate($cate->id,3) as $info)
|
||||
<div class="col-xs-12 col-md-4" data-href="{{ $info->link }}">
|
||||
<div class="ranksSubject-list">
|
||||
<div class="ranksSubject-list-name">
|
||||
<span>{{ $info->title }}</span>
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
</div>
|
||||
<div class="ce-img ranksSubject-list-img">
|
||||
<!-- 图片为4:3 -->
|
||||
<span style="background-image: url({{ $info->cover_url }});"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<!-- end 院级重点学科 -->
|
||||
@@ -122,13 +100,13 @@
|
||||
<img src="/assets/index/images/ranksIcon/ranksIcon_03.png"/>
|
||||
{{ getOneCategory(43,'title') }}
|
||||
</div>
|
||||
<div class="ranks-more" data-href="">查看更多>></div>
|
||||
<!-- <div class="ranks-more" data-href="">查看更多>></div> -->
|
||||
</div>
|
||||
<div class="ranksTeam-cont">
|
||||
<!-- 共14个列表 -->
|
||||
<div class="row">
|
||||
@if (getArticlesBYCate(43,6)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(43,6) as $info)
|
||||
@foreach (getArticlesBYCate(43,20) as $info)
|
||||
<div class="col-xs-12 col-md-4" data-href="{{ $info->link }}">
|
||||
<div class="publicHover ranksTeam-list">
|
||||
<div class="ce-img ranksTeam-img">
|
||||
|
||||
@@ -43,12 +43,12 @@
|
||||
<div class="ce-nowrap-multi srRrends-list-name">
|
||||
{{ $info->title }}
|
||||
</div>
|
||||
<!-- <div class="ce-nowrap-multi srRrends-list-tips">
|
||||
<!-- <div class="ce-nowrap-multi srRrends-list-tips">
|
||||
{{ $info->description }}
|
||||
</div> -->
|
||||
</div> -->
|
||||
</div>
|
||||
<div class="srRrends-list-time">
|
||||
<!-- <span>{{ $info->created_at->format('d') }}</span> -->
|
||||
<!-- <span>{{ $info->created_at->format('d') }}</span> -->
|
||||
{{ $info->created_at->format('Y年m月d') }}
|
||||
</div>
|
||||
</div>
|
||||
@@ -61,78 +61,125 @@
|
||||
<!-- end 科研动态 -->
|
||||
|
||||
<!-- start 合作与交流 -->
|
||||
<div class="srCooperation briefMargin">
|
||||
<div class="srTitle">
|
||||
<div class="srTitle-name">
|
||||
<img src="/assets/index/images/srIcon/srTitle_4.png"/>
|
||||
{{ getOneCategory(26,'title') }}
|
||||
</div>
|
||||
</div>
|
||||
<!-- 概况部分 -->
|
||||
<div class="srSurvey">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<div class="ce-img srCooperation-back">
|
||||
<span style="background-image: url({{ getOneCategory(26,'cover_url') }});"></span>
|
||||
<img class="srCooperation-img"
|
||||
src="/assets/index/images/srIcon/srCooperation_img.png"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<div class="srCooperation-name">概况</div>
|
||||
<div class="ce-nowrap-multi srCooperation-text">
|
||||
{{ getOneCategory(26,'description') }}
|
||||
</div>
|
||||
<div class="srCooperation-more" data-href="{{ getOneCategory(26,'link') }}">
|
||||
了解更多
|
||||
</div>
|
||||
<div class="srCooperation briefMargin">
|
||||
<div class="srTitle">
|
||||
<div class="srTitle-name">
|
||||
<img src="/assets/index/images/srIcon/srTitle_4.png"/>
|
||||
{{ getOneCategory(26,'title') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 动态部分 -->
|
||||
<div class="srCooperationNew">
|
||||
<div class="srCooperationNew-top"><span>动态</span></div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-6">
|
||||
@if (getArticlesBYCate(26,1)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(26,1) as $info)
|
||||
@if($loop->iteration==1)
|
||||
<div class="srCooperationNew-left" data-href="{{ $info->link }}">
|
||||
<div class="ce-img srCooperationNew-img">
|
||||
<!-- 图片为2:1 -->
|
||||
<span style="background-image: url({{ $info->cover_url }});"></span>
|
||||
</div>
|
||||
<div class="ce-nowrap-multi srCooperationNew-name">
|
||||
{{ $info->title }}
|
||||
</div>
|
||||
<div class="ce-nowrap-multi srCooperationNew-text">
|
||||
{{ $info->description }}
|
||||
</div>
|
||||
</div>
|
||||
<!-- 概况部分 -->
|
||||
<div class="srSurvey">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<div class="ce-img srCooperation-back">
|
||||
<span style="background-image: url({{ getOneCategory(26,'cover_url') }});"></span>
|
||||
<img class="srCooperation-img"
|
||||
src="/assets/index/images/srIcon/srCooperation_img.png"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<div class="srCooperation-name">概况</div>
|
||||
<!-- <div class="ce-nowrap-multi srCooperation-text">
|
||||
{{ getOneCategory(26,'description') }}
|
||||
</div>
|
||||
<div class="srCooperation-more" data-href="{{ getOneCategory(26,'link') }}">
|
||||
了解更多
|
||||
</div> -->
|
||||
<ul class="srCooperation-list">
|
||||
@if (getArticlesBYCate(26,8)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(26,8) as $info)
|
||||
@if($loop->iteration>1)
|
||||
<li data-href="{{ $info->link }}" class="publicHover">
|
||||
<div class="srRrends-list-cont">
|
||||
<div class="srRrends-list-text">
|
||||
<div class="ce-nowrap-multi srRrends-list-name">
|
||||
{{ $info->title }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="srRrends-list-time">
|
||||
{{ $info->created_at->format('Y-m-d')}}
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
@endif
|
||||
@endforeach
|
||||
@endif
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<ul class="srCooperationNew-right">
|
||||
@if (getArticlesBYCate(26,8)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(26,8) as $info)
|
||||
@if($loop->iteration>1)
|
||||
<li data-href="{{ $info->link }}" class="publicHover">
|
||||
<div class="ce-nowrap srCooperationNew-title">{{ $info->title }}</div>
|
||||
<div class="srCooperationNew-time">{{ $info->created_at->format('Y-m-d')}}</div>
|
||||
</li>
|
||||
</div>
|
||||
|
||||
<!-- 动态部分 -->
|
||||
<div class="srCooperationNew">
|
||||
<!-- <div class="srCooperationNew-top"><span>动态</span></div> -->
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-6">
|
||||
@if (getArticlesBYCate(26,1)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(26,1) as $info)
|
||||
@if($loop->iteration==1)
|
||||
<div class="srCooperationNew-left" data-href="{{ $info->link }}">
|
||||
<div class="ce-img srCooperationNew-img">
|
||||
<!-- 图片为2:1 -->
|
||||
<span style="background-image: url({{ $info->cover_url }});"></span>
|
||||
</div>
|
||||
<!-- <div class="ce-nowrap-multi srCooperationNew-name">
|
||||
{{ $info->title }}
|
||||
</div>
|
||||
<div class="ce-nowrap-multi srCooperationNew-text">
|
||||
{{ $info->description }}
|
||||
</div> -->
|
||||
</div>
|
||||
@endif
|
||||
@endforeach
|
||||
@endif
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<div class="srCooperation-name">动态</div>
|
||||
<ul class="srCooperation-list">
|
||||
<li data-href="" class="publicHover">
|
||||
<div class="srRrends-list-cont">
|
||||
<div class="srRrends-list-text">
|
||||
<div class="ce-nowrap-multi srRrends-list-name">
|
||||
黑龙江省科学院自然与生态研究所科技特派员组织开展乡村振兴对接服务
|
||||
</div>
|
||||
</div>
|
||||
<div class="srRrends-list-time">
|
||||
2021年11月02
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<li data-href="" class="publicHover">
|
||||
<div class="srRrends-list-cont">
|
||||
<div class="srRrends-list-text">
|
||||
<div class="ce-nowrap-multi srRrends-list-name">
|
||||
黑龙江省科学院自然与生态研究所科技特派员组织开展乡村振兴对接服务
|
||||
</div>
|
||||
</div>
|
||||
<div class="srRrends-list-time">
|
||||
2021年11月02
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<li data-href="" class="publicHover">
|
||||
<div class="srRrends-list-cont">
|
||||
<div class="srRrends-list-text">
|
||||
<div class="ce-nowrap-multi srRrends-list-name">
|
||||
黑龙江省科学院自然与生态研究所科技特派员组织开展乡村振兴对接服务
|
||||
</div>
|
||||
</div>
|
||||
<div class="srRrends-list-time">
|
||||
2021年11月02
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end 合作与交流 -->
|
||||
<!-- end 合作与交流 -->
|
||||
|
||||
<!-- start 特色品牌建设 -->
|
||||
<div class="srBuild briefMargin">
|
||||
@@ -144,89 +191,57 @@
|
||||
</div>
|
||||
<div class="srBuild-cont">
|
||||
<div id="myTabContent" class="tab-content srBuildContent">
|
||||
<!-- 第一页列表 1~5 -->
|
||||
@if (getArticlesBYCate(18,10)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(18,10)->chunk(5) as $articles)
|
||||
<div role="tabpanel"
|
||||
class="tab-pane fade in @if($loop->iteration==1) active @endif"
|
||||
id="srBuildTab0{{ $loop->iteration }}">
|
||||
<div class="row">
|
||||
@foreach($articles as $article)
|
||||
@if($loop->iteration==1)
|
||||
<div class="col-md-4 col-xs-12 srBuildFrist-padding">
|
||||
<div class="ce-img srBuildFrist-back"
|
||||
style="background-image: url({{ $article->cover_url }});">
|
||||
<div class="srBuildFrist-cont"
|
||||
data-href="{{ $article->link }}">
|
||||
<img class="srBuildFrist-logo"
|
||||
src="/assets/index/images/srIcon/srBuildLogo.png"/>
|
||||
<div class="ce-nowrap srBuildFrist-name">
|
||||
{{ $article->title }}
|
||||
</div>
|
||||
<div class="ce-nowrap-multi srBuildFrist-text">
|
||||
{{ $article->description }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@if($loop->iteration==2)
|
||||
<div class="col-md-8 col-xs-12">
|
||||
<div class="row">
|
||||
@endif
|
||||
|
||||
@if($loop->iteration>1)
|
||||
<div class="col-md-6 col-xs-12 srBuildFrist-padding">
|
||||
<div class="ce-img srBuildOther-back"
|
||||
style="background-image: url({{ $article->cover_url }});">
|
||||
<img class="srBuildOther-logo"
|
||||
src="/assets/index/images/srIcon/srBuildLogo.png"/>
|
||||
<div class="srBuildOther-cont"
|
||||
data-href="{{ $article->link }}">
|
||||
<div class="ce-nowrap srBuildOther-name">
|
||||
{{ $article->title }}
|
||||
</div>
|
||||
<div class="ce-nowrap-multi srBuildOther-text">
|
||||
{{ $article->description }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if($loop->last)
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@endforeach
|
||||
<div class="row">
|
||||
@if (getArticlesBYCate(18,10)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(18,10) as $article)
|
||||
<div class="col-md-4 col-xs-12 srBuildFrist">
|
||||
<div class="srBuildFrist-cont">
|
||||
<div class="ce-nowrap srBuildFrist-icon">
|
||||
<img src=" {{ $article->logo_url }}">
|
||||
</div>
|
||||
<div class="ce-nowrap srBuildFrist-name">
|
||||
{{ $article->title }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<!-- 切换按钮 -->
|
||||
<div class="srBuildTab">
|
||||
<ul id="myTabs" class="srBuildTab-ul" role="tablist">
|
||||
<li role="presentation" class="active">
|
||||
<a href="#srBuildTab01" id="srBuildTab-01" role="tab"
|
||||
data-toggle="tab">
|
||||
<img src="/assets/index/images/srIcon/srBuildRow-left.png"/>
|
||||
</a>
|
||||
</li>
|
||||
<li role="presentation" class="">
|
||||
<a href="#srBuildTab02" id="srBuildTab-02" role="tab"
|
||||
data-toggle="tab">
|
||||
<img src="/assets/index/images/srIcon/srBuildRow-right.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
@endforeach
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end 特色品牌建设 -->
|
||||
|
||||
<!-- start 政府决策服务 -->
|
||||
<div class="srServe">
|
||||
<div class="srTitle">
|
||||
<div class="srTitle-name">
|
||||
<img src="/assets/index/images/srIcon/srTitle_5.png"/>
|
||||
{{ getOneCategory(27,'title') }}
|
||||
</div>
|
||||
<div class="srTitle-more" data-href="{{ getOneCategory(27,'link') }}">
|
||||
查看更多 >
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
@if (getArticlesBYCate(27,4)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(27,4) as $info)
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<div data-href="{{ $info->link }}" class="srServe-list">
|
||||
<img class="srServe-list-img" src=" {{ $info->logo_url }} ">
|
||||
<div class="srServe-list-cont">
|
||||
<div class="ce-nowrap srServe-list-name">{{ $info->title }}</div>
|
||||
<div class="srServe-list-time">{{ $info->created_at->format('Y-m-d') }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<!-- end 政府决策服务 -->
|
||||
|
||||
<!-- start 科研成果 -->
|
||||
<div class="srGain">
|
||||
<div class="srTitle">
|
||||
@@ -258,37 +273,6 @@
|
||||
</div>
|
||||
<!-- end 科研成果 -->
|
||||
|
||||
<!-- start 政府决策服务 -->
|
||||
<div class="srServe">
|
||||
<div class="srTitle">
|
||||
<div class="srTitle-name">
|
||||
<img src="/assets/index/images/srIcon/srTitle_5.png"/>
|
||||
{{ getOneCategory(27,'title') }}
|
||||
</div>
|
||||
<div class="srTitle-more" data-href="{{ getOneCategory(27,'link') }}">
|
||||
查看更多 >
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
@if (getArticlesBYCate(27,4)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(27,4) as $info)
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<div data-href="{{ $info->link }}" class="srServe-list">
|
||||
<div class="ce-img srServe-list-img">
|
||||
<span style="background-image: url({{ $info->cover_url }});"></span>
|
||||
</div>
|
||||
<div class="srServe-list-cont">
|
||||
<div class="ce-nowrap srServe-list-name">{{ $info->title }}</div>
|
||||
<div class="srServe-list-time">{{ $info->created_at->format('Y-m-d') }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<!-- end 政府决策服务 -->
|
||||
|
||||
<!-- start 科学传播 -->
|
||||
<div class="srSpread briefMargin">
|
||||
<div class="srTitle">
|
||||
@@ -300,7 +284,7 @@
|
||||
</div>
|
||||
<!-- end 科学传播 -->
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-7">
|
||||
<div class="col-xs-12 col-md-12">
|
||||
<div class="srSpread-video">
|
||||
<div class="srSpread-video-title"
|
||||
style="background-image: url(/assets/index/images/srIcon/srSpread_back_01.png);">
|
||||
@@ -310,48 +294,107 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="srSpread-video-cont">
|
||||
<div class="srSpread-video-paly">
|
||||
@if(getVideoByCate(29))
|
||||
<video width="100%" height="100%" controls=""
|
||||
src="{{ getVideoByCate(29,'link_url') }}"
|
||||
poster="{{ getVideoByCate(29,'cover_url') }}"
|
||||
style="object-fit: fill;">
|
||||
</video>
|
||||
{{-- <img class="srSpread-video-icon"--}}
|
||||
{{-- src="/assets/index/images/srIcon/srSpread_icon.png"/>--}}
|
||||
@endif
|
||||
<div class="col-xs-12 col-md-5">
|
||||
<div class="srSpread-video-paly">
|
||||
@if(getVideoByCate(29))
|
||||
<video width="100%" height="100%" controls=""
|
||||
src="{{ getVideoByCate(29,'link_url') }}"
|
||||
poster="{{ getVideoByCate(29,'cover_url') }}"
|
||||
style="object-fit: fill;">
|
||||
</video>
|
||||
{{-- <img class="srSpread-video-icon"--}}
|
||||
{{-- src="/assets/index/images/srIcon/srSpread_icon.png"/>--}}
|
||||
@endif
|
||||
|
||||
</div>
|
||||
<div class="srSpread-video-cont-title">
|
||||
{{ getVideoByCate(29,'title') }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="srSpread-video-cont-title">
|
||||
{{ getVideoByCate(29,'title') }}
|
||||
<div class="col-xs-12 col-md-7">
|
||||
<ul class="srSpread-list">
|
||||
@if(getVideosByCate(29,8))
|
||||
@foreach(getVideosByCate(29,8) as $video)
|
||||
@if($loop->iteration>1)
|
||||
<li data-href="" class="publicHover">
|
||||
<div class="srRrends-list-cont">
|
||||
<div class="srRrends-list-text">
|
||||
<div class="ce-nowrap-multi srRrends-list-name">
|
||||
{{ $video->title }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="srRrends-list-time">
|
||||
{{ $video->format('Y年m月d日') }}
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
@endif
|
||||
@endforeach
|
||||
@endif
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-5">
|
||||
<div class="col-xs-12 col-md-12">
|
||||
<div class="srSpread-atlas">
|
||||
<div class="srSpread-atlas-title"
|
||||
<div class="srSpread-video-title"
|
||||
style="background-image: url(/assets/index/images/srIcon/srSpread_back_00.png);">
|
||||
{{ getOneCategory(30,'title') }}
|
||||
<div class="srSpread-video-name">{{ getOneCategory(30,'title') }}</div>
|
||||
<div class="srSpread-video-more" data-href="{{ getOneCategory(30,'link') }}">
|
||||
查看更多>>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="srSpread-atlas-list">
|
||||
<div class="srRrendText">
|
||||
@if (getArticlesBYCate(30,2)->isNotEmpty())
|
||||
<div class="ce-img srRrends-list-img">
|
||||
<span style="background-image: url({{ getArticlesBYCate(30)->cover_url }});"></span>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (getArticlesBYCate(30,2)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(30,2) as $info)
|
||||
<li data-href="{{ $info->link }}">
|
||||
<div class="ce-img srSpread-atlas-img">
|
||||
<!-- 图片为2:1 -->
|
||||
<span style="background-image: url({{ $info->cover_url }});"></span>
|
||||
</div>
|
||||
<div class="srSpread-atlas-name">{{ $info->title }}</div>
|
||||
</li>
|
||||
@endforeach
|
||||
<ul class="srRrends-list">
|
||||
@foreach (getArticlesBYCate(30,2) as $info)
|
||||
<li data-href="{{ $info->link }}" class="publicHover">
|
||||
<div class="srRrends-list-cont">
|
||||
<div class="srRrends-list-text">
|
||||
<div class="ce-nowrap-multi srRrends-list-name">
|
||||
{{ $info->title }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="srRrends-list-time">
|
||||
{{ $info->format('Y年m月d日') }}
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
</ul>
|
||||
<div class="srSpread-atlas-more" data-href="{{ getOneCategory(30,'link') }}">
|
||||
<span>查看更多></span>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{{-- <div class="srSpread-atlas">--}}
|
||||
{{-- <div class="srSpread-atlas-title"--}}
|
||||
{{-- style="background-image: url(/assets/index/images/srIcon/srSpread_back_00.png);">--}}
|
||||
{{-- {{ getOneCategory(30,'title') }}--}}
|
||||
{{-- </div>--}}
|
||||
{{-- <ul class="srSpread-atlas-list">--}}
|
||||
{{-- @if (getArticlesBYCate(30,2)->isNotEmpty())--}}
|
||||
{{-- @foreach (getArticlesBYCate(30,2) as $info)--}}
|
||||
{{-- <li data-href="{{ $info->link }}">--}}
|
||||
{{-- <div class="ce-img srSpread-atlas-img">--}}
|
||||
{{-- <span style="background-image: url({{ $info->cover_url }});"></span>--}}
|
||||
{{-- </div>--}}
|
||||
{{-- <div class="srSpread-atlas-name">{{ $info->title }}</div>--}}
|
||||
{{-- </li>--}}
|
||||
{{-- @endforeach--}}
|
||||
{{-- @endif--}}
|
||||
{{-- </ul>--}}
|
||||
{{-- <div class="srSpread-atlas-more" data-href="{{ getOneCategory(30,'link') }}">--}}
|
||||
{{-- <span>查看更多></span>--}}
|
||||
{{-- </div>--}}
|
||||
{{-- </div> --}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,60 +0,0 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('title', $parent->title)
|
||||
|
||||
|
||||
@section('css')
|
||||
<link href="{{ asset('assets/index/css/video.css') }}" rel="stylesheet" type="text/css"/>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<!-- 面包屑导航 -->
|
||||
@include('category.navigation')
|
||||
|
||||
<!-- 内容 -->
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<!-- 左侧导航部分 -->
|
||||
@include('category.left')
|
||||
<!-- 右侧内容部分 -->
|
||||
@if ($articles->isNotEmpty())
|
||||
<div class="col-xs-12 col-md-9">
|
||||
<div class="levelRight">
|
||||
<div class="row">
|
||||
@foreach ($articles as $article)
|
||||
<div class="col-lg-4">
|
||||
<div class="videoList">
|
||||
<div class="ce-img videoImg m-video"
|
||||
data-src="{{ $article->link_url }}">
|
||||
<span style="background-image: url({{ $article->cover_url }});"></span>
|
||||
<img class="videoImg-icon"
|
||||
src="/assets/index/images/srIcon/srSpread_icon_list.png"/>
|
||||
</div>
|
||||
<div class="videoText">
|
||||
<p class="ce-nowrap-multi">{{ $article->title }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
<div class="pageUl">
|
||||
@if ($articles->isNotEmpty())
|
||||
{{ $articles->links('layouts.pagination') }}
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@else
|
||||
<div class="col-md-12 col-xs-12">
|
||||
<div class="no-searchCont">
|
||||
<img src="/assets/index/images/org55.png"/>
|
||||
<span>抱歉,暂无内容</span>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@push('script')
|
||||
<script type="text/javascript" src="{{ asset('assets/index/js/pingzi_video.js') }}"></script>
|
||||
@endpush
|
||||
@@ -1,84 +0,0 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('title', $parent->title)
|
||||
|
||||
@section('content')
|
||||
<!-- 面包屑导航 -->
|
||||
@include('category.navigation')
|
||||
|
||||
<!-- 内容 -->
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<!-- 左侧导航部分 -->
|
||||
@include('category.left')
|
||||
<!-- 右侧内容部分 -->
|
||||
<div class="col-xs-12 col-md-9">
|
||||
<div class="levelRight">
|
||||
<!-- start 学会 -->
|
||||
<div class="learn briefMargin">
|
||||
<div class="learn-title">
|
||||
学会<span>LEARN</span>
|
||||
</div>
|
||||
<div class="learnCont">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-3 learn-padding">
|
||||
<div class="learnCont-tips">
|
||||
<img src="/assets/index/images/learn_left.jpg"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-9 learn-padding">
|
||||
<div class="learnCont-text">
|
||||
<div class="learnCont-brief">
|
||||
<div class="ce-nowrap learnCont-title">党建文化-学会简介</div>
|
||||
<div class="ce-nowrap-multi learnCont-version">
|
||||
近年来,中国银行西安长安路支行结合陕西红色文化特点和本行实际,坚持党建引领,文化铸魂,提倡“幸福中行,快乐员工”的文化理念,以加快转型发展,打造区域强行为突破口,形成了具有自身特色的企业文化,并将其渗透和服务于经营管理的全过程,实现了文化创造价值,党建与经营双丰收的目标。
|
||||
</div>
|
||||
<div class="publicHover learnCont-more">查看详情</div>
|
||||
</div>
|
||||
<img class="learnCont-img" src="/assets/index/images/learn_img.jpg"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end 学会 -->
|
||||
|
||||
<!-- start 期刊 -->
|
||||
<div class="journal briefMargin">
|
||||
<div class="learn-title">
|
||||
期刊<span>PERIODICAL</span>
|
||||
</div>
|
||||
<div class="ce-img journal-tips">
|
||||
<span style="background-image: url(/assets/index/images/journalTop.jpg)"></span>
|
||||
</div>
|
||||
<div class="journalCont">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-5">
|
||||
<div class="journalCont-title">党建文化-期刊</div>
|
||||
<div class="journalCont-tool">
|
||||
<div data-href="" class="journalCont-tool-more"><img
|
||||
src="/assets/index/images/journalCont_icon_00.jpg"/>查看更多
|
||||
</div>
|
||||
<div data-href="" class="journalCont-tool-teach"><img
|
||||
src="/assets/index/images/journalCont_icon_01.jpg"/>征稿启事
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-7">
|
||||
<div class="journalCont-text">
|
||||
<img class="journalCont-cont-img" src="/assets/index/images/journalBack.jpg">
|
||||
<div class="ce-nowrap-multi journalCont-text-version">
|
||||
近年来,中国银行西安长安路支行结合陕西红色文化特点和本行实际,坚持党建引领,文化铸魂,提倡“幸福中行,快乐员工”的文化理念,以加快转型发展,打造区域强行为突破口,形成了具有自身特色的企业文化,并将其渗透和服务于经营管理的全过程,实现了文化创造价值,党建与经营双丰收的目标。
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end 期刊 -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
Reference in New Issue
Block a user