《省钱达人》与《猎豆优选》UI相同版。域名tbk

DRShareInfoModel.m 982B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // DRShareInfoModel.m
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2019/1/3.
  6. // Copyright © 2019年 kuxuan. All rights reserved.
  7. //
  8. #import "DRShareInfoModel.h"
  9. @implementation DRShareInfoModel
  10. +(DRShareInfoModel*)createShareGoodsModelByShareGoodsTempModel:(DRShareGoodsTempModel *)tempModel{
  11. DRShareInfoModel *model=[[DRShareInfoModel alloc]init];
  12. //券价格
  13. model.coupon_price=[NSString stringWithFormat:@"%.2lf",[tempModel.coupon_price floatValue]];
  14. //券后价
  15. model.discount_price=[NSString stringWithFormat:@"%.2lf",[tempModel.discount_price floatValue]];
  16. //图片地址
  17. model.img=tempModel.img;
  18. model.is_coupon = [NSNumber numberWithInteger:model.is_coupon.integerValue];
  19. model.price=[NSString stringWithFormat:@"%.2lf",[tempModel.price floatValue]];
  20. model.shop_type = tempModel.shop_type;
  21. model.title=tempModel.title;
  22. model.tkl=tempModel.tkl;
  23. model.url=tempModel.url;
  24. return model;
  25. }
  26. @end