Commit b1932ce2 authored by 朱璇's avatar 朱璇

【视频面诊】落地页

parent 8a72c0bc
...@@ -44,38 +44,38 @@ ...@@ -44,38 +44,38 @@
make.centerY.mas_equalTo(self.container.mas_top); make.centerY.mas_equalTo(self.container.mas_top);
}]; }];
_titleLabel = [[UILabel alloc] init];
_titleLabel.textColor = RGBCOLOR_HEX(0x464646);
_titleLabel.textAlignment = NSTextAlignmentCenter;
_titleLabel.numberOfLines = 0;
_titleLabel.lineBreakMode = NSLineBreakByWordWrapping;
_titleLabel.font = [UIFont gmBoldFont:18];
[self.container addSubview:_titleLabel];
[_titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.mas_equalTo(_headerImageView.mas_bottom).offset(1);
make.centerX.mas_equalTo(_headerImageView.mas_centerX);
make.left.mas_equalTo(35);
make.right.mas_equalTo(-35);
}];
_iconLabel = [[UILabel alloc] init]; _iconLabel = [[UILabel alloc] init];
_iconLabel.textColor = UIColor.grayColor; _iconLabel.textColor = UIColor.grayColor;
_iconLabel.textAlignment = NSTextAlignmentCenter; _iconLabel.textAlignment = NSTextAlignmentCenter;
_iconLabel.font = [UIFont gmFont:14]; _iconLabel.font = [UIFont gmFont:14];
[self addSubview:_iconLabel]; [self addSubview:_iconLabel];
[_iconLabel mas_makeConstraints:^(MASConstraintMaker *make) { [_iconLabel mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.mas_equalTo(_headerImageView.mas_bottom).offset(1); make.top.mas_equalTo(_titleLabel.mas_bottom).offset(14);
make.centerX.mas_equalTo(_headerImageView.mas_centerX); make.centerX.mas_equalTo(_titleLabel.mas_centerX).offset(10.5);
make.height.mas_equalTo(19); make.height.mas_equalTo(19);
}]; }];
_icon = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"small_icon"]]; _icon = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"face_book_consult_small_icon"]];
[self.container addSubview:_icon]; [self.container addSubview:_icon];
[_icon mas_makeConstraints:^(MASConstraintMaker *make) { [_icon mas_makeConstraints:^(MASConstraintMaker *make) {
make.height.width.mas_equalTo(16); make.height.width.mas_equalTo(16);
make.right.mas_equalTo(_iconLabel.mas_left).offset(-5); make.right.mas_equalTo(_iconLabel.mas_left).offset(-5);
make.centerY.mas_equalTo(_iconLabel.mas_centerY); make.centerY.mas_equalTo(_iconLabel.mas_centerY);
}]; }];
_titleLabel = [[UILabel alloc] init];
_titleLabel.textColor = RGBCOLOR_HEX(0x464646);
_titleLabel.textAlignment = NSTextAlignmentCenter;
_titleLabel.numberOfLines = 0;
_titleLabel.lineBreakMode = NSLineBreakByWordWrapping;
_titleLabel.font = [UIFont gmBoldFont:18];
[self.container addSubview:_titleLabel];
[_titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.mas_equalTo(_iconLabel.mas_bottom).offset(14);
make.centerX.mas_equalTo(_iconLabel.mas_centerX);
make.left.mas_equalTo(35);
make.right.mas_equalTo(-35);
}];
_cancelBtn = [UIButton buttonWithType:UIButtonTypeCustom]; _cancelBtn = [UIButton buttonWithType:UIButtonTypeCustom];
[_cancelBtn setBackgroundImage:[UIImage imageNamed:@"clue_cancl"] forState:UIControlStateNormal]; [_cancelBtn setBackgroundImage:[UIImage imageNamed:@"clue_cancl"] forState:UIControlStateNormal];
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
_phoneLabel.font = [UIFont gmFont:16]; _phoneLabel.font = [UIFont gmFont:16];
[self.container addSubview:_phoneLabel]; [self.container addSubview:_phoneLabel];
[_phoneLabel mas_makeConstraints:^(MASConstraintMaker *make) { [_phoneLabel mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.mas_equalTo(_titleLabel.mas_bottom).offset(25); make.top.mas_equalTo(_iconLabel.mas_bottom).offset(25);
make.centerX.mas_equalTo(_headerImageView.mas_centerX); make.centerX.mas_equalTo(_headerImageView.mas_centerX);
make.height.mas_equalTo(37); make.height.mas_equalTo(37);
make.left.mas_equalTo(self.container.mas_left).offset(35); make.left.mas_equalTo(self.container.mas_left).offset(35);
...@@ -134,7 +134,7 @@ ...@@ -134,7 +134,7 @@
[self.container addSubview:_tipLabel]; [self.container addSubview:_tipLabel];
[_tipLabel mas_makeConstraints:^(MASConstraintMaker *make) { [_tipLabel mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.equalTo(_authBtn.mas_bottom).offset(14); make.top.equalTo(_authBtn.mas_bottom).offset(14);
make.bottom.mas_equalTo(self.container.mas_bottom).offset(-25); make.bottom.mas_equalTo(self.container.mas_bottom).offset(-25 - UIView.safeAreaInsetsBottom);
make.centerX.mas_equalTo(_headerImageView.mas_centerX); make.centerX.mas_equalTo(_headerImageView.mas_centerX);
make.height.mas_equalTo(15); make.height.mas_equalTo(15);
make.left.mas_equalTo(self.container.mas_left).offset(33); make.left.mas_equalTo(self.container.mas_left).offset(33);
...@@ -180,7 +180,7 @@ ...@@ -180,7 +180,7 @@
} }
+ (void)showBookConsultPopViewWithObject:(GMBookConsultInfoModel *)model { + (void)showBookConsultPopViewWithObject:(GMBookConsultInfoModel *)model {
// if (model) { if (model) {
GMBookReachStoreConsultView *popView = [[GMBookReachStoreConsultView alloc] initWithFrame:CGRectMake(0, 0, MAINSCREEN_WIDTH, MAINSCREEN_HEIGHT)]; GMBookReachStoreConsultView *popView = [[GMBookReachStoreConsultView alloc] initWithFrame:CGRectMake(0, 0, MAINSCREEN_WIDTH, MAINSCREEN_HEIGHT)];
popView.titleLabel.text = model.title; popView.titleLabel.text = model.title;
[popView.headerImageView sd_setImageWithURL:[NSURL URLWithString:model.imgUrl]]; [popView.headerImageView sd_setImageWithURL:[NSURL URLWithString:model.imgUrl]];
...@@ -190,6 +190,6 @@ ...@@ -190,6 +190,6 @@
popView.recordId = model.recordId; popView.recordId = model.recordId;
popView.isHadPhone = model.hasPhone; popView.isHadPhone = model.hasPhone;
[[GMBaseTool getCurrentViewController].view addSubview:popView]; [[GMBaseTool getCurrentViewController].view addSubview:popView];
// } }
} }
@end @end
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
NSMutableDictionary *params = [NSMutableDictionary dictionary]; NSMutableDictionary *params = [NSMutableDictionary dictionary];
[params setObject:SafeString(recordId) forKey:@"record_id"]; [params setObject:SafeString(recordId) forKey:@"record_id"];
[params setObject:SafeString([PhobosUtil currentTime]) forKey:@"appointment_time"]; [params setObject:SafeString([PhobosUtil currentTime]) forKey:@"appointment_time"];
[GMNetworking requestOCWithApi:@"/api/sales_lead/consult_appointment" method:GMHTTPMethodGet parameters:@{} completion:^(GMResponseOC *responseObject) { [GMNetworking requestOCWithApi:@"/api/sales_lead/consult_appointment" method:GMHTTPMethodPost parameters:params completion:^(GMResponseOC *responseObject) {
if (responseObject.isSuccess) { if (responseObject.isSuccess) {
successBlock(responseObject); successBlock(responseObject);
} else { } else {
......
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