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
Hide 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 @@
<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
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
source=
"hbp_bg_png"
y=
"517.96"
horizontalCenter=
"0
"
/>
<e:Group
id=
"numsgroup"
x=
"384.4"
anchorOffsetX=
"0"
width=
"188"
anchorOffsetY=
"0"
height=
"62"
verticalCenter=
"16"
visible=
"false"
>
<e:Image
id=
"
bg"
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"
>
<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: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 {
updateOption
(
option
:
any
)
{
const
{
categoryType
,
img
,
num
,
propType
,
realValue
}
=
option
;
// 2次数 3道具 4元宝 5实物 6优惠券 7虚拟商品
this
[
'
prop
nums'
].
text
=
'×1'
;
this
[
'nums'
].
text
=
'×1'
;
if
(
num
)
this
[
'
prop
nums'
].
text
=
'×'
+
num
;
this
[
'nums'
].
text
=
'×'
+
num
;
switch
(
categoryType
)
{
case
2
:
...
...
@@ -61,10 +61,12 @@ export default class HbPrize extends Panel {
this
.
prop
.
source
=
'hbPrize_money_png'
;
this
[
'numsgroup'
].
visible
=
true
;
// this['money'].visible = true;
this
[
'
prop
nums'
].
text
=
'×'
+
realValue
;
this
[
'nums'
].
text
=
'×'
+
realValue
;
break
;
default
:
this
[
'bg'
].
visible
=
false
;
this
[
'img'
].
visible
=
true
;
this
[
'nums'
].
visible
=
false
;
this
.
data
.
url
=
img
;
break
;
}
...
...
mock/happyclear/hbRainDoJoin.json
View file @
b987f632
...
...
@@ -7,16 +7,16 @@
"option"
:
{
"id"
:
"224"
,
"day"
:
null
,
"categoryType"
:
3
,
"categoryType"
:
2
,
"title"
:
"炸弹"
,
"rate"
:
"50"
,
"minValue"
:
null
,
"maxValue"
:
null
,
"coinType"
:
null
,
"realValue"
:
null
,
"realValue"
:
111
,
"propType"
:
3
,
"num"
:
null
,
"img"
:
""
,
"num"
:
3
,
"img"
:
"
//yun.dui88.com/images/201910/dx04j91xfk.gif
"
,
"appItemId"
:
null
,
"name"
:
""
,
"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