Authored by 张孝茹

imgAlt

... ... @@ -68,7 +68,7 @@ const newDetail = {
title: `【${result.brandName}${result.sortName}${result.goodsName}|YOHO!BUY 有货`,
keywords: result.brandName + result.sortName + ',' + result.brandName + result.sortName + '价格,' +
result.brandName + result.sortName + '图片,',
description: result.name + ' 有货网仅售' + result.goodsPrice.currentPrice + '元,购买' +
description: result.goodsName + ' 有货网仅售' + result.goodsPrice.currentPrice + '元,购买' +
result.brandName + result.sortName + ',了解' + result.brandName + result.sortName + '商品信息就上有货网!',
pageFooter: true,
localCss: true,
... ...
... ... @@ -112,10 +112,9 @@ class DetailProcess {
bannerList.push({
img: value.img,
imgAlt: _.get(origin, 'brand_info.brand_name_en', '') + '|' +
_.get(origin, 'brand_info.brand_name_cn', '') + '|' +
(_.get(origin, 'gender', '1') === '1' ? '男' : '女') + '|' +
_.get(origin, 'small_sort_name', '') + '|' + _.get(origin, 'product_name', '')
imgAlt: _.compact([origin.brand_info.brand_name_en, origin.brand_info.brand_name_cn,
(_.get(origin, 'gender', '1') === '1' ? '男' : '女'), origin.small_sort_name,
origin.product_name]).join('|')
});
});
... ...
... ... @@ -237,7 +237,7 @@ exports.processProductList = (list, options) => {
product.seoTitle = `${product.brand_name}|${seoGender}${product.small_sort_name}|${product.product_name}|YOHO!BUY有货`; // eslint-disable-line
product.imgAlt = `${product.brand_name}|${seoGender}${product.small_sort_name}|${product.product_name}`;
product.imgAlt = _.compact([product.brand_name, (product.gender ? GENDER[product.gender] : false), product.small_sort_name, product.product_name]).join('|');
pruductList.push(product);
});
... ...