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
3085d624
Commit
3085d624
authored
Oct 14, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
455e2c75
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
BoxSkin.exml
egret/resource/skins/BoxSkin.exml
+1
-1
BoxPanel.ts
egret/src/panels/BoxPanel.ts
+14
-2
No files found.
egret/resource/skins/BoxSkin.exml
View file @
3085d624
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"BoxSkin"
width=
"750"
height=
"1205"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Skin
class=
"BoxSkin"
width=
"750"
height=
"1205"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<w:Config
id=
"16cc233ca3b"
/>
<w:Config
id=
"16cc233ca3b"
/>
<e:Component
y=
"739.52"
skinName=
"ADSmallSkin"
horizontalCenter=
"0
"
/>
<e:Component
y=
"739.52"
skinName=
"ADSmallSkin"
x=
"84"
visible=
"false
"
/>
<e:Image
source=
"boxbg_png"
y=
"33.76"
horizontalCenter=
"0"
/>
<e:Image
source=
"boxbg_png"
y=
"33.76"
horizontalCenter=
"0"
/>
<e:Image
id=
"img"
y=
"355"
touchEnabled=
"true"
source=
"{data.img}"
width=
"512"
height=
"240"
scaleX=
"0.9"
scaleY=
"0.9"
horizontalCenter=
"0"
/>
<e:Image
id=
"img"
y=
"355"
touchEnabled=
"true"
source=
"{data.img}"
width=
"512"
height=
"240"
scaleX=
"0.9"
scaleY=
"0.9"
horizontalCenter=
"0"
/>
<e:Button
id=
"closeBtn"
label=
""
x=
"604.96"
y=
"190.84"
>
<e:Button
id=
"closeBtn"
label=
""
x=
"604.96"
y=
"190.84"
>
...
...
egret/src/panels/BoxPanel.ts
View file @
3085d624
...
@@ -2,6 +2,7 @@ import Panel from "../../libs/new_wx/components/Panel";
...
@@ -2,6 +2,7 @@ import Panel from "../../libs/new_wx/components/Panel";
import
{
NetManager
}
from
"../../libs/tw/manager/NetManager"
;
import
{
NetManager
}
from
"../../libs/tw/manager/NetManager"
;
import
{
getlogItem
}
from
"../Main"
;
import
{
getlogItem
}
from
"../Main"
;
import
{
DataManager
}
from
"../../libs/tw/manager/DataManager"
;
import
{
DataManager
}
from
"../../libs/tw/manager/DataManager"
;
import
AdSmallComp
from
"../mapScene/AdSmallComp"
;
export
default
class
BoxPanel
extends
Panel
{
export
default
class
BoxPanel
extends
Panel
{
start
(
data
)
{
start
(
data
)
{
...
@@ -14,11 +15,22 @@ export default class BoxPanel extends Panel {
...
@@ -14,11 +15,22 @@ export default class BoxPanel extends Panel {
// this.data.img = DataManager.ins.getData('getPlugOrderStatus').lottery.imgurl;
// this.data.img = DataManager.ins.getData('getPlugOrderStatus').lottery.imgurl;
const
itemid
=
DataManager
.
ins
.
getData
(
'getPlugOrderStatus'
).
lottery
.
itemId
;
const
itemid
=
DataManager
.
ins
.
getData
(
'getPlugOrderStatus'
).
lottery
.
itemId
;
this
.
data
.
img
=
`http://yun.duiba.com.cn/db_games/1014/
${
itemid
}
.png`
;
this
.
data
.
img
=
`http://yun.duiba.com.cn/db_games/09302/
${
itemid
}
.png`
;
addAdComp
(
84
,
739
,
this
)
}
}
showlog
()
{
showlog
()
{
NetManager
.
ins
.
showLog
(
getlogItem
(
17
));
NetManager
.
ins
.
showLog
(
getlogItem
(
17
));
}
}
protected
get
closeBtns
():
eui
.
Button
[]
{
return
[
this
[
'closeBtn'
],
this
[
'close2Btn'
]]
}
protected
get
closeBtns
():
eui
.
Button
[]
{
return
[
this
[
'closeBtn'
],
this
[
'close2Btn'
]]
}
get
skinKey
()
{
return
'Box'
}
get
skinKey
()
{
return
'Box'
}
}
}
\ No newline at end of file
export
const
addAdComp
=
(
x
,
y
,
parent
:
egret
.
DisplayObjectContainer
)
=>
{
const
comp
=
new
AdSmallComp
();
comp
.
loadSkin
();
comp
.
start
();
parent
.
addChildAt
(
comp
,
0
);
comp
.
x
=
x
;
comp
.
y
=
y
;
}
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