V5.0.0正式版:
1、加热棒内容修改; 2、首页商品删除,更改为行业资讯; 3、绚多设备更名显示; 4、bugly更换为新版本; 5、摄像头显示bug修复; 6、开屏广告显示不全修复;
This commit is contained in:
@@ -13,18 +13,142 @@
|
||||
#import "SVProgressHUD.h"
|
||||
|
||||
@interface IfishHistoryView()
|
||||
@property (strong, nonatomic)IfishChatView *chartView;
|
||||
@property (weak, nonatomic) IBOutlet IfishChatView *chartHolder;
|
||||
|
||||
Strong UIButton *bgButton;
|
||||
Strong UIView *bgView;
|
||||
Strong IfishChatView *chartView;
|
||||
Strong IfishChatView *chartHolder;
|
||||
Strong UILabel *titleLabel;
|
||||
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *chartHeight;
|
||||
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *chartWidth;
|
||||
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *lableHeight;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *curDatetitle;
|
||||
Strong UIButton *predayButton;
|
||||
Strong UIButton *nextdayButton;
|
||||
Strong UIImageView *bgImage;
|
||||
@property(nonatomic,strong)NSMutableArray*line1;
|
||||
@end
|
||||
|
||||
@implementation IfishHistoryView
|
||||
- (instancetype)init
|
||||
{
|
||||
self = [super init];
|
||||
if (self) {
|
||||
[self addSubview:self.bgButton];
|
||||
[self addSubview:self.bgView];
|
||||
[self.bgView addSubview:self.titleLabel];
|
||||
[self.bgView addSubview:self.bgImage];
|
||||
[self.bgView addSubview:self.chartHolder];
|
||||
[self.bgView addSubview:self.predayButton];
|
||||
[self.bgView addSubview:self.nextdayButton];
|
||||
[self loadLayout];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
- (UIButton *)bgButton{
|
||||
if (!_bgButton) {
|
||||
_bgButton = InitObject(UIButton);
|
||||
[_bgButton setBackgroundColor:RGBA(0, 0, 0, 0.3)];
|
||||
[_bgButton addTarget:self action:@selector(bgButtonClick:) forControlEvents:UIControlEventTouchUpInside];
|
||||
}
|
||||
return _bgButton;
|
||||
}
|
||||
- (UIView *)bgView{
|
||||
if (!_bgView) {
|
||||
_bgView = InitObject(UIView);
|
||||
_bgView.backgroundColor = XWhite;
|
||||
_bgView.layer.masksToBounds = YES;
|
||||
_bgView.layer.cornerRadius = 15;
|
||||
}
|
||||
return _bgView;
|
||||
}
|
||||
- (UIImageView *)bgImage{
|
||||
if (!_bgImage) {
|
||||
_bgImage = InitObject(UIImageView);
|
||||
[_bgImage setImage:IMAGEBYENAME(@"history_bg")];
|
||||
|
||||
}
|
||||
return _bgImage;
|
||||
}
|
||||
- (IfishChatView *)chartHolder{
|
||||
if (!_chartHolder) {
|
||||
_chartHolder = InitObject(IfishChatView);
|
||||
}
|
||||
return _chartHolder;
|
||||
}
|
||||
- (UILabel *)titleLabel{
|
||||
if (!_titleLabel) {
|
||||
_titleLabel = InitObject(UILabel);
|
||||
_titleLabel.textAlignment = NSTextAlignmentCenter;
|
||||
_titleLabel.textColor = RGB(51, 51, 51);
|
||||
_titleLabel.font = [UIFont systemFontOfSize:13];
|
||||
}
|
||||
return _titleLabel;
|
||||
}
|
||||
|
||||
- (UIButton *)predayButton{
|
||||
if (!_predayButton) {
|
||||
_predayButton = InitObject(UIButton);
|
||||
// [_predayButton setTitle:@"前一天" forState:UIControlStateNormal];
|
||||
[_predayButton addTarget:self action:@selector(dayChangeClick:) forControlEvents:UIControlEventTouchUpInside];
|
||||
[_predayButton.titleLabel setFont:[UIFont systemFontOfSize:13]];
|
||||
// [_predayButton setTitleColor:RGB(51, 51, 51) forState:UIControlStateNormal];
|
||||
_predayButton.tag = 10;
|
||||
}
|
||||
return _predayButton;
|
||||
}
|
||||
- (UIButton *)nextdayButton{
|
||||
if (!_nextdayButton) {
|
||||
_nextdayButton = InitObject(UIButton);
|
||||
// [_nextdayButton setTitle:@"后一天" forState:UIControlStateNormal];
|
||||
[_nextdayButton addTarget:self action:@selector(dayChangeClick:) forControlEvents:UIControlEventTouchUpInside];
|
||||
[_nextdayButton.titleLabel setFont:[UIFont systemFontOfSize:13]];
|
||||
// [_nextdayButton setTitleColor:RGB(51, 51, 51) forState:UIControlStateNormal];
|
||||
_nextdayButton.tag = 11;
|
||||
}
|
||||
return _nextdayButton;
|
||||
}
|
||||
-(void)loadLayout{
|
||||
[self.bgButton mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.edges.mas_equalTo(self);
|
||||
}];
|
||||
|
||||
[self.bgView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.width.mas_equalTo(315);
|
||||
make.center.mas_equalTo(self);
|
||||
}];
|
||||
|
||||
[self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.centerX.mas_equalTo(self.bgView);
|
||||
make.top.mas_equalTo(4);
|
||||
make.height.mas_equalTo(20);
|
||||
}];
|
||||
|
||||
[self.bgImage mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.top.mas_equalTo(self.titleLabel.mas_bottom).offset(8);
|
||||
make.centerX.width.mas_equalTo(self.bgView);
|
||||
make.height.mas_equalTo(147);
|
||||
make.bottom.mas_equalTo(self.bgView.mas_bottom).offset(-10);
|
||||
}];
|
||||
|
||||
[self.chartHolder mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.top.left.width.mas_equalTo(self.bgImage);
|
||||
make.height.mas_equalTo(130);
|
||||
}];
|
||||
|
||||
[self.predayButton mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.mas_equalTo(10);
|
||||
make.height.mas_equalTo(30);
|
||||
make.width.mas_equalTo(60);
|
||||
make.bottom.mas_equalTo(self.bgView.mas_bottom);
|
||||
}];
|
||||
|
||||
[self.nextdayButton mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.width.height.centerY.mas_equalTo(self.predayButton);
|
||||
make.right.mas_equalTo(-20);
|
||||
}];
|
||||
|
||||
[self.bgImage layoutIfNeeded];
|
||||
|
||||
}
|
||||
/*
|
||||
// Only override drawRect: if you perform custom drawing.
|
||||
// An empty implementation adversely affects performance during animation.
|
||||
@@ -56,20 +180,17 @@
|
||||
_chartView=nil;
|
||||
}
|
||||
self.chartView.datas=datas;
|
||||
self.curDatetitle.text=self.curdateStr;
|
||||
[self.chartView reloadHeater];
|
||||
self.titleLabel.text=self.curdateStr;
|
||||
// [self initLineChart];
|
||||
}
|
||||
|
||||
|
||||
|
||||
- (IBAction)clickBg:(id)sender {
|
||||
#pragma mark --buttonClick
|
||||
-(void)bgButtonClick:(UIButton *)sender{
|
||||
self.hidden=YES;
|
||||
}
|
||||
|
||||
|
||||
- (IBAction)clickBottomBar:(UIButton*)sender {
|
||||
-(void)dayChangeClick:(UIButton *)sender{
|
||||
[self.myDeleget clickBottomBarWithIdx:sender.tag];
|
||||
}
|
||||
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user