wesmiler 6 år sedan
förälder
incheckning
bcaaa60e59
1 ändrade filer med 9 tillägg och 1 borttagningar
  1. 9 1
      public/static/weixin/js/photo.js

+ 9 - 1
public/static/weixin/js/photo.js

@@ -542,12 +542,20 @@ var app = new Vue({
                         rate = 1.5;
                     }*/
 
-                    _this.cropParams.cropData = {
+                    /*_this.cropParams.cropData = {
                         width: data.width * rate,
                         height: data.height * rate,
                         rotate: data.rotate,
                         imageSmoothingQuality: 'high',
                         fillColor: '#fff',
+                    };*/
+
+                    _this.cropParams.cropData = {
+                        width: 600,
+                        height: 800,
+                        rotate: data.rotate,
+                        imageSmoothingQuality: 'high',
+                        fillColor: '#fff',
                     };
 
                     /*var canvas = $image.cropper('getCroppedCanvas',_this.cropParams.cropData);