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
88a11de5
Commit
88a11de5
authored
Dec 31, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
16e4ab76
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
9 deletions
+6
-9
BoxSkin.exml
egret/resource/skins/BoxSkin.exml
+1
-1
BoxPanel.ts
egret/src/panels/BoxPanel.ts
+2
-5
openTreasureBox.json
mock/happyclear/openTreasureBox.json
+2
-2
doSign.json
mock/sign/doSign.json
+1
-1
No files found.
egret/resource/skins/BoxSkin.exml
View file @
88a11de5
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<e:Image
source=
"boxbg_png"
y=
"46.1"
horizontalCenter=
"0"
scale9Grid=
"93,413,564,43"
height=
"783"
/>
<e:Image
source=
"boxbg_png"
y=
"46.1"
horizontalCenter=
"0"
scale9Grid=
"93,413,564,43"
height=
"783"
/>
<e:Image
id=
"img"
width=
"508"
height=
"225"
source=
"{data.url}"
horizontalCenter=
"0"
y=
"429.63"
visible=
"false"
/>
<e:Image
id=
"img"
width=
"508"
height=
"225"
source=
"{data.url}"
horizontalCenter=
"0"
y=
"429.63"
visible=
"false"
/>
<e:Image
id=
"img2"
horizontalCenter=
"10.5"
y=
"429.63"
source=
"{data.url2}"
scaleX=
"0.7"
scaleY=
"0.7"
visible=
"false"
/>
<e:Image
id=
"img2"
horizontalCenter=
"10.5"
y=
"429.63"
source=
"{data.url2}"
scaleX=
"0.7"
scaleY=
"0.7"
visible=
"false"
/>
<e:Image
id=
"money"
y=
"430.07"
scaleX=
"0.6"
scaleY=
"0.6"
source=
"common_money_png"
x=
"150
"
visible=
"false"
/>
<e:Image
id=
"money"
y=
"430.07"
scaleX=
"0.6"
scaleY=
"0.6"
x=
"150"
source=
"signprize元宝_png
"
visible=
"false"
/>
<e:Image
id=
"blood"
y=
"432.67"
horizontalCenter=
"1.5"
source=
"common_blood_png"
scaleX=
"0.7"
scaleY=
"0.7"
visible=
"false"
/>
<e:Image
id=
"blood"
y=
"432.67"
horizontalCenter=
"1.5"
source=
"common_blood_png"
scaleX=
"0.7"
scaleY=
"0.7"
visible=
"false"
/>
<e:Group
id=
"numsgroup"
x=
"396.38"
y=
"432.27"
visible=
"false"
>
<e:Group
id=
"numsgroup"
x=
"396.38"
y=
"432.27"
visible=
"false"
>
<e:Image
id=
"numsbg"
source=
"signprize_numsbg_png"
x=
"0"
y=
"0"
/>
<e:Image
id=
"numsbg"
source=
"signprize_numsbg_png"
x=
"0"
y=
"0"
/>
...
...
egret/src/panels/BoxPanel.ts
View file @
88a11de5
...
@@ -37,10 +37,8 @@ export default class BoxPanel extends Panel {
...
@@ -37,10 +37,8 @@ export default class BoxPanel extends Panel {
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
[
'propnums'
].
text
=
'x1'
;
this
[
'propnums2'
].
text
=
'x1'
;
if
(
num
)
{
if
(
num
)
{
this
[
'propnums'
].
text
=
'x'
+
num
;
this
[
'propnums'
].
text
=
'x'
+
num
;
this
[
'propnums2'
].
text
=
'x'
+
num
;
}
}
switch
(
categoryType
)
{
switch
(
categoryType
)
{
case
2
:
case
2
:
...
@@ -53,10 +51,9 @@ export default class BoxPanel extends Panel {
...
@@ -53,10 +51,9 @@ export default class BoxPanel extends Panel {
this
.
data
.
url2
=
`common_prop
${
propType
}
_png`
;
this
.
data
.
url2
=
`common_prop
${
propType
}
_png`
;
break
;
break
;
case
4
:
case
4
:
this
[
'numsgroup'
].
visible
=
false
;
this
[
'numsgroup'
].
visible
=
true
;
this
[
'propnums2'
].
visible
=
true
;
this
[
'money'
].
visible
=
true
;
this
[
'money'
].
visible
=
true
;
this
[
'propnums2'
].
text
=
realValue
;
this
[
'propnums2'
].
text
=
`x
${
realValue
}
`
;
break
;
break
;
default
:
default
:
this
[
'img'
].
visible
=
true
;
this
[
'img'
].
visible
=
true
;
...
...
mock/happyclear/openTreasureBox.json
View file @
88a11de5
{
{
"success"
:
0
,
"success"
:
1
,
"code"
:
"0000000000"
,
"code"
:
"0000000000"
,
"desc"
:
"OK"
,
"desc"
:
"OK"
,
"timestamp"
:
1572332426229
,
"timestamp"
:
1572332426229
,
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
"id"
:
"41"
,
"id"
:
"41"
,
"day"
:
null
,
"day"
:
null
,
"realValue"
:
87
,
"realValue"
:
87
,
"categoryType"
:
2
,
"categoryType"
:
5
,
"title"
:
"游戏次数2"
,
"title"
:
"游戏次数2"
,
"rate"
:
"10"
,
"rate"
:
"10"
,
"minValue"
:
null
,
"minValue"
:
null
,
...
...
mock/sign/doSign.json
View file @
88a11de5
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
"success"
:
true
,
"success"
:
true
,
"errorMsg"
:
null
,
"errorMsg"
:
null
,
"code"
:
""
,
"code"
:
""
,
"prizeType"
:
"
prop
"
,
"prizeType"
:
"
coin
"
,
"prizeName"
:
"奖品名称"
,
"prizeName"
:
"奖品名称"
,
"logo"
:
"http://yun.duiba.com.cn/db_games/activity/game/guideImage/guide2.png"
,
"logo"
:
"http://yun.duiba.com.cn/db_games/activity/game/guideImage/guide2.png"
,
"prizeCount"
:
11
,
"prizeCount"
:
11
,
...
...
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