|
@@ -343,7 +343,7 @@ $(document).on('click', '.btn-use-img', function() { |
|
@@ -343,7 +343,7 @@ $(document).on('click', '.btn-use-img', function() { |
343
|
var data = res.data;
|
343
|
var data = res.data;
|
344
|
var imgHtml = '';
|
344
|
var imgHtml = '';
|
345
|
|
345
|
|
346
|
- if (res.code == 200 && data.list instanceof Array) {
|
346
|
+ if (res.code == 200 && data.list instanceof Array && data.list[0].pictureBoList instanceof Array) {
|
347
|
$.each(data.list[0].pictureBoList, function(i, value) {
|
347
|
$.each(data.list[0].pictureBoList, function(i, value) {
|
348
|
imgHtml += '<img class="use-img" src="' + value.fileName + '" alt="" width="100" height="140" data-index="' + index + '" style="cursor:pointer;margin: 0 0 10px 10px;" />';
|
348
|
imgHtml += '<img class="use-img" src="' + value.fileName + '" alt="" width="100" height="140" data-index="' + index + '" style="cursor:pointer;margin: 0 0 10px 10px;" />';
|
349
|
});
|
349
|
});
|