| | |
| | | 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 |
| | |
| | | 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() |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |