瀏覽代碼

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)
+
     }
 
     /// 处理已经选择的数据