|
@@ -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);
|