...
|
...
|
@@ -59,11 +59,14 @@ const newDetail = { |
|
|
JSON.stringify(appParams) +
|
|
|
'}';
|
|
|
let mipPics = _.map(_.get(result, 'bannerTop.list', []), item => {
|
|
|
return item.img.replace(/\?(.*)/g, "?imageView2/{mode}/w/{width}/h/{height}");
|
|
|
return item.img.replace(/\?(.*)/g, '?imageView2/{mode}/w/{width}/h/{height}');
|
|
|
});
|
|
|
|
|
|
if (mipPics.length <= 0) {
|
|
|
mipPics.push(_.get(result, 'bannerTop.img', '').replace(/\?(.*)/g, "?imageView2/{mode}/w/{width}/h/{height}"));
|
|
|
mipPics.push(_.get(result, 'bannerTop.img', '').replace(
|
|
|
/\?(.*)/g,
|
|
|
'?imageView2/{mode}/w/{width}/h/{height}'
|
|
|
));
|
|
|
}
|
|
|
|
|
|
let title = `【${result.brandName}${result.sortName}】${result.goodsName}|YOHO!BUY 有货`;
|
...
|
...
|
@@ -87,7 +90,7 @@ const newDetail = { |
|
|
isMarsApp: req.yoho.isMarsApp, // 判断mars
|
|
|
showAnaJson: {
|
|
|
miptitle: title,
|
|
|
mipPublishTime: moment.unix(result.shelveTime).format('YYYY-MM-DDTHH:mm:ss'),// mip日期必填
|
|
|
mipPublishTime: moment.unix(result.shelveTime).format('YYYY-MM-DDTHH:mm:ss'), // mip日期必填
|
|
|
mipPics: mipPics.slice(0, 5),
|
|
|
mipDes: description,
|
|
|
mipUrl: `${req.protocol}://m.yohobuy.com/product/${result.productSkn}.html`
|
...
|
...
|
|