|
@@ -214,6 +214,8 @@ public class PQStuckPointMaterialController: PQBaseViewController {
|
|
view.insertSubview(materialListView, belowSubview: bottomRemindView)
|
|
view.insertSubview(materialListView, belowSubview: bottomRemindView)
|
|
|
|
|
|
PQEventTrackViewModel.baseReportUpload(businessType: .bt_windowView, objectType: .ot_view_selectSyncedUpMaterial, pageSource: .sp_stuck_selectMaterial, extParams: nil, remindmsg: "卡点视频数据上报-(曝光上报:卡点视频素材选择页)")
|
|
PQEventTrackViewModel.baseReportUpload(businessType: .bt_windowView, objectType: .ot_view_selectSyncedUpMaterial, pageSource: .sp_stuck_selectMaterial, extParams: nil, remindmsg: "卡点视频数据上报-(曝光上报:卡点视频素材选择页)")
|
|
|
|
+
|
|
|
|
+ addNotification(self, selector: #selector(dismissVc), name: cFinishedPublishedNotiKey, object: nil)
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -267,6 +269,19 @@ public class PQStuckPointMaterialController: PQBaseViewController {
|
|
PQEventTrackViewModel.baseReportUpload(businessType: .bt_buttonClick, objectType: .ot_click_back, pageSource: .sp_stuck_selectMaterial, extParams: nil, remindmsg: "卡点视频数据上报-(点击上报:返回按钮)")
|
|
PQEventTrackViewModel.baseReportUpload(businessType: .bt_buttonClick, objectType: .ot_click_back, pageSource: .sp_stuck_selectMaterial, extParams: nil, remindmsg: "卡点视频数据上报-(点击上报:返回按钮)")
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+ @objc func dismissVc() {
|
|
|
|
+ DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 0.5) {[weak self] in
|
|
|
|
+ if self?.isPresent ?? false {
|
|
|
|
+ self?.dismiss(animated: true, completion: nil)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ deinit {
|
|
|
|
+ PQNotification.removeObserver(self)
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -279,10 +294,6 @@ public class PQStuckPointMaterialController: PQBaseViewController {
|
|
changeCollecBtn.imagePosition(at: .right, space: cDefaultMargin / 2)
|
|
changeCollecBtn.imagePosition(at: .right, space: cDefaultMargin / 2)
|
|
photoMaterialVc.assetCollection = seletedData?.assetCollection
|
|
photoMaterialVc.assetCollection = seletedData?.assetCollection
|
|
photoMaterialVc.msgType = photoMaterialVc.msgType
|
|
photoMaterialVc.msgType = photoMaterialVc.msgType
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -294,29 +305,13 @@ public class PQStuckPointMaterialController: PQBaseViewController {
|
|
confirmBtn.isSelected = (selectedDataCount > 0 && (imageCount >= 2 || selectedDataCount > imageCount))
|
|
confirmBtn.isSelected = (selectedDataCount > 0 && (imageCount >= 2 || selectedDataCount > imageCount))
|
|
if confirmBtn.isSelected {
|
|
if confirmBtn.isSelected {
|
|
confirmBtn.backgroundColor = UIColor.hexColor(hexadecimal: PQBFConfig.shared.styleColor.rawValue)
|
|
confirmBtn.backgroundColor = UIColor.hexColor(hexadecimal: PQBFConfig.shared.styleColor.rawValue)
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
} else {
|
|
} else {
|
|
confirmBtn.backgroundColor = PQBFConfig.shared.otherTintColor
|
|
confirmBtn.backgroundColor = PQBFConfig.shared.otherTintColor
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
if selectedDataCount <= 0 {
|
|
if selectedDataCount <= 0 {
|
|
bottomRemindLab.attributedText = NSAttributedString(string: "至少选择 1 个视频或 2 张照片")
|
|
bottomRemindLab.attributedText = NSAttributedString(string: "至少选择 1 个视频或 2 张照片")
|
|
} else if selectedImageDataCount == 1, selectedDataCount == selectedImageDataCount {
|
|
} else if selectedImageDataCount == 1, selectedDataCount == selectedImageDataCount {
|
|
let att = NSMutableAttributedString(string: "至少选择 1 个视频或 2 张照片")
|
|
let att = NSMutableAttributedString(string: "至少选择 1 个视频或 2 张照片")
|
|
-
|
|
|
|
bottomRemindLab.attributedText = att
|
|
bottomRemindLab.attributedText = att
|
|
} else {
|
|
} else {
|
|
let att = NSMutableAttributedString(string: "素材总时长 \(totalDuration.formatDurationToHMS())")
|
|
let att = NSMutableAttributedString(string: "素材总时长 \(totalDuration.formatDurationToHMS())")
|
|
@@ -326,32 +321,6 @@ public class PQStuckPointMaterialController: PQBaseViewController {
|
|
confirmBtn.setTitle(selectedDataCount > 0 ? "确定(\(selectedDataCount))" : "确定", for: .normal)
|
|
confirmBtn.setTitle(selectedDataCount > 0 ? "确定(\(selectedDataCount))" : "确定", for: .normal)
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- func adjustPhotoMaterialFrame(isHidden _: Bool = true) {
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- func updateMaterialHeadFrame(contentOffset _: CGPoint) {
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
|
|
func dealWithSelectedMaterials(isDissmiss: Bool, isChose: Bool, materialData: PQEditVisionTrackMaterialsModel?) {
|
|
func dealWithSelectedMaterials(isDissmiss: Bool, isChose: Bool, materialData: PQEditVisionTrackMaterialsModel?) {
|