Authored by biao

update

@@ -17,7 +17,7 @@ @@ -17,7 +17,7 @@
17 <span class="iconfont">&#xe61f;</span> 17 <span class="iconfont">&#xe61f;</span>
18 </div> 18 </div>
19 <span class="img-up-tip">0/4</span> 19 <span class="img-up-tip">0/4</span>
20 - <span class="warn hide"> 20 + <span class="warn">
21 <span class="iconfont blue">&#xe60d;</span> 21 <span class="iconfont blue">&#xe60d;</span>
22 <span class="blue">最多上传4张照片</span> 22 <span class="blue">最多上传4张照片</span>
23 </span> 23 </span>
@@ -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 }