Authored by 郭成尧

Merge branch 'feature/seo4' into 'release/6.3'

shop-category



See merge request !1159
@@ -771,23 +771,23 @@ module.exports = class extends global.yoho.BaseModel { @@ -771,23 +771,23 @@ module.exports = class extends global.yoho.BaseModel {
771 }); 771 });
772 772
773 _.forEach(value.sub, (subValue, subKey) => { 773 _.forEach(value.sub, (subValue, subKey) => {
774 - value.sub[subKey].url = helpers.urlFormat('/product/search/list', { 774 + value.sub[subKey].url = helpers.urlFormat('', {
775 shop_id: params.shopId, 775 shop_id: params.shopId,
776 sort: _.get(subValue, 'relation_parameter.sort', ''), 776 sort: _.get(subValue, 'relation_parameter.sort', ''),
777 title: subValue.category_name, 777 title: subValue.category_name,
778 query: subValue.category_name 778 query: subValue.category_name
779 - }); 779 + }, 'search');
780 }); 780 });
781 781
782 let subCategory = [ 782 let subCategory = [
783 { 783 {
784 category_name: '全部' + value.category_name, 784 category_name: '全部' + value.category_name,
785 - url: helpers.urlFormat('/product/search/list', { 785 + url: helpers.urlFormat('', {
786 shop_id: params.shopId, 786 shop_id: params.shopId,
787 sort: _.get(value, 'relation_parameter.sort', ''), 787 sort: _.get(value, 'relation_parameter.sort', ''),
788 title: '全部' + value.category_name, 788 title: '全部' + value.category_name,
789 query: value.category_name 789 query: value.category_name
790 - }) 790 + }, 'search')
791 } 791 }
792 ]; 792 ];
793 793
@@ -798,9 +798,9 @@ module.exports = class extends global.yoho.BaseModel { @@ -798,9 +798,9 @@ module.exports = class extends global.yoho.BaseModel {
798 }); 798 });
799 }); 799 });
800 800
801 - finalResult.allProduct = helpers.urlFormat('/product/search/list', { 801 + finalResult.allProduct = helpers.urlFormat('', {
802 shop_id: params.shopId 802 shop_id: params.shopId
803 - }); 803 + }, 'search');
804 804
805 return finalResult; 805 return finalResult;
806 }); 806 });