es-code">
     override func viewDidLoad() {
25 26
         super.viewDidLoad()
27
+        title = "意见反馈"
26 28
         textView.placeholder = "您的建议是我们前进的动力"
27
-        configurationRx()
28
-    }
29
-    
30
-    func configurationRx() {
31
-        
29
+        bindTextViewToSendBtn()
32 30
     }
33 31
 
34 32
     @IBAction func sendFeedBack() {
35
-//        viewModel.submit(content)
33
+        feedbackAPI.submit(text: textView.text).subscribe(onCompleted: {[weak self] in
34
+            guard let `self` = self else { return }
35
+            self.popController()
36
+            Toast.show(message: "感谢您的建议")
37
+        }) { (error) in
38
+            
39
+        }.disposed(by: disposeBag)
36 40
     }
37 41
 
38 42
     @IBAction func tap() {

Inloggen - Gogs: Go Git Service

Inloggen