12345678910111213141516171819202122232425262728293031323334 |
- //
- // DRShareInfoModel.m
- // YouHuiProject
- //
- // Created by 小花 on 2019/1/3.
- // Copyright © 2019年 kuxuan. All rights reserved.
- //
- #import "DRShareInfoModel.h"
- @implementation DRShareInfoModel
- +(DRShareInfoModel*)createShareGoodsModelByShareGoodsTempModel:(DRShareGoodsTempModel *)tempModel{
- DRShareInfoModel *model=[[DRShareInfoModel alloc]init];
- //券价格
- model.coupon_price=[NSString stringWithFormat:@"%.2lf",[tempModel.coupon_price floatValue]];
- //券后价
- model.discount_price=[NSString stringWithFormat:@"%.2lf",[tempModel.discount_price floatValue]];
- //图片地址
- model.img=tempModel.img;
-
-
-
- model.is_coupon = [NSNumber numberWithInteger:model.is_coupon.integerValue];
-
- model.price=[NSString stringWithFormat:@"%.2lf",[tempModel.price floatValue]];
- model.shop_type = tempModel.shop_type;
- model.title=tempModel.title;
- model.tkl=tempModel.tkl;
- model.url=tempModel.url;
- return model;
- }
- @end
|