harry 3 tahun lalu
induk
melakukan
ea7fcc2090

+ 11 - 5
BFRecordScreenKit/Classes/RecordScreen/Controller/BFRecordScreenController.swift

@@ -132,11 +132,12 @@ public class BFRecordScreenController: BFBaseViewController {
     lazy var progreddL: UILabel = {
         let l = UILabel()
         l.textAlignment = .center
-        l.font = UIFont.systemFont(ofSize: 13)
+        l.font = UIFont.systemFont(ofSize: 13, weight: .medium)
         l.textColor = .white
-        l.shadowColor = .black
-        l.shadowOffset = CGSize(width: 0, height: 1)
-        l.layer.opacity = 0.4
+        l.layer.shadowOpacity = 0.4
+        l.layer.shadowColor = UIColor.black.cgColor
+        l.layer.shadowOffset = CGSize(width: 0, height: 2)
+        l.layer.shadowRadius = 2
         l.text = "00:00"
         return l
     }()
@@ -781,7 +782,7 @@ public class BFRecordScreenController: BFBaseViewController {
         progreddL.snp.makeConstraints { make in
             make.width.equalTo(100)
             make.centerX.equalToSuperview()
-            make.top.equalToSuperview().offset(-8)
+            make.top.equalToSuperview().offset(-5)
             make.height.equalTo(18)
         }
 
@@ -974,6 +975,11 @@ public class BFRecordScreenController: BFBaseViewController {
                 }
                 /// 重绘录音进度视图
                 resetAllIndirectionView()
+                
+                // 判断是否无录音了
+                if itemModels[currItemModelIndex].materialDuraion == 0 {
+                    playBtn.isSelected = false
+                }
             }
             searchStopAtRecordRange()
             changeWithDrawBtnLayout(3)