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

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

@@ -691,18 +691,22 @@ var app = new Vue({
                         var timestamp = Date.parse(new Date());
                         e.name = timestamp + ".png";
                         url = URL.createObjectURL(e);
+                        alert(55);
                         if(_this.cropParams.type && id>=0){
                             _this.picList[id] = _this.cropParams;
                             _this.picList[id].url = url;
                             _this.picList[id].preview = url;
-                            _this.picList[id].fileData = _this.dataBlobtoFile(e, e.name);
+                            alert(56);
                         }else{
+                            // _this.picList[id].fileData = _this.dataBlobtoFile(e, e.name);
+                            alert(57);
                             var data = _this.cropParams;
                             data.url = url;
                             data.preview = url;
-                            data.fileData = _this.dataBlobtoFile(e, e.name);
+                            // data.fileData = _this.dataBlobtoFile(e, e.name);
                             _this.picList.push(data);
                         }
+                        alert(58);
 
                         setTimeout(function () {
                             $.closePopup();