Authored by 李靖

brandname

... ... @@ -152,7 +152,12 @@ class ProductDetail extends global.yoho.BaseModel {
});
});
resu.enterStore = build;
resu.title = `【${resu.baseInfo.brand_info.brand_name}${resu.baseInfo.middle_sort_name}${resu.baseInfo.product_name}`; // eslint-disable-line
let brandName = '';
if (resu.baseInfo.brand_info) {
brandName = resu.baseInfo.brand_info.brand_name;
}
resu.title = `【${brandName}${resu.baseInfo.middle_sort_name}${resu.baseInfo.product_name}`; // eslint-disable-line
}
if (_.get(result, '[1]')) {
... ...