...
|
...
|
@@ -69,7 +69,7 @@ $('.overlay').on('touchstart', function(e) { |
|
|
});
|
|
|
|
|
|
//点击一级导航,弹出二级导航
|
|
|
$sideNav.on('touchstart', 'li', function (e) {
|
|
|
$sideNav.on('touchstart', 'li', function(e) {
|
|
|
if ($(this).find('.sub-nav').size() > 0) {
|
|
|
$('.sub-nav').removeClass('show');
|
|
|
$(this).find('.sub-nav').addClass('show');
|
...
|
...
|
@@ -82,8 +82,8 @@ $sideNav.on('touchstart', 'li', function (e) { |
|
|
});
|
|
|
|
|
|
//返回一级导航,收起二级导航
|
|
|
$subNav.each(function () {
|
|
|
$(this).find('li').eq(0).on('touchstart', function (e) {
|
|
|
$subNav.each(function() {
|
|
|
$(this).find('li').eq(0).on('touchstart', function(e) {
|
|
|
$('.sub-nav').removeClass('show');
|
|
|
e.stopPropagation();
|
|
|
return false;
|
...
|
...
|
@@ -145,7 +145,7 @@ if ($('.trend-topic-swiper').find('li').size() > 1) { |
|
|
}
|
|
|
|
|
|
//潮流上装/经典裤装等轮播
|
|
|
$('.category-swiper').each(function (i, index) {
|
|
|
$('.category-swiper').each(function(i, index) {
|
|
|
swiperClass = 'category-swiper' + i;
|
|
|
$(this).addClass(swiperClass);
|
|
|
if ($('.' + swiperClass).find('.swiper-slide').size() > 1) {
|
...
|
...
|
@@ -161,7 +161,7 @@ $('.category-swiper').each(function (i, index) { |
|
|
});
|
|
|
|
|
|
//logo动画
|
|
|
requestFrame = (function () {
|
|
|
requestFrame = (function() {
|
|
|
var tempFunc = null,
|
|
|
prefixList = ['webkit', 'moz', 'ms'];
|
|
|
|
...
|
...
|
@@ -174,11 +174,11 @@ requestFrame = (function () { |
|
|
}
|
|
|
|
|
|
if (supportCss3) {
|
|
|
return function (callback) {
|
|
|
return function(callback) {
|
|
|
window[tempFunc](callback);
|
|
|
};
|
|
|
}
|
|
|
return function (callback) {
|
|
|
return function(callback) {
|
|
|
window.setTimeout(callback, 67);
|
|
|
};
|
|
|
})();
|
...
|
...
|
@@ -205,7 +205,7 @@ function tsAnimate() { |
|
|
if (start % 360 === 0) {
|
|
|
window.setTimeout(tsAnimate, 60 * 1000);
|
|
|
} else {
|
|
|
requestFrame(function () {
|
|
|
requestFrame(function() {
|
|
|
tsAnimate();
|
|
|
});
|
|
|
}
|
...
|
...
|
@@ -221,9 +221,7 @@ $('.home-header .iconfont').on('touchstart', function() { |
|
|
});
|
|
|
|
|
|
// 底部留出tab 的高度
|
|
|
$('#yoho-footer').css({
|
|
|
'margin-bottom': '2.5rem'
|
|
|
});
|
|
|
window.reMarginFooter('.footer-tab');
|
|
|
|
|
|
//set cookie
|
|
|
exports.set = function(c) {
|
...
|
...
|
@@ -231,4 +229,4 @@ exports.set = function(c) { |
|
|
expires: 365,
|
|
|
domain: '.m.yohobuy.com'
|
|
|
});
|
|
|
}; |
|
|
\ No newline at end of file |
|
|
}; |
...
|
...
|
|