wesmiler 6 лет назад
Родитель
Сommit
07b3b94c1b
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      public/static/weixin/js/photo.js

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

@@ -536,11 +536,11 @@ var app = new Vue({
                         fillColor: '#fff',
                     };*/
                     var rate = 1;
-                    if(data.height >2000 || data.width>2000){
+                    /*if(data.height >2000 || data.width>2000){
                         rate = 0.8;
                     }else if( data.height < 1000 || data.width<1000){
                         rate = 1.5;
-                    }
+                    }*/
 
                     _this.cropParams.cropData = {
                         width: data.width * rate,
@@ -658,11 +658,11 @@ var app = new Vue({
                 $("#cropImg").cropper("zoom", rate);
             }
 
-            $("#cropImg").cropper(_this.options);
+           /* $("#cropImg").cropper(_this.options);
             $("#cropImg").cropper('setData', {
                 width: iWidth,
                 height: height
-            });
+            });*/
         },
         // 确定剪切
         cropConfirm: function () {