...
|
...
|
@@ -79,17 +79,16 @@ function activeNav() { |
|
|
var index = getUrlParam('yh_channel');
|
|
|
|
|
|
getOtherIndex();
|
|
|
|
|
|
// if (index === null) {
|
|
|
// index = getUrlParam('type');
|
|
|
// if (index === null) {
|
|
|
// $nav.find('li:not([data-nav="other"])').eq(0).addClass('active').siblings().removeClass('active');
|
|
|
// } else {
|
|
|
// $nav.find('li[data-type=' + index + ']').addClass('active').siblings().removeClass('active');
|
|
|
// }
|
|
|
// } else {
|
|
|
// $nav.find('li:not([data-nav="other"])').eq(index).addClass('active').siblings().removeClass('active');
|
|
|
// }
|
|
|
if (index === null) {
|
|
|
index = getUrlParam('type');
|
|
|
if (index === null) {
|
|
|
$nav.find('li:not([data-nav="other"])').eq(0).addClass('active').siblings().removeClass('active');
|
|
|
} else {
|
|
|
$nav.find('li[data-type=' + index + ']').addClass('active').siblings().removeClass('active');
|
|
|
}
|
|
|
} else {
|
|
|
$nav.find('li:not([data-nav="other"])').eq(index).addClass('active').siblings().removeClass('active');
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
...
|
...
|
|