// // KBChildGoodModel.m // YouHuiProject // // Created by 小花 on 2018/1/19. // Copyright © 2018年 kuxuan. All rights reserved. // #import "KBChildGoodModel.h" @implementation KBChildGoodModel +(KBChildGoodModel *)byCommunityDetailModel:(KBCommunityDetailModel *)comModel{ KBChildGoodModel *model=[[KBChildGoodModel alloc]init]; model.goods_id=comModel.goods_id; model.title=comModel.title; //model.intro=comModel.; //商品简介 //model.nick=comModel.ni;//卖家昵称 //model.sellerId=comModel.s; //卖家ID model.img=comModel.img; model.price=comModel.price; //原价 model.discount_price=comModel.discount_price; //折扣价 model.coupon_price=comModel.coupon_price; //优惠价价格 //model.coupon_surplus=comModel.coupon_surp; //优惠券剩余 //model.is_new=comModel.is_n;//是否上新 0 没有 1上新 model.is_coupon=comModel.is_coupon; //是否是购物券 0 不是 1是 //model.volume=comModel.vol; //月销量 //model.freeShipping=comModel.free; //是否包邮 //model.postage=comModel.pos; //邮费 //model.photo=comModel.ph; //月销量 model.shop_type=[comModel.shop_type stringValue]; model.commission_rate=comModel.commission_rate; //佣金比例 model.commission_price=comModel.commission_price;//佣金金额 model.coupon_start_time=comModel.coupon_start_time; model.coupon_end_time=comModel.coupon_end_time; //model.type=comModel.typ; //0代表详情 1是列表 2是广告 model.url=comModel.url; //model.origin=comModel.or; //是否是手排 //model.tags=comModel.tag; //model.cid=comModel.ci; //model.scid=comModel.sc; //model.add_time=comModel.ad;//浏览时间 return model; } @end