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
d46f4eca
Commit
d46f4eca
authored
Apr 07, 2020
by
zjz1994
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整显示转盘抽奖券底黄图
parent
2cb9c481
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
TurntablePrizePanel.ts
egret/src/panels/TurntablePanel/TurntablePrizePanel.ts
+4
-4
No files found.
egret/src/panels/TurntablePanel/TurntablePrizePanel.ts
View file @
d46f4eca
...
@@ -37,22 +37,22 @@ export default class TurnPrizePanel extends Panel {
...
@@ -37,22 +37,22 @@ export default class TurnPrizePanel extends Panel {
updateOption
(
option
:
any
)
{
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
[
"prop"
].
visible
=
this
[
'numsgroup'
].
visible
=
this
[
'img'
].
visible
=
false
;
this
[
"
bg0"
].
visible
=
this
[
"
prop"
].
visible
=
this
[
'numsgroup'
].
visible
=
this
[
'img'
].
visible
=
false
;
this
[
'propnums'
].
text
=
'x1'
;
this
[
'propnums'
].
text
=
'x1'
;
if
(
num
)
if
(
num
)
this
[
'propnums'
].
text
=
'x'
+
num
;
this
[
'propnums'
].
text
=
'x'
+
num
;
switch
(
categoryType
)
{
switch
(
categoryType
)
{
case
2
:
case
2
:
this
[
"prop"
].
source
=
'common_blood_png'
;
this
[
"prop"
].
source
=
'common_blood_png'
;
this
[
'numsgroup'
].
visible
=
this
[
"prop"
].
visible
=
true
;
this
[
"bg0"
].
visible
=
this
[
'numsgroup'
].
visible
=
this
[
"prop"
].
visible
=
true
;
break
;
break
;
case
3
:
case
3
:
this
[
"prop"
].
source
=
`hbPrize_icon
${
propType
}
_png`
;
this
[
"prop"
].
source
=
`hbPrize_icon
${
propType
}
_png`
;
this
[
'numsgroup'
].
visible
=
this
[
"prop"
].
visible
=
true
;
this
[
"bg0"
].
visible
=
this
[
'numsgroup'
].
visible
=
this
[
"prop"
].
visible
=
true
;
break
;
break
;
case
4
:
case
4
:
this
[
"prop"
].
source
=
'common_yuanbao_png'
;
this
[
"prop"
].
source
=
'common_yuanbao_png'
;
this
[
'numsgroup'
].
visible
=
this
[
"prop"
].
visible
=
true
;
this
[
"bg0"
].
visible
=
this
[
'numsgroup'
].
visible
=
this
[
"prop"
].
visible
=
true
;
this
[
'propnums'
].
text
=
'×'
+
realValue
;
this
[
'propnums'
].
text
=
'×'
+
realValue
;
break
;
break
;
default
:
default
:
...
...
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