|
@@ -47,57 +47,61 @@ String.prototype.mytrim = function(){
|
|
|
|
|
|
// 随时提issues
|
|
|
function initTab(){
|
|
|
-
|
|
|
+ var isPc = !/Android|webOS|iPhone|Windows Phone|iPod|BlackBerry|SymbianOS/i.test(window.navigator.userAgent) && !/[\?&]pc(?:[=&].*|$)/.test(window.location.href)
|
|
|
+ console.log(isPc)
|
|
|
var mtIdOne = 1
|
|
|
var subIdOne = 1
|
|
|
var $conTwo = $('.scroe-content-two .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')
|
|
|
+ $conTwo.eq(0).show()
|
|
|
}else{
|
|
|
- var $conThree = $('.scroe-h5-content')
|
|
|
- $conThree.eq(0).show()
|
|
|
+ $conTwo.eq(4).show()
|
|
|
}
|
|
|
+ $('[data-type=statuList').show()
|
|
|
|
|
|
$('.scroeTwo .nav_item').on('mouseenter',function(){
|
|
|
$(this).addClass('active').siblings().removeClass('active')
|
|
|
mtIdOne = $(this).attr('data-mt')
|
|
|
+ if(mtIdOne==1){
|
|
|
+ $('[data-type=statuImg').hide()
|
|
|
+ $('[data-type=statuList').show()
|
|
|
+ }else{
|
|
|
+ $('[data-type=statuImg').show()
|
|
|
+ $('[data-type=statuList').hide()
|
|
|
+ }
|
|
|
show($conTwo)
|
|
|
})
|
|
|
+
|
|
|
$('.scroeTwo .nav_item_sub').hover(function(){
|
|
|
$(this).addClass('active').siblings().removeClass('active')
|
|
|
subIdOne = $(this).attr('data-st')
|
|
|
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){
|
|
|
+ console.log(mtIdOne,subIdOne)
|
|
|
if(parseInt(mtIdOne) ==1&& parseInt(subIdOne) ==1){
|
|
|
- $con.eq(0).show().siblings().hide()
|
|
|
+ if(!isPc){
|
|
|
+ console.log('111')
|
|
|
+ $con.eq(4).show().siblings().hide()
|
|
|
+ }else{
|
|
|
+ $con.eq(0).show().siblings().hide()
|
|
|
+ }
|
|
|
}
|
|
|
if(parseInt(mtIdOne)==1&&parseInt(subIdOne) ==2){
|
|
|
- $con.eq(1).show().siblings().hide()
|
|
|
+ if(!isPc){
|
|
|
+ console.log('2222')
|
|
|
+ $con.eq(5).show().siblings().hide()
|
|
|
+ }else{
|
|
|
+ $con.eq(1).show().siblings().hide()
|
|
|
+ }
|
|
|
}
|
|
|
if(parseInt(mtIdOne)==2&&parseInt(subIdOne) ==1){
|
|
|
$con.eq(2).show().siblings().hide()
|
|
|
}
|
|
|
if(parseInt(mtIdOne)==2&&parseInt(subIdOne) ==2){
|
|
|
$con.eq(3).show().siblings().hide()
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
}
|