Authored by yyq

上传图片统计错误

... ... @@ -223,6 +223,11 @@ $refundTable.on('change', '.refund-reason', function() {
upload.up({
callback: function(result) {
if (result && result.code === 200) {
// 避免异步上传导致数量不统一
num = $this.data('num') || 0;
if (num > 3) {
return;
}
$this.siblings('.img-up-tip').text(++num + '/4');
$this.data('num', num);
$this.before(imgFn(result));
... ...