宽窄优行-由【嘉易行】项目成品而来
younger_times
2023-07-05 0d8f5fc8a516bfd07e425909e4a4432600572ee7
OKProject/Class/Order/View/InvoiceMoreViewController.swift
@@ -17,7 +17,7 @@
    @IBOutlet weak var maxmumField: UITextField!
    @IBOutlet weak var orderTypeCollectionView: UICollectionView!
    private var selectIndex = -1
    private var items = ["快车/专车","出租车","跨城出行","跨城小件出行","同城小件物流"]
    private var items = ["快车/专车","出租车","跨城出行","景区直通车","机场专线","公务用车"]
    var viewMoel:InvoiceOrderViewModel?
    var completeClouse:(()->Void)?
    var minDate:Date?
@@ -147,7 +147,18 @@
    func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
        selectIndex = indexPath.row
        collectionView.reloadData()
        viewMoel?.orderType.accept(OrderType(rawValue: indexPath.row + 1))
        var orderType:OrderType = .special
        switch indexPath.row{
            case 0:orderType = .special
            case 1:orderType = .taxi
            case 2:orderType = .travel
            case 3:orderType = .scenic
            case 4:orderType = .plane
            case 5:orderType = .offical
            default:break
        }
        viewMoel?.orderType.accept(orderType)
    }
}