Authored by biao

update for back url

@@ -15,10 +15,8 @@ const renderData = { @@ -15,10 +15,8 @@ const renderData = {
15 15
16 // 奥莱首页控制器 16 // 奥莱首页控制器
17 exports.index = (req, res) => { 17 exports.index = (req, res) => {
18 - let backUrl = '//m.yohobuy.com/' + req.yoho.channel;  
19 let headerData = headerModel.setNav({ 18 let headerData = headerModel.setNav({
20 navTitle: 'OUTLET', 19 navTitle: 'OUTLET',
21 - backUrl: backUrl,  
22 navBtn: false 20 navBtn: false
23 }); 21 });
24 22
@@ -57,6 +57,14 @@ if ($('.swiper-container .swiper-slide').length > 1) { @@ -57,6 +57,14 @@ if ($('.swiper-container .swiper-slide').length > 1) {
57 }); 57 });
58 } 58 }
59 59
  60 +$('.nav-back').on('click', function(e) {
  61 + var channel = window.cookie('_Channel') || 'boys';
  62 +
  63 + e.preventDefault();
  64 +
  65 + location.href = '//m.yohobuy.com/' + channel;
  66 +});
  67 +
60 $categoryNavItem.on('click', function(e) { 68 $categoryNavItem.on('click', function(e) {
61 var query = searchInitParam($(this)); 69 var query = searchInitParam($(this));
62 70