口袋优选

KBChildGoodModel.m 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //
  2. // KBChildGoodModel.m
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2018/1/19.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "KBChildGoodModel.h"
  9. @implementation KBChildGoodModel
  10. +(KBChildGoodModel *)byCommunityDetailModel:(KBCommunityDetailModel *)comModel{
  11. KBChildGoodModel *model=[[KBChildGoodModel alloc]init];
  12. model.goods_id=comModel.goods_id;
  13. model.title=comModel.title;
  14. //model.intro=comModel.; //商品简介
  15. //model.nick=comModel.ni;//卖家昵称
  16. //model.sellerId=comModel.s; //卖家ID
  17. model.img=comModel.img;
  18. model.price=comModel.price; //原价
  19. model.discount_price=comModel.discount_price; //折扣价
  20. model.coupon_price=comModel.coupon_price; //优惠价价格
  21. //model.coupon_surplus=comModel.coupon_surp; //优惠券剩余
  22. //model.is_new=comModel.is_n;//是否上新 0 没有 1上新
  23. model.is_coupon=comModel.is_coupon; //是否是购物券 0 不是 1是
  24. //model.volume=comModel.vol; //月销量
  25. //model.freeShipping=comModel.free; //是否包邮
  26. //model.postage=comModel.pos; //邮费
  27. //model.photo=comModel.ph; //月销量
  28. model.shop_type=[comModel.shop_type stringValue];
  29. model.commission_rate=comModel.commission_rate; //佣金比例
  30. model.commission_price=comModel.commission_price;//佣金金额
  31. model.coupon_start_time=comModel.coupon_start_time;
  32. model.coupon_end_time=comModel.coupon_end_time;
  33. //model.type=comModel.typ; //0代表详情 1是列表 2是广告
  34. model.url=comModel.url;
  35. //model.origin=comModel.or; //是否是手排
  36. //model.tags=comModel.tag;
  37. //model.cid=comModel.ci;
  38. //model.scid=comModel.sc;
  39. //model.add_time=comModel.ad;//浏览时间
  40. return model;
  41. }
  42. @end