Commit b1932ce2 authored by 朱璇's avatar 朱璇

【视频面诊】落地页

parent 8a72c0bc
......@@ -44,18 +44,32 @@
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.textColor = UIColor.grayColor;
_iconLabel.textAlignment = NSTextAlignmentCenter;
_iconLabel.font = [UIFont gmFont:14];
[self addSubview:_iconLabel];
[_iconLabel mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.mas_equalTo(_headerImageView.mas_bottom).offset(1);
make.centerX.mas_equalTo(_headerImageView.mas_centerX);
make.top.mas_equalTo(_titleLabel.mas_bottom).offset(14);
make.centerX.mas_equalTo(_titleLabel.mas_centerX).offset(10.5);
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];
[_icon mas_makeConstraints:^(MASConstraintMaker *make) {
make.height.width.mas_equalTo(16);
......@@ -63,20 +77,6 @@
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 setBackgroundImage:[UIImage imageNamed:@"clue_cancl"] forState:UIControlStateNormal];
[_cancelBtn addTarget:self action:@selector(cancelClicked) forControlEvents:UIControlEventTouchUpInside];
......@@ -97,7 +97,7 @@
_phoneLabel.font = [UIFont gmFont:16];
[self.container addSubview:_phoneLabel];
[_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.height.mas_equalTo(37);
make.left.mas_equalTo(self.container.mas_left).offset(35);
......@@ -134,7 +134,7 @@
[self.container addSubview:_tipLabel];
[_tipLabel mas_makeConstraints:^(MASConstraintMaker *make) {
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.height.mas_equalTo(15);
make.left.mas_equalTo(self.container.mas_left).offset(33);
......@@ -180,7 +180,7 @@
}
+ (void)showBookConsultPopViewWithObject:(GMBookConsultInfoModel *)model {
// if (model) {
if (model) {
GMBookReachStoreConsultView *popView = [[GMBookReachStoreConsultView alloc] initWithFrame:CGRectMake(0, 0, MAINSCREEN_WIDTH, MAINSCREEN_HEIGHT)];
popView.titleLabel.text = model.title;
[popView.headerImageView sd_setImageWithURL:[NSURL URLWithString:model.imgUrl]];
......@@ -190,6 +190,6 @@
popView.recordId = model.recordId;
popView.isHadPhone = model.hasPhone;
[[GMBaseTool getCurrentViewController].view addSubview:popView];
// }
}
}
@end
......@@ -22,7 +22,7 @@
NSMutableDictionary *params = [NSMutableDictionary dictionary];
[params setObject:SafeString(recordId) forKey:@"record_id"];
[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) {
successBlock(responseObject);
} 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