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
3ed316d9
Commit
3ed316d9
authored
Mar 24, 2020
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
92a5a3a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
ADPanel.ts
egret/src/panels/ADPanel.ts
+1
-0
advert.json
mock/happyclear/advert.json
+6
-6
No files found.
egret/src/panels/ADPanel.ts
View file @
3ed316d9
...
@@ -24,6 +24,7 @@ export default class ADPanel extends Panel {
...
@@ -24,6 +24,7 @@ export default class ADPanel extends Panel {
this
.
data
.
img
=
result
.
img
;
this
.
data
.
img
=
result
.
img
;
this
[
'adBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
this
[
'adBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
if
(
result
.
url
==
'0'
)
return
;
NetManager
.
ins
.
clickLog
(
getlogItem
(
25
));
NetManager
.
ins
.
clickLog
(
getlogItem
(
25
));
wait
(
100
).
then
(()
=>
{
wait
(
100
).
then
(()
=>
{
window
.
location
.
href
=
result
.
url
;
window
.
location
.
href
=
result
.
url
;
...
...
mock/happyclear/advert.json
View file @
3ed316d9
...
@@ -9,11 +9,11 @@
...
@@ -9,11 +9,11 @@
"advertList"
:[
"advertList"
:[
{
{
"img"
:
"http://yun.dui88.com/images/201909/lsh4tdkp5n.jpg"
,
"img"
:
"http://yun.dui88.com/images/201909/lsh4tdkp5n.jpg"
,
"url"
:
"
Http://www.baidu.com
"
"url"
:
"
0
"
},
},
{
{
"img"
:
"http://yun.dui88.com/images/201909/lsh4tdkp5n.jpg"
,
"img"
:
"http://yun.dui88.com/images/201909/lsh4tdkp5n.jpg"
,
"url"
:
"
Http://www.baidu.com
"
"url"
:
"
0
"
}
}
]
]
},
},
...
@@ -22,11 +22,11 @@
...
@@ -22,11 +22,11 @@
"advertList"
:[
"advertList"
:[
{
{
"img"
:
"http://yun.dui88.com/images/201909/lsh4tdkp5n.jpg"
,
"img"
:
"http://yun.dui88.com/images/201909/lsh4tdkp5n.jpg"
,
"url"
:
"
Http://www.baidu.com
"
"url"
:
"
0
"
},
},
{
{
"img"
:
"http://yun.dui88.com/images/201909/lsh4tdkp5n.jpg"
,
"img"
:
"http://yun.dui88.com/images/201909/lsh4tdkp5n.jpg"
,
"url"
:
"
Http://www.baidu.com
"
"url"
:
"
0
"
}
}
]
]
},
},
...
@@ -35,11 +35,11 @@
...
@@ -35,11 +35,11 @@
"advertList"
:[
"advertList"
:[
{
{
"img"
:
"http://yun.dui88.com/images/201909/lsh4tdkp5n.jpg"
,
"img"
:
"http://yun.dui88.com/images/201909/lsh4tdkp5n.jpg"
,
"url"
:
"
Http://www.baidu.com
"
"url"
:
"
0
"
},
},
{
{
"img"
:
"http://yun.dui88.com/images/201909/lsh4tdkp5n.jpg"
,
"img"
:
"http://yun.dui88.com/images/201909/lsh4tdkp5n.jpg"
,
"url"
:
"
Http://www.baidu.com
"
"url"
:
"
0
"
}
}
]
]
}
}
...
...
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