|
@@ -256,26 +256,32 @@ class PQStuckPointPublicController: PQBaseViewController {
|
|
|
|
|
|
|
|
|
override func backBtnClick() {
|
|
|
- view.endEditing(true)
|
|
|
- let remindData = PQBaseModel()
|
|
|
- remindData.title = "编辑的内容,将不会被保存"
|
|
|
- let remindView = PQRemindView(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)
|
|
|
- remindView.confirmBtn.setTitleColor(UIColor.hexColor(hexadecimal: "#EE0051"), for: .normal)
|
|
|
- UIApplication.shared.keyWindow?.addSubview(remindView)
|
|
|
- remindView.remindData = remindData
|
|
|
- remindView.remindBlock = { [weak self] item, _ in
|
|
|
- if item.tag == 2 {
|
|
|
- // 取消导出
|
|
|
- if self?.exporter != nil {
|
|
|
- self?.exporter.cancel()
|
|
|
+
|
|
|
+ if(isExportSuccess){
|
|
|
+ navigationController?.popViewController(animated: true)
|
|
|
+ }else{
|
|
|
+ view.endEditing(true)
|
|
|
+ let remindData = PQBaseModel()
|
|
|
+ remindData.title = "编辑的内容,将不会被保存"
|
|
|
+ let remindView = PQRemindView(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)
|
|
|
+ remindView.confirmBtn.setTitleColor(UIColor.hexColor(hexadecimal: "#EE0051"), for: .normal)
|
|
|
+ UIApplication.shared.keyWindow?.addSubview(remindView)
|
|
|
+ remindView.remindData = remindData
|
|
|
+ remindView.remindBlock = { [weak self] item, _ in
|
|
|
+ if item.tag == 2 {
|
|
|
+ // 取消导出
|
|
|
+ if self?.exporter != nil {
|
|
|
+ self?.exporter.cancel()
|
|
|
+ }
|
|
|
+ self?.navigationController?.popViewController(animated: true)
|
|
|
+
|
|
|
}
|
|
|
- self?.navigationController?.popViewController(animated: true)
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
|
|
|
override func viewDidLoad() {
|