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

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

@@ -469,11 +469,11 @@ var app = new Vue({
 
 
                     _this.cropParams.id = id;
                     _this.cropParams.id = id;
                     _this.cropParams.cropData = {
                     _this.cropParams.cropData = {
-                        width: data.width*20,
+                        /*width: data.width*20,
                         // width: imgWidth*20,
                         // width: imgWidth*20,
                         height: data.height*20,
                         height: data.height*20,
                         // height: imgHeight*20,
                         // height: imgHeight*20,
-                        rotate: data.rotate,
+                        rotate: data.rotate,*/
                         imageSmoothingQuality: 'high',
                         imageSmoothingQuality: 'high',
                         fillColor: '#fff',
                         fillColor: '#fff',
                     };
                     };
@@ -527,7 +527,7 @@ var app = new Vue({
                 $.showLoading('图片处理中...');
                 $.showLoading('图片处理中...');
                 $image = $("#cropImg");
                 $image = $("#cropImg");
                 var id = _this.cropParams.id;
                 var id = _this.cropParams.id;
-                var canvas = $image.cropper('getCroppedCanvas', _this.cropParams.cropData);
+                var canvas = $image.cropper('getCroppedCanvas', );
                 var url = canvas.toBlob(function(e){
                 var url = canvas.toBlob(function(e){
                     //console.log(e);  //生成Blob的图片格式
                     //console.log(e);  //生成Blob的图片格式
                     var timestamp = Date.parse(new Date());
                     var timestamp = Date.parse(new Date());