Commit bc97f64a authored by 勾芒's avatar 勾芒

debug

parent 330971f1
......@@ -281,7 +281,6 @@
NSArray *spacrArray = [weakSelf.selectedCode componentsSeparatedByString:@"到"];
weakSelf.condtionModel.startprice = [NSNumber numberWithInteger:[[spacrArray objectAtIndex_opple:0] integerValue]];
weakSelf.condtionModel.endprice = [NSNumber numberWithInteger:[[spacrArray objectAtIndex_opple:1] integerValue]];
weakSelf.condtionModel.categoryEquals = _selectedCode;
}
break;
......@@ -616,6 +615,13 @@
self.selectedCode = title;
}else
{
self.condtionModel.styleEquals = nil;
self.condtionModel.spaceEquals = nil;
self.condtionModel.categoryEquals = nil;
self.condtionModel.startprice = nil;
self.condtionModel.endprice = nil;
self.condtionModel.materialEqueals = nil;
self.selectedCode = typecode;
}
[self.productCollectionView.mj_header beginRefreshing];
......
......@@ -3477,7 +3477,7 @@
<rect key="frame" x="0.0" y="0.0" width="236" height="210"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" id="Wom-Bb-RIf">
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="登录" id="Wom-Bb-RIf">
<rect key="frame" x="0.0" y="0.0" width="236" height="125"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" red="0.9882352941176471" green="0.97254901960784312" blue="0.93725490196078431" alpha="1" colorSpace="calibratedRGB"/>
......
......@@ -7,7 +7,7 @@
//
#import <UIKit/UIKit.h>
#import "TOGoodsEntityModel.h"
@interface ProductScreeningCollectionViewCell : UICollectionViewCell
......@@ -31,4 +31,9 @@
*/
@property (weak, nonatomic) IBOutlet UILabel *goodsPrice;
/**
* 数据源
*/
@property (nonatomic,strong) TOGoodsEntityModel *model;
@end
......@@ -10,9 +10,14 @@
@implementation ProductScreeningCollectionViewCell
/**
* 商品图片
*/
- (void)setModel:(TOGoodsEntityModel *)model
{
_model = model;
NSArray *images = [_model.pictures componentsSeparatedByString:@","];
[self.goodsImageView sd_setImageWithURL:[NSURL URLWithString:[images firstObject]] placeholderImage:REPLACEIMAGE];
self.goodsName.text = _model.name;
self.goodsSpecifications.text = _model.code;
self.goodsPrice.text = [NSString stringWithFormat:@"¥%@",[_model.tagPrice stringValue]];
}
@end
......@@ -34,6 +34,11 @@
UIView *lineView = [[UIView alloc]initWithFrame:CGRectMake(0, 54, 100, 1)];
lineView.backgroundColor = kTCColor(221, 221, 221);
[self addSubview:lineView];
//横线
UIView *newLineView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 100, 1)];
newLineView.backgroundColor = kTCColor(221, 221, 221);
[self addSubview:newLineView];
}
return self;
}
......
This diff is collapsed.
......@@ -21,8 +21,8 @@
if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
self.screeningLabe = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, 55)];
self.screeningLabe.textColor = kTCColor(170, 170, 170);
self.screeningLabe.font = [UIFont systemFontOfSize:13];
self.screeningLabe.textColor = kMainBlueColor;
self.screeningLabe.font = [UIFont systemFontOfSize:10];
self.screeningLabe.textAlignment = NSTextAlignmentCenter;
[self.contentView addSubview:self.screeningLabe];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment