12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- //
- // ZBGoodDetailShopView.m
- // ZBProject
- //
- // Created by 学丽 on 2019/3/27.
- // Copyright © 2019 ZB. All rights reserved.
- //
- #import "ZBGoodDetailShopViewCell.h"
- @implementation ZBGoodDetailShopViewCell
- -(instancetype)initWithFrame:(CGRect)frame
- {
- self=[super initWithFrame:frame];
- if (self) {
- self.backgroundColor=[UIColor whiteColor];
- self.shopImg=[[UIImageView alloc]initWithFrame:CGRectMake(10, 11, 47, 47)];
- self.shopImg.backgroundColor=[UIColor lineColor];
- [self addSubview:self.shopImg];
-
- self.shoptitleL=[[UILabel alloc]initWithFrame:CGRectMake(75, 11, SCREEN_WIDTH-100, 20)];
- self.shoptitleL.text=@"---";
- self.shoptitleL.font=[UIFont systemFontOfSize:15];
- self.shoptitleL.textColor=[UIColor YHColorWithHex:0x333333];
- [self addSubview:self.shoptitleL];
-
- self.statusLabel=[[UILabel alloc]initWithFrame:CGRectMake(75, 38, SCREEN_WIDTH-70, 20)];
- self.statusLabel.text=@"---";
- self.statusLabel.font=[UIFont systemFontOfSize:12];
- self.statusLabel.textColor=[UIColor YHColorWithHex:0x999999];
- [self addSubview:self.statusLabel];
- }
- return self;
- }
- -(void)setModel:(ZBShopModel *)model
- {
- _model = model;
- [self.shopImg sd_setImageWithURL:[NSURL URLWithString:model.pic_path]];
- self.shoptitleL.text=model.title;
- self.statusLabel.text=[NSString stringWithFormat:@"店铺描述:%@ 服务态度:%@ 发货速度:%@ ",model.item_score,model.service_score,model.delivery_score];
- }
- @end
|