苏州创新投资
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
suzhou/js/about03.js

161 lines
5.1 KiB

2 years ago
//banner
$(function(){
2 years ago
var owl = $('.brand__slider');
2 years ago
$('.brand__slider').owlCarousel({
loop:true,
margin:30,
2 years ago
autoplay:true,
2 years ago
autoplayTimeout:1000,
2 years ago
smartSpeed:500,
items:3,
navText:['<img src="../images/arrowleft.png" alt="">','<img src="../images/arrowright.png" alt="">'],
nav:true,
dots:false,
responsive:{
0:{
items:1
},
576:{
items:2
},
767:{
items:3
},
}
});
2 years ago
$('.category__item').on('mouseover',function(){
owl.trigger('stop.owl.autoplay')
})
$('.category__item').on('mouseleave',function(){
owl.trigger('play.owl.autoplay',[1000])
2 years ago
2 years ago
})
2 years ago
$("#header").load("../public/header1.html","",function(){
$('.header').addClass('on');
//移动端展开nav
$('#navToggle').on('click',function(){
$('.m_nav').addClass('open');
})
//关闭nav
$('.m_nav .top .closed').on('click',function(){
$('.m_nav').removeClass('open');
})
//二级导航 移动端
$(".m_nav .ul li").click(function() {
$(this).children("div.dropdown_menu").slideToggle('slow')
$(this).siblings('li').children('.dropdown_menu').slideUp('slow');
});
2 years ago
});
2 years ago
$("#footer").load("../public/footer.html");
2 years ago
//全屏滚动
$('#about_main').fullpage({
'navigation': true,
scrollBar: false,
slidesNavigation: true,
css3: true,
controlArrows: false,
continuousHorizontal:true,
scrollingSpeed:500,
showActiveTooltip :true,
anchors: ['hero', 'one', 'two', 'three','four','five'],
loopHorizontal: true,
afterLoad: function(anchorLink, index){
console.log(index)
$('header').addClass('on').addClass("animation");
2 years ago
if(index==1){
$('header').css('display','flex')
}else{
$('header').css('display','none')
}
2 years ago
},
afterSlideLoad:function(){
},
afterRender: function(){
},
onLeave: function(index, direction){
$(".header").removeClass("animation");
}
})
2 years ago
})
// 公共信息-基本信息
function getBasics(){
$.ajax({
type: 'post',
url: 'https://suzhou.njrenzhou.cn/api.php/index/getBasics',
data:{
group:'basics'
},
dataType: 'json',
success: function (res) {
if(res.code==200){
var data = res.data;
// 头部信息
$('meta')[3].content = data[2].value;
$('meta')[4].content = data[3].value;
$('link')[0].href = 'https://suzhou.njrenzhou.cn' + data[14].value;
// 集团简介
$('#basicsPhone').append(data[28].value);
$('#basicsAddress').append(data[26].value);
$('#basicsEmails').append(data[27].value);
// 底部信息
$('#basicsQrcode').append("<img src='https://suzhou.njrenzhou.cn" + data[22].value + "'>");
$('#basicsFooter').append("@2022-2032&nbsp;苏州创新投资集团有限公司&nbsp;&nbsp;<a href='https://beian.miit.gov.cn/' target='_blank'>" + data[8].value + "</a>&nbsp;&nbsp;" + data[9].value + "营业执照");
}
},
error: function (err) {
console.log(err);
}
});
}
getBasics();
// // 关于我们-核心能力
// function getAbility(){
// var content='';
// $.ajax({
// type: 'post',
// url: 'https://suzhou.njrenzhou.cn/api.php/about/ability',
// data:{
// },
// dataType: 'json',
// success: function (res) {
// if(res.code==200){
// var item = res.data.ziyuan;
// console.log(item);
// // 要素资源
// $.each(item,function(index){
// content += "<div class='brand__thumb category__item transition-3'>";
// content += "<div class='business-effect'>";
// content += "<div class='e-img-l'><img alt='' src='../images/section4-hover01.png'></div>";
// content += "<div class='e-img-r'><img alt='' src='../images/section4-hover02.png'></div>";
// content += "</div>";
// content += "<div class='imgcontainer transition-3'>";
// content += "<img src='../images/科研机构@2x.png'>";
// content += "</div>";
// content += "<div class='contentText transition-3'>";
// content += "<div class='contenttitle'>"+ item[index].title + "</div>";
// content += "</div>";
// content += "<div class='maskContainer'>";
// content += "<div class='contenttitle'>科研机构</div>";
// content += "<p>联合各研究机构、院所助力科技成果转化</p>";
// content += "</div>";
// content += "</div>";
// })
// $('#ziyuan').append(content);
// }
// },
// error: function (err) {
// console.log(err);
// }
// });
// }
// getAbility();