Browse Source

切换分类BUG修复

git-svn-id: svn://svn7.apicloud.com/A6007457911931/%E5%9C%88%E5%A4%9A%E5%A4%9A@681 0e1a2743-8d03-4e5a-a60c-7e26af42b145
1149931599@qq.com 4 years ago
parent
commit
04829da4a0
2 changed files with 5 additions and 8 deletions
  1. 0 5
      html/frame0.html
  2. 5 3
      html/home/hoteldtl.html

+ 0 - 5
html/frame0.html

@@ -482,11 +482,6 @@
 							},
 							loop: true,
 							speed:400,
-							on: {
-								slideChangeTransitionEnd: function(){
-									console.log("123")
-								},
-							 },
 							pagination: {
 								el: '.swiper-pagination',
 							},

+ 5 - 3
html/home/hoteldtl.html

@@ -555,6 +555,7 @@
 		var _page = '1';
 		var _data_toggle = "#tab1";
 		var imgUrl = "";
+		var height_s="3.04rem"
 		apiready = function() {
 			_storeid = api.pageParam.keyid;
 			$api.fixTabBar($api.byId('footerbtn'))
@@ -587,9 +588,10 @@
 				_data_toggle = jQuery(this).attr("href");
 				$(_data_toggle).addClass("weui_tab_bd_item_active");
 				if (_data_toggle == "#tab1") {
+					console.log("123")
 					$(".hotel-goods").show();
 					$(".goods-list").fadeIn('1500');
-					// $(".weui-tab").css("height", "2.2rem");
+					$(".weui-tab").css("height", height_s);
 				} else {
 					$(".hotel-goods").fadeOut('1500');
 					$(".goods-list").fadeOut('1500');
@@ -738,6 +740,7 @@
 						var _html = "";
 						var data = group(datas.data.category_list, 10);
 						if(datas.data.category_list.length>5){
+							height_s='4.64rem';
 							$(".swiperType").css("height",'3.4rem');
 							$(".weui-tab.tabh").css("height",'4.64rem');
 						}
@@ -761,8 +764,7 @@
 								el: '.paginationType',
 							},
 							on: {
-								slideChangeTransitionEnd: function(){
-									console.log(this.activeIndex)
+								slideChangeTransitionEnd: function(){
 								 $(".dian div").removeClass("activeD");
 								 $(".dian div").eq(this.activeIndex).addClass("activeD")
 								},