Authored by zhangxiaoru

规范url拼接

@@ -45,7 +45,10 @@ const handleBrandList = origin => { @@ -45,7 +45,10 @@ const handleBrandList = origin => {
45 } 45 }
46 46
47 _.forEach(value, function(subValue) { 47 _.forEach(value, function(subValue) {
48 - subValue.brandUrl = '//search.m.yohobuy.com?query=' + subValue.brand_domain + '&app_type=1'; 48 + subValue.brandUrl = helpers.urlFormat('/', {
  49 + query: subValue.brand_domain,
  50 + app_type: 1
  51 + }, 'search');
49 subValue.name = subValue.brand_name_en || subValue.brand_name_cn || subValue.brand_name; 52 subValue.name = subValue.brand_name_en || subValue.brand_name_cn || subValue.brand_name;
50 subValue.domain = subValue.brand_domain; 53 subValue.domain = subValue.brand_domain;
51 }); 54 });