From 62a24b3c7cf92919a93ee575e9460037e1a53816 Mon Sep 17 00:00:00 2001
From: 杨锴 <841720330@qq.com>
Date: 星期四, 07 十一月 2024 19:10:20 +0800
Subject: [PATCH] fix bug

---
 XQMuse/Root/Other/View/ChooseOptTitleView.swift |   23 ++++++++++++++++-------
 1 files changed, 16 insertions(+), 7 deletions(-)

diff --git a/XQMuse/Root/Other/View/ChooseOptTitleView.swift b/XQMuse/Root/Other/View/ChooseOptTitleView.swift
index 6f800e3..31a478f 100644
--- a/XQMuse/Root/Other/View/ChooseOptTitleView.swift
+++ b/XQMuse/Root/Other/View/ChooseOptTitleView.swift
@@ -58,6 +58,22 @@
 								hidden()
 				}
 
+    @IBAction func completeAction(_ sender: UIButton) {
+
+        guard selectIndex != nil else{
+            alertError(msg: "请选择举报内容");return
+        }
+
+        CommonAlertView.show(title: "提示", content: "确认举报该提问?") {[weak self] state in
+            guard let weakSelf = self else { return }
+
+            if state{
+                weakSelf.clouse(weakSelf.items[weakSelf.selectIndex!.row])
+                weakSelf.hidden()
+            }
+        }
+    }
+
 				private func hidden(){
 								cons_bottom.constant = -JQ_ScreenW
 								cons_tableHei.constant = 0
@@ -74,13 +90,6 @@
 				func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
 								selectIndex = indexPath
 								tableView.reloadData()
-
-								CommonAlertView.show(title: "提示", content: "确认举报该提问?") { state in
-												if state{
-																self.clouse(self.items[indexPath.row])
-																self.hidden()
-												}
-								}
 				}
 }
 

--
Gitblit v1.7.1