宽窄优行-由【嘉易行】项目成品而来
younger_times
2023-06-01 60a5e5d29ea3a7c63bc5acc9052a656821127ab9
OKProject/Class/Order/Controller/TaxiOrderListVC.swift
@@ -46,6 +46,7 @@
        tableView.delegate = self
        tableView.dataSource = self
        tableView.register(cellName: "TaxiOrderListCell", identifier: "item")
        tableView.register(cellName: "OrderReviewTCell", identifier: "_OrderReviewTCell")
    }
    
    //MARK: - Rx
@@ -142,6 +143,14 @@
    }
    
    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