wesmiler 6 سال پیش
والد
کامیت
8de986b6ea
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      public/static/weixin/js/photo.js

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

@@ -487,8 +487,7 @@ var app = new Vue({
             var iWidth = $("body").outerWidth();
             var iHeight = $("body").height()-130;
             $image = $("#cropImg");
-            alert(iWidth+'++'+iHeight);
-            console.log(iWidth+'++'+iHeight);
+
             var cropWidth = $('body').width();
             $("#cropBox").popup();
             _this.options = {
@@ -667,12 +666,13 @@ var app = new Vue({
                 $image = $("#cropImg");
                 alert(32)
                 // var canvas = $image.cropper('getCroppedCanvas');
+                alert(JSON.stringify(_this.cropParams.cropData))
                 var canvas = $image.cropper('getCroppedCanvas',_this.cropParams.cropData);
 
                 var url = canvas.toDataURL('image/jpeg');
                 var timestamp = Date.parse(new Date());
                 var name = timestamp + ".jpg";
-                alert(url)
+         
                 if(_this.cropParams.type>0 && id>=0){
                     alert(34)
                     _this.picList[id] = _this.cropParams;