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
d722f417
Commit
d722f417
authored
Oct 29, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
6d270ce3
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
41 additions
and
15 deletions
+41
-15
scratchprize.tmproject
egret/resource/TextureMerger/scratchprize.tmproject
+1
-0
BackSkin.exml
egret/resource/skins/BackSkin.exml
+3
-3
BackPanel.ts
egret/src/panels/BackPanel.ts
+7
-4
BoxPanel.ts
egret/src/panels/BoxPanel.ts
+5
-2
TurntablePrizePanel.ts
egret/src/panels/TurntablePanel/TurntablePrizePanel.ts
+2
-1
getBackReward.json
mock/happyclear/getBackReward.json
+3
-2
openTreasureBox.json
mock/happyclear/openTreasureBox.json
+3
-2
submit.json
mock/happyclear/submit.json
+17
-1
No files found.
egret/resource/TextureMerger/scratchprize.tmproject
0 → 100644
View file @
d722f417
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"scratchprize","version":5,"files":["../assets/scratch/prize/scratchPrize_bg.png","../assets/scratch/prize/scratchPrize_btn.png","../assets/scratch/prize/scratchPrize_game_btn.png"]}
\ No newline at end of file
egret/resource/skins/BackSkin.exml
View file @
d722f417
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"BackSkin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<w:Config
id=
"16e0235c541"
/>
<e:Component
y=
"8
06.52
"
skinName=
"ADSmallSkin"
horizontalCenter=
"0"
visible=
"false"
/>
<e:Image
y=
"-
30.27"
source=
"backbg_png"
horizontalCenter=
"
0"
/>
<e:Component
y=
"8
48.94
"
skinName=
"ADSmallSkin"
horizontalCenter=
"0"
visible=
"false"
/>
<e:Image
y=
"-
48.45"
source=
"backbg_png"
horizontalCenter=
"0"
scale9Grid=
"93,550,564,42"
height=
"91
0"
/>
<e:Image
y=
"-20.27"
horizontalCenter=
"0"
x=
"10"
source=
""
/>
<e:Image
id=
"img"
width=
"508"
height=
"225"
source=
"{data.url}"
horizontalCenter=
"0"
y=
"377.76"
visible=
"false"
/>
<e:Image
id=
"money"
source=
"signprize元宝_png"
y=
"368.2"
horizontalCenter=
"0"
scaleX=
"0.8"
scaleY=
"0.8"
visible=
"false"
/>
...
...
@@ -19,7 +19,7 @@
</e:Skin>
</e:skinName>
</e:Button>
<e:Button
id=
"inviteBtn"
label=
""
y=
"
67
5"
horizontalCenter=
"12"
>
<e:Button
id=
"inviteBtn"
label=
""
y=
"
720.4
5"
horizontalCenter=
"12"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"back按钮 副本 91_png"
source.down=
"back按钮 副本 91_png"
source.disabled=
"back按钮 副本 91_png"
/>
...
...
egret/src/panels/BackPanel.ts
View file @
d722f417
...
...
@@ -9,7 +9,7 @@ export default class BackPanel extends Panel {
start
(
data
)
{
super
.
start
();
this
.
showlog
();
addAdComp
(
84
,
8
06.52
,
this
,
56
)
addAdComp
(
84
,
8
48.94
,
this
,
56
)
const
backData
=
DataManager
.
ins
.
getData
(
'hc_getBackReward'
);
this
.
updateOption
(
backData
.
data
);
NetManager
.
ins
.
showLog
(
getlogItem
(
56
));
...
...
@@ -30,9 +30,11 @@ export default class BackPanel extends Panel {
}
updateOption
(
option
:
any
)
{
const
{
categoryType
,
img
,
num
,
propType
}
=
option
;
// 2次数 3道具 4元宝 5实物 6优惠券 7虚拟商品
this
[
'propnums'
].
text
=
'x'
+
num
;
const
{
categoryType
,
img
,
num
,
propType
,
realValue
}
=
option
;
// 2次数 3道具 4元宝 5实物 6优惠券 7虚拟商品
this
[
'propnums'
].
text
=
'x1'
;
if
(
num
)
this
[
'propnums'
].
text
=
'x'
+
num
;
switch
(
categoryType
)
{
case
2
:
this
[
'blood'
].
visible
=
true
;
...
...
@@ -46,6 +48,7 @@ export default class BackPanel extends Panel {
case
4
:
this
[
'numsgroup'
].
visible
=
true
;
this
[
'money'
].
visible
=
true
;
this
[
'propnums'
].
text
=
'x'
+
realValue
;
break
;
default
:
this
[
'img'
].
visible
=
true
;
...
...
egret/src/panels/BoxPanel.ts
View file @
d722f417
...
...
@@ -21,9 +21,11 @@ export default class BoxPanel extends Panel {
}
updateOption
(
option
:
any
)
{
const
{
categoryType
,
img
,
num
,
propType
}
=
option
;
// 2次数 3道具 4元宝 5实物 6优惠券 7虚拟商品
const
{
categoryType
,
img
,
num
,
propType
,
realValue
}
=
option
;
// 2次数 3道具 4元宝 5实物 6优惠券 7虚拟商品
this
[
'propnums'
].
text
=
'x'
+
num
;
this
[
'propnums'
].
text
=
'x1'
;
if
(
num
)
this
[
'propnums'
].
text
=
'x'
+
num
;
switch
(
categoryType
)
{
case
2
:
this
[
'blood'
].
visible
=
true
;
...
...
@@ -37,6 +39,7 @@ export default class BoxPanel extends Panel {
case
4
:
this
[
'numsgroup'
].
visible
=
true
;
this
[
'money'
].
visible
=
true
;
this
[
'propnums'
].
text
=
'x'
+
realValue
;
break
;
default
:
this
[
'img'
].
visible
=
true
;
...
...
egret/src/panels/TurntablePanel/TurntablePrizePanel.ts
View file @
d722f417
...
...
@@ -35,7 +35,7 @@ export default class TurnPrizePanel extends Panel {
}
updateOption
(
option
:
any
)
{
const
{
categoryType
,
img
,
num
,
propType
}
=
option
;
// 2次数 3道具 4元宝 5实物 6优惠券 7虚拟商品
const
{
categoryType
,
img
,
num
,
propType
,
realValue
}
=
option
;
// 2次数 3道具 4元宝 5实物 6优惠券 7虚拟商品
this
[
'propnums'
].
text
=
'x1'
;
if
(
num
)
...
...
@@ -54,6 +54,7 @@ export default class TurnPrizePanel extends Panel {
case
4
:
this
[
'numsgroup'
].
visible
=
true
;
this
[
'money'
].
visible
=
true
;
this
[
'propnums'
].
text
=
'x'
+
realValue
;
break
;
default
:
this
[
'img'
].
visible
=
true
;
...
...
mock/happyclear/getBackReward.json
View file @
d722f417
...
...
@@ -2,11 +2,12 @@
"code"
:
"0000000000"
,
"data"
:{
"appItemId"
:
2322
,
"categoryType"
:
1
,
"categoryType"
:
2
,
"coinType"
:
1
,
"img"
:
"1
"
,
"img"
:
"//yun.dui88.com/images/201910/e6pmpk2pne.png
"
,
"maxValue"
:
2
,
"minValue"
:
1
,
"realValue"
:
87
,
"name"
:
"测试商品"
,
"num"
:
3
,
"propType"
:
2
,
...
...
mock/happyclear/openTreasureBox.json
View file @
d722f417
...
...
@@ -12,14 +12,15 @@
"option"
:
{
"id"
:
"41"
,
"day"
:
null
,
"categoryType"
:
5
,
"realValue"
:
87
,
"categoryType"
:
4
,
"title"
:
"游戏次数2"
,
"rate"
:
"10"
,
"minValue"
:
null
,
"maxValue"
:
null
,
"coinType"
:
1
,
"propType"
:
2
,
"num"
:
2
,
"num"
:
null
,
"img"
:
"//yun.dui88.com/images/201910/e6pmpk2pne.png"
,
"appItemId"
:
null
,
"name"
:
""
,
...
...
mock/happyclear/submit.json
View file @
d722f417
...
...
@@ -4,7 +4,23 @@
"desc"
:
"OK"
,
"timestamp"
:
1566546925981
,
"data"
:{
"prizeType"
:
2
,
"option"
:
{
"id"
:
"41"
,
"day"
:
null
,
"realValue"
:
87
,
"categoryType"
:
4
,
"title"
:
"游戏次数2"
,
"rate"
:
"10"
,
"minValue"
:
null
,
"maxValue"
:
null
,
"coinType"
:
1
,
"propType"
:
2
,
"num"
:
null
,
"img"
:
"//yun.dui88.com/images/201910/e6pmpk2pne.png"
,
"appItemId"
:
null
,
"name"
:
""
,
"value"
:
""
},
"prizeResponse"
:{
"errorCode"
:
null
,
"changeMoney"
:
888
,
...
...
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