Commit 8013161319b1d39d6ee4dcbc2c1c9a03eab61ccf

Authored by liuqimichale
1 parent 0a4b335c

swaiper

Showing 1 changed file with 2 additions and 2 deletions
js/index.js
@@ -143,8 +143,8 @@ var tabsSwiper = new Swiper('.swiper-container',{ @@ -143,8 +143,8 @@ var tabsSwiper = new Swiper('.swiper-container',{
143 $("#controls li").on('touchstart mousedown',function(e){ 143 $("#controls li").on('touchstart mousedown',function(e){
144 var that=$(this); 144 var that=$(this);
145 // e.preventDefault() 145 // e.preventDefault()
146 - // $(".tabs .active").removeClass('active')  
147 - // $(this).addClass('active') 146 + $("#controls li").removeClass('active')
  147 + $(this).addClass('active')
148 tabsSwiper.slideTo( that.index() ) 148 tabsSwiper.slideTo( that.index() )
149 }) 149 })
150 150