| | |
| | | tableView.delegate = self |
| | | tableView.dataSource = self |
| | | tableView.register(cellName: "TaxiOrderListCell", identifier: "item") |
| | | tableView.register(cellName: "OrderReviewTCell", identifier: "_OrderReviewTCell") |
| | | } |
| | | |
| | | //MARK: - Rx |
| | |
| | | } |
| | | |
| | | func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { |
| | | |
| | | if viewModel.type.value == .offical{ |
| | | let cell = tableView.dequeueReusableCell(withIdentifier: "_OrderReviewTCell") as! OrderReviewTCell |
| | | cell.taxiOrderModel = viewModel.dataSource.value[indexPath.row] |
| | | cell.selectionStyle = .none |
| | | return cell |
| | | } |
| | | |
| | | let cell = tableView.dequeueReusableCell(withIdentifier: "item", for: indexPath) as! TaxiOrderListCell |
| | | cell.configure(model: viewModel.dataSource.value[indexPath.row]) |
| | | cell.selectionStyle = .none |