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
c4549377
Commit
c4549377
authored
Aug 29, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
23f16ff6
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
21 deletions
+24
-21
PrizePanel.ts
egret/libs/new_wx/components/PrizePanel.ts
+11
-15
PrizeSkin.exml
egret/resource/skins/PrizeSkin.exml
+4
-1
MapScene.ts
egret/src/mapScene/MapScene.ts
+7
-3
submit.json
mock/happyclear/submit.json
+1
-1
getPlugOrderStatus.json
mock/json/getPlugOrderStatus.json
+1
-1
No files found.
egret/libs/new_wx/components/PrizePanel.ts
View file @
c4549377
...
...
@@ -12,18 +12,12 @@ export default class PrizePanel extends Panel {
_level
;
start
(
data
)
{
super
.
start
();
// const lottery = DataManager.ins.getCustomOrderStatusData.lottery;
// this.data = lottery;
// this.data.score = `本局分数 ${DataManager.ins.getData('ngameSubmit').data.score}`;
// this.img.width = this.picBigWidth;
// this.img.height = this.picBigWidth / this.bigPicRatio;
// showCustomLog(lottery);
setGray
(
this
[
'pica'
]);
setGray
(
this
[
'picb'
]);
setGray
(
this
[
'picc'
]);
this
.
_level
=
parseInt
(
data
.
level
+
''
);
const
itemid
=
DataManager
.
ins
.
getData
(
'getPlugOrderStatus'
).
lottery
.
itemId
;
this
.
data
.
img
=
`http://yun.duiba.com.cn/db_games/0827/
${
itemid
}
.png`
;
// this.data.img = DataManager.ins.getData('getPlugOrderStatus').lottery.imgurl;
this
[
'shareBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
15
));
...
...
@@ -49,19 +43,21 @@ export default class PrizePanel extends Panel {
NetManager
.
ins
.
showLog
(
getlogItem
(
15
));
}
setStar
(
nums
:
number
)
{
this
[
'pic1'
].
visible
=
this
[
'pic2'
].
visible
=
this
[
'pic3'
].
visible
=
false
if
(
nums
==
0
)
{
setGray
(
this
[
'pic1'
]);
setGray
(
this
[
'pic2'
]);
setGray
(
this
[
'pic3'
]);
}
if
(
nums
==
1
)
{
setGray
(
this
[
'pic2'
]);
setGray
(
this
[
'pic3'
]);
this
[
'pic1'
].
visible
=
true
;
}
if
(
nums
==
2
)
{
setGray
(
this
[
'pic3'
]);
this
[
'pic1'
].
visible
=
true
;
this
[
'pic2'
].
visible
=
true
;
}
if
(
nums
==
3
)
{
this
[
'pic1'
].
visible
=
true
;
this
[
'pic2'
].
visible
=
true
;
this
[
'pic3'
].
visible
=
true
;
}
}
...
...
egret/resource/skins/PrizeSkin.exml
View file @
c4549377
...
...
@@ -27,7 +27,10 @@
</e:skinName>
</e:Button>
<e:Image
id=
"img"
y=
"502"
touchEnabled=
"true"
source=
"{data.img}"
width=
"512"
height=
"240"
x=
"117"
/>
<e:Image
id=
"picb"
source=
"点亮 副本 2_png"
x=
"142"
y=
"191"
/>
<e:Image
id=
"pica"
source=
"点亮 副本 2_png"
x=
"608"
y=
"191"
scaleX=
"-1"
/>
<e:Image
id=
"picc"
source=
"点亮_png"
y=
"142"
x=
"280"
/>
<e:Image
id=
"pic1"
source=
"点亮 副本 2_png"
x=
"142"
y=
"191"
/>
<e:Image
id=
"pic3"
source=
"点亮 副本 2_png"
x=
"608"
y=
"191"
scaleX=
"-1"
/>
<e:Image
id=
"pic2"
source=
"点亮_png"
y=
"142"
horizontalCenter=
"
0"
/>
<e:Image
id=
"pic2"
source=
"点亮_png"
y=
"142"
x=
"28
0"
/>
</e:Skin>
\ No newline at end of file
egret/src/mapScene/MapScene.ts
View file @
c4549377
...
...
@@ -25,9 +25,13 @@ export default class MapScene extends Scene {
async
start
(
data
?)
{
super
.
start
();
// setTimeout(() => {
// PanelCtrl.instance.show('failed',{level:1})
// }, 2000);
NetManager
.
ins
.
hc_submit
(()
=>
{},
1
,
1
,
null
,
''
);
NetManager
.
ins
.
getPlugOrderStatus
(()
=>
{},
1
,()
=>
{
return
false
})
setTimeout
(()
=>
{
PanelCtrl
.
instance
.
show
(
ModuleTypes
.
PRIZE_PANEL
,{
level
:
1
})
},
2000
);
this
.
_data
=
data
;
//滚动的背景变黑
this
[
'rectbg'
].
height
=
this
.
stage
.
stageHeight
;
...
...
mock/happyclear/submit.json
View file @
c4549377
...
...
@@ -12,6 +12,6 @@
"errorMsg"
:
null
,
"success"
:
true
},
"stars"
:
3
"stars"
:
2
}
}
\ No newline at end of file
mock/json/getPlugOrderStatus.json
View file @
c4549377
{
"result"
:
0
,
"result"
:
1
,
"lotteryCode"
:
1
,
"success"
:
true
,
"lottery"
:
{
...
...
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