...
|
...
|
@@ -206,8 +206,8 @@ common.edit.ajaxfileupload("#fenmianfile",{ |
|
|
"genderCover": 0,
|
|
|
"imageUrl": response.data,
|
|
|
"orderBy": item.length,
|
|
|
"productSkc": goodsImagesList.productSkc,
|
|
|
"productSkn": goodsImagesList.productSkn,
|
|
|
"productSkc": goodsImagesList[$(this).data("index")].productSkc,
|
|
|
"productSkn": goodsImagesList[$(this).data("index")].productSkn,
|
|
|
"__index":item.length,
|
|
|
"index":$(this).data("index")
|
|
|
};
|
...
|
...
|
@@ -244,6 +244,30 @@ $(document).on("click",".goods-color a",function(){ |
|
|
item.isDefault=$(this).hasClass("info")?"Y":"N";
|
|
|
});
|
|
|
$(document).on("click","#fenMainSave",function(){
|
|
|
var map={
|
|
|
goodsImagesBoList:[]
|
|
|
};
|
|
|
$.each(goodsImagesList,function(index,item){
|
|
|
if(item.isDefault=="Y"){
|
|
|
map.productSkc=item.productSkc;
|
|
|
map.productSkn=item.productSkn;
|
|
|
}
|
|
|
$.each(item.goodsImagesList,function(_index,_item){
|
|
|
_item.orderBy=_index;
|
|
|
map.goodsImagesBoList.push(_item);
|
|
|
});
|
|
|
});
|
|
|
map.goodsImagesBoList=JSON.stringify(map.goodsImagesBoList);
|
|
|
common.util.__ajax({
|
|
|
url:'/netSale/manageProductImg',
|
|
|
data:{"goodsImagesReq":JSON.stringify(map)}
|
|
|
},function(data){
|
|
|
console.log(data);
|
|
|
});
|
|
|
return false;
|
|
|
});
|
|
|
|
|
|
GOLABDATA.on("weiqingting",function(){
|
|
|
|
|
|
});
|
|
|
|
...
|
...
|
|