// // XYSkillOrderListCellModel.m // Starbuds // // Created by 翟玉磊 on 2020/11/4. // Copyright © 2020 翟玉磊. All rights reserved. // #import "XYSkillOrderListCellModel.h" @implementation XYSkillOrderListCellModel + (CGFloat)getOrderCellHeightWithModel:(XYSkillOrderListCellModel *)model { CGFloat allHeight = 0; if (model.listType == 1) { // 接单 if (model.orderStatus == XYPeiPeiOrderStatusWaitReceive || model.orderStatus == XYPeiPeiOrderStatusWaitService) { // 待接单、待服务 return 242.0f; }else { return 182.0f; } }else { // 点单 if (model.payStatus == 11 || model.orderStatus == XYPeiPeiOrderStatusInService) { // 待支付、服务中 return 242.0f; }else { return 182.0f; } } return allHeight; } @end