Authored by 李靖

mip字段修改

... ... @@ -216,7 +216,6 @@ const detailIndex = (req, res, next) => {
currentHref: `https://m.yohobuy.com/guang/${id}.html`
},
showAnaJson: {
addBaiduSite: false,
title: `${detail.getArticle.article_title} | Yoho!Buy有货 | 潮流购物逛不停`,
publishTime: mipPublishTime,
pic: mipPic,
... ...
... ... @@ -15,7 +15,6 @@ exports.index = (req, res, next) => {
let detailData = yield req.ctx(productDetailModel).index(params);
let mipPic = _.get(detailData, 'baseInfo.goods_list[0].images_list[0].image_url');
let mipId = _.get(detailData, 'baseInfo.product_skn');
let mipDes = _.get(detailData, 'baseInfo.phrase');
let miptitle = _.get(detailData, 'baseInfo.product_name');
... ... @@ -28,14 +27,11 @@ exports.index = (req, res, next) => {
currentHref: `https://m.yohobuy.com/product/${detailData.baseInfo.product_skn}.html`
},
showAnaJson: {
mipsite: false,
miptitle: `${miptitle} | Yoho!Buy有货 | 潮流购物逛不停`,
mipId: mipId,
mipPublishTime: '',
mipPic: mipPic,
mipDes: mipDes,
mipUrl: `${req.protocol}://m.yohobuy.com${req.originalUrl}`,
miphtml: `${req.protocol}://m.yohobuy.com/mip/product/${mipId}.html`
url: `${req.protocol}://m.yohobuy.com${req.originalUrl}`,
title: `${miptitle} | Yoho!Buy有货 | 潮流购物逛不停`,
pic: mipPic,
des: mipDes,
publishTime: ''
}
}, detailData));
})().catch(next);
... ...
... ... @@ -152,8 +152,7 @@ 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}`;
resu.title = `【${resu.baseInfo.brand_info.brand_name}${resu.baseInfo.middle_sort_name}${resu.baseInfo.product_name}`; // eslint-disable-line
}
if (_.get(result, '[1]')) {
... ...