jinq.myswiper = new swiper ('.park-banner', { loop: true, // 如果需要前进后退按钮 nextbutton: '.swiper-pro-next', prevbutton: '.swiper-pro-prev', speed: 1000, pagination: '.park-banner .swiper-pagination' }) /*jinq.myswiper3 = new swiper('.show-details-box', { nextbutton: '.show-details-box .swiper-details-next', prevbutton: '.show-details-box .swiper-details-prev', loop:false, speed:1000, })*/ $(function(){ /*$('.industrial-characteristics a').click(function(){ $('.show-details-bg').show(function(){ $('.show-details-bg').addclass('showd'); }); var index = $(this).parent().parent().index(); jinq.myswiper3.slideto(index, 1000, false);//切换到第一个slide,速度为1秒 }); $('.industrial-characteristics .industrial-image').click(function(){ $('.show-details-bg').show(function(){ $('.show-details-bg').addclass('showd'); }); var index = $(this).parent().parent().index(); jinq.myswiper3.slideto(index, 1000, false);//切换到第一个slide,速度为1秒 }); $('.industrial-characteristics .char-p20').click(function(){ $('.show-details-bg').show(function(){ $('.show-details-bg').addclass('showd'); }); var index = $(this).parent().parent().index(); jinq.myswiper3.slideto(index, 1000, false);//切换到第一个slide,速度为1秒 }); $('.show-details-bg').hide(); $('.close-box').click(function(){ $('.show-details-bg').removeclass('showd').fadeout(); });*/ }); // 获取地址栏的值 function getsearchinfo() { var s_obj = new object(); // alert(window.location.search) var c_info = window.location.search.substring(1).split("&"); for (var i = 0; i < c_info.length; i++) { var name = c_info[i].split("=")[0]; var val = c_info[i].split("=")[1]; s_obj[name] = val; } return s_obj; } $(function(){ var productsid = decodeuri(getsearchinfo().id); //console.log(productsid); if(productsid == 6) { $(".industrial-intro .pro-h1-box h1").html("社区简介"); $(".industrial-characteristics .pro-h1-box h1").html("社区特色"); } if(productsid == 7) { $(".industrial-intro .pro-h1-box h1").html("公寓简介"); $(".industrial-characteristics .pro-h1-box h1").html("公寓特色"); } if (productsid == 8) { $(".industrial-intro .pro-h1-box h1").html("人文简介"); $(".industrial-characteristics .pro-h1-box h1").html("人文特色"); } if (productsid == 14) { $(".industrial-intro .pro-h1-box h1").html("金桥未来"); $(".industrial-characteristics .pro-h1-box h1").html("项目特色"); } });