Showing
1 changed file
with
6 additions
and
3 deletions
@@ -59,11 +59,14 @@ const newDetail = { | @@ -59,11 +59,14 @@ const newDetail = { | ||
59 | JSON.stringify(appParams) + | 59 | JSON.stringify(appParams) + |
60 | '}'; | 60 | '}'; |
61 | let mipPics = _.map(_.get(result, 'bannerTop.list', []), item => { | 61 | let mipPics = _.map(_.get(result, 'bannerTop.list', []), item => { |
62 | - return item.img.replace(/\?(.*)/g, "?imageView2/{mode}/w/{width}/h/{height}"); | 62 | + return item.img.replace(/\?(.*)/g, '?imageView2/{mode}/w/{width}/h/{height}'); |
63 | }); | 63 | }); |
64 | 64 | ||
65 | if (mipPics.length <= 0) { | 65 | if (mipPics.length <= 0) { |
66 | - mipPics.push(_.get(result, 'bannerTop.img', '').replace(/\?(.*)/g, "?imageView2/{mode}/w/{width}/h/{height}")); | 66 | + mipPics.push(_.get(result, 'bannerTop.img', '').replace( |
67 | + /\?(.*)/g, | ||
68 | + '?imageView2/{mode}/w/{width}/h/{height}' | ||
69 | + )); | ||
67 | } | 70 | } |
68 | 71 | ||
69 | let title = `【${result.brandName}${result.sortName}】${result.goodsName}|YOHO!BUY 有货`; | 72 | let title = `【${result.brandName}${result.sortName}】${result.goodsName}|YOHO!BUY 有货`; |
@@ -87,7 +90,7 @@ const newDetail = { | @@ -87,7 +90,7 @@ const newDetail = { | ||
87 | isMarsApp: req.yoho.isMarsApp, // 判断mars | 90 | isMarsApp: req.yoho.isMarsApp, // 判断mars |
88 | showAnaJson: { | 91 | showAnaJson: { |
89 | miptitle: title, | 92 | miptitle: title, |
90 | - mipPublishTime: moment.unix(result.shelveTime).format('YYYY-MM-DDTHH:mm:ss'),// mip日期必填 | 93 | + mipPublishTime: moment.unix(result.shelveTime).format('YYYY-MM-DDTHH:mm:ss'), // mip日期必填 |
91 | mipPics: mipPics.slice(0, 5), | 94 | mipPics: mipPics.slice(0, 5), |
92 | mipDes: description, | 95 | mipDes: description, |
93 | mipUrl: `${req.protocol}://m.yohobuy.com/product/${result.productSkn}.html` | 96 | mipUrl: `${req.protocol}://m.yohobuy.com/product/${result.productSkn}.html` |
-
Please register or login to post a comment