//
//  ProductCollectionPictureCell.m
//  Lighting
//
//  Created by mac on 16/5/18.
//  Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//

#import "ProductCollectionPictureCell.h"

@implementation ProductCollectionPictureCell
-(id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.productImageView =[[UIImageView alloc]initWithFrame:CGRectMake(0, 0, frame.size.width, 2*frame.size.height/3)];
        [self addSubview:self.productImageView];
        //  产品描述
        self.productDesce=[[UILabel alloc]initWithFrame:CGRectMake(0,2*frame.size.height/3, frame.size.width, frame.size.height/6)];
        self.productDesce.text=@"名称描述";
        self.productDesce.textAlignment=NSTextAlignmentCenter;
        [self addSubview: self.productDesce];
      //  产品参数
        self.productParameter=[[UILabel alloc]initWithFrame:CGRectMake(0, 2*frame.size.height/3+ frame.size.height/6, frame.size.width, frame.size.height/6)];
        self.productParameter.textAlignment=NSTextAlignmentCenter;
        [self addSubview: self.productParameter];

        //  产品价格
        self.productPrice=[[UILabel alloc]initWithFrame:CGRectMake(0, 2*frame.size.height/3+ 2*frame.size.height/6, frame.size.width, frame.size.height/6)];
        self.productPrice.textAlignment=NSTextAlignmentCenter;
        [self addSubview: self.productPrice];
        self.productModel=[[TOGoodsEntity alloc]init];
    }
    return self;
}

@end
