Authored by biao

update for back url

... ... @@ -15,10 +15,8 @@ const renderData = {
// 奥莱首页控制器
exports.index = (req, res) => {
let backUrl = '//m.yohobuy.com/' + req.yoho.channel;
let headerData = headerModel.setNav({
navTitle: 'OUTLET',
backUrl: backUrl,
navBtn: false
});
... ...
... ... @@ -57,6 +57,14 @@ 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));
... ...