宽窄优行-由【嘉易行】项目成品而来
无故事王国
2023-05-25 dc1998fc1ac124f6b9a0e434ccf91103dd936409
OKProject/Class/Home/Controller/TravelCardListVC.swift
@@ -13,7 +13,7 @@
    /// viewModel
    let viewModel = TravelMyCardViewModel()
    init(orderType: Int) {
    init(orderType: OrderType) {
        viewModel.type.accept(orderType)
        super.init(nibName: nil, bundle: nil)
    }
@@ -89,13 +89,13 @@
        cell.contentView.backgroundColor = UIColor(hexString: "#F3F4F5")
        cell.couponListModel = m
        switch viewModel.type.value {
            case 1:cell.titleL.text = "快车/专车"
            case 2:cell.titleL.text = "出租车"
            case 3:cell.titleL.text = "跨城出行"
            case 4:
            case .special:cell.titleL.text = "快车/专车"
            case .taxi:cell.titleL.text = "出租车"
            case .travel:cell.titleL.text = "跨城出行"
            case .cityLogistics:
                cell.titleL.text = "同城物流"
                if m.businessTypes.contains([4,5]){cell.titleL.text = "同城/跨城物流"}
            case 5:
            case .acrossLogistics:
                cell.titleL.text = "跨城物流"
                if m.businessTypes.contains([4,5]){cell.titleL.text = "同城/跨城物流"}
            default:break