...
|
...
|
@@ -429,7 +429,7 @@ var goodsgird = new common.grid({ |
|
|
item.images_url = common.util.__joinImg("goodsimg", item.images_url);
|
|
|
}
|
|
|
else {
|
|
|
item.images_url = "";
|
|
|
item.images_url =common.util.__joinImg("goodsimg", item.default_images);
|
|
|
}
|
|
|
return "<img width=120 height=60 src='" + item.images_url + "?imageView/2/w/100/h/100'/>";
|
|
|
}
|
...
|
...
|
@@ -524,9 +524,17 @@ $(document).on("click", ".goodsSelectBtn", function () { |
|
|
});
|
|
|
//删除图片按钮
|
|
|
$(document).on("click", ".removepic", function() {
|
|
|
Bll.module.contentData.data.splice($(this).data("index"), 1);
|
|
|
$("#goodspic").html(common.util.__template2($("#template_dialog_goodsimgs").html(), {
|
|
|
datas: Bll.module.contentData.data
|
|
|
var $parent=$(this).parents("ul.imagegroup");
|
|
|
var i=$parent.data("i");
|
|
|
var isg=typeof i==="number"?true:false;
|
|
|
if(isg){
|
|
|
Bll.module.contentData.data[i].list.splice($(this).data("index"), 1);
|
|
|
}else{
|
|
|
Bll.module.contentData.data.splice($(this).data("index"), 1);
|
|
|
}
|
|
|
|
|
|
$parent.html(common.util.__template2($("#template_dialog_goodsimgs").html(), {
|
|
|
datas: isg?Bll.module.contentData.data[i].list:Bll.module.contentData.data
|
|
|
}));
|
|
|
});
|
|
|
|
...
|
...
|
@@ -772,3 +780,4 @@ $(document).on("mouseover",".dragItem",function(){ |
|
|
$(document).on("mouseleave",".dragItem",function(){
|
|
|
new common.drag("#add-content").destroy();
|
|
|
});
|
|
|
|
...
|
...
|
|