| | |
| | | //自主游戏 |
| | | if page == 5{ |
| | | if indexPath.row == 0{ |
| | | JQ_currentViewController().jq_push(vc: HomeListenFightVC(listenType: .game1)) |
| | | let fightVC = HomeListenFightVC(listenType: .game1,quarter: quarter,week: week) |
| | | fightVC.title = ListenType.game1.rawTitle |
| | | JQ_currentViewController().jq_push(vc:fightVC) |
| | | } |
| | | if indexPath.row == 1{ |
| | | JQ_currentViewController().jq_push(vc: HomeListenFightVC(listenType: .game2)) |
| | | Services.gameMemory(quarter: quarter, week: week).subscribe(onNext: {result in |
| | | if let data = result.data{ |
| | | let fightVC = HomeListenFightVC(listenType: .game2) |
| | | fightVC.title = ListenType.game2.rawTitle |
| | | fightVC.data = data |
| | | JQ_currentViewController().jq_push(vc: fightVC) |
| | | } |
| | | }).disposed(by: disposeBag) |
| | | } |
| | | } |
| | | |