...
|
...
|
@@ -18,7 +18,7 @@ var $head = $('.head-wrapper'), |
|
|
$goodsNum = $goCart.find('.goods-num-tip'),
|
|
|
$miniCart = $head.find('.mini-cart-wrapper');
|
|
|
|
|
|
var $subNav = $('.sub-nav-list .contain-third');
|
|
|
var $subNav = $('.sub-nav-list.cure .contain-third');
|
|
|
|
|
|
var thirdLineNum = 9,
|
|
|
delayer,
|
...
|
...
|
@@ -481,7 +481,38 @@ function isSupportCss3Animation() { |
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 处理pageCache频道显示异常问题
|
|
|
function syncPageChannel() {
|
|
|
var $header = $('#yoho-header'),
|
|
|
$navs;
|
|
|
var channel = window.cookie('_Channel') || 'girls',
|
|
|
type;
|
|
|
|
|
|
// 过滤频道页
|
|
|
if ($('.home-page').length) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if ($header && $header.length) {
|
|
|
$navs = $header.find('.' + channel);
|
|
|
type = $header.data('type');
|
|
|
|
|
|
if (channel === type || !$navs.length) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
// 更新频道菜单选中状态
|
|
|
$navs.siblings('.cure').removeClass('cure');
|
|
|
$navs.addClass('cure');
|
|
|
|
|
|
// 更新频道颜色
|
|
|
$header.attr('class', 'yoho-header ' + channel);
|
|
|
|
|
|
// 更新三级菜单jq对象
|
|
|
$subNav = $('.sub-nav-list.cure .contain-third');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (isSupportCss3Animation()) {
|
...
|
...
|
@@ -490,6 +521,7 @@ if (isSupportCss3Animation()) { |
|
|
} else {
|
|
|
window.setTimeout(fadeAnimate, 3000);
|
|
|
}
|
|
|
syncPageChannel();
|
|
|
getBannerAndNotice(); // 获取头部banner
|
|
|
syncLoginInfo(); // 同步登陆信息
|
|
|
formatThirdMenu(); // 格式化三级菜单
|
...
|
...
|
|