Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
GMAILab
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
GMAILab
Commits
7295cf13
Commit
7295cf13
authored
Jul 23, 2020
by
朱璇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加埋点
parent
fb0c4835
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
GMBookReachStoreConsultView.m
...es/ToFace/WorkingTable/View/GMBookReachStoreConsultView.m
+38
-0
No files found.
GMAILab/Classes/ToFace/WorkingTable/View/GMBookReachStoreConsultView.m
View file @
7295cf13
...
...
@@ -153,6 +153,7 @@
}
-
(
void
)
authClicked
{
[
GMBookReachStoreConsultView
on_click_buttonWithButtonName
:
@"appointment"
]
;
if
(
self
.
isHadPhone
)
{
__weak
typeof
(
self
)
weakSelf
=
self
;
[
GMBookConsultViewModel
bookConsultWithRecordId
:
SafeString
(
self
.
recordId
)
successBlock
:
^
(
id
responseObject
)
{
...
...
@@ -172,6 +173,7 @@
}
-
(
void
)
cancelClicked
{
[
GMBookReachStoreConsultView
on_click_buttonWithButtonName
:
@"close"
]
;
[
self
removeFromSuperview
];
}
...
...
@@ -182,6 +184,7 @@
+
(
void
)
showBookConsultPopViewWithObject
:
(
GMBookConsultInfoModel
*
)
model
{
if
(
model
)
{
GMBookReachStoreConsultView
*
popView
=
[[
GMBookReachStoreConsultView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
MAINSCREEN_WIDTH
,
MAINSCREEN_HEIGHT
)];
[
popView
popup_view
];
// 埋点
popView
.
titleLabel
.
text
=
model
.
title
;
[
popView
.
headerImageView
sd_setImageWithURL
:[
NSURL
URLWithString
:
model
.
imgUrl
]];
popView
.
iconLabel
.
text
=
model
.
subTitle
;
...
...
@@ -192,4 +195,39 @@
[[
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment