Authored by zhangxiaoru

规范url拼接

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