Commit 493592d201d5e1f6419d996a0db59152c384baf4
1 parent
b4ba6053
no message
Showing
1 changed file
with
6 additions
and
0 deletions
CNLiveMineModule/Classes/View/CNLiveMineCell.m
| @@ -66,6 +66,12 @@ | @@ -66,6 +66,12 @@ | ||
| 66 | make.bottom.equalTo(self.contentView.mas_bottom).with.offset(-self.model.margin); | 66 | make.bottom.equalTo(self.contentView.mas_bottom).with.offset(-self.model.margin); |
| 67 | 67 | ||
| 68 | }]; | 68 | }]; |
| 69 | + _bgView.layer.masksToBounds = NO; | ||
| 70 | + _bgView.layer.shadowColor = [UIColor blackColor].CGColor; | ||
| 71 | + _bgView.layer.shadowOffset = CGSizeMake(0, 4); //0,0围绕阴影四周 0,4向下有4个像素的偏移 | ||
| 72 | + _bgView.layer.shadowOpacity = 0.1; //设置阴影透明度 | ||
| 73 | + _bgView.layer.shadowRadius = 5; //设置阴影圆角 | ||
| 74 | + | ||
| 69 | switch (model.type) { | 75 | switch (model.type) { |
| 70 | case CNLiveMineCellTypeOrder: | 76 | case CNLiveMineCellTypeOrder: |
| 71 | { | 77 | { |