소스 검색

1.修改卡点信息

wenweiwei 3 년 전
부모
커밋
eb4f7657f3
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 3
      BFFramework/Classes/Stuckpoint/Controller/PQStuckPointMaterialController.swift

+ 4 - 3
BFFramework/Classes/Stuckpoint/Controller/PQStuckPointMaterialController.swift

@@ -312,9 +312,9 @@ public class PQStuckPointMaterialController: PQBaseViewController {
         selectedImageDataCount = imageCount
         confirmBtn.isSelected = (selectedDataCount > 0 && (imageCount >= 2 || selectedDataCount > imageCount))
         if confirmBtn.isSelected {
-            confirmBtn.backgroundColor = UIColor.hexColor(hexadecimal: "#EE0051")
+            confirmBtn.backgroundColor = UIColor.hexColor(hexadecimal: PQBFConfig.shared.styleColor.rawValue)
         } else {
-            confirmBtn.backgroundColor = UIColor.hexColor(hexadecimal: "#333333")
+            confirmBtn.backgroundColor = PQBFConfig.shared.otherTintColor
         }
         if selectedDataCount <= 0 {
             bottomRemindLab.attributedText = NSAttributedString(string: "至少选择 1 个视频或 2 张照片")
@@ -323,10 +323,11 @@ public class PQStuckPointMaterialController: PQBaseViewController {
             bottomRemindLab.attributedText = att
         } else {
             let att = NSMutableAttributedString(string: "素材总时长 \(totalDuration.formatDurationToHMS())")
-            att.setAttributes([.foregroundColor: UIColor.hexColor(hexadecimal: "#EE0051")], range: NSRange(location: 6, length: "\(totalDuration.formatDurationToHMS())".count))
+            att.setAttributes([.foregroundColor: UIColor.hexColor(hexadecimal: PQBFConfig.shared.styleColor.rawValue)], range: NSRange(location: 6, length: "\(totalDuration.formatDurationToHMS())".count))
             bottomRemindLab.attributedText = att
         }
         confirmBtn.setTitle(selectedDataCount > 0 ? "确定(\(selectedDataCount))" : "确定", for: .normal)
+
     }
 
     /// 处理已经选择的数据