| | |
| | | if indexPath.row == 1{ |
| | | JQ_currentViewController().jq_push(vc: HomeListenFightVC(listenType: .lesson2)) |
| | | } |
| | | |
| | | if indexPath.row == 2{ |
| | | JQ_currentViewController().jq_push(vc: HomeListenFightVC(listenType: .lesson3)) |
| | | } |
| | | |
| | | if indexPath.row == 3{ |
| | | JQ_currentViewController().jq_push(vc: HomeListenFightVC(listenType: .lesson4)) |
| | | } |
| | | |
| | | if indexPath.row == 4{ |
| | | JQ_currentViewController().jq_push(vc: HomeListenFightVC(listenType: .lesson5)) |
| | | } |
| | | |
| | | if indexPath.row == 5{ |
| | | JQ_currentViewController().jq_push(vc: HomeListenFightVC(listenType: .game1)) |
| | | } |
| | | if indexPath.row == 6{ |
| | | JQ_currentViewController().jq_push(vc: HomeListenFightVC(listenType: .game2)) |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | if section == 0{ |
| | | return 1 |
| | | } |
| | | return 5 |
| | | return 8 |
| | | } |
| | | |
| | | func numberOfSections(in tableView: UITableView) -> Int { |
| | | if page <= 5{ |
| | | if page <= 6{ |
| | | return 2 |
| | | } |
| | | return 1 |
| | |
| | | return cell |
| | | }else{ |
| | | let cell = tableView.dequeueReusableCell(withIdentifier: "_HomeListen_item_TCell", for: indexPath) as! HomeListen_item_TCell |
| | | cell.label_title.text = "\(indexPath.row + 1)" |
| | | return cell |
| | | } |
| | | } |