|
|
@ -41,7 +41,28 @@ $(function(){ |
|
|
|
var w = $(window); |
|
|
|
var w = $(window); |
|
|
|
return !(w.scrollTop() > (of.top + o.outerHeight()) || (w.scrollTop() + w.height()) < of.top); |
|
|
|
return !(w.scrollTop() > (of.top + o.outerHeight()) || (w.scrollTop() + w.height()) < of.top); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// $('.brand__slider').owlCarousel({
|
|
|
|
|
|
|
|
// loop:true,
|
|
|
|
|
|
|
|
// margin:30,
|
|
|
|
|
|
|
|
// autoplay:false,
|
|
|
|
|
|
|
|
// autoplayTimeout:3000,
|
|
|
|
|
|
|
|
// smartSpeed:500,
|
|
|
|
|
|
|
|
// items:3,
|
|
|
|
|
|
|
|
// navText:['<button><i class="fal fa-angle-left"></i></button>','<button><i class="fal fa-angle-right"></i></button>'],
|
|
|
|
|
|
|
|
// nav:false,
|
|
|
|
|
|
|
|
// dots:false,
|
|
|
|
|
|
|
|
// responsive:{
|
|
|
|
|
|
|
|
// 0:{
|
|
|
|
|
|
|
|
// items:1
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
// 576:{
|
|
|
|
|
|
|
|
// items:2
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
// 767:{
|
|
|
|
|
|
|
|
// items:3
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
// })
|
|
|
|
$('.index_banner').slick({ |
|
|
|
$('.index_banner').slick({ |
|
|
|
autoplay: true,
|
|
|
|
autoplay: true,
|
|
|
|
arrows: false, |
|
|
|
arrows: false, |
|
|
@ -60,29 +81,6 @@ $(function(){ |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
] |
|
|
|
}); |
|
|
|
}); |
|
|
|
$('.brand__slider').owlCarousel({ |
|
|
|
|
|
|
|
loop:true, |
|
|
|
|
|
|
|
margin:30, |
|
|
|
|
|
|
|
autoplay:false, |
|
|
|
|
|
|
|
autoplayTimeout:3000, |
|
|
|
|
|
|
|
smartSpeed:500, |
|
|
|
|
|
|
|
items:3, |
|
|
|
|
|
|
|
navText:['<button><i class="fal fa-angle-left"></i></button>','<button><i class="fal fa-angle-right"></i></button>'], |
|
|
|
|
|
|
|
nav:false, |
|
|
|
|
|
|
|
dots:false, |
|
|
|
|
|
|
|
responsive:{ |
|
|
|
|
|
|
|
0:{ |
|
|
|
|
|
|
|
items:1 |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
576:{ |
|
|
|
|
|
|
|
items:2 |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
767:{ |
|
|
|
|
|
|
|
items:3 |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// $($('.electricItem>button')[0]).css('display','block')
|
|
|
|
// $($('.electricItem>button')[0]).css('display','block')
|
|
|
|
// $($('.electricItem>.addIon')[0]).css('display','none')
|
|
|
|
// $($('.electricItem>.addIon')[0]).css('display','none')
|
|
|
|
// $($('.electricItem')[0]).css('background','rgba(19,75,161,0.8)')
|
|
|
|
// $($('.electricItem')[0]).css('background','rgba(19,75,161,0.8)')
|
|
|
@ -137,18 +135,6 @@ $(function(){ |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
$('.titleContent .titleItem').click(function(){ |
|
|
|
|
|
|
|
$(this).addClass('titleItemActive').siblings().removeClass('titleItemActive'); |
|
|
|
|
|
|
|
if($('.titleItemActive')[0].innerHTML=='企业动态'){ |
|
|
|
|
|
|
|
$('.newsLeftContent>a').attr('href','http://sct.njrenzhou.cn/news/news02.html') |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if($('.titleItemActive')[0].innerHTML=='集团要闻'){ |
|
|
|
|
|
|
|
$('.newsLeftContent>a').attr('href','http://sct.njrenzhou.cn/news/news01.html') |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if($('.titleItemActive')[0].innerHTML=='媒体聚焦'){ |
|
|
|
|
|
|
|
$('.newsLeftContent>a').attr('href','http://sct.njrenzhou.cn/news/news03.html') |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
$('.index_banner').init(function(slick){ |
|
|
|
$('.index_banner').init(function(slick){ |
|
|
|
$('.index_banner .item.slick-current').addClass('active').siblings().removeClass('active') |
|
|
|
$('.index_banner .item.slick-current').addClass('active').siblings().removeClass('active') |
|
|
|
}) |
|
|
|
}) |
|
|
@ -228,7 +214,6 @@ $(function(){ |
|
|
|
continuousHorizontal:true, |
|
|
|
continuousHorizontal:true, |
|
|
|
scrollingSpeed:500, |
|
|
|
scrollingSpeed:500, |
|
|
|
showActiveTooltip :true,
|
|
|
|
showActiveTooltip :true,
|
|
|
|
anchors: ['hero', 'one', 'two', 'three','four','five'], |
|
|
|
|
|
|
|
loopHorizontal: true, |
|
|
|
loopHorizontal: true, |
|
|
|
afterLoad: function(anchorLink, index){ |
|
|
|
afterLoad: function(anchorLink, index){ |
|
|
|
console.log(index) |
|
|
|
console.log(index) |
|
|
@ -269,14 +254,6 @@ $(function(){ |
|
|
|
if(index == 6){ |
|
|
|
if(index == 6){ |
|
|
|
$('header').addClass('on').addClass("animation"); |
|
|
|
$('header').addClass('on').addClass("animation"); |
|
|
|
} |
|
|
|
} |
|
|
|
// var wow = new WOW({
|
|
|
|
|
|
|
|
// boxClass: 'wow',
|
|
|
|
|
|
|
|
// animateClass: 'animated',
|
|
|
|
|
|
|
|
// offset: 0,
|
|
|
|
|
|
|
|
// mobile: true,
|
|
|
|
|
|
|
|
// live: true
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
// wow.init();
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
afterSlideLoad:function(){ |
|
|
|
afterSlideLoad:function(){ |
|
|
|
}, |
|
|
|
}, |
|
|
@ -296,86 +273,104 @@ $(function(){ |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
$.ajax({ |
|
|
|
$.ajax({ |
|
|
|
url: "https://suzhou.njrenzhou.cn/api.php/index/menuList",
|
|
|
|
url: "https://suzhou.njrenzhou.cn/api.php/index/cateGory",
|
|
|
|
type: "POST", |
|
|
|
type: "POST", |
|
|
|
data: {}, |
|
|
|
data: {}, |
|
|
|
success: function (res) {
|
|
|
|
success: function (res) { |
|
|
|
console.log(res,"999");
|
|
|
|
let html = '' |
|
|
|
// if(res.code==200){
|
|
|
|
let data = res.data |
|
|
|
// let data = res.data;
|
|
|
|
data.forEach((item,index)=>{ |
|
|
|
// let html = ''
|
|
|
|
if(index==0){ |
|
|
|
// data.forEach(item=>{
|
|
|
|
html+=`<div class="titleItem titleItemActive" data-id='${item.id}'>${item.title}</div>` |
|
|
|
// if(item.children&&item.children.length==0){
|
|
|
|
news01_render(item.id) |
|
|
|
// html+=`<li>
|
|
|
|
}else{ |
|
|
|
// <a href="javascript:void(0)">党建工作</a>
|
|
|
|
html+=`<div class="titleItem" data-id='${item.id}'>${item.title}</div>` |
|
|
|
// </li>`
|
|
|
|
} |
|
|
|
// }
|
|
|
|
}) |
|
|
|
// html+=`<li class="dropdown">
|
|
|
|
$(".titleContent").append(html) |
|
|
|
// <a href="javascript:void(0)">${item.title}</a>
|
|
|
|
$('.newsLeftContent>a').attr('href','http://sct.njrenzhou.cn/news/news01.html') |
|
|
|
// <div class="dropdown_menu">
|
|
|
|
|
|
|
|
// <a href="#">集团介绍</a>
|
|
|
|
$('.titleContent .titleItem').click(function(){ |
|
|
|
// <a href="#">董事长致辞</a>
|
|
|
|
console.log($(this)) |
|
|
|
// <a href="#">核心能力</a>
|
|
|
|
if($(this).attr('class').indexOf('titleItemActive')!=-1){ |
|
|
|
// <a href="#">企业文化</a>
|
|
|
|
// news01_render($(this)[0].dataset.id)
|
|
|
|
// <a href="#">组织构架</a>
|
|
|
|
}else{ |
|
|
|
// <a href="#">合作伙伴</a>
|
|
|
|
$(this).addClass('titleItemActive').siblings().removeClass('titleItemActive'); |
|
|
|
// <a href="#">联系我们</a>
|
|
|
|
news01_render($(this)[0].dataset.id) |
|
|
|
// </div>
|
|
|
|
} |
|
|
|
// </li>`
|
|
|
|
|
|
|
|
// })
|
|
|
|
if($('.titleItemActive')[0].dataset.id==11){ |
|
|
|
// }
|
|
|
|
$('.newsLeftContent>a').attr('href','http://sct.njrenzhou.cn/news/news01.html') |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if($('.titleItemActive')[0].dataset.id==13){ |
|
|
|
|
|
|
|
$('.newsLeftContent>a').attr('href','http://sct.njrenzhou.cn/news/news02.html') |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if($('.titleItemActive')[0].dataset.id==35){ |
|
|
|
|
|
|
|
$('.newsLeftContent>a').attr('href','http://sct.njrenzhou.cn/news/news03.html') |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
error: function (err) {
|
|
|
|
error: function (err) {
|
|
|
|
console.log(err);
|
|
|
|
console.log(err);
|
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
function news01_render(categoryId){ |
|
|
|
let pageCurrent = 1; |
|
|
|
|
|
|
|
// 新闻列表-集团要闻
|
|
|
|
|
|
|
|
function news01_render(pageCurrent){ |
|
|
|
|
|
|
|
console.log(pageCurrent); |
|
|
|
|
|
|
|
$.ajax({ |
|
|
|
$.ajax({ |
|
|
|
type: 'post', |
|
|
|
type: 'post', |
|
|
|
url: 'https://suzhou.njrenzhou.cn/api.php/news/articleList', |
|
|
|
url: 'https://suzhou.njrenzhou.cn/api.php/index/articleList', |
|
|
|
data:{ |
|
|
|
data:{ |
|
|
|
category_id:11, |
|
|
|
category_id:categoryId, |
|
|
|
page:pageCurrent |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
dataType: 'json', |
|
|
|
dataType: 'json', |
|
|
|
|
|
|
|
|
|
|
|
success: function (res) {
|
|
|
|
success: function (res) {
|
|
|
|
if(res.code==200){ |
|
|
|
if(res.code==200){ |
|
|
|
let item = res.data.data; |
|
|
|
let html = '' |
|
|
|
let html = ''; |
|
|
|
let data = res.data.data; |
|
|
|
let page = ''; |
|
|
|
data.forEach((item,index)=>{ |
|
|
|
console.log(item); |
|
|
|
html+=`<div class="brand__thumb category__item transition-3">
|
|
|
|
$('.news_wrap').empty(); |
|
|
|
<div class="imgcontainer transition-3"> |
|
|
|
// $('.pageNum_wrap').empty();
|
|
|
|
<img src="https://suzhou.njrenzhou.cn${item.thumb}" alt=""> |
|
|
|
|
|
|
|
</div> |
|
|
|
$.each(item,function(index){ |
|
|
|
<div class="contentText transition-3"> |
|
|
|
var title = item[index].title; |
|
|
|
<div class="contenttitle">${item.title}</div> |
|
|
|
var subtitle = item[index].subtitle; |
|
|
|
<p>${item.subtitle}</p> |
|
|
|
var time = item[index].publish_time_text.substr(0,11); |
|
|
|
<div class="time">${item.publish_time_text}</div> |
|
|
|
var thumb = item[index].thumb; |
|
|
|
</div> |
|
|
|
var id = item[index].id; |
|
|
|
</div>` |
|
|
|
|
|
|
|
}) |
|
|
|
// html += "<div class='brand__thumb category__item transition-3'>";
|
|
|
|
$('.brand__slider').empty().append(html) |
|
|
|
// html += "<div class='imgcontainer transition-3'>";
|
|
|
|
$(".brand__slider").trigger("destroy.owl.carousel") |
|
|
|
// html += "<img src=https://suzhou.njrenzhou.cn" + thumb + "></div>";
|
|
|
|
$('.brand__slider').owlCarousel({ |
|
|
|
// html += "<div class='contentText transition-3'><a href='detail.html?id=" + id + "' target='_blank'>" + title + "</a><p>" + time + "</p>";
|
|
|
|
loop:true, |
|
|
|
// html += "<p>" + subtitle + "</p></div></li>";
|
|
|
|
margin:30, |
|
|
|
}) |
|
|
|
autoplay:false, |
|
|
|
$('.news_wrap').append(html); |
|
|
|
autoplayTimeout:3000, |
|
|
|
|
|
|
|
smartSpeed:500, |
|
|
|
}
|
|
|
|
items:3, |
|
|
|
|
|
|
|
navText:['<button><i class="fal fa-angle-left"></i></button>','<button><i class="fal fa-angle-right"></i></button>'], |
|
|
|
|
|
|
|
nav:false, |
|
|
|
|
|
|
|
dots:false, |
|
|
|
|
|
|
|
responsive:{ |
|
|
|
|
|
|
|
0:{ |
|
|
|
|
|
|
|
items:1 |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
576:{ |
|
|
|
|
|
|
|
items:2 |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
767:{ |
|
|
|
|
|
|
|
items:3 |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}
|
|
|
|
}, |
|
|
|
}, |
|
|
|
error: function (err) {
|
|
|
|
error: function (err) {
|
|
|
|
console.log(err);
|
|
|
|
console.log(err);
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
news01_render(pageCurrent); |
|
|
|
|
|
|
|