Showing
1 changed file
with
13 additions
and
3 deletions
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | * @Author: Targaryen | 2 | * @Author: Targaryen |
3 | * @Date: 2016-05-18 10:02:21 | 3 | * @Date: 2016-05-18 10:02:21 |
4 | * @Last Modified by: Targaryen | 4 | * @Last Modified by: Targaryen |
5 | - * @Last Modified time: 2016-05-18 11:07:24 | 5 | + * @Last Modified time: 2016-05-18 11:39:11 |
6 | */ | 6 | */ |
7 | 7 | ||
8 | 'use strict'; | 8 | 'use strict'; |
@@ -223,8 +223,9 @@ const getSizeInfo = (sizeInfo) => { | @@ -223,8 +223,9 @@ const getSizeInfo = (sizeInfo) => { | ||
223 | temp = {}; | 223 | temp = {}; |
224 | temp.img = value.imageUrl; | 224 | temp.img = value.imageUrl; |
225 | temp.desc = value.remark; | 225 | temp.desc = value.remark; |
226 | - dest.materials.list.push(); | 226 | + dest.materials.list.push(temp); |
227 | }); | 227 | }); |
228 | + | ||
228 | } | 229 | } |
229 | 230 | ||
230 | // 洗涤提示 | 231 | // 洗涤提示 |
@@ -251,7 +252,16 @@ const getSizeInfo = (sizeInfo) => { | @@ -251,7 +252,16 @@ const getSizeInfo = (sizeInfo) => { | ||
251 | dest.productDetail.title = '商品详情'; | 252 | dest.productDetail.title = '商品详情'; |
252 | dest.productDetail.enTitle = 'DETAILS'; | 253 | dest.productDetail.enTitle = 'DETAILS'; |
253 | 254 | ||
254 | - // 待开发 | 255 | + dest.productDetail.desc = productIntro.replace(/\r\n\t/g, ''). |
256 | + replace(/<\/p>/g, ''). | ||
257 | + replace(/<img src=/g, '<img class="lazy" src="data:image/gif;' + | ||
258 | + 'base64,R0lGODlhAQABAJEAAAAAAP///93d3f///yH5BAEAAAMALAAAAAABAAEAAAICVAEAOw=="' + | ||
259 | + ' data-original='). | ||
260 | + replace(/<img border="0" src=/g, '<img border="0" class="lazy" ' + | ||
261 | + 'src="data:image/gif;base64,' + | ||
262 | + 'R0lGODlhAQABAJEAAAAAAP///93d3f///yH5BAEAAAMALAAAAAABAAEAAAICVAEAOw=="' + | ||
263 | + ' data-original='). | ||
264 | + replace(/.jpg/g, '.jpg?imageMogr2/thumbnail/750x/quality/90'); | ||
255 | } | 265 | } |
256 | 266 | ||
257 | // 清空变量,释放内存 | 267 | // 清空变量,释放内存 |
-
Please register or login to post a comment