Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaole
Project
Project
Details
Activity
Releases
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
wildfirecode13
xiaoxiaole
Commits
5fff9631
Commit
5fff9631
authored
May 13, 2020
by
zjz1994
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
埋点测试
parent
f78ec134
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
5 deletions
+23
-5
NetManager.ts
egret/libs/tw/manager/NetManager.ts
+18
-0
AdSmallComp.ts
egret/src/mapScene/AdSmallComp.ts
+2
-2
MapScene.ts
egret/src/mapScene/MapScene.ts
+2
-2
ADPanel.ts
egret/src/panels/ADPanel.ts
+1
-1
No files found.
egret/libs/tw/manager/NetManager.ts
View file @
5fff9631
...
@@ -1974,6 +1974,24 @@ export class NetManager extends ABNetManager {
...
@@ -1974,6 +1974,24 @@ export class NetManager extends ABNetManager {
else
else
console
.
warn
(
'苏宁埋点未配置'
)
console
.
warn
(
'苏宁埋点未配置'
)
}
}
/**
* 广告另外点击埋点
* @param exposure
*/
public
clickLog1
(
exposure
:
IExposureData
):
void
{
const
__area__
=
exposure
[
'__area__'
];
delete
exposure
[
'__area__'
];
const
net
:
INetData
=
{
name
:
'clickLog'
,
uri
:
window
[
'duiba'
]
+
'/log/click'
,
type
:
'get'
,
dataType
:
'jsonp'
,
param
:
exposure
,
callback
:
null
,
hideMsg
:
true
};
this
.
send
(
net
);
}
/**
/**
* 兑吧曝光埋点
* 兑吧曝光埋点
...
...
egret/src/mapScene/AdSmallComp.ts
View file @
5fff9631
...
@@ -36,11 +36,11 @@ export default class AdSmallComp extends ComponentBase {
...
@@ -36,11 +36,11 @@ export default class AdSmallComp extends ComponentBase {
this
[
'img'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
this
[
'img'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
if
(
data
.
logid
)
if
(
data
.
logid
)
NetManager
.
ins
.
clickLog
(
getlogItem
(
data
.
logid
));
NetManager
.
ins
.
clickLog
1
(
getlogItem
(
data
.
logid
));
snpmAdStatic
.
snpmAdReport
(
"click"
,
"bottom"
,
result
);
snpmAdStatic
.
snpmAdReport
(
"click"
,
"bottom"
,
result
);
wait
(
50
).
then
(()
=>
{
wait
(
50
).
then
(()
=>
{
//
if (result.url != 0) window.location.href = result.url;
if
(
result
.
url
!=
0
)
window
.
location
.
href
=
result
.
url
;
});
});
},
this
);
},
this
);
}
}
...
...
egret/src/mapScene/MapScene.ts
View file @
5fff9631
...
@@ -736,10 +736,10 @@ export default class MapScene extends Scene {
...
@@ -736,10 +736,10 @@ export default class MapScene extends Scene {
snpmAdStatic
.
snpmAdReport
(
"show"
,
"icon"
,
result
);
snpmAdStatic
.
snpmAdReport
(
"show"
,
"icon"
,
result
);
this
[
'adBtn'
].
source
=
result
.
img
;
this
[
'adBtn'
].
source
=
result
.
img
;
this
[
'adBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
this
[
'adBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
// NetManager.ins.clickLog
(getlogItem(32));
NetManager
.
ins
.
clickLog1
(
getlogItem
(
32
));
snpmAdStatic
.
snpmAdReport
(
"click"
,
"icon"
,
result
);
snpmAdStatic
.
snpmAdReport
(
"click"
,
"icon"
,
result
);
if
(
result
.
url
!=
0
){
if
(
result
.
url
!=
0
){
//
window.location.href = result.url;
window
.
location
.
href
=
result
.
url
;
}
}
},
this
);
},
this
);
}
}
...
...
egret/src/panels/ADPanel.ts
View file @
5fff9631
...
@@ -28,7 +28,7 @@ export default class ADPanel extends Panel {
...
@@ -28,7 +28,7 @@ export default class ADPanel extends Panel {
this
[
'adBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
this
[
'adBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
if
(
result
.
url
==
'0'
)
return
;
if
(
result
.
url
==
'0'
)
return
;
snpmAdStatic
.
snpmAdReport
(
"click"
,
"dialog"
,
result
);
snpmAdStatic
.
snpmAdReport
(
"click"
,
"dialog"
,
result
);
NetManager
.
ins
.
clickLog
(
getlogItem
(
25
));
NetManager
.
ins
.
clickLog
1
(
getlogItem
(
25
));
wait
(
100
).
then
(()
=>
{
wait
(
100
).
then
(()
=>
{
window
.
location
.
href
=
result
.
url
;
window
.
location
.
href
=
result
.
url
;
});
});
...
...
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