Authored by biao

update for set backurl

... ... @@ -8,6 +8,7 @@ var $ = require('yoho-jquery'),
var $el = $('.cd-lite');
require('../common');
require('./outlet/set-backurl');
if ($el.length > 0) {
$el.each(function() {
... ...
... ... @@ -6,6 +6,7 @@ var $ = require('yoho-jquery'),
iscroll = require('./outlet/nav');
require('../common');
require('./outlet/set-backurl');
// 导航滚动
if ($('#index_nav').length > 0) {
... ...
... ... @@ -12,6 +12,7 @@ var iscroll = require('./outlet/nav');
require('./outlet/fix-nav');
require('./outlet/set-backurl');
lazyLoad($('img.lazy'));
... ... @@ -58,13 +59,7 @@ if ($('.swiper-container .swiper-slide').length > 1) {
});
}
$('.nav-back').on('click', function(e) {
var channel = window.cookie('_Channel') || 'boys';
e.preventDefault();
location.href = '//m.yohobuy.com/' + channel;
});
$categoryNavItem.on('click', function(e) {
var query = searchInitParam($(this));
... ... @@ -125,7 +120,7 @@ window.onload = function() {
$categoryNav.fixNav({
autoRollTop: true
});
};
}
// 刷新后前让页面回到顶部,否则影响导航悬浮效果设置
... ...
var $ = require('yoho-jquery');
$('.nav-back').on('click', function(e) {
var channel = window.cookie('_Channel') || 'boys';
e.preventDefault();
location.href = '//m.yohobuy.com/' + channel;
});
... ...