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
5e2dac8e
Commit
5e2dac8e
authored
May 14, 2020
by
zjz1994
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码暂存
parent
5dd557bb
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
4 deletions
+7
-4
NetManager.ts
egret/libs/tw/manager/NetManager.ts
+4
-0
AdSmallComp.ts
egret/src/mapScene/AdSmallComp.ts
+1
-1
MapScene.ts
egret/src/mapScene/MapScene.ts
+1
-1
ADPanel.ts
egret/src/panels/ADPanel.ts
+1
-1
snpmAdStatic.ts
egret/src/statics/snpmAdStatic.ts
+0
-1
No files found.
egret/libs/tw/manager/NetManager.ts
View file @
5e2dac8e
...
@@ -1461,6 +1461,10 @@ export class NetManager extends ABNetManager {
...
@@ -1461,6 +1461,10 @@ export class NetManager extends ABNetManager {
}
}
public
hc_advert
(
callback
:
Function
):
void
{
public
hc_advert
(
callback
:
Function
):
void
{
if
(
window
[
'SNNativeClient'
]){
console
.
log
(
"苏宁原生测试"
);
console
.
log
(
window
[
'SNNativeClient'
]);
}
const
net
:
INetData
=
{
const
net
:
INetData
=
{
name
:
'hc_advert'
,
name
:
'hc_advert'
,
uri
:
window
[
'duiba'
]
+
'/customActivity/happyclear/advert'
,
uri
:
window
[
'duiba'
]
+
'/customActivity/happyclear/advert'
,
...
...
egret/src/mapScene/AdSmallComp.ts
View file @
5e2dac8e
...
@@ -36,7 +36,7 @@ export default class AdSmallComp extends ComponentBase {
...
@@ -36,7 +36,7 @@ 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
(()
=>
{
...
...
egret/src/mapScene/MapScene.ts
View file @
5e2dac8e
...
@@ -736,7 +736,7 @@ export default class MapScene extends Scene {
...
@@ -736,7 +736,7 @@ 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
.
clickLog
1
(
getlogItem
(
32
));
snpmAdStatic
.
snpmAdReport
(
"click"
,
"icon"
,
result
);
snpmAdStatic
.
snpmAdReport
(
"click"
,
"icon"
,
result
);
if
(
result
.
url
!=
0
){
if
(
result
.
url
!=
0
){
window
.
location
.
href
=
decodeURI
(
result
.
url
);
window
.
location
.
href
=
decodeURI
(
result
.
url
);
...
...
egret/src/panels/ADPanel.ts
View file @
5e2dac8e
...
@@ -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
=
decodeURI
(
result
.
url
);
window
.
location
.
href
=
decodeURI
(
result
.
url
);
});
});
...
...
egret/src/statics/snpmAdStatic.ts
View file @
5e2dac8e
...
@@ -5,7 +5,6 @@ export class snpmAdStatic{
...
@@ -5,7 +5,6 @@ export class snpmAdStatic{
* @param from 来源1.icon首页小图标,2.dialog大弹窗广告,3.bottom部分弹窗下挂载的
* @param from 来源1.icon首页小图标,2.dialog大弹窗广告,3.bottom部分弹窗下挂载的
*/
*/
static
snpmAdReport
(
type
:
string
,
from
:
string
,
adata
:
object
){
static
snpmAdReport
(
type
:
string
,
from
:
string
,
adata
:
object
){
return
;
var
params
=
{};
var
params
=
{};
console
.
log
(
"准备上报"
,
type
,
from
,
JSON
.
stringify
(
adata
));
console
.
log
(
"准备上报"
,
type
,
from
,
JSON
.
stringify
(
adata
));
switch
(
from
){
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