Authored by 马力

Merge branch 'hotfix_店铺装修优化'

... ... @@ -199,6 +199,8 @@ function showMain(){
}
});
showEditorIconEvent();
changeImgQuality();
}
//弹窗编辑主流程
function editorIconEvent(title,id){
... ... @@ -1927,3 +1929,16 @@ function addTop20Product(item) {
productTopDataLink(g.__rows);
return true;
}
//图片增加后缀
function changeImgQuality() {
var suffix = '?imageView2/0/q/70';
$("img").each(function () {
var $src = $(this).attr("src");
if($src.indexOf('imageView')==-1){
var src = $src + suffix;
console.log($src);
$(this).attr("src", src);
}
});
}
\ No newline at end of file
... ...
... ... @@ -202,6 +202,7 @@ var Bll = {
curDialogData = null;
curSelectedSkn.length = 0;
Bll._templateRender();
changeImgQuality();
}else{
return false;
}
... ... @@ -295,6 +296,7 @@ Bll.init();
$(document).on("click", "input[name='Platform']", function(){
curPlatform = $("input[name='Platform']:checked").val();
Bll._templateRender();
changeImgQuality();
});
//编辑触发弹层
... ... @@ -333,6 +335,7 @@ $(document).on("click", ".productsTabs .nav-tabs li", function () {
$('.filter').hide();
g2.init(curDialogData.data);
}
changeImgQuality();
});
//选择商品
... ... @@ -377,6 +380,7 @@ $(document).on("click", ".cancelProduct2", function () {
$(this).parent().html('<a href="javascript:" class="btn btn-success btn-xs selectProduct" data-index="'+index+'">选择</a>');
});
changeImgQuality();
//暂存 submitStatus=100
$(document).on("click", "#saveDecoration", function () {
console.log(mainData);
... ... @@ -391,6 +395,7 @@ $(document).on("click", "#saveDecoration", function () {
if(rs.data){
mainData = rs.data;
Bll._templateRender();
changeImgQuality();
}
});
});
... ... @@ -498,3 +503,16 @@ function sortArry(arr,dir){
}
return arr;
}
//图片增加后缀
function changeImgQuality() {
var suffix = '?imageView2/0/q/70';
$("img").each(function () {
var $src = $(this).attr("src");
if($src.indexOf('imageView')==-1){
var src = $src + suffix;
console.log($src);
$(this).attr("src", src);
}
});
}
... ...