Commit 7295cf13 authored by 朱璇's avatar 朱璇

添加埋点

parent fb0c4835
...@@ -153,6 +153,7 @@ ...@@ -153,6 +153,7 @@
} }
- (void)authClicked { - (void)authClicked {
[GMBookReachStoreConsultView on_click_buttonWithButtonName:@"appointment"]
if (self.isHadPhone) { if (self.isHadPhone) {
__weak typeof(self) weakSelf = self; __weak typeof(self) weakSelf = self;
[GMBookConsultViewModel bookConsultWithRecordId:SafeString(self.recordId) successBlock:^(id responseObject) { [GMBookConsultViewModel bookConsultWithRecordId:SafeString(self.recordId) successBlock:^(id responseObject) {
...@@ -172,6 +173,7 @@ ...@@ -172,6 +173,7 @@
} }
- (void)cancelClicked { - (void)cancelClicked {
[GMBookReachStoreConsultView on_click_buttonWithButtonName:@"close"]
[self removeFromSuperview]; [self removeFromSuperview];
} }
...@@ -182,6 +184,7 @@ ...@@ -182,6 +184,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 popup_view]; // 埋点
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]];
popView.iconLabel.text = model.subTitle; popView.iconLabel.text = model.subTitle;
...@@ -192,4 +195,39 @@ ...@@ -192,4 +195,39 @@
[[GMBaseTool getCurrentViewController].view addSubview:popView]; [[GMBaseTool getCurrentViewController].view addSubview:popView];
} }
} }
- (void)popup_view {
NSDictionary *dict = @{@"page_name":SafeString([GMBaseTool getCurrentViewController].pageName),
@"popup_name":@"video_face_consultation",
@"referrer_link":[GMBaseTool getCurrentViewController].referrerLink ? : @[],
@"business_id":SafeString([GMBaseTool getCurrentViewController].businessId),
@"referrer":SafeString([GMBaseTool getCurrentViewController].referer),
@"referrer_id":SafeString([GMBaseTool getCurrentViewController].)
};
[Phobos track:@"popup_view" attributes:dict];
}
- (void)popup_view {
NSDictionary *dict = @{@"page_name":SafeString([GMBaseTool getCurrentViewController].pageName),
@"popup_name":@"free_to_clinic",
@"referrer_link":[GMBaseTool getCurrentViewController].referrerLink ? : @[],
@"business_id":SafeString([GMBaseTool getCurrentViewController].businessId),
@"referrer":SafeString([GMBaseTool getCurrentViewController].referer),
@"referrer_id":SafeString([GMBaseTool getCurrentViewController].referrerId)
};
[Phobos track:@"popup_view" attributes:dict];
}
+ (void)on_click_buttonWithButtonName:(NSString *)buttonName {
NSDictionary *dict = @{@"page_name":SafeString([GMBaseTool getCurrentViewController].pageName),
@"popup_name":@"free_to_clinic",
@"referrer_link":[GMBaseTool getCurrentViewController].referrerLink ? : @[],
@"business_id":SafeString([GMBaseTool getCurrentViewController].businessId),
@"referrer":SafeString([GMBaseTool getCurrentViewController].referer),
@"referrer_id":SafeString([GMBaseTool getCurrentViewController].referrerId),
@"button_name":SafeString(buttonName)
};
[Phobos track:@"on_click_button" attributes:dict];
}
@end @end
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