Authored by 郭成尧

sizeinfo补全

... ... @@ -2,7 +2,7 @@
* @Author: Targaryen
* @Date: 2016-05-18 10:02:21
* @Last Modified by: Targaryen
* @Last Modified time: 2016-05-18 11:07:24
* @Last Modified time: 2016-05-18 11:39:11
*/
'use strict';
... ... @@ -223,8 +223,9 @@ const getSizeInfo = (sizeInfo) => {
temp = {};
temp.img = value.imageUrl;
temp.desc = value.remark;
dest.materials.list.push();
dest.materials.list.push(temp);
});
}
// 洗涤提示
... ... @@ -251,7 +252,16 @@ const getSizeInfo = (sizeInfo) => {
dest.productDetail.title = '商品详情';
dest.productDetail.enTitle = 'DETAILS';
// 待开发
dest.productDetail.desc = productIntro.replace(/\r\n\t/g, '').
replace(/<\/p>/g, '').
replace(/<img src=/g, '<img class="lazy" src="data:image/gif;' +
'base64,R0lGODlhAQABAJEAAAAAAP///93d3f///yH5BAEAAAMALAAAAAABAAEAAAICVAEAOw=="' +
' data-original=').
replace(/<img border="0" src=/g, '<img border="0" class="lazy" ' +
'src="data:image/gif;base64,' +
'R0lGODlhAQABAJEAAAAAAP///93d3f///yH5BAEAAAMALAAAAAABAAEAAAICVAEAOw=="' +
' data-original=').
replace(/.jpg/g, '.jpg?imageMogr2/thumbnail/750x/quality/90');
}
// 清空变量,释放内存
... ...