Authored by ZhongW

多类型

@@ -23,7 +23,10 @@ if (window.NETSALEDATA && window.NETSALEDATA.baseProductInfo && window.NETSALEDA @@ -23,7 +23,10 @@ if (window.NETSALEDATA && window.NETSALEDATA.baseProductInfo && window.NETSALEDA
23 /*商品描述*/ 23 /*商品描述*/
24 window.UMdescriptioner = UM.getEditor('edit-descriptioner'); 24 window.UMdescriptioner = UM.getEditor('edit-descriptioner');
25 if (window.NETSALEDATA && window.NETSALEDATA.productExtBo.productDesc && window.NETSALEDATA.productExtBo.productDesc) { 25 if (window.NETSALEDATA && window.NETSALEDATA.productExtBo.productDesc && window.NETSALEDATA.productExtBo.productDesc) {
26 - var reg1=new RegExp(".jpg","g"); 26 + var reg_jpg=new RegExp(".jpg","g");
  27 + var reg_png=new RegExp(".png","g");
  28 + var reg_gif=new RegExp(".gif","g");
  29 + window.NETSALEDATA.productExtBo.productDesc = window.NETSALEDATA.productExtBo.productDesc.replace(reg_jpg,'.jpg?imageView2/0/q/75').replace(reg_png,'.png?imageView2/0/q/75').replace(reg_gif,'.gif?imageView2/0/q/75');
27 window.NETSALEDATA.productExtBo.productDesc = window.NETSALEDATA.productExtBo.productDesc.replace(reg1,'.jpg?imageView2/0/q/75'); 30 window.NETSALEDATA.productExtBo.productDesc = window.NETSALEDATA.productExtBo.productDesc.replace(reg1,'.jpg?imageView2/0/q/75');
28 UMdescriptioner.setContent(window.NETSALEDATA.productExtBo.productDesc) 31 UMdescriptioner.setContent(window.NETSALEDATA.productExtBo.productDesc)
29 }; 32 };