Authored by biao

update for exchange img

... ... @@ -302,10 +302,10 @@ function bindConfirmEvent() {
if ($specialReason.length && $specialReason.get(0).style.display === 'block') {
goodObj.remark = $specialReason.find('.right-content').find('.mark-text').val();
$imgs = $specialReason.find('.right-content').find('img');
$imgs = $specialReason.find('.right-content').find('.thumb-box');
$imgs.each(function(idx, img) {
imgs.push(img.src);
imgs.push($(img).data('img'));
});
goodObj.evidence_images = imgs;
... ... @@ -380,10 +380,17 @@ function bindUploadEvent() {
callback: function(result) {
var img;
var $t;
var o;
if (result.code === 200) {
n = parseInt($(that).siblings('.thumb-box').length, 10);
img = imgBoxTpl({src: result.data});
o = {src: result.data};
if (result.imgs && result.imgs.length) {
o.url = result.imgs[0];
}
img = imgBoxTpl(o);
$t = $(that).next('.img-up-tip');
$(that).before(img);
... ...