...
|
...
|
@@ -406,6 +406,9 @@ $(document).on("click", ".cover-goods .btn-goods-cover", function() { |
|
|
$('.cover-goods .btn-goods-cover').removeClass("info");
|
|
|
$(this).addClass("info");
|
|
|
}
|
|
|
$.each(goodsList, function(i, value) {
|
|
|
value.isDefault = 'N';
|
|
|
});
|
|
|
item.isDefault = $(this).hasClass("info") ? "Y" : "N";
|
|
|
});
|
|
|
|
...
|
...
|
@@ -437,6 +440,7 @@ GOLABDATA.on("fenmian", function() { |
|
|
},
|
|
|
errorMsg = '';
|
|
|
|
|
|
console.log(goodsList);
|
|
|
$.each(goodsList, function(index, item) {
|
|
|
if (item.isDefault == "Y") {
|
|
|
map.productSkc = item.productSkc;
|
...
|
...
|
@@ -454,6 +458,7 @@ GOLABDATA.on("fenmian", function() { |
|
|
});
|
|
|
//if (map.goodsImagesBoList.length == 0) return;
|
|
|
map.goodsImagesBoList = JSON.stringify(map.goodsImagesBoList);
|
|
|
|
|
|
if (errorMsg === '') {
|
|
|
return {
|
|
|
"goodsImagesReq": JSON.stringify(map)
|
...
|
...
|
|