1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- var xgt = "";
- xgt +='<li class="swiper-slide"><img src="/zt/qygg_zt20190226/image/xgt1.png" alt=""></li>';
- xgt +='<li class="swiper-slide"><img src="/zt/qygg_zt20190226/image/xgt2.png" alt=""></li>';
- var hx = "";
- hx +='<li class="swiper-slide"><img src="/zt/qygg_zt20190226/image/hx1.png" alt=""></li>';
- hx +='<li class="swiper-slide"><img src="/zt/qygg_zt20190226/image/hx2.png" alt=""></li>';
- hx +='<li class="swiper-slide"><img src="/zt/qygg_zt20190226/image/hx3.png" alt=""></li>';
- hx +='<li class="swiper-slide"><img src="/zt/qygg_zt20190226/image/hx4.png" alt=""></li>';
- hx +='<li class="swiper-slide"><img src="/zt/qygg_zt20190226/image/hx5.png" alt=""></li>';
- hx +='<li class="swiper-slide"><img src="/zt/qygg_zt20190226/image/hx6.png" alt=""></li>';
- var ybj = "";
- ybj +='<li class="swiper-slide"><img src="/zt/qygg_zt20190226/image/ybj1.png" alt=""></li>';
- ybj +='<li class="swiper-slide"><img src="/zt/qygg_zt20190226/image/ybj2.png" alt=""></li>';
- $('.Plan_xc_title p').on('click',function(){
-
- var dataid = $(this).attr('data-type');
-
- $(this).attr('class','on').siblings().attr('class','');
- switch(dataid)
- {
- case '1':
- $('.Plan_xclb_box').html('<div class="Plan_xclb swiper1"><ul class="swiper-wrapper">'+xgt+'</ul></div>');
- break;
- case '2':
- $('.Plan_xclb_box').html('<div class="Plan_xclb swiper1"><ul class="swiper-wrapper">'+hx+'</ul></div>');
- break;
- case '3':
- $('.Plan_xclb_box').html('<div class="Plan_xclb swiper1"><ul class="swiper-wrapper">'+ybj+'</ul></div>');
- break;
- }
- var mySwiper3= new Swiper(".swiper1",{
- loop : false,
- loopedSlides:4,
- // pagination: '.swiper-pagination',
- autoplayDisableOnInteraction : false,
- slidesPerView :"auto"
- });
-
- })
- $('.Plan_xc_title > p').eq(0).click(); //默认点击第一个
|