Authored by liuyue

封面图调用图片bug fix

... ... @@ -181,7 +181,7 @@ GOLABDATA.on("LYbasicInfo", function() {
data = e.getSubmitData();
data.productSkn = $('#productSkn').val();
data.sellChannels = data.sellChannels.split('|').join(',');
data.shopIds = data.shopIds.split('|').join(',');
data.shopIds = data.shopIds ? data.shopIds.split('|').join(',') : '';
return data;
}
});
\ No newline at end of file
... ...
... ... @@ -343,7 +343,7 @@ $(document).on('click', '.btn-use-img', function() {
var data = res.data;
var imgHtml = '';
if (res.code == 200 && data.list instanceof Array) {
if (res.code == 200 && data.list instanceof Array && data.list[0].pictureBoList instanceof Array) {
$.each(data.list[0].pictureBoList, function(i, value) {
imgHtml += '<img class="use-img" src="' + value.fileName + '" alt="" width="100" height="140" data-index="' + index + '" style="cursor:pointer;margin: 0 0 10px 10px;" />';
});
... ...