es-code">
override func viewDidLoad() {
super.viewDidLoad()
+ title = "意见反馈"
textView.placeholder = "您的建议是我们前进的动力"
- configurationRx()
- }
-
- func configurationRx() {
-
+ bindTextViewToSendBtn()
}
@IBAction func sendFeedBack() {
-// viewModel.submit(content)
+ feedbackAPI.submit(text: textView.text).subscribe(onCompleted: {[weak self] in
+ guard let `self` = self else { return }
+ self.popController()
+ Toast.show(message: "感谢您的建议")
+ }) { (error) in
+
+ }.disposed(by: disposeBag)
}
@IBAction func tap() {