wesmiler 6 年之前
父節點
當前提交
3e98469be4
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      public/static/weixin/js/photo.js

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

@@ -628,6 +628,8 @@ var app = new Vue({
             var size = data.height<data.width? data.height: data.width;
             var size = data.height<data.width? data.height: data.width;
             var iWidth = $("body").outerWidth();
             var iWidth = $("body").outerWidth();
             var iHeight = $("body").height()-130;
             var iHeight = $("body").height()-130;
+            console.log(data);
+            console.log(size);
             if(size<iWidth){
             if(size<iWidth){
                 var rate = iWidth/size;
                 var rate = iWidth/size;
                 $("#cropImg").cropper("zoom", rate);
                 $("#cropImg").cropper("zoom", rate);