Mike 7 năm trước cách đây
mục cha
commit
57450d2ad6
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      miaomiao/www/js/services/commonservice.js

+ 4 - 1
miaomiao/www/js/services/commonservice.js

xqd xqd
@@ -140,10 +140,13 @@
                         }
                         VideoEditor.transcodeVideo(
                                   function (res) {
+                                    msg.loading();
                                       ft.upload(res, encodeURI(config.server + "api/attachment/upload"), function (sucess) {
+                                        msg.hide();
                                           deferred.resolve(sucess);
                                           //  alert('上传成功' + JSON.stringify(sucess));
                                       }, function (fail) {
+                                        msg.hide();
                                           deferred.reject(fail);
                                           //alert('上传失败' + JSON.stringify(fail));
                                       }, uploadOptions);
@@ -167,7 +170,7 @@
                                       audioBitrate: 128000, // 128 kilobits
                                       progress: function (info) {
                                           var f=parseFloat(info).toFixed(2)*100;
-                                          msg.text('进度:'+f+'%');
+                                          msg.text(parseInt(f)+'%');
                                       }
                                   }
                               );