Authored by 郭成尧

Merge branch 'hotfix/brandSaleBug' of git.yoho.cn:fe/yohobuy-node into hotfix/brandSaleBug

 he commit.
@@ -229,6 +229,10 @@ exports.handleOutletsActivityData = (origin, name) => { @@ -229,6 +229,10 @@ exports.handleOutletsActivityData = (origin, name) => {
229 dest.topic.push(activity); 229 dest.topic.push(activity);
230 }); 230 });
231 231
  232 + if (!dest.length) {
  233 + return false;
  234 + }
  235 +
232 return dest; 236 return dest;
233 }; 237 };
234 238
@@ -646,11 +646,11 @@ exports.handlePathNavData = (data, params) => { @@ -646,11 +646,11 @@ exports.handlePathNavData = (data, params) => {
646 _.forEach(sort.sub, misort => { 646 _.forEach(sort.sub, misort => {
647 if (misort.relation_parameter.sort === params.sort || misort.category_id === params.misort) { 647 if (misort.relation_parameter.sort === params.sort || misort.category_id === params.misort) {
648 pathNav.push({ 648 pathNav.push({
649 - href: helpers.urlFormat('outlets/list', { sort: params.sort }), 649 + href: helpers.urlFormat('/product/outlets/list', { sort: params.sort }),
650 name: sort.category_name, 650 name: sort.category_name,
651 pathTitle: sort.category_name 651 pathTitle: sort.category_name
652 }, { 652 }, {
653 - href: helpers.urlFormat('outlets/list', { sort: params.sort }), 653 + href: helpers.urlFormat('/product/outlets/list', { sort: params.sort }),
654 name: misort.category_name, 654 name: misort.category_name,
655 pathTitle: misort.category_name 655 pathTitle: misort.category_name
656 }); 656 });