无故事王国
2023-11-29 93783809cfb18ae273bd3a78c8dbca91facd10d9
WanPai/Root/Course/VC/CourseExerciseSubListVC.swift
@@ -10,6 +10,8 @@
import RxSwift
import RxRelay
let CourseExercise_Noti = Notification.Name.init("CourseExercise_Noti")
class CourseExerciseViewModel:RefreshModel<ExerciseVideoModel>{
    let courseTypeId = BehaviorRelay<Int?>(value: nil)
    let search = BehaviorRelay<String>(value: "")
@@ -56,6 +58,12 @@
//        tableView.jq_setEmptyView()
    }
   override func setRx() {
      NotificationCenter.default.rx.notification(CourseExercise_Noti).take(until: self.rx.deallocated).subscribe(onNext: {[weak self] noti in
         self?.viewModel.beginRefresh()
      }).disposed(by: disposeBag)
   }
    @IBAction func searchAction(_ sender: UIButton) {
        tf_search.resignFirstResponder()