|
@@ -348,7 +348,7 @@ function bindImgDeleteEvent() { |
|
@@ -348,7 +348,7 @@ function bindImgDeleteEvent() { |
348
|
var number = $(this).closest('.left.right-content').find('.thumb-box').length - 1;
|
348
|
var number = $(this).closest('.left.right-content').find('.thumb-box').length - 1;
|
349
|
|
349
|
|
350
|
$t.text(number + '/4');
|
350
|
$t.text(number + '/4');
|
351
|
- $thumb.siblings('.warn').addClass('hide');
|
351
|
+ $thumb.siblings('.img-upload').show();
|
352
|
$thumb.remove();
|
352
|
$thumb.remove();
|
353
|
});
|
353
|
});
|
354
|
}
|
354
|
}
|
|
@@ -381,13 +381,15 @@ function bindUploadEvent() { |
|
@@ -381,13 +381,15 @@ function bindUploadEvent() { |
381
|
$t.text(n + '/4');
|
381
|
$t.text(n + '/4');
|
382
|
bindImgDeleteEvent();
|
382
|
bindImgDeleteEvent();
|
383
|
|
383
|
|
|
|
384
|
+ if (n >= 4) {
|
|
|
385
|
+ $(that).hide();
|
|
|
386
|
+ }
|
|
|
387
|
+
|
384
|
} else {
|
388
|
} else {
|
385
|
new _alert(result.message).show();
|
389
|
new _alert(result.message).show();
|
386
|
}
|
390
|
}
|
387
|
}
|
391
|
}
|
388
|
});
|
392
|
});
|
389
|
- } else {
|
|
|
390
|
- $(that).siblings('.warn').removeClass('hide');
|
|
|
391
|
}
|
393
|
}
|
392
|
});
|
394
|
});
|
393
|
}
|
395
|
}
|