| | |
| | | } |
| | | |
| | | override func setRx() { |
| | | // NotificationCenter.default.rx.notification(StudentUpdate_Nofi).take(until: self.rx.deallocated).subscribe(onNext: { [weak self] data in |
| | | // guard let weakSelf = self else { return } |
| | | // Services.startCourseHome().subscribe(onNext: {[weak self] data in |
| | | // if let model = data.data{ |
| | | // if model.isThere == 1{ |
| | | // UserDefaults.standard.setValue(model.stuId, forKey: "currentStuId") |
| | | // UserDefaults.standard.synchronize() |
| | | // let courseInfoVC = CourseInfoVC() |
| | | // courseInfoVC.startClouseHomeModel = model |
| | | // let clouseNav = BaseNav(rootViewController: courseInfoVC) |
| | | // clouseNav.tabBarItem = UITabBarItem(title: "玩湃运动营", image: UIImage(named: "tabbar_course"), selectedImage: UIImage(named: "tabbar_course_s")!.withRenderingMode(.alwaysOriginal)) |
| | | // self?.tabBarController?.viewControllers![1] = clouseNav |
| | | // }else{ |
| | | // let courseVC = CourseVC() |
| | | // courseVC.startClouseHomeModel = model |
| | | // let clouseNav = BaseNav(rootViewController: courseVC) |
| | | // clouseNav.tabBarItem = UITabBarItem(title: "玩湃运动营", image: UIImage(named: "tabbar_course"), selectedImage: UIImage(named: "tabbar_course_s")!.withRenderingMode(.alwaysOriginal)) |
| | | // self?.tabBarController?.viewControllers![1] = clouseNav |
| | | // } |
| | | // } |
| | | // }).disposed(by: weakSelf.disposeBag) |
| | | // }).disposed(by: disposeBag) |
| | | |
| | | } |
| | | |
| | | @IBAction func addStudentAction(_ sender: QMUIButton) { |