XYSkillOrderListCellModel.m 899 B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // XYSkillOrderListCellModel.m
  3. // Starbuds
  4. //
  5. // Created by 翟玉磊 on 2020/11/4.
  6. // Copyright © 2020 翟玉磊. All rights reserved.
  7. //
  8. #import "XYSkillOrderListCellModel.h"
  9. @implementation XYSkillOrderListCellModel
  10. + (CGFloat)getOrderCellHeightWithModel:(XYSkillOrderListCellModel *)model {
  11. CGFloat allHeight = 0;
  12. if (model.listType == 1) {
  13. // 接单
  14. if (model.orderStatus == XYPeiPeiOrderStatusWaitReceive || model.orderStatus == XYPeiPeiOrderStatusWaitService) {
  15. // 待接单、待服务
  16. return 242.0f;
  17. }else {
  18. return 182.0f;
  19. }
  20. }else {
  21. // 点单
  22. if (model.payStatus == 11 || model.orderStatus == XYPeiPeiOrderStatusInService) {
  23. // 待支付、服务中
  24. return 242.0f;
  25. }else {
  26. return 182.0f;
  27. }
  28. }
  29. return allHeight;
  30. }
  31. @end