Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wfc13
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wildfirecode13
wfc13
Commits
d72bbf88
Commit
d72bbf88
authored
Aug 09, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
cb7e42e1
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
83 additions
and
916 deletions
+83
-916
assist.do.json
project/mock/webNet/shareAssist/assist.do.json
+1
-1
acquireExperienceAmount.do.json
project/mock/webNet/wallet/acquireExperienceAmount.do.json
+1
-1
alreadyAcquired.do.json
project/mock/webNet/wallet/alreadyAcquired.do.json
+1
-1
myWallet.do.json
project/mock/webNet/wallet/myWallet.do.json
+5
-5
withDraw.do.json
project/mock/webNet/wallet/withDraw.do.json
+1
-1
ResJson.ts
project/src/ResJson.ts
+14
-898
SkinJson.ts
project/src/SkinJson.ts
+13
-1
centerTextField.ts
project/src/centerTextField.ts
+12
-4
getObject.ts
project/src/getObject.ts
+5
-0
assist.ts
project/src/panels/assist.ts
+8
-1
draw.ts
project/src/panels/draw.ts
+3
-1
prize.ts
project/src/panels/prize.ts
+1
-0
IndexScene.ts
project/src/scenes/IndexScene.ts
+18
-2
No files found.
project/mock/webNet/shareAssist/assist.do.json
View file @
d72bbf88
{
"code"
:
null
,
"data"
:
"123"
,
"data"
:
"123
4567890123
"
,
"message"
:
null
,
"success"
:
true
}
\ No newline at end of file
project/mock/webNet/wallet/acquireExperienceAmount.do.json
View file @
d72bbf88
{
"code"
:
null
,
"data"
:
2
000
,
"data"
:
500
000
,
"message"
:
null
,
"success"
:
true
}
\ No newline at end of file
project/mock/webNet/wallet/alreadyAcquired.do.json
View file @
d72bbf88
{
"code"
:
null
,
"data"
:
true
,
"data"
:
1
,
"message"
:
null
,
"success"
:
true
}
\ No newline at end of file
project/mock/webNet/wallet/myWallet.do.json
View file @
d72bbf88
...
...
@@ -2,15 +2,15 @@
"code"
:
null
,
"data"
:
{
"alreadyOpenAccount"
:
false
,
"assistFriendNum"
:
0
,
"assistFriendNum"
:
1
,
"canWithdraw"
:
true
,
"experienceAmount"
:
1234
,
"experienceAmount"
:
22233
,
"maxExperienceAmount"
:
2500
,
"millionShares"
:
null
,
"otherExperienceAmount"
:
0
,
"otherExperienceAmount"
:
1
,
"sevenDayAnnualization"
:
"2.250%"
,
"sumIncome"
:
0.01
,
"yesterdayIncome"
:
0.012
"sumIncome"
:
123456
,
"yesterdayIncome"
:
0.012
3456789
},
"message"
:
null
,
"success"
:
true
...
...
project/mock/webNet/wallet/withDraw.do.json
View file @
d72bbf88
...
...
@@ -2,5 +2,5 @@
"code"
:
"200010"
,
"data"
:
2000
,
"message"
:
"收益未满7天不能提现"
,
"success"
:
fals
e
"success"
:
tru
e
}
\ No newline at end of file
project/src/ResJson.ts
View file @
d72bbf88
...
...
@@ -2,634 +2,35 @@ export const ResJson = {
"groups"
:
[
{
"keys"
:
"ruleBg.png,我知道了.png"
,
"name"
:
"RulePanel"
,
"atlas"
:
{
"ruleBg.png"
:
{
"x"
:
2
,
"y"
:
2
,
"w"
:
680
,
"h"
:
1120
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
680
,
"sh"
:
1120
,
"ro"
:
false
},
"我知道了.png"
:
{
"x"
:
684
,
"y"
:
2
,
"w"
:
412
,
"h"
:
114
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
412
,
"sh"
:
114
,
"ro"
:
true
}
}
"name"
:
"RulePanel"
},
{
"keys"
:
"startSceneBg.jpg,奖品按钮.png,底部按钮区背景.png,开始游戏.png,排行榜按钮.png,规则按钮.png,赚次数按钮.png,运动锦鲤按钮.png"
,
"name"
:
"StartScene"
,
"atlas"
:
{
"底部按钮区背景.png"
:
{
"x"
:
2
,
"y"
:
2
,
"w"
:
750
,
"h"
:
191
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
750
,
"sh"
:
191
,
"ro"
:
false
},
"开始游戏.png"
:
{
"x"
:
2
,
"y"
:
195
,
"w"
:
413
,
"h"
:
149
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
413
,
"sh"
:
149
,
"ro"
:
false
},
"运动锦鲤按钮.png"
:
{
"x"
:
417
,
"y"
:
195
,
"w"
:
121
,
"h"
:
117
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
121
,
"sh"
:
117
,
"ro"
:
true
},
"奖品按钮.png"
:
{
"x"
:
536
,
"y"
:
195
,
"w"
:
119
,
"h"
:
44
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
119
,
"sh"
:
44
,
"ro"
:
true
},
"规则按钮.png"
:
{
"x"
:
582
,
"y"
:
195
,
"w"
:
119
,
"h"
:
44
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
119
,
"sh"
:
44
,
"ro"
:
true
},
"排行榜按钮.png"
:
{
"x"
:
628
,
"y"
:
195
,
"w"
:
91
,
"h"
:
117
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
91
,
"sh"
:
117
,
"ro"
:
true
},
"赚次数按钮.png"
:
{
"x"
:
2
,
"y"
:
346
,
"w"
:
92
,
"h"
:
117
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
92
,
"sh"
:
117
,
"ro"
:
true
}
}
"name"
:
"StartScene"
},
{
"keys"
:
"assist_bg.png,assist_bg2.png,assist_btn.png,assist_close.png,assist_title.png"
,
"name"
:
"assist"
,
"atlas"
:
{
"assist_bg.png"
:
{
"x"
:
2
,
"y"
:
2
,
"w"
:
594
,
"h"
:
574
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
594
,
"sh"
:
574
,
"ro"
:
false
},
"assist_bg2.png"
:
{
"x"
:
2
,
"y"
:
578
,
"w"
:
538
,
"h"
:
463
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
538
,
"sh"
:
463
,
"ro"
:
false
},
"assist_title.png"
:
{
"x"
:
598
,
"y"
:
2
,
"w"
:
439
,
"h"
:
124
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
439
,
"sh"
:
124
,
"ro"
:
true
},
"assist_btn.png"
:
{
"x"
:
598
,
"y"
:
443
,
"w"
:
341
,
"h"
:
101
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
341
,
"sh"
:
101
,
"ro"
:
true
},
"assist_close.png"
:
{
"x"
:
542
,
"y"
:
578
,
"w"
:
46
,
"h"
:
46
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
46
,
"sh"
:
46
,
"ro"
:
false
}
}
"name"
:
"assist"
},
{
"keys"
:
"comCloseBtn.png,toastBg.png,waitingBg.png,waitingRot.png"
,
"name"
:
"common"
,
"atlas"
:
{
"toastBg.png"
:
{
"x"
:
2
,
"y"
:
2
,
"w"
:
503
,
"h"
:
119
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
503
,
"sh"
:
119
,
"ro"
:
false
},
"waitingBg.png"
:
{
"x"
:
2
,
"y"
:
123
,
"w"
:
160
,
"h"
:
180
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
160
,
"sh"
:
180
,
"ro"
:
true
},
"waitingRot.png"
:
{
"x"
:
184
,
"y"
:
123
,
"w"
:
56
,
"h"
:
56
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
56
,
"sh"
:
56
,
"ro"
:
false
},
"comCloseBtn.png"
:
{
"x"
:
184
,
"y"
:
181
,
"w"
:
48
,
"h"
:
48
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
48
,
"sh"
:
48
,
"ro"
:
false
}
}
"name"
:
"common"
},
{
"keys"
:
"draw_bg.png,draw_close.png,draw_ok.png,draw_okbtn.png,draw_title.png"
,
"name"
:
"draw"
,
"atlas"
:
{
"draw_bg.png"
:
{
"x"
:
2
,
"y"
:
2
,
"w"
:
594
,
"h"
:
474
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
594
,
"sh"
:
474
,
"ro"
:
false
},
"draw_title.png"
:
{
"x"
:
2
,
"y"
:
478
,
"w"
:
439
,
"h"
:
124
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
439
,
"sh"
:
124
,
"ro"
:
false
},
"draw_okbtn.png"
:
{
"x"
:
598
,
"y"
:
2
,
"w"
:
381
,
"h"
:
77
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
381
,
"sh"
:
77
,
"ro"
:
true
},
"draw_ok.png"
:
{
"x"
:
2
,
"y"
:
604
,
"w"
:
341
,
"h"
:
101
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
341
,
"sh"
:
101
,
"ro"
:
false
},
"draw_close.png"
:
{
"x"
:
598
,
"y"
:
385
,
"w"
:
46
,
"h"
:
46
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
46
,
"sh"
:
46
,
"ro"
:
false
}
}
"name"
:
"draw"
},
{
"keys"
:
"index_bg.png,index_bg2.png,index_drawBtn.png,index_drawGrayBtn.png,index_inviteBtn.png,index_marquee.png,index_progress.png,index_progressbg.png,index_rulebtn.png,index_task1bg.png,index_task1btn.png,index_task2bg.png,index_title.png"
,
"name"
:
"index"
,
"atlas"
:
{
"index_bg.png"
:
{
"x"
:
2
,
"y"
:
2
,
"w"
:
750
,
"h"
:
1624
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
750
,
"sh"
:
1624
,
"ro"
:
false
},
"index_bg2.png"
:
{
"x"
:
754
,
"y"
:
2
,
"w"
:
687
,
"h"
:
1347
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
687
,
"sh"
:
1347
,
"ro"
:
false
},
"index_task1bg.png"
:
{
"x"
:
754
,
"y"
:
1351
,
"w"
:
633
,
"h"
:
78
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
633
,
"sh"
:
78
,
"ro"
:
false
},
"index_task2bg.png"
:
{
"x"
:
1443
,
"y"
:
2
,
"w"
:
633
,
"h"
:
320
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
633
,
"sh"
:
320
,
"ro"
:
true
},
"index_marquee.png"
:
{
"x"
:
754
,
"y"
:
1431
,
"w"
:
595
,
"h"
:
45
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
595
,
"sh"
:
45
,
"ro"
:
false
},
"index_progressbg.png"
:
{
"x"
:
754
,
"y"
:
1478
,
"w"
:
447
,
"h"
:
33
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
447
,
"sh"
:
33
,
"ro"
:
false
},
"index_progress.png"
:
{
"x"
:
754
,
"y"
:
1513
,
"w"
:
442
,
"h"
:
29
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
442
,
"sh"
:
29
,
"ro"
:
false
},
"index_drawBtn.png"
:
{
"x"
:
1198
,
"y"
:
1513
,
"w"
:
330
,
"h"
:
89
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
330
,
"sh"
:
89
,
"ro"
:
false
},
"index_drawGrayBtn.png"
:
{
"x"
:
1389
,
"y"
:
1351
,
"w"
:
330
,
"h"
:
89
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
330
,
"sh"
:
89
,
"ro"
:
false
},
"index_inviteBtn.png"
:
{
"x"
:
1443
,
"y"
:
637
,
"w"
:
330
,
"h"
:
89
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
330
,
"sh"
:
89
,
"ro"
:
true
},
"index_title.png"
:
{
"x"
:
1203
,
"y"
:
1478
,
"w"
:
214
,
"h"
:
29
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
214
,
"sh"
:
29
,
"ro"
:
false
},
"index_rulebtn.png"
:
{
"x"
:
1419
,
"y"
:
1442
,
"w"
:
139
,
"h"
:
65
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
139
,
"sh"
:
65
,
"ro"
:
false
},
"index_task1btn.png"
:
{
"x"
:
754
,
"y"
:
1544
,
"w"
:
124
,
"h"
:
54
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
124
,
"sh"
:
54
,
"ro"
:
false
}
}
"name"
:
"index"
},
{
"keys"
:
"loading_bg.png,loading_loading.png,loading_progressbg.png,loading_progressfront.png,loading_title.png"
,
"name"
:
"loading"
,
"atlas"
:
{
"loading_bg.png"
:
{
"x"
:
2
,
"y"
:
2
,
"w"
:
750
,
"h"
:
1624
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
750
,
"sh"
:
1624
,
"ro"
:
false
},
"loading_title.png"
:
{
"x"
:
754
,
"y"
:
2
,
"w"
:
633
,
"h"
:
244
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
633
,
"sh"
:
244
,
"ro"
:
true
},
"loading_progressbg.png"
:
{
"x"
:
754
,
"y"
:
637
,
"w"
:
578
,
"h"
:
31
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
578
,
"sh"
:
31
,
"ro"
:
true
},
"loading_progressfront.png"
:
{
"x"
:
787
,
"y"
:
637
,
"w"
:
563
,
"h"
:
23
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
563
,
"sh"
:
23
,
"ro"
:
true
},
"loading_loading.png"
:
{
"x"
:
812
,
"y"
:
637
,
"w"
:
163
,
"h"
:
31
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
163
,
"sh"
:
31
,
"ro"
:
false
}
}
"name"
:
"loading"
},
{
"keys"
:
"newbie_bg.png,newbie_marqee.png,newbie_open.png,newbie_pic2.png,newbie_pic3.png,newbie_pic4.png,newbie_pic5.png,newbie_pic6.png,newbie_pic7.png,newbie_pic8.png,newbie_rule.png,newbie_title.png"
,
"name"
:
"newbie"
,
"atlas"
:
{
"newbie_bg.png"
:
{
"x"
:
2
,
"y"
:
2
,
"w"
:
750
,
"h"
:
1624
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
750
,
"sh"
:
1624
,
"ro"
:
false
},
"newbie_pic5.png"
:
{
"x"
:
754
,
"y"
:
2
,
"w"
:
750
,
"h"
:
1451
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
750
,
"sh"
:
1451
,
"ro"
:
false
},
"newbie_pic4.png"
:
{
"x"
:
1506
,
"y"
:
2
,
"w"
:
750
,
"h"
:
1443
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
750
,
"sh"
:
1443
,
"ro"
:
false
},
"newbie_pic3.png"
:
{
"x"
:
2
,
"y"
:
1628
,
"w"
:
603
,
"h"
:
738
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
603
,
"sh"
:
738
,
"ro"
:
true
},
"newbie_title.png"
:
{
"x"
:
1506
,
"y"
:
1447
,
"w"
:
734
,
"h"
:
149
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
734
,
"sh"
:
149
,
"ro"
:
false
},
"newbie_marqee.png"
:
{
"x"
:
742
,
"y"
:
1628
,
"w"
:
595
,
"h"
:
45
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
595
,
"sh"
:
45
,
"ro"
:
true
},
"newbie_pic6.png"
:
{
"x"
:
789
,
"y"
:
1598
,
"w"
:
581
,
"h"
:
402
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
581
,
"sh"
:
402
,
"ro"
:
true
},
"newbie_pic7.png"
:
{
"x"
:
1193
,
"y"
:
1598
,
"w"
:
563
,
"h"
:
211
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
563
,
"sh"
:
211
,
"ro"
:
true
},
"newbie_pic2.png"
:
{
"x"
:
1406
,
"y"
:
1598
,
"w"
:
453
,
"h"
:
220
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
453
,
"sh"
:
220
,
"ro"
:
true
},
"newbie_open.png"
:
{
"x"
:
1406
,
"y"
:
2053
,
"w"
:
408
,
"h"
:
158
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
408
,
"sh"
:
158
,
"ro"
:
false
},
"newbie_pic8.png"
:
{
"x"
:
1816
,
"y"
:
1598
,
"w"
:
388
,
"h"
:
392
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
388
,
"sh"
:
392
,
"ro"
:
true
},
"newbie_rule.png"
:
{
"x"
:
754
,
"y"
:
1455
,
"w"
:
139
,
"h"
:
65
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
139
,
"sh"
:
65
,
"ro"
:
true
}
}
"name"
:
"newbie"
},
{
"keys"
:
"playBg.jpg"
,
...
...
@@ -637,309 +38,24 @@ export const ResJson = {
},
{
"keys"
:
"prize_bg.png,prize_close.png,prize_invite.png,prize_progress.png,prize_progressbg.png,prize_title.png,prize_title2.png"
,
"name"
:
"prize"
,
"atlas"
:
{
"prize_bg.png"
:
{
"x"
:
2
,
"y"
:
2
,
"w"
:
594
,
"h"
:
574
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
594
,
"sh"
:
574
,
"ro"
:
false
},
"prize_title2.png"
:
{
"x"
:
2
,
"y"
:
578
,
"w"
:
538
,
"h"
:
466
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
538
,
"sh"
:
466
,
"ro"
:
false
},
"prize_title.png"
:
{
"x"
:
598
,
"y"
:
2
,
"w"
:
439
,
"h"
:
124
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
439
,
"sh"
:
124
,
"ro"
:
true
},
"prize_progressbg.png"
:
{
"x"
:
598
,
"y"
:
443
,
"w"
:
347
,
"h"
:
33
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
347
,
"sh"
:
33
,
"ro"
:
true
},
"prize_progress.png"
:
{
"x"
:
542
,
"y"
:
578
,
"w"
:
342
,
"h"
:
29
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
342
,
"sh"
:
29
,
"ro"
:
true
},
"prize_invite.png"
:
{
"x"
:
724
,
"y"
:
2
,
"w"
:
341
,
"h"
:
101
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
341
,
"sh"
:
101
,
"ro"
:
true
},
"prize_close.png"
:
{
"x"
:
724
,
"y"
:
345
,
"w"
:
46
,
"h"
:
46
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
46
,
"sh"
:
46
,
"ro"
:
false
}
}
"name"
:
"prize"
},
{
"keys"
:
"rule_bg.png,rule_close.png,rule_ok.png"
,
"name"
:
"rule"
,
"atlas"
:
{
"rule_bg.png"
:
{
"x"
:
2
,
"y"
:
2
,
"w"
:
594
,
"h"
:
724
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
594
,
"sh"
:
724
,
"ro"
:
false
},
"rule_ok.png"
:
{
"x"
:
598
,
"y"
:
2
,
"w"
:
341
,
"h"
:
101
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
341
,
"sh"
:
101
,
"ro"
:
true
},
"rule_close.png"
:
{
"x"
:
598
,
"y"
:
345
,
"w"
:
46
,
"h"
:
46
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
46
,
"sh"
:
46
,
"ro"
:
false
}
}
"name"
:
"rule"
},
{
"keys"
:
"share_assist.png,share_bg.png,share_go.png,share_maquee.png,share_rule.png"
,
"name"
:
"share"
,
"atlas"
:
{
"share_bg.png"
:
{
"x"
:
2
,
"y"
:
2
,
"w"
:
750
,
"h"
:
1624
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
750
,
"sh"
:
1624
,
"ro"
:
false
},
"share_maquee.png"
:
{
"x"
:
754
,
"y"
:
2
,
"w"
:
595
,
"h"
:
45
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
595
,
"sh"
:
45
,
"ro"
:
true
},
"share_assist.png"
:
{
"x"
:
801
,
"y"
:
2
,
"w"
:
238
,
"h"
:
85
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
238
,
"sh"
:
85
,
"ro"
:
true
},
"share_go.png"
:
{
"x"
:
801
,
"y"
:
242
,
"w"
:
238
,
"h"
:
85
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
238
,
"sh"
:
85
,
"ro"
:
true
},
"share_rule.png"
:
{
"x"
:
801
,
"y"
:
482
,
"w"
:
139
,
"h"
:
65
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
139
,
"sh"
:
65
,
"ro"
:
true
}
}
"name"
:
"share"
},
{
"keys"
:
"share_fail_bg.png,share_fail_btn.png,share_fail_close.png,share_fail_okbtn.png,share_fail_title.png"
,
"name"
:
"share_fail"
,
"atlas"
:
{
"share_fail_bg.png"
:
{
"x"
:
2
,
"y"
:
2
,
"w"
:
594
,
"h"
:
474
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
594
,
"sh"
:
474
,
"ro"
:
false
},
"share_fail_title.png"
:
{
"x"
:
2
,
"y"
:
478
,
"w"
:
439
,
"h"
:
124
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
439
,
"sh"
:
124
,
"ro"
:
false
},
"share_fail_okbtn.png"
:
{
"x"
:
598
,
"y"
:
2
,
"w"
:
381
,
"h"
:
77
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
381
,
"sh"
:
77
,
"ro"
:
true
},
"share_fail_btn.png"
:
{
"x"
:
2
,
"y"
:
604
,
"w"
:
341
,
"h"
:
101
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
341
,
"sh"
:
101
,
"ro"
:
false
},
"share_fail_close.png"
:
{
"x"
:
598
,
"y"
:
385
,
"w"
:
46
,
"h"
:
46
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
46
,
"sh"
:
46
,
"ro"
:
false
}
}
"name"
:
"share_fail"
},
{
"keys"
:
"share_success_bg.png,share_success_btn.png,share_success_close.png,share_success_okbtn.png,share_success_title.png"
,
"name"
:
"share_success"
,
"atlas"
:
{
"share_success_bg.png"
:
{
"x"
:
2
,
"y"
:
2
,
"w"
:
594
,
"h"
:
474
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
594
,
"sh"
:
474
,
"ro"
:
false
},
"share_success_title.png"
:
{
"x"
:
2
,
"y"
:
478
,
"w"
:
439
,
"h"
:
124
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
439
,
"sh"
:
124
,
"ro"
:
false
},
"share_success_okbtn.png"
:
{
"x"
:
598
,
"y"
:
2
,
"w"
:
381
,
"h"
:
77
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
381
,
"sh"
:
77
,
"ro"
:
true
},
"share_success_btn.png"
:
{
"x"
:
2
,
"y"
:
604
,
"w"
:
341
,
"h"
:
101
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
341
,
"sh"
:
101
,
"ro"
:
false
},
"share_success_close.png"
:
{
"x"
:
598
,
"y"
:
385
,
"w"
:
46
,
"h"
:
46
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
46
,
"sh"
:
46
,
"ro"
:
false
}
}
"name"
:
"share_success"
}
],
"path"
:
"
https://yun.duiba.com.cn/db_games/activity/template/1628477708
/resource/"
"path"
:
"
.
/resource/"
}
\ No newline at end of file
project/src/SkinJson.ts
View file @
d72bbf88
...
...
@@ -917,12 +917,24 @@ export const SkinJson ={
"y"
:
383
,
"type"
:
"text"
,
"props"
:
{
"text"
:
"1000
元
"
,
"text"
:
"1000"
,
"size"
:
60
,
"fillColor"
:
"#ff2f50"
,
"textAlpha"
:
1
}
},
{
"name"
:
"index_experienceAmountTips2"
,
"x"
:
302
,
"y"
:
403
,
"type"
:
"text"
,
"props"
:
{
"text"
:
"元"
,
"size"
:
30
,
"fillColor"
:
"#ff2f50"
,
"textAlpha"
:
1
}
},
{
"name"
:
"index_drawBtn"
,
"x"
:
205
,
...
...
project/src/centerTextField.ts
View file @
d72bbf88
export
default
(
txt
)
=>
{
txt
.
x
=
0
;
txt
.
textWidth
=
750
;
txt
.
textAlign
=
'center'
;
const
func
=
(
txt
,
width
,
offset
)
=>
{
txt
.
x
=
offset
||
0
;
txt
.
textWidth
=
width
||
750
;
txt
.
textAlign
=
'center'
;
}
export
default
(
txt
,
width
?,
offset
?)
=>
{
if
(
txt
instanceof
Array
)
{
txt
.
forEach
(
item
=>
func
(
item
,
width
,
offset
))
}
else
{
func
(
txt
,
width
,
offset
)
}
}
\ No newline at end of file
project/src/getObject.ts
View file @
d72bbf88
...
...
@@ -10,4 +10,9 @@ getObject = (object:FYGE.Container, name:string)=>{
return
null
;
}
export
const
getObjects
=
(
object
:
FYGE
.
Container
,
names
:
string
[])
=>
{
return
names
.
map
(
name
=>
getObject
(
object
,
name
))
}
export
default
getObject
\ No newline at end of file
project/src/panels/assist.ts
View file @
d72bbf88
import
{
RES
}
from
"../../module/RES"
;
import
{
Panel
}
from
"../../module/views/Panel"
;
import
centerTextField
from
"../centerTextField"
;
import
getObject
from
"../getObject"
;
export
class
AssistPanel
extends
Panel
{
...
...
@@ -21,6 +22,12 @@ export class AssistPanel extends Panel {
super
.
start
(
data
);
getObject
(
this
,
'assist_amout'
).
text
=
`
${
data
}
`
const
prize_tips1
=
getObject
(
this
,
'assist_tips'
);
const
prize_tips2
=
getObject
(
this
,
'assist_amout'
);
prize_tips2
.
text
=
data
;
const
w
=
prize_tips1
.
textWidth
+
prize_tips2
.
textWidth
;
prize_tips2
.
x
=
(
595
-
w
)
/
2
;
prize_tips1
.
x
=
prize_tips2
.
x
+
prize_tips2
.
textWidth
;
centerTextField
(
getObject
(
this
,
'assist_tips2'
),
595
)
}
}
\ No newline at end of file
project/src/panels/draw.ts
View file @
d72bbf88
import
{
RES
}
from
"../../module/RES"
;
import
{
Panel
}
from
"../../module/views/Panel"
;
import
getObject
from
"../getObject"
;
import
centerTextField
from
"../centerTextField"
;
import
getObject
,
{
getObjects
}
from
"../getObject"
;
export
class
DrawPanel
extends
Panel
{
initUi
()
{
...
...
@@ -19,6 +20,7 @@ export class DrawPanel extends Panel {
async
start
(
data
)
{
super
.
start
(
data
);
centerTextField
(
getObject
(
this
,
'draw_tips'
),
597
);
getObject
(
this
,
'draw_tips'
).
text
=
`成功获得奖励金
${
data
}
元\n奖励将于24小时内发放到您的账户`
}
}
\ No newline at end of file
project/src/panels/prize.ts
View file @
d72bbf88
...
...
@@ -28,6 +28,7 @@ export class PrizePanel extends Panel {
const
w
=
prize_tips1
.
textWidth
+
prize_tips2
.
textWidth
;
prize_tips2
.
x
=
(
595
-
w
)
/
2
;
prize_tips1
.
x
=
prize_tips2
.
x
+
prize_tips2
.
textWidth
;
prize_tip3
.
textWidth
=
595
;
prize_tip3
.
x
=
0
;
prize_tip3
.
textAlign
=
'center'
;
...
...
project/src/scenes/IndexScene.ts
View file @
d72bbf88
...
...
@@ -2,11 +2,12 @@ import { unwatchPageVisibility, watchPageVisibility } from '@spark/utils';
import
{
showPanel
,
showToast
}
from
"../../module/ctrls"
;
import
PanelCtrl
from
'../../module/ctrls/panelCtrl'
;
import
{
Scene
}
from
"../../module/views/Scene"
;
import
centerTextField
from
'../centerTextField'
;
import
Marquee
from
'../common/Marquee'
;
import
{
ProgressBarS
}
from
'../common/ProgressBarS'
;
import
{
hideShareMask
,
showShareMask
}
from
'../common/ShareMask'
;
import
{
MAX_MONEY
}
from
'../datas'
;
import
getObject
from
'../getObject'
;
import
getObject
,
{
getObjects
}
from
'../getObject'
;
import
getQueryParams
from
'../getQueryParams'
;
import
{
DrawPanel
}
from
'../panels/draw'
;
import
{
RulePanel
}
from
'../panels/rule'
;
...
...
@@ -18,12 +19,18 @@ import { getPxTokenSave, getWebData, sendWebNet, WebNetName } from '../WebNet';
export
class
IndexScene
extends
Scene
{
updateIndexUI
({
experienceAmount
,
yesterdayIncome
,
sumIncome
,
sevenDayAnnualization
,
assistFriendNum
,
otherExperienceAmount
})
{
getObject
(
this
,
'index_experienceAmountTips'
).
text
=
experienceAmount
;
getObject
(
this
,
'index_experienceAmountTips'
).
text
=
experienceAmount
||
"0"
;
getObject
(
this
,
'index_sumIncomeTips'
).
text
=
sumIncome
||
'0'
;
getObject
(
this
,
'index_sevenDayAnnualizationTips'
).
text
=
sevenDayAnnualization
;
getObject
(
this
,
'index_yesterdayIncomeTips'
).
text
=
`昨日收益:
${
yesterdayIncome
||
'0'
}
元`
;
getObject
(
this
,
'index_invitePercentTips'
).
text
=
`
${
experienceAmount
}
/1000000`
;
getObject
(
this
,
'index_inviteTips'
).
text
=
`已有
${
assistFriendNum
}
位好友助力,体验金增加
${
otherExperienceAmount
}
元`
;
const
prize_tips1
=
getObject
(
this
,
'index_experienceAmountTips2'
);
const
prize_tips2
=
getObject
(
this
,
'index_experienceAmountTips'
);
const
w
=
prize_tips1
.
textWidth
+
prize_tips2
.
textWidth
;
prize_tips2
.
x
=
(
750
-
w
)
/
2
;
prize_tips1
.
x
=
prize_tips2
.
x
+
prize_tips2
.
textWidth
;
let
percent
=
0.05
;
if
(
experienceAmount
/
MAX_MONEY
>
percent
)
{
...
...
@@ -63,6 +70,15 @@ export class IndexScene extends Scene {
this
.
page
.
view
.
addChild
(
getObject
(
this
,
'index_wrapper'
));
getObject
(
this
,
'index_drawGrayBtn'
).
visible
=
false
;
centerTextField
(
getObjects
(
this
,[
'index_yesterdayIncomeTips'
,
'index_invitePercentTips'
,
'index_inviteTips'
]));
centerTextField
(
getObject
(
this
,
'index_sumIncomeTips'
),
0
,
-
144
+
5
);
centerTextField
(
getObject
(
this
,
'index_sevenDayAnnualizationTips'
),
0
,
140
);
}
async
start
(
data
)
{
...
...
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