瀏覽代碼

视频返回,发布进度条状态及数值 fixed

Chris 5 年之前
父節點
當前提交
589a712ff0

+ 1 - 1
RainbowPlanet/RainbowPlanet/Modules/CommunityModule/Community/ViewController/Main/CommunityViewController.swift

@@ -307,7 +307,7 @@ class CommunityViewController: BaseViewController {
         SwiftMoyaNetWorkServiceCommunity.shared().communityDeleteApi(postId: postId) {(data) -> (Void) in}
     }
     
-    //选中推荐
+    //选中关注
     func reloadSegmentedFollowView() {
         self.segmentedView.selectItemAt(index: 0)
         self.segmentedView.defaultSelectedIndex = 0

+ 1 - 3
RainbowPlanet/RainbowPlanet/Modules/CommunityModule/CommunityVideoContent/ViewController/CommunityVideoListController.swift

@@ -365,9 +365,7 @@ extension CommunityVideoListController {
     /// 删除帖子
     func communityDeleteApi(postId:Int,row:Int) {
         SwiftMoyaNetWorkServiceCommunity.shared().communityDeleteApi(postId: postId) { [weak self] (data) -> (Void) in
-            self?.videoItemList.remove(at: row)
-            self?.collectionView.reloadData()
-            self?.playFirstVideoWhenViewDidAppeared()
+            self?.navigationController?.popViewController(animated: true)
         }
     }
 }

+ 1 - 1
RainbowPlanet/RainbowPlanet/Modules/PublishModule/PublishManager/PublishUploadManager.swift

@@ -199,8 +199,8 @@ extension PublishUploadManager: AlivcShortVideoUploadManagerDelegate {
         case AlivcUploadStatus.failure:
             DispatchQueue.main.async(execute: {
                 SwiftProgressHUD.shared().showText("上传失败!")
-                print("----------上传失败!")
                 self.isPublishFinished = true
+                self.progressView?.curUploadStatus = .failure
             })
             
         case AlivcUploadStatus.success:

+ 4 - 2
RainbowPlanet/RainbowPlanet/Modules/PublishModule/PublishManager/PublishUploadProgressView.swift

@@ -33,8 +33,10 @@ class PublishUploadProgressView: FWPopupView {
         didSet {
             progressView.setProgress(self.uploadProgress ?? 0, animated: true)
             
-            let proValueStr: String = String(format: "%.0f", self.uploadProgress ?? 0*100)
-            progressLabel.text = "正在上传中(\(proValueStr)%)..."
+            var progressValue: Float = self.uploadProgress ?? 0
+            progressValue = progressValue * 100
+            let proValueStr: String = String(format: "正在上传中%.0f%%", progressValue)
+            progressLabel.text = proValueStr
         }
     }