Commit 2c55aac944ccca0c1e9ce3a3434c49a92205ecfa
1 parent
c6cb41cb
添加等待按钮显示
Showing
2 changed files
with
2 additions
and
1 deletions
metaCode/Classes/Main/MinePage/Controller/CNLiveInputFeedBackViewController.swift
| @@ -215,9 +215,9 @@ class CNLiveInputFeedBackViewController: CNLiveBaseViewController, UITextViewDel | @@ -215,9 +215,9 @@ class CNLiveInputFeedBackViewController: CNLiveBaseViewController, UITextViewDel | ||
| 215 | @objc func sendInfoActionMothod() { | 215 | @objc func sendInfoActionMothod() { |
| 216 | sendButton.startAnimating() | 216 | sendButton.startAnimating() |
| 217 | CNLiveMineViewModel.requestFeedBack(text: p_textView.text ?? "", contactWay: UserInfoManager.shared.userInfo.mobile, images: imageUrlArray) { [self] type, result in | 217 | CNLiveMineViewModel.requestFeedBack(text: p_textView.text ?? "", contactWay: UserInfoManager.shared.userInfo.mobile, images: imageUrlArray) { [self] type, result in |
| 218 | + sendButton.stopAnimating() | ||
| 218 | if result { | 219 | if result { |
| 219 | showMessage(message: "内容提交成功") | 220 | showMessage(message: "内容提交成功") |
| 220 | - sendButton.stopAnimating() | ||
| 221 | self.navigationController?.popViewController(animated: true) | 221 | self.navigationController?.popViewController(animated: true) |
| 222 | } | 222 | } |
| 223 | } | 223 | } |
metaCode/Classes/Main/MinePage/ViewModel/CNLiveMineViewModel.swift
| @@ -175,6 +175,7 @@ class CNLiveMineViewModel: NSObject { | @@ -175,6 +175,7 @@ class CNLiveMineViewModel: NSObject { | ||
| 175 | static func requestFeedBack(text: String,contactWay: String,images: NSMutableArray,resultBlock: @escaping resultBlock) { | 175 | static func requestFeedBack(text: String,contactWay: String,images: NSMutableArray,resultBlock: @escaping resultBlock) { |
| 176 | if (text.count == 0) { | 176 | if (text.count == 0) { |
| 177 | showMessage(message: "反馈内容不能为空") | 177 | showMessage(message: "反馈内容不能为空") |
| 178 | + resultBlock(.other,false) | ||
| 178 | return | 179 | return |
| 179 | } | 180 | } |
| 180 | images.remove("") | 181 | images.remove("") |