wesmiler 6 tahun lalu
induk
melakukan
2f2c229494
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      public/static/weixin/js/photo.js

+ 2 - 2
public/static/weixin/js/photo.js

@@ -471,14 +471,14 @@ var app = new Vue({
             // $("#cropImg").remove();
             $(".crop-img").html('<img id="cropImg" src="" alt="" off="">');
             var iWidth = $("body").outerWidth();
-            var iHeight = $(".crop-img").outerHeight();
-            iHeight = iHeight? iHeight : $("body").outerHeight()-130;
+            var iHeight = $("body").outerHeight()-130;
             if(id>=0){
                 $("#cropImg").attr('src', _this.cropParams.old_url);
             }else{
                 $("#cropImg").attr('src', _this.cropParams.url);
             }
             $image = $("#cropImg");
+            alert(iWidth+'++'+iHeight);
             console.log(iWidth+'++'+iHeight);
             var cropWidth = $('body').width();
             $("#cropBox").popup();