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
800a6fd9
Commit
800a6fd9
authored
Aug 24, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
2e07ffee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
12 deletions
+13
-12
PrizePanel.ts
egret/libs/new_wx/components/PrizePanel.ts
+3
-4
MapScene.ts
egret/src/mapScene/MapScene.ts
+10
-8
No files found.
egret/libs/new_wx/components/PrizePanel.ts
View file @
800a6fd9
import
{
getlogItem
}
from
"../../../src/Main"
;
import
setGray
from
"../../../src/setGray"
;
import
Panel
from
"./Panel
"
;
import
{
DataManager
}
from
"../../tw/manager/DataManager
"
;
import
{
NetManager
}
from
"../../tw/manager/NetManager"
;
import
{
getlogItem
}
from
"../../../src/Main"
;
import
{
createData
}
from
"../../../src/startScene/StartScene"
;
import
SceneCtrl
from
"../ctrls/sceneCtrl"
;
import
{
ModuleTypes
}
from
"../types/sceneTypes"
;
import
{
DataManager
}
from
"../../tw/manager/DataManager
"
;
import
Panel
from
"./Panel
"
;
export
default
class
PrizePanel
extends
Panel
{
start
(
data
)
{
super
.
start
();
...
...
egret/src/mapScene/MapScene.ts
View file @
800a6fd9
...
...
@@ -169,21 +169,23 @@ export default class MapScene extends Scene {
}
async
onTap_box
()
{
console
.
log
(
1
)
// const data = getHomeData();
// if (data.canReceiveTreasureBoxNum > 0) {
this
[
'box'
].
touchEnabled
=
false
;
this
[
'boxani'
].
touchEnabled
=
false
;
this
[
'boxani'
].
touchChildren
=
false
;
await
this
.
playAni
();
NetManager
.
ins
.
hc_openTreasureBox
((
success
)
=>
{
this
[
'box'
].
touchEnabled
=
true
;
this
[
'boxani'
].
touchEnabled
=
true
;
this
[
'boxani'
].
touchChildren
=
true
;
if
(
success
)
{
const
boxdata
=
DataManager
.
ins
.
getData
(
'hc_openTreasureBox'
).
data
;
const
homeData
=
DataManager
.
ins
.
getData
(
'hc_home'
).
data
;
homeData
.
canReceiveTreasureBoxNum
=
boxdata
.
canReceiveTreasureBoxNum
;
homeData
.
nextRangeStarsNum
=
boxdata
.
nextRangeStarsNum
;
homeData
.
totalStarts
=
boxdata
.
totalStarts
;
this
.
updateBox
();
const
data
=
DataManager
.
ins
.
getData
(
'hc_openTreasureBox'
).
data
;
const
data
=
DataManager
.
ins
.
getData
(
'hc_openTreasureBox'
).
data
;
NetManager
.
ins
.
getPlugOrderStatus
((
s
)
=>
{
if
(
s
)
{
const
data
=
DataManager
.
ins
.
getData
(
'getPlugOrderStatus'
);
...
...
@@ -194,14 +196,14 @@ const data = DataManager.ins.getData('hc_openTreasureBox').data;
showToast
(
'您与奖品擦肩而过~'
);
}
}
else
{
showToast
(
'您与奖品擦肩而过~'
);
}
},
data
.
orderNum
,
data
.
orderNum
,
()
=>
{
return
DataManager
.
ins
.
getData
(
'getPlugOrderStatus'
).
result
==
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