Browse Source

h5tab滑动

luyanan 7 years ago
parent
commit
20280d33cc
1 changed files with 10 additions and 2 deletions
  1. 10 2
      js/search_h5.js

+ 10 - 2
js/search_h5.js

@ -745,7 +745,9 @@ $(function() {
745 745
			})
746 746
		},
747 747
		clearToFun=function(sortN){
748
			//$(objSort[sortN].conbox).html("");
748
			if(objSort[sortN].loadFlag){
749
				$(objSort[sortN].conbox).html("");
750
			}
749 751
			$('.w').css('transform', 'translate3d(0px, 0px, 0px)')
750 752
			$('.swiper-container2 .swiper-slide-active').css('height','auto').siblings('.swiper-slide').css('height','0px');
751 753
			mySwiper.update();
@ -784,6 +786,7 @@ $(function() {
784 786
			keyt= $.trim($("#searchval").val())
785 787
			if(!item){ item=1 }
786 788
			var tabLoad=objSort[item].loadFlag
789
			//console.log(item+"*****"+tabLoad)
787 790
			
788 791
			if(item==1 && tabLoad){
789 792
				expertBox();
@ -814,6 +817,9 @@ $(function() {
814 817
				$(".loadtip").html('上拉加载更多');
815 818
				mySwiper.update();
816 819
			}
820
			if(!tabLoad){
821
				$(".loadtip").html('没有更多数据了');
822
			}
817 823
		},
818 824
		bindComEvent=function(){
819 825
			//============open首次加载================
@ -851,8 +857,10 @@ $(function() {
851 857
						document.getElementById("sele").getElementsByTagName("span")[0].innerHTML=tagm;
852 858
					}
853 859
					
860
					$(objSort[1].conbox).html("");
861
					objSort[1].loadFlag=true
854 862
					clearToFun(1)
855
					expertBox();
863
					//expertBox()
856 864
					
857 865
					$('html').removeClass('mmenu-opening');
858 866
					setTimeout(function(){