|
@@ -47,7 +47,6 @@ String.prototype.mytrim = function(){
|
|
|
|
|
|
// 随时提issues
|
|
|
function initTab(){
|
|
|
- var $str = ""
|
|
|
// $(".scroeOne").on("mouseenter",".nav",function(){
|
|
|
// $(".scroeOne .score-content").addClass("hide").removeClass("show")
|
|
|
// $(this).addClass("active").siblings().removeClass("active")
|
|
@@ -70,11 +69,21 @@ function initTab(){
|
|
|
// $str = ""
|
|
|
// })
|
|
|
console.log($('.scroeTwo .nav_item'))
|
|
|
- var mtIdOne = 0
|
|
|
- var subIdOne = 0
|
|
|
+ var mtIdOne = 1
|
|
|
+ var subIdOne = 1
|
|
|
var $conTwo = $('.scroe-content-two .score-content')
|
|
|
var $conOne = $('.scroe-content-one .score-content')
|
|
|
|
|
|
+ var isPc = !/Android|webOS|iPhone|Windows Phone|iPod|BlackBerry|SymbianOS/i.test(window.navigator.userAgent) && !/[\?&]pc(?:[=&].*|$)/.test(window.location.href)
|
|
|
+ if(isPc){
|
|
|
+
|
|
|
+ var $conThree = $('.scroe-content-three .score-content')
|
|
|
+ }else{
|
|
|
+ var $conThree = $('.scroe-h5-content')
|
|
|
+ $conThree.eq(0).show()
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
$('.scroeOne .nav_item').on('mouseenter',function(){
|
|
|
$(this).addClass('active').siblings().removeClass('active')
|
|
|
mtIdOne = $(this).attr('data-mt')
|
|
@@ -98,19 +107,35 @@ function initTab(){
|
|
|
show($conTwo)
|
|
|
})
|
|
|
|
|
|
+ $('.scroeThree .nav_item').on('mouseenter',function(){
|
|
|
+ $(this).addClass('active').siblings().removeClass('active')
|
|
|
+ mtIdOne = $(this).attr('data-mt')
|
|
|
+
|
|
|
+ show($conThree)
|
|
|
+ })
|
|
|
+ $('.scroeThree .nav_item_sub').hover(function(){
|
|
|
+ $(this).addClass('active').siblings().removeClass('active')
|
|
|
+ subIdOne = $(this).attr('data-st')
|
|
|
+ show($conThree)
|
|
|
+ })
|
|
|
+
|
|
|
+
|
|
|
|
|
|
function show($con){
|
|
|
- if(mtIdOne==1&&subIdOne ==1){
|
|
|
+ console.log(mtIdOne,subIdOne)
|
|
|
+ console.log($con)
|
|
|
+ if(parseInt(mtIdOne) ==1&& parseInt(subIdOne) ==1){
|
|
|
$con.eq(0).show().siblings().hide()
|
|
|
}
|
|
|
- if(mtIdOne==1&&subIdOne ==2){
|
|
|
+ if(parseInt(mtIdOne)==1&&parseInt(subIdOne) ==2){
|
|
|
$con.eq(1).show().siblings().hide()
|
|
|
}
|
|
|
- if(mtIdOne==2&&subIdOne ==1){
|
|
|
+ if(parseInt(mtIdOne)==2&&parseInt(subIdOne) ==1){
|
|
|
$con.eq(2).show().siblings().hide()
|
|
|
}
|
|
|
- if(mtIdOne==2&&subIdOne ==2){
|
|
|
+ if(parseInt(mtIdOne)==2&&parseInt(subIdOne) ==2){
|
|
|
$con.eq(3).show().siblings().hide()
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -147,7 +172,6 @@ var V = {
|
|
|
|
|
|
for(var i=0; i<len; i++){
|
|
|
nextTop = itemTop[i+1];
|
|
|
-
|
|
|
if( itemTop[i] <= scrollTop && scrollTop <= nextTop){
|
|
|
$sidebarList.eq(i).siblings().find("a").removeClass("active");
|
|
|
$sidebarList.eq(i).find("a").addClass("active");
|
|
@@ -165,7 +189,6 @@ var C = {
|
|
|
C.initRankTag()
|
|
|
C.initTeam()
|
|
|
C.initWordLimit()
|
|
|
- initNav()
|
|
|
},
|
|
|
initRankTag : function(){
|
|
|
new Tag('.rankMainTag')
|