Showing
1 changed file
with
3 additions
and
2 deletions
@@ -1123,14 +1123,15 @@ const _getDetailDataBySizeInfo = (sizeInfo) => { | @@ -1123,14 +1123,15 @@ const _getDetailDataBySizeInfo = (sizeInfo) => { | ||
1123 | '<img src=': '<img class="lazy" src="data:image/gif;base64,R0lGODlhAQABAJEAAAAAAP///93d3f' + | 1123 | '<img src=': '<img class="lazy" src="data:image/gif;base64,R0lGODlhAQABAJEAAAAAAP///93d3f' + |
1124 | '///yH5BAEAAAMALAAAAAABAAEAAAICVAEAOw==" data-original=', | 1124 | '///yH5BAEAAAMALAAAAAABAAEAAAICVAEAOw==" data-original=', |
1125 | '<img border="0" src=': '<img border="0" class="lazy" src="data:image/gif;base64,R0lGODlhAQABAJEAAAAAAP' + | 1125 | '<img border="0" src=': '<img border="0" class="lazy" src="data:image/gif;base64,R0lGODlhAQABAJEAAAAAAP' + |
1126 | - '///93d3f///yH5BAEAAAMALAAAAAABAAEAAAICVAEAOw==" data-original=' | 1126 | + '///93d3f///yH5BAEAAAMALAAAAAABAAEAAAICVAEAOw==" data-original=', |
1127 | + '.jpg': '.jpg?imageView2/0/q/90' | ||
1127 | }; | 1128 | }; |
1128 | 1129 | ||
1129 | let intro = _.get(sizeInfo, 'productIntroBo.productIntro', ''); | 1130 | let intro = _.get(sizeInfo, 'productIntroBo.productIntro', ''); |
1130 | 1131 | ||
1131 | // 详情配图 | 1132 | // 详情配图 |
1132 | _(replacePairs).forEach((value, key)=> { | 1133 | _(replacePairs).forEach((value, key)=> { |
1133 | - intro = _.replace(intro, key, value); | 1134 | + intro = _.replace(intro, new RegExp(key, 'gm'), value); |
1134 | }); | 1135 | }); |
1135 | 1136 | ||
1136 | details += intro; | 1137 | details += intro; |
-
Please register or login to post a comment