|
@@ -11,10 +11,10 @@ import Photos
|
|
|
import UIKit
|
|
|
import WechatOpenSDK
|
|
|
import Kingfisher
|
|
|
-import BFCommonKit
|
|
|
+import BFUIKit
|
|
|
import Alamofire
|
|
|
|
|
|
-class PQStuckPointPublicController: PQBaseViewController {
|
|
|
+class PQStuckPointPublicController: BFBaseViewController {
|
|
|
private var isShared: Bool = false // 是否在分享
|
|
|
private var isExportSuccess: Bool = false // 是否导出完成
|
|
|
private var isSaveDraftSuccess: Bool = false // 是否保存草稿完成
|
|
@@ -52,7 +52,7 @@ class PQStuckPointPublicController: PQBaseViewController {
|
|
|
private var exportProgrss = 0
|
|
|
var mStickers: [PQEditVisionTrackMaterialsModel]?
|
|
|
|
|
|
- var remindView: PQRemindView?
|
|
|
+ var remindView: BFRemindView?
|
|
|
// 已经选择标题内容,加一个属性接收 使用有不在主线不能直接使用 titleLabel text
|
|
|
var selectTitle: String = ""
|
|
|
|
|
@@ -460,7 +460,7 @@ class PQStuckPointPublicController: PQBaseViewController {
|
|
|
view.endEditing(true)
|
|
|
let remindData = PQBaseModel()
|
|
|
remindData.title = "编辑的内容,将不会被保存"
|
|
|
- remindView = PQRemindView(frame: CGRect(x: 0, y: 0, width: cScreenWidth, height: cScreenHeigth))
|
|
|
+ remindView = BFRemindView(frame: CGRect(x: 0, y: 0, width: cScreenWidth, height: cScreenHeigth))
|
|
|
remindView?.isBanned = true
|
|
|
remindView?.confirmBtn.setTitle("确认", for: .normal)
|
|
|
remindView?.cancelBtn.setTitleColor(UIColor.hexColor(hexadecimal: "#333333"), for: .normal)
|
|
@@ -1489,7 +1489,7 @@ extension PQStuckPointPublicController {
|
|
|
emptyRemindView.refreshBtn.addCorner(corner: 4)
|
|
|
view.addSubview(emptyRemindView)
|
|
|
|
|
|
-// PQRemindView.showUploadRemindView(title: "上传失败", summary: (msg != nil ? msg! : "视频文件已丢失"), confirmTitle: "立即重试") { [weak self] _, _ in
|
|
|
+// BFRemindView.showUploadRemindView(title: "上传失败", summary: (msg != nil ? msg! : "视频文件已丢失"), confirmTitle: "立即重试") { [weak self] _, _ in
|
|
|
// self?.navigationController?.popToViewController((self?.navigationController?.viewControllers[1])!, animated: true)
|
|
|
// }
|
|
|
}
|
|
@@ -1604,9 +1604,9 @@ extension PQStuckPointPublicController {
|
|
|
|
|
|
// 更新标题或封面
|
|
|
func updateCoverImagegOrTitle() {
|
|
|
- PQLoadingHUB.shared.showHUB(isMode: true)
|
|
|
+ BFLoadingHUB.shared.showHUB(isMode: true)
|
|
|
// SanW - 待修改 -
|
|
|
-// PQLoadingHUB.shared.showHUB(isMode: true)
|
|
|
+// BFLoadingHUB.shared.showHUB(isMode: true)
|
|
|
|
|
|
PQBaseViewModel.ossTempToken { [weak self] response, msg in
|
|
|
let image: UIImage = (self?.uploadData?.image)!
|
|
@@ -1638,15 +1638,15 @@ extension PQStuckPointPublicController {
|
|
|
self?.setTitleText(text: self?.publicTitleView.titles[Int(numberRandom)] ?? "")
|
|
|
self?.updateCoverImagegOrTitle()
|
|
|
sleep(UInt32(1.5))
|
|
|
- PQLoadingHUB.shared.dismissHUB()
|
|
|
+ BFLoadingHUB.shared.dismissHUB()
|
|
|
|
|
|
return
|
|
|
} else {
|
|
|
- PQLoadingHUB.shared.dismissHUB()
|
|
|
+ BFLoadingHUB.shared.dismissHUB()
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
- PQLoadingHUB.shared.dismissHUB()
|
|
|
+ BFLoadingHUB.shared.dismissHUB()
|
|
|
}
|
|
|
})
|
|
|
|