调整新窗口打开
This commit is contained in:
@@ -1,32 +1,34 @@
|
||||
$('[data-href]').on('click', function(event) {
|
||||
$('[data-href]').on('click', function (event) {
|
||||
event.preventDefault();
|
||||
if ($(this).hasClass('ajax-get') || $(this).hasClass('ajax-post')) {
|
||||
return;
|
||||
}
|
||||
location.href = $(this).data('href');
|
||||
window.open($(this).data('href'));
|
||||
// location.href = $(this).data('href');
|
||||
});
|
||||
|
||||
// ajax GET 请求
|
||||
$('body').on('click', '.ajax-get', function(event) {
|
||||
$('body').on('click', '.ajax-get', function (event) {
|
||||
event.preventDefault();
|
||||
if ($(this).hasClass('disabled') || $(this).attr('disabled')) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
;
|
||||
var $this = $(this);
|
||||
var $tips = $this.attr('tip') || '确认要执行该操作吗?';
|
||||
var $target = $this.data('href') || $this.attr('href') || $this.attr('url') || $this.data('url');
|
||||
|
||||
if ($this.hasClass('confirm')) {
|
||||
if(!confirm($tips)){
|
||||
if (!confirm($tips)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: $target,
|
||||
success: function(data){
|
||||
if(data.code==1){
|
||||
updateAlert(data.msg, 'success', function() {
|
||||
success: function (data) {
|
||||
if (data.code == 1) {
|
||||
updateAlert(data.msg, 'success', function () {
|
||||
if ($this.hasClass('no-refresh')) {
|
||||
} else if (data.url == null) {
|
||||
location.reload();
|
||||
@@ -40,7 +42,7 @@ $('body').on('click', '.ajax-get', function(event) {
|
||||
updateAlert(data.msg);
|
||||
}
|
||||
},
|
||||
error: function(error){
|
||||
error: function (error) {
|
||||
if (error.responseJSON.message) {
|
||||
updateAlert(error.responseJSON.message, 'warning');
|
||||
} else {
|
||||
@@ -51,10 +53,11 @@ $('body').on('click', '.ajax-get', function(event) {
|
||||
});
|
||||
|
||||
// ajax POST 请求
|
||||
$('body').on('click', '.ajax-post', function(event) {
|
||||
$('body').on('click', '.ajax-post', function (event) {
|
||||
if ($(this).hasClass('disabled') || $(this).attr('disabled')) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
;
|
||||
|
||||
event.preventDefault();
|
||||
var $this = $(this);
|
||||
@@ -62,7 +65,7 @@ $('body').on('click', '.ajax-post', function(event) {
|
||||
var $tips = $this.attr('tip') || '确认要执行该操作吗?';
|
||||
var $action = $form.attr("action");
|
||||
if ($this.hasClass('confirm')) {
|
||||
if(!confirm($tips)){
|
||||
if (!confirm($tips)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -73,12 +76,12 @@ $('body').on('click', '.ajax-post', function(event) {
|
||||
type: "POST",
|
||||
url: $action,
|
||||
data: query,
|
||||
success: function(data) {
|
||||
success: function (data) {
|
||||
if (data.code == 0) {
|
||||
updateAlert(data.msg);
|
||||
$this.removeAttr('disabled');
|
||||
} else {
|
||||
updateAlert(data.msg, 'success', function() {
|
||||
updateAlert(data.msg, 'success', function () {
|
||||
if (data.url) {
|
||||
location.href = data.url;
|
||||
} else if (data.url == null) {
|
||||
@@ -89,11 +92,11 @@ $('body').on('click', '.ajax-post', function(event) {
|
||||
});
|
||||
}
|
||||
},
|
||||
error: function(error) {
|
||||
error: function (error) {
|
||||
$this.removeAttr('disabled');
|
||||
if (error.responseJSON.errors) {
|
||||
var err = '';
|
||||
$.each(error.responseJSON.errors, function(i, n) {
|
||||
$.each(error.responseJSON.errors, function (i, n) {
|
||||
// err += n + "\r\n";
|
||||
updateAlert(n[0], 'warning');
|
||||
return false;
|
||||
@@ -108,10 +111,11 @@ $('body').on('click', '.ajax-post', function(event) {
|
||||
});
|
||||
});
|
||||
|
||||
$('body').on('click', '.ajax-post-confirm', function(event) {
|
||||
$('body').on('click', '.ajax-post-confirm', function (event) {
|
||||
if ($(this).hasClass('disabled') || $(this).attr('disabled')) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
;
|
||||
|
||||
event.preventDefault();
|
||||
var $this = $(this);
|
||||
@@ -122,18 +126,18 @@ $('body').on('click', '.ajax-post-confirm', function(event) {
|
||||
$this.attr('disabled', 'disabled');
|
||||
layer.open({
|
||||
content: $tips
|
||||
,btn: ['确定', '取消']
|
||||
,yes: function(index){
|
||||
, btn: ['确定', '取消']
|
||||
, yes: function (index) {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: $action,
|
||||
data: query,
|
||||
success: function(data) {
|
||||
success: function (data) {
|
||||
if (data.code == 0) {
|
||||
updateAlert(data.msg);
|
||||
$this.removeAttr('disabled');
|
||||
} else {
|
||||
updateAlert(data.msg, data.error, function() {
|
||||
updateAlert(data.msg, data.error, function () {
|
||||
if (data.url) {
|
||||
location.href = data.url;
|
||||
} else if (data.url == null) {
|
||||
@@ -144,11 +148,11 @@ $('body').on('click', '.ajax-post-confirm', function(event) {
|
||||
});
|
||||
}
|
||||
},
|
||||
error: function(error) {
|
||||
error: function (error) {
|
||||
$this.removeAttr('disabled');
|
||||
if (error.responseJSON.errors) {
|
||||
var err = '';
|
||||
$.each(error.responseJSON.errors, function(i, n) {
|
||||
$.each(error.responseJSON.errors, function (i, n) {
|
||||
// err += n + "\r\n";
|
||||
updateAlert(n[0], 'warning');
|
||||
return false;
|
||||
@@ -166,7 +170,7 @@ $('body').on('click', '.ajax-post-confirm', function(event) {
|
||||
});
|
||||
});
|
||||
|
||||
window.updateAlert = function(text, type, callback) {
|
||||
window.updateAlert = function (text, type, callback) {
|
||||
if (typeof type != 'string') {
|
||||
if (type) {
|
||||
type = "success";
|
||||
@@ -181,7 +185,7 @@ window.updateAlert = function(text, type, callback) {
|
||||
showConfirmButton: false
|
||||
});
|
||||
if (typeof callback == "function") {
|
||||
setTimeout(function() {
|
||||
setTimeout(function () {
|
||||
callback();
|
||||
}, 1500)
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<ul class="indexExtend-ul studyExtend">
|
||||
@foreach ($articles as $article)
|
||||
<li>
|
||||
<a href="{{ $article->link }}">
|
||||
<a href="{{ $article->link }}" target="_blank">
|
||||
<div class="ce-nowrap indexExtend-ul-name">
|
||||
{{ $article->title }}
|
||||
</div>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
@if (getArticlesBYCate(12,2)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(12,2) as $article)
|
||||
<li>
|
||||
<a href="{{ $article->link }}">
|
||||
<a href="{{ $article->link }}" target="_blank">
|
||||
<div class="ce-img mediaList-img">
|
||||
<span style="background-image: url({{ $article->cover_path }});"></span>
|
||||
</div>
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
</ul>
|
||||
<div class="secondMore">
|
||||
<a href=" {{ getOneCategory(12,'link') }}">查看更多></a>
|
||||
<a href=" {{ getOneCategory(12,'link') }}" target="_blank">查看更多></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
<img src="/assets/index/images/studyIcon_01.png"/>
|
||||
{{ getOneCategory(30,'title') }}
|
||||
</div>
|
||||
<a href="{{ getOneCategory(30,'link') }}" class="secondTop-more">
|
||||
<a href="{{ getOneCategory(30,'link') }}" target="_blank" class="secondTop-more">
|
||||
查看更多>>
|
||||
</a>
|
||||
</div>
|
||||
@@ -56,7 +56,7 @@
|
||||
@if (getArticlesBYCate(30,4)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(30,4) as $article)
|
||||
<li>
|
||||
<a href=" {{ $article->link }}">
|
||||
<a href="{{ $article->link }}" target="_blank">
|
||||
<div class="ce-nowrap indexExtend-ul-name">
|
||||
{{ $article->title }}
|
||||
</div>
|
||||
|
||||
@@ -29,7 +29,8 @@
|
||||
<div class="surveyBrief-tips">
|
||||
{{ getOneArticleBYCate(15,'description') }}
|
||||
</div>
|
||||
<a class="surveyBrief-more" href="{{ getOneArticleBYCate(15,'link') }}">查看更多></a>
|
||||
<a class="surveyBrief-more" href="{{ getOneArticleBYCate(15,'link') }}"
|
||||
target="_blank">查看更多></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -42,7 +43,7 @@
|
||||
<img src="/assets/index/images/surveyIcon_01.png"/>
|
||||
{{ getOneCategory(14,'title') }}
|
||||
</div>
|
||||
<a href="{{ getOneCategory(14,'link') }}" class="secondTop-more">
|
||||
<a href="{{ getOneCategory(14,'link') }}" target="_blank" class="secondTop-more">
|
||||
查看更多>>
|
||||
</a>
|
||||
</div>
|
||||
@@ -98,7 +99,9 @@
|
||||
@if(in_array($cate->parent->id,config('setting.no_href')))
|
||||
<a><span>{{ $child->title }}</span></a>
|
||||
@else
|
||||
<a href="{{ $child->link }}"><span>{{ $child->title }}</span></a>
|
||||
<a href="{{ $child->link }}" target="_blank">
|
||||
<span>{{ $child->title }}</span>
|
||||
</a>
|
||||
@endif
|
||||
</li>
|
||||
@endforeach
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
@if (getArticlesBYCate(8,3)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(8,3) as $article)
|
||||
<li>
|
||||
<a href="{{ $article->link }}">
|
||||
<a href="{{ $article->link }}" target="_blank">
|
||||
<div class="ce-img indexTeam-img">
|
||||
<span style="background-image: url({{ $article->cover_path }});"></span>
|
||||
</div>
|
||||
@@ -44,7 +44,7 @@
|
||||
@endif
|
||||
</ul>
|
||||
<div class="secondMore">
|
||||
<a href="{{ getOneCategory(8,'link') }}">查看更多></a>
|
||||
<a href="{{ getOneCategory(8,'link') }}" target="_blank">查看更多></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
<img src="/assets/index/images/studyIcon_01.png"/>
|
||||
{{ getOneCategory(16,'title') }}
|
||||
</div>
|
||||
<a href="{{ getOneCategory(16,'link') }}" class="secondTop-more">
|
||||
<a href="{{ getOneCategory(16,'link') }}" target="_blank" class="secondTop-more">
|
||||
查看更多>>
|
||||
</a>
|
||||
</div>
|
||||
@@ -63,7 +63,7 @@
|
||||
@if (getArticlesBYCate(16,4)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(16,4) as $article)
|
||||
<li>
|
||||
<a href="{{ $article->link }}">
|
||||
<a href="{{ $article->link }}" target="_blank">
|
||||
<div class="ce-nowrap indexExtend-ul-name">
|
||||
{{ $article->title }}
|
||||
</div>
|
||||
@@ -84,7 +84,7 @@
|
||||
<img src="/assets/index/images/studyIcon_01.png"/>
|
||||
{{ getOneCategory(18,'title') }}
|
||||
</div>
|
||||
<a href="{{ getOneCategory(18,'link') }}" class="secondTop-more">
|
||||
<a href="{{ getOneCategory(18,'link') }}" target="_blank" class="secondTop-more">
|
||||
查看更多>>
|
||||
</a>
|
||||
</div>
|
||||
@@ -93,7 +93,7 @@
|
||||
@if (getArticlesBYCate(18,4)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(18,4) as $article)
|
||||
<li>
|
||||
<a href="{{ $article->link }}">
|
||||
<a href="{{ $article->link }}" target="_blank">
|
||||
<div class="ce-nowrap indexExtend-ul-name">
|
||||
{{ $article->title }}
|
||||
</div>
|
||||
@@ -119,7 +119,7 @@
|
||||
@if (getArticlesBYCate(24,6)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(24,6) as $article)
|
||||
<li>
|
||||
<a href="{{ $article->link }}">
|
||||
<a href="{{ $article->link }}" target="_blank">
|
||||
<div class="studyTerrace-name">
|
||||
<div class="studyTerrace-tips">
|
||||
{{ $article->title }}
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<img src="/assets/index/images/surveyIcon_01.png"/>
|
||||
{{ getOneCategory(14,'title') }}
|
||||
</div>
|
||||
<a href="{{ getOneCategory(14,'link') }}" class="secondTop-more">
|
||||
<a href="{{ getOneCategory(14,'link') }}" target="_blank" class="secondTop-more">
|
||||
查看更多>>
|
||||
</a>
|
||||
</div>
|
||||
@@ -24,7 +24,7 @@
|
||||
@if (getArticlesBYCate(14,3)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(14,3) as $article)
|
||||
<li>
|
||||
<a href="{{ $article->link }}">
|
||||
<a href="{{ $article->link }}" target="_blank">
|
||||
<div class="ce-img surveyLeader-img">
|
||||
<span style="background-image: url({{ $article->cover_path }});"></span>
|
||||
</div>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
@if(in_array($parent->id,config('setting.no_href')) || in_array($child->id,config('setting.no_href')))
|
||||
<a><span>{{ $child->title }}</span></a>
|
||||
@else
|
||||
<a href="{{ $child->link }}"><span>{{ $child->title }}</span></a>
|
||||
<a href="{{ $child->link }}" target="_blank"><span>{{ $child->title }}</span></a>
|
||||
@endif
|
||||
</li>
|
||||
@endforeach
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
@if ($articles->isNotEmpty())
|
||||
@foreach ($articles as $article)
|
||||
<li>
|
||||
<a href="{{ $article->link }}">
|
||||
<a href="{{ $article->link }}" target="_blank">
|
||||
<div class="dateExtend-left">
|
||||
<span>{{ $article->created_at->format('m/d') }}</span>
|
||||
{{ $article->created_at->format('Y') }}
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
@if (getArticlesBYCate(27,6)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(27,6) as $article)
|
||||
<div class="swiper-slide innovate-ul">
|
||||
<a href="{{ $article->link }}">
|
||||
<a href="{{ $article->link }}" target="_blank">
|
||||
<div class="ce-img indexTeam-img">
|
||||
<span style="background-image: url({{ $article->cover_path }});"></span>
|
||||
</div>
|
||||
@@ -51,7 +51,7 @@
|
||||
<img src="/assets/index/images/armyIcon_01.png"/>
|
||||
{{ getOneCategory(28,'title') }}
|
||||
</div>
|
||||
<a href="{{ getOneCategory(28,'link') }}" class="secondTop-more">
|
||||
<a href="{{ getOneCategory(28,'link') }}" target="_blank" class="secondTop-more">
|
||||
查看更多>>
|
||||
</a>
|
||||
</div>
|
||||
@@ -75,7 +75,7 @@
|
||||
<img src="/assets/index/images/armyIcon_02.png"/>
|
||||
{{ getOneCategory(29,'title') }}
|
||||
</div>
|
||||
<a href="{{ getOneCategory(29,'link') }}" class="secondTop-more">
|
||||
<a href="{{ getOneCategory(29,'link') }}" target="_blank" class="secondTop-more">
|
||||
查看更多>>
|
||||
</a>
|
||||
</div>
|
||||
@@ -83,7 +83,7 @@
|
||||
@if (getArticlesBYCate(29,6)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(29,6) as $article)
|
||||
<li>
|
||||
<a href="{{ $article->link }}">
|
||||
<a href="{{ $article->link }}" target="_blank">
|
||||
<div class="IndexExpertNew-li">
|
||||
<span class="IndexExpertNew-tips">客座教授</span>
|
||||
<div class="IndexExpertNew-title">{{ $article->title }}</div>
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
@if ($articles->isNotEmpty())
|
||||
@foreach ($articles as $article)
|
||||
<li>
|
||||
<a href="{{ $article->link }}">
|
||||
<a href="{{ $article->link }}" target="_blank">
|
||||
<div class="ce-nowrap indexExtend-ul-name">
|
||||
{{ $article->title }}
|
||||
</div>
|
||||
@@ -35,9 +35,7 @@
|
||||
@endforeach
|
||||
@endif
|
||||
</ul>
|
||||
|
||||
<!-- 分页 -->
|
||||
|
||||
@if ($articles->isNotEmpty())
|
||||
{{ $articles->links('layouts.pagination') }}
|
||||
@endif
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
@if (getArticlesBYCate(7,4)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(7,4) as $article)
|
||||
<li>
|
||||
<a href="{{ $article->link }}">
|
||||
<a href="{{ $article->link }}" target="_blank">
|
||||
<div class="ce-img newBranch-img">
|
||||
{{-- <span style="background-image: url({{ $article->cover_path }});"></span>--}}
|
||||
</div>
|
||||
@@ -45,7 +45,7 @@
|
||||
@endif
|
||||
</ul>
|
||||
<div class="secondMore">
|
||||
<a href="{{ getOneCategory(7,'link') }}">查看更多></a>
|
||||
<a href="{{ getOneCategory(7,'link') }}" target="_blank">查看更多></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
@if (getArticlesBYCate(17,4)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(17,4) as $article)
|
||||
<li>
|
||||
<a href="{{ $article->link }}">
|
||||
<a href="{{ $article->link }}" target="_blank">
|
||||
<div class="ce-img newBranch-img">
|
||||
{{-- <span style="background-image: url({{ $article->cover_path }});"></span>--}}
|
||||
</div>
|
||||
@@ -85,7 +85,7 @@
|
||||
@endif
|
||||
</ul>
|
||||
<div class="secondMore">
|
||||
<a href="{{ getOneCategory(17,'link') }}">查看更多></a>
|
||||
<a href="{{ getOneCategory(17,'link') }}" target="_blank">查看更多></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
@if (getArticlesByCateIds(6)->isNotEmpty())
|
||||
@foreach (getArticlesByCateIds(6) as $article)
|
||||
<li>
|
||||
<a href="{{ $article->link }}" title="{{ $article->title }}">
|
||||
<a href="{{ $article->link }}" target="_blank" title="{{ $article->title }}">
|
||||
<div class="ce-nowrap indexNews-ul-name">
|
||||
{{ $article->title }}
|
||||
</div>
|
||||
@@ -91,7 +91,7 @@
|
||||
@if (getArticlesBYCate(24,4)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(24,4) as $article)
|
||||
<li>
|
||||
<a href="{{ $article->link }}" title="{{ $article->title }}">
|
||||
<a href="{{ $article->link }}" target="_blank" title="{{ $article->title }}">
|
||||
<div class="indexBuild-icon">
|
||||
<img src="/assets/index/images/Build_icon0{{ $loop->index }}.png">
|
||||
</div>
|
||||
@@ -108,7 +108,7 @@
|
||||
<div class="indexBuild-talent">
|
||||
<div class="indexBuild-talent-title">
|
||||
<span>{{ getOneCategory(28,'title') }}</span>
|
||||
<a href="{{ getOneCategory(28,'link') }}">MORE</a>
|
||||
<a href="{{ getOneCategory(28,'link') }}" target="_blank">MORE</a>
|
||||
</div>
|
||||
<div class="swiper-cont">
|
||||
<div class="swiper-container indexBuild-swiper">
|
||||
@@ -147,7 +147,7 @@
|
||||
@if (getArticlesBYCate(24,5,'all',false,'asc')->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(24,5) as $article)
|
||||
@if($loop->index==4)
|
||||
<a href="{{ $article->link }}" class="indexBuild-new"
|
||||
<a href="{{ $article->link }}" target="_blank" class="indexBuild-new"
|
||||
title="{{ $article->title }}">
|
||||
<div class="indexBuild-icon">
|
||||
<img src="/assets/index/images/Build_icon05.png">
|
||||
@@ -192,7 +192,8 @@
|
||||
@if (getArticlesBYCate(8,6)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(8,6) as $article)
|
||||
<li>
|
||||
<a href="{{ $article->link }}" title="{{ $article->title }}">
|
||||
<a href="{{ $article->link }}" target="_blank"
|
||||
title="{{ $article->title }}">
|
||||
<div class="ce-nowrap indexNews-ul-name">
|
||||
{{ $article->title }}
|
||||
<div class="ce-nowrap indexNews-ul-text">
|
||||
@@ -211,7 +212,8 @@
|
||||
@if (getArticlesBYCate(5,6)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(5,6) as $article)
|
||||
<li>
|
||||
<a href="{{ $article->link }}" title="{{ $article->title }}">
|
||||
<a href="{{ $article->link }}" target="_blank"
|
||||
title="{{ $article->title }}">
|
||||
<div class="ce-nowrap indexNews-ul-name">
|
||||
{{ $article->title }}
|
||||
<div class="ce-nowrap indexNews-ul-text">
|
||||
@@ -263,7 +265,7 @@
|
||||
<div class="ce-nowrap-multi indexMedia-text">
|
||||
{{ getOneArticleBYCate(17,'description') }}
|
||||
</div>
|
||||
<a class="indexMedia-more" href="{{ getOneCategory(17,'link') }}">MORE</a>
|
||||
<a class="indexMedia-more" href="{{ getOneCategory(17,'link') }}" target="_blank">MORE</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -290,7 +292,7 @@
|
||||
@if (getArticlesBYCate(12,5)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(12,5) as $article)
|
||||
<li>
|
||||
<a href="{{ $article->link }}"
|
||||
<a href="{{ $article->link }}" target="_blank"
|
||||
title="{{ $article->title }}">
|
||||
<div class="ce-nowrap-multi indexNews-ul-name">
|
||||
{{ $article->title }}
|
||||
@@ -308,7 +310,7 @@
|
||||
@if (getArticlesBYCate(30,5)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(30,5) as $article)
|
||||
<li>
|
||||
<a href="{{ $article->link }}"
|
||||
<a href="{{ $article->link }}" target="_blank"
|
||||
title="{{ $article->title }}">
|
||||
<div class="ce-nowrap-multi indexNews-ul-name">
|
||||
{{ $article->title }}
|
||||
@@ -371,7 +373,7 @@
|
||||
@if (getArticlesBYCate(27,4)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(27,4) as $article)
|
||||
<li>
|
||||
<a href="{{ $article->link }}" title="{{ $article->title }}">
|
||||
<a href="{{ $article->link }}" target="_blank" title="{{ $article->title }}">
|
||||
<div class="ce-img indexTeam-img">
|
||||
<span style="background-image: url({{ $article->cover_path }});"></span>
|
||||
</div>
|
||||
@@ -397,7 +399,7 @@
|
||||
@if (getArticlesBYCate(29,9)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(29,9) as $article)
|
||||
<li>
|
||||
<a href="{{ $article->link }}" title="{{ $article->title }}">
|
||||
<a href="{{ $article->link }}" target="_blank" title="{{ $article->title }}">
|
||||
<div class="IndexExpertNew-li">
|
||||
<span class="IndexExpertNew-tips">客座教授</span>
|
||||
<div class="IndexExpertNew-title">{{ $article->title }}</div>
|
||||
@@ -408,7 +410,7 @@
|
||||
@endif
|
||||
</ul>
|
||||
<div class="IndexExpert-more">
|
||||
<a href="{{ getOneCategory(29,'link') }}">查看更多 ></a>
|
||||
<a href="{{ getOneCategory(29,'link') }}" target="_blank">查看更多 ></a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end 专家智库 -->
|
||||
@@ -419,7 +421,7 @@
|
||||
@if (getArticlesBYCate(18,4)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(18,4) as $article)
|
||||
<li>
|
||||
<a href="{{ $article->link }}" title="{{ $article->title }}">
|
||||
<a href="{{ $article->link }}" target="_blank" title="{{ $article->title }}">
|
||||
<div class="ce-nowrap indexExtend-ul-name">
|
||||
{{ $article->title }}
|
||||
</div>
|
||||
@@ -432,7 +434,7 @@
|
||||
@endif
|
||||
</ul>
|
||||
<div class="IndexExpert-more">
|
||||
<a href="{{ getOneCategory(18,'link') }}">查看更多 ></a>
|
||||
<a href="{{ getOneCategory(18,'link') }}" target="_blank">查看更多 ></a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end 项目推广 -->
|
||||
@@ -443,7 +445,7 @@
|
||||
@if (getArticlesBYCate(16,4)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(16,4) as $article)
|
||||
<li>
|
||||
<a href="{{ $article->link }}" title="{{ $article->title }}">
|
||||
<a href="{{ $article->link }}" target="_blank" title="{{ $article->title }}">
|
||||
<div class="ce-nowrap indexExtend-ul-name">
|
||||
{{ $article->title }}
|
||||
</div>
|
||||
@@ -456,7 +458,7 @@
|
||||
@endif
|
||||
</ul>
|
||||
<div class="IndexExpert-more">
|
||||
<a href="{{ getOneCategory(16,'link') }}">查看更多 ></a>
|
||||
<a href="{{ getOneCategory(16,'link') }}" target="_blank">查看更多 ></a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end 成果专利 -->
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
<ul class="linkUl">
|
||||
@if ($links->isNotEmpty())
|
||||
@foreach ($links as $link)
|
||||
<li><a href="{{ $link->url }}">{{ $link->title}}</a></li>
|
||||
<li><a href="{{ $link->url }}" target="_blank">{{ $link->title}}</a></li>
|
||||
@endforeach
|
||||
@endif
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user