Authored by 李靖

mip字段修改

@@ -216,7 +216,6 @@ const detailIndex = (req, res, next) => { @@ -216,7 +216,6 @@ const detailIndex = (req, res, next) => {
216 currentHref: `https://m.yohobuy.com/guang/${id}.html` 216 currentHref: `https://m.yohobuy.com/guang/${id}.html`
217 }, 217 },
218 showAnaJson: { 218 showAnaJson: {
219 - addBaiduSite: false,  
220 title: `${detail.getArticle.article_title} | Yoho!Buy有货 | 潮流购物逛不停`, 219 title: `${detail.getArticle.article_title} | Yoho!Buy有货 | 潮流购物逛不停`,
221 publishTime: mipPublishTime, 220 publishTime: mipPublishTime,
222 pic: mipPic, 221 pic: mipPic,
@@ -15,7 +15,6 @@ exports.index = (req, res, next) => { @@ -15,7 +15,6 @@ exports.index = (req, res, next) => {
15 15
16 let detailData = yield req.ctx(productDetailModel).index(params); 16 let detailData = yield req.ctx(productDetailModel).index(params);
17 let mipPic = _.get(detailData, 'baseInfo.goods_list[0].images_list[0].image_url'); 17 let mipPic = _.get(detailData, 'baseInfo.goods_list[0].images_list[0].image_url');
18 - let mipId = _.get(detailData, 'baseInfo.product_skn');  
19 let mipDes = _.get(detailData, 'baseInfo.phrase'); 18 let mipDes = _.get(detailData, 'baseInfo.phrase');
20 let miptitle = _.get(detailData, 'baseInfo.product_name'); 19 let miptitle = _.get(detailData, 'baseInfo.product_name');
21 20
@@ -28,14 +27,11 @@ exports.index = (req, res, next) => { @@ -28,14 +27,11 @@ exports.index = (req, res, next) => {
28 currentHref: `https://m.yohobuy.com/product/${detailData.baseInfo.product_skn}.html` 27 currentHref: `https://m.yohobuy.com/product/${detailData.baseInfo.product_skn}.html`
29 }, 28 },
30 showAnaJson: { 29 showAnaJson: {
31 - mipsite: false,  
32 - miptitle: `${miptitle} | Yoho!Buy有货 | 潮流购物逛不停`,  
33 - mipId: mipId,  
34 - mipPublishTime: '',  
35 - mipPic: mipPic,  
36 - mipDes: mipDes,  
37 - mipUrl: `${req.protocol}://m.yohobuy.com${req.originalUrl}`,  
38 - miphtml: `${req.protocol}://m.yohobuy.com/mip/product/${mipId}.html` 30 + url: `${req.protocol}://m.yohobuy.com${req.originalUrl}`,
  31 + title: `${miptitle} | Yoho!Buy有货 | 潮流购物逛不停`,
  32 + pic: mipPic,
  33 + des: mipDes,
  34 + publishTime: ''
39 } 35 }
40 }, detailData)); 36 }, detailData));
41 })().catch(next); 37 })().catch(next);
@@ -152,8 +152,7 @@ class ProductDetail extends global.yoho.BaseModel { @@ -152,8 +152,7 @@ class ProductDetail extends global.yoho.BaseModel {
152 }); 152 });
153 }); 153 });
154 resu.enterStore = build; 154 resu.enterStore = build;
155 - resu.title = `【${resu.baseInfo.brand_info.brand_name}${resu.baseInfo.middle_sort_name}  
156 - ${resu.baseInfo.product_name}`; 155 + resu.title = `【${resu.baseInfo.brand_info.brand_name}${resu.baseInfo.middle_sort_name}${resu.baseInfo.product_name}`; // eslint-disable-line
157 } 156 }
158 157
159 if (_.get(result, '[1]')) { 158 if (_.get(result, '[1]')) {