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
5dd557bb
Commit
5dd557bb
authored
May 13, 2020
by
zjz1994
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
中文跳转修改
parent
c7efa910
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
6 deletions
+7
-6
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
+2
-2
snpmAdStatic.ts
egret/src/statics/snpmAdStatic.ts
+1
-0
No files found.
egret/src/mapScene/AdSmallComp.ts
View file @
5dd557bb
...
...
@@ -36,11 +36,11 @@ export default class AdSmallComp extends ComponentBase {
this
[
'img'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
if
(
data
.
logid
)
NetManager
.
ins
.
clickLog
1
(
getlogItem
(
data
.
logid
));
NetManager
.
ins
.
clickLog
(
getlogItem
(
data
.
logid
));
snpmAdStatic
.
snpmAdReport
(
"click"
,
"bottom"
,
result
);
wait
(
50
).
then
(()
=>
{
if
(
result
.
url
!=
0
)
window
.
location
.
href
=
result
.
url
;
if
(
result
.
url
!=
0
)
window
.
location
.
href
=
decodeURI
(
result
.
url
)
;
});
},
this
);
}
...
...
egret/src/mapScene/MapScene.ts
View file @
5dd557bb
...
...
@@ -736,10 +736,10 @@ export default class MapScene extends Scene {
snpmAdStatic
.
snpmAdReport
(
"show"
,
"icon"
,
result
);
this
[
'adBtn'
].
source
=
result
.
img
;
this
[
'adBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
NetManager
.
ins
.
clickLog
1
(
getlogItem
(
32
));
NetManager
.
ins
.
clickLog
(
getlogItem
(
32
));
snpmAdStatic
.
snpmAdReport
(
"click"
,
"icon"
,
result
);
if
(
result
.
url
!=
0
){
window
.
location
.
href
=
result
.
url
;
window
.
location
.
href
=
decodeURI
(
result
.
url
)
;
}
},
this
);
}
...
...
egret/src/panels/ADPanel.ts
View file @
5dd557bb
...
...
@@ -28,9 +28,9 @@ export default class ADPanel extends Panel {
this
[
'adBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
if
(
result
.
url
==
'0'
)
return
;
snpmAdStatic
.
snpmAdReport
(
"click"
,
"dialog"
,
result
);
NetManager
.
ins
.
clickLog
1
(
getlogItem
(
25
));
NetManager
.
ins
.
clickLog
(
getlogItem
(
25
));
wait
(
100
).
then
(()
=>
{
window
.
location
.
href
=
result
.
url
;
window
.
location
.
href
=
decodeURI
(
result
.
url
)
;
});
},
this
);
}
...
...
egret/src/statics/snpmAdStatic.ts
View file @
5dd557bb
...
...
@@ -5,6 +5,7 @@ export class snpmAdStatic{
* @param from 来源1.icon首页小图标,2.dialog大弹窗广告,3.bottom部分弹窗下挂载的
*/
static
snpmAdReport
(
type
:
string
,
from
:
string
,
adata
:
object
){
return
;
var
params
=
{};
console
.
log
(
"准备上报"
,
type
,
from
,
JSON
.
stringify
(
adata
));
switch
(
from
){
...
...
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