wesmiler 6 yıl önce
ebeveyn
işleme
4e15ff7b93
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 3 3
      public/static/weixin/js/photo.js

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

@@ -512,7 +512,7 @@ var app = new Vue({
                 minCanvasHeight: iHeight,*/
                 viewMode: 1,
                 ready: function(data){
-                    _this.cropParams.data = data;
+                    // _this.cropParams.data = data;
                     // $image.cropper('setCropBoxData',{width: iWidth, height: iHeight});
                     consoel.log(data);
                 },
@@ -607,10 +607,10 @@ var app = new Vue({
         cropSize: function(){
             var _this = this;
             var data = _this.cropParams.data;
-            var image = new Image();
+            /*var image = new Image();
             image.src = _this.cropParams.url;
             var width = image.width;
-            var height = image.height;
+            var height = image.height;*/
             console.log(image);
             if(data.height<data.width){
                 $("#cropImg").cropper("rotate", 90);