Commit abd66f84 authored by pete谢兆麟's avatar pete谢兆麟

添加仅协作订单显示逻辑

parent 0f658328
...@@ -121,11 +121,11 @@ extension YHOrderDetailViewController: UITableViewDelegate, UITableViewDataSourc ...@@ -121,11 +121,11 @@ extension YHOrderDetailViewController: UITableViewDelegate, UITableViewDataSourc
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withClass: YHOrderDetailTableViewCell.self) let cell = tableView.dequeueReusableCell(withClass: YHOrderDetailTableViewCell.self)
cell.dataSource = dataSource[indexPath.row] cell.dataSource = dataSource[indexPath.row]
if indexPath.row > 0 { if model.id != -1 && indexPath.row == 0 {
cell.otherTypeView.isHidden = false cell.otherTypeView.isHidden = false
cell.otherTypeView.image = UIImage(named: "service_my_order")
} else { } else {
cell.otherTypeView.isHidden = false cell.otherTypeView.isHidden = false
cell.otherTypeView.image = UIImage(named: "service_my_order")
} }
cell.cellBlock = {[weak self] model in cell.cellBlock = {[weak self] model in
guard let self = self else { return } guard let self = self else { return }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment