...
|
...
|
@@ -395,7 +395,27 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
|
|
|
products = nextItem.data;
|
|
|
|
|
|
object.name = item.data.name;
|
|
|
let name = _.get(item, 'data.name', '');
|
|
|
|
|
|
let brandTitle = `${name}品牌`;
|
|
|
_.map(brands, value => {
|
|
|
if (value && value.img) {
|
|
|
!value.alt && (value.alt = brandTitle);
|
|
|
!value.title && (value.title = brandTitle);
|
|
|
}
|
|
|
return value;
|
|
|
});
|
|
|
|
|
|
let productTitle = `${name}商品`;
|
|
|
_.map(products, value => {
|
|
|
if (value && value.img) {
|
|
|
!value.alt && (value.alt = productTitle);
|
|
|
!value.title && (value.title = productTitle);
|
|
|
}
|
|
|
return value;
|
|
|
});
|
|
|
|
|
|
object.name = name;
|
|
|
object.keyword = keyword;
|
|
|
object.category = category;
|
|
|
object.brands = brands;
|
...
|
...
|
|