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
e5ab954f
Commit
e5ab954f
authored
Oct 11, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
6721f7bd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletion
+17
-1
MainBase.ts
egret/libs/new_wx/MainBase.ts
+2
-0
AdSmallComp.ts
egret/src/mapScene/AdSmallComp.ts
+4
-1
MapScene.ts
egret/src/mapScene/MapScene.ts
+11
-0
No files found.
egret/libs/new_wx/MainBase.ts
View file @
e5ab954f
...
...
@@ -322,6 +322,8 @@ export default class MainBase extends eui.UILayer {
this
.
hcHome
(),
]);
MapScene
.
adData
=
DataManager
.
ins
.
getData
(
'hc_advert'
);
Buried
.
init
();
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
START_SCENE
,
this
.
svgaList
);
...
...
egret/src/mapScene/AdSmallComp.ts
View file @
e5ab954f
import
ComponentBase
from
"../../libs/new_wx/components/ComponentBase"
;
import
{
NetManager
}
from
"../../libs/tw/manager/NetManager"
;
export
default
class
AdSmallComp
extends
ComponentBase
{
start
(
data
?)
{
this
.
touchEnabled
=
this
.
touchChildren
=
false
;
super
.
start
(
data
);
NetManager
.
ins
.
hc_advert
(()
=>
{
this
.
data
.
img
=
''
})
}
get
skinKey
():
string
{
return
'ADSmall'
}
...
...
egret/src/mapScene/MapScene.ts
View file @
e5ab954f
...
...
@@ -22,6 +22,7 @@ import AvatarComp from "./AvatarComp";
export
default
class
MapScene
extends
Scene
{
static
adData
;
scrollGroup
:
eui
.
Group
;
scroll
:
eui
.
Scroller
;
topPart
:
MapTopPart
;
...
...
@@ -34,6 +35,7 @@ export default class MapScene extends Scene {
super
.
start
();
this
.
updateAdData
();
this
[
'avatar'
].
mask
=
this
[
'avatarMask'
];
setTimeout
(()
=>
{
...
...
@@ -183,6 +185,15 @@ export default class MapScene extends Scene {
}
}
updateAdData
(){
// if(){
// this['adBtn'].visible=false;
// }
// this['adBtn'].source = '';
this
[
'adBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,()
=>
{
// window.location.href = '';
},
this
);
}
destroy
()
{
super
.
destroy
();
...
...
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