Commit 2c55aac944ccca0c1e9ce3a3434c49a92205ecfa

Authored by liushiyu
1 parent c6cb41cb

添加等待按钮显示

metaCode/Classes/Main/MinePage/Controller/CNLiveInputFeedBackViewController.swift
... ... @@ -215,9 +215,9 @@ class CNLiveInputFeedBackViewController: CNLiveBaseViewController, UITextViewDel
215 215 @objc func sendInfoActionMothod() {
216 216 sendButton.startAnimating()
217 217 CNLiveMineViewModel.requestFeedBack(text: p_textView.text ?? "", contactWay: UserInfoManager.shared.userInfo.mobile, images: imageUrlArray) { [self] type, result in
  218 + sendButton.stopAnimating()
218 219 if result {
219 220 showMessage(message: "内容提交成功")
220   - sendButton.stopAnimating()
221 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 175 static func requestFeedBack(text: String,contactWay: String,images: NSMutableArray,resultBlock: @escaping resultBlock) {
176 176 if (text.count == 0) {
177 177 showMessage(message: "反馈内容不能为空")
  178 + resultBlock(.other,false)
178 179 return
179 180 }
180 181 images.remove("")
... ...