...
|
...
|
@@ -493,8 +493,9 @@ GOLABDATA.on("fenmian", function () { |
|
|
}
|
|
|
|
|
|
if (!item.goodsImagesList || item.goodsImagesList == 0) {
|
|
|
errorMsg += '<p>请设置skc:' + item.productSkc + '的封面</p>';
|
|
|
return;
|
|
|
}else {
|
|
|
errorMsg="pass";
|
|
|
}
|
|
|
$.each(item.goodsImagesList, function (_index, _item) {
|
|
|
if (!_item) {
|
...
|
...
|
@@ -506,12 +507,15 @@ GOLABDATA.on("fenmian", function () { |
|
|
});
|
|
|
//if (map.goodsImagesBoList.length == 0) return;
|
|
|
map.goodsImagesBoList = JSON.stringify(map.goodsImagesBoList);
|
|
|
if (errorMsg === '') {
|
|
|
if(typeof(map.productSkc) == "undefined"){
|
|
|
return '<p>请设置商品默认封面</p>';
|
|
|
}
|
|
|
if (errorMsg != '') {
|
|
|
return {
|
|
|
"goodsImagesReq": JSON.stringify(map)
|
|
|
}
|
|
|
} else {
|
|
|
return errorMsg;
|
|
|
return '<p>请设置至少一个skc的封面</p>';
|
|
|
}
|
|
|
|
|
|
}); |
|
|
\ No newline at end of file |
...
|
...
|
|