|
@@ -169,14 +169,17 @@ function getPageInfo() {
|
|
|
}
|
|
|
|
|
|
function bindTab() {
|
|
|
- if(showTab == '1') {
|
|
|
- $('.infoTabBox .tipsTab').addClass('activeTab')
|
|
|
- $('.infomationBox .treatRecommend').css("display","none")
|
|
|
- } else {
|
|
|
- $('.infoTabBox .treatTab').addClass('activeTab')
|
|
|
- $('.infomationBox .tipsInfo').css("display","none")
|
|
|
- $('.infomationBox .staticWin').css("display","none")
|
|
|
- }
|
|
|
+ console.log($('.informationBox '))
|
|
|
+ $('.infoTabBox .infoTab').eq(showTab).addClass('activeTab').siblings().removeClass('activeTab')
|
|
|
+ $('.informationBox').eq(showTab).siblings(".informationBox").css({"display":"none"})
|
|
|
+ // if(showTab == '1') {
|
|
|
+ // $('.infoTabBox .tipsTab').addClass('activeTab')
|
|
|
+ // $('.infomationBox .treatRecommend').css("display","none")
|
|
|
+ // } else {
|
|
|
+ // $('.infoTabBox .treatTab').addClass('activeTab')
|
|
|
+ // $('.infomationBox .tipsInfo').css("display","none")
|
|
|
+ // $('.infomationBox .staticWin').css("display","none")
|
|
|
+ // }
|
|
|
|
|
|
$('.infomationBox .infoTab').click(function() {
|
|
|
$(this).addClass('activeTab').siblings().removeClass('activeTab')
|
|
@@ -186,6 +189,7 @@ function getPageInfo() {
|
|
|
})
|
|
|
|
|
|
}
|
|
|
+ console.log(tipsNum,showTab)
|
|
|
if(tipsNum > 1) {
|
|
|
bindTab();
|
|
|
}else if(tipsNum == 0){
|