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();