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
b987f632
Commit
b987f632
authored
Apr 30, 2020
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
1d037462
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
10 deletions
+12
-10
HbPrizeSkin.exml
egret/resource/skins/HbPrizeSkin.exml
+3
-3
HbPrize.ts
egret/src/panels/HongbaoRain/HbPrize.ts
+5
-3
hbRainDoJoin.json
mock/happyclear/hbRainDoJoin.json
+4
-4
No files found.
egret/resource/skins/HbPrizeSkin.exml
View file @
b987f632
...
@@ -5,9 +5,9 @@
...
@@ -5,9 +5,9 @@
<e:Image
id=
"combglight1"
source=
"combglight_png"
y=
"385.32"
anchorOffsetX=
"375"
anchorOffsetY=
"418"
horizontalCenter=
"0"
/>
<e:Image
id=
"combglight1"
source=
"combglight_png"
y=
"385.32"
anchorOffsetX=
"375"
anchorOffsetY=
"418"
horizontalCenter=
"0"
/>
<e:Image
y=
"-145.5"
source=
"hbPrize_bg_png"
horizontalCenter=
"1"
/>
<e:Image
y=
"-145.5"
source=
"hbPrize_bg_png"
horizontalCenter=
"1"
/>
<e:Image
id=
"img"
width=
"518"
height=
"230"
source=
"{data.url}"
y=
"516.3"
horizontalCenter=
"0"
/>
<e:Image
id=
"img"
width=
"518"
height=
"230"
source=
"{data.url}"
y=
"516.3"
horizontalCenter=
"0"
/>
<e:Image
id=
"
prop"
scaleX=
"1"
scaleY=
"1"
horizontalCenter=
"-63.5"
source=
"taskPrize_money_png"
verticalCenter=
"15.5
"
/>
<e:Image
id=
"
bg"
source=
"hbp_bg_png"
y=
"517.96"
horizontalCenter=
"0
"
/>
<e:Image
source=
"hbp_bg_png"
y=
"517.96"
horizontalCenter=
"0
"
/>
<e:Image
id=
"prop"
scaleX=
"1"
scaleY=
"1"
horizontalCenter=
"-63.5"
verticalCenter=
"15.5"
source=
"
"
/>
<e:Group
id=
"numsgroup"
x=
"384.4"
anchorOffsetX=
"0"
width=
"188"
anchorOffsetY=
"0"
height=
"62"
verticalCenter=
"16"
visible=
"false"
>
<e:Group
id=
"numsgroup"
x=
"384.4"
anchorOffsetX=
"0"
width=
"188"
anchorOffsetY=
"0"
height=
"62"
verticalCenter=
"16"
>
<e:Label
id=
"nums"
text=
"×8"
size=
"48"
verticalCenter=
"0"
verticalAlign=
"middle"
textAlign=
"center"
fontFamily=
"FZY3JW"
textColor=
"0xC17343"
left=
"0"
bold=
"true"
/>
<e:Label
id=
"nums"
text=
"×8"
size=
"48"
verticalCenter=
"0"
verticalAlign=
"middle"
textAlign=
"center"
fontFamily=
"FZY3JW"
textColor=
"0xC17343"
left=
"0"
bold=
"true"
/>
</e:Group>
</e:Group>
<e:Image
id=
"money"
source=
"signprize元宝_png"
y=
"491.4"
scaleX=
"0.8"
scaleY=
"0.8"
horizontalCenter=
"-3"
visible=
"false"
/>
<e:Image
id=
"money"
source=
"signprize元宝_png"
y=
"491.4"
scaleX=
"0.8"
scaleY=
"0.8"
horizontalCenter=
"-3"
visible=
"false"
/>
...
...
egret/src/panels/HongbaoRain/HbPrize.ts
View file @
b987f632
...
@@ -42,9 +42,9 @@ export default class HbPrize extends Panel {
...
@@ -42,9 +42,9 @@ export default class HbPrize 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
nums'
].
text
=
'×1'
;
this
[
'nums'
].
text
=
'×1'
;
if
(
num
)
if
(
num
)
this
[
'
prop
nums'
].
text
=
'×'
+
num
;
this
[
'nums'
].
text
=
'×'
+
num
;
switch
(
categoryType
)
{
switch
(
categoryType
)
{
case
2
:
case
2
:
...
@@ -61,10 +61,12 @@ export default class HbPrize extends Panel {
...
@@ -61,10 +61,12 @@ export default class HbPrize extends Panel {
this
.
prop
.
source
=
'hbPrize_money_png'
;
this
.
prop
.
source
=
'hbPrize_money_png'
;
this
[
'numsgroup'
].
visible
=
true
;
this
[
'numsgroup'
].
visible
=
true
;
// this['money'].visible = true;
// this['money'].visible = true;
this
[
'
prop
nums'
].
text
=
'×'
+
realValue
;
this
[
'nums'
].
text
=
'×'
+
realValue
;
break
;
break
;
default
:
default
:
this
[
'bg'
].
visible
=
false
;
this
[
'img'
].
visible
=
true
;
this
[
'img'
].
visible
=
true
;
this
[
'nums'
].
visible
=
false
;
this
.
data
.
url
=
img
;
this
.
data
.
url
=
img
;
break
;
break
;
}
}
...
...
mock/happyclear/hbRainDoJoin.json
View file @
b987f632
...
@@ -7,16 +7,16 @@
...
@@ -7,16 +7,16 @@
"option"
:
{
"option"
:
{
"id"
:
"224"
,
"id"
:
"224"
,
"day"
:
null
,
"day"
:
null
,
"categoryType"
:
3
,
"categoryType"
:
2
,
"title"
:
"炸弹"
,
"title"
:
"炸弹"
,
"rate"
:
"50"
,
"rate"
:
"50"
,
"minValue"
:
null
,
"minValue"
:
null
,
"maxValue"
:
null
,
"maxValue"
:
null
,
"coinType"
:
null
,
"coinType"
:
null
,
"realValue"
:
null
,
"realValue"
:
111
,
"propType"
:
3
,
"propType"
:
3
,
"num"
:
null
,
"num"
:
3
,
"img"
:
""
,
"img"
:
"
//yun.dui88.com/images/201910/dx04j91xfk.gif
"
,
"appItemId"
:
null
,
"appItemId"
:
null
,
"name"
:
""
,
"name"
:
""
,
"value"
:
""
"value"
:
""
...
...
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