wesmiler 6 年之前
父节点
当前提交
87ae99358a
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      public/static/weixin/js/photo.js

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

@@ -523,9 +523,10 @@ var app = new Vue({
                         var height = data.height;
                         var height = data.height;
                     }
                     }
                     _this.cropParams.cropData = {
                     _this.cropParams.cropData = {
-                        width: iWidth * 20,
-                        height: iHeight * 20,
+                        width: data.width,
+                        height: data.height,
                         rotate: data.rotate,
                         rotate: data.rotate,
+                        imageSmoothingQuality: 'height',
                         fillColor: '#fff',
                         fillColor: '#fff',
                     };
                     };
                 }
                 }