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
01bd4a11
Commit
01bd4a11
authored
Dec 31, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
92739795
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
575 additions
and
567 deletions
+575
-567
PrizePanel.ts
egret/libs/new_wx/components/PrizePanel.ts
+7
-7
MainScene.ts
egret/src/mainScene/MainScene.ts
+438
-438
MapScene.ts
egret/src/mapScene/MapScene.ts
+130
-122
No files found.
egret/libs/new_wx/components/PrizePanel.ts
View file @
01bd4a11
...
...
@@ -12,11 +12,11 @@ export default class PrizePanel extends Panel {
_level
;
updateOption
(
option
:
any
)
{
const
{
categoryType
,
img
,
num
,
propType
,
realValue
}
=
option
;
// 2次数 3道具 4元宝 5实物 6优惠券 7虚拟商品
const
{
categoryType
,
img
,
num
,
propType
,
realValue
}
=
option
;
// 2次数 3道具 4元宝 5实物 6优惠券 7虚拟商品
this
[
'propnums'
].
text
=
'x1'
;
this
[
'propnums2'
].
text
=
'x1'
;
if
(
num
)
{
if
(
num
)
{
this
[
'propnums'
].
text
=
'x'
+
num
;
this
[
'propnums2'
].
text
=
'x'
+
num
;
}
...
...
@@ -34,7 +34,7 @@ export default class PrizePanel extends Panel {
this
[
'numsgroup'
].
visible
=
false
;
this
[
'propnums2'
].
visible
=
true
;
this
[
'money'
].
visible
=
true
;
this
[
'propnums2'
].
text
=
realValue
;
this
[
'propnums2'
].
text
=
realValue
;
break
;
default
:
this
[
'img'
].
visible
=
true
;
...
...
@@ -42,12 +42,12 @@ export default class PrizePanel extends Panel {
break
;
}
}
start
(
data
)
{
super
.
start
();
this
.
_level
=
parseInt
(
data
.
level
+
''
);
this
[
'lvTxt'
].
text
=
`关卡
${
this
.
_level
}
`
this
.
updateOption
(
data
.
option
);
this
[
'shareBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
...
...
@@ -71,7 +71,7 @@ export default class PrizePanel extends Panel {
this
.
setStar
(
hc_submitData
.
stars
);
addRankFriendList
(
84
,
889.74
,
this
);
addRankFriendList
(
84
,
889.74
,
this
);
}
showlog
()
{
...
...
egret/src/mainScene/MainScene.ts
View file @
01bd4a11
This source diff could not be displayed because it is too large. You can
view the blob
instead.
egret/src/mapScene/MapScene.ts
View file @
01bd4a11
This diff is collapsed.
Click to expand it.
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