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
484c1133
Commit
484c1133
authored
Aug 10, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
9ee08728
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
877 additions
and
19 deletions
+877
-19
index.html
project/index.html
+2
-2
alreadyAcquired.do.json
project/mock/webNet/wallet/alreadyAcquired.do.json
+1
-1
myWallet.do.json
project/mock/webNet/wallet/myWallet.do.json
+1
-1
ResJson.ts
project/src/ResJson.ts
+865
-14
IndexScene.ts
project/src/scenes/IndexScene.ts
+7
-1
NewbieScene.ts
project/src/scenes/NewbieScene.ts
+1
-0
No files found.
project/index.html
View file @
484c1133
...
...
@@ -67,8 +67,8 @@
</script>
<!-- 构建的js -->
<
script
src=
"output.js"
crossorigin=
"anonymous"
></script
>
<
!-- <script src="https://yun.duiba.com.cn/db_games/activity/template/1628494686/output.js" crossorigin="anonymous"></script> --
>
<
!-- <script src="output.js" crossorigin="anonymous"></script> --
>
<
script
src=
"https://yun.duiba.com.cn/db_games/activity/template/1628580191/output.js"
crossorigin=
"anonymous"
></script
>
...
...
project/mock/webNet/wallet/alreadyAcquired.do.json
View file @
484c1133
{
"code"
:
null
,
"data"
:
0
,
"data"
:
1
,
"message"
:
null
,
"success"
:
true
}
\ No newline at end of file
project/mock/webNet/wallet/myWallet.do.json
View file @
484c1133
...
...
@@ -3,7 +3,7 @@
"data"
:
{
"alreadyOpenAccount"
:
false
,
"assistFriendNum"
:
1
,
"canWithdraw"
:
tru
e
,
"canWithdraw"
:
fals
e
,
"experienceAmount"
:
1000
,
"maxExperienceAmount"
:
2500
,
"millionShares"
:
null
,
...
...
project/src/ResJson.ts
View file @
484c1133
This diff is collapsed.
Click to expand it.
project/src/scenes/IndexScene.ts
View file @
484c1133
...
...
@@ -18,7 +18,7 @@ import updateShareFunc from '../share';
import
{
getPxTokenSave
,
getWebData
,
sendWebNet
,
WebNetName
}
from
'../WebNet'
;
export
class
IndexScene
extends
Scene
{
updateIndexUI
({
experienceAmount
,
yesterdayIncome
,
sumIncome
,
sevenDayAnnualization
,
assistFriendNum
,
otherExperienceAmount
})
{
updateIndexUI
({
experienceAmount
,
yesterdayIncome
,
sumIncome
,
sevenDayAnnualization
,
assistFriendNum
,
otherExperienceAmount
,
canWithdraw
})
{
getObject
(
this
,
'index_experienceAmountTips'
).
text
=
experienceAmount
||
"0"
;
getObject
(
this
,
'index_sumIncomeTips'
).
text
=
sumIncome
||
'0'
;
getObject
(
this
,
'index_sevenDayAnnualizationTips'
).
text
=
sevenDayAnnualization
;
...
...
@@ -26,6 +26,9 @@ export class IndexScene extends Scene {
getObject
(
this
,
'index_invitePercentTips'
).
text
=
`
${
experienceAmount
}
/1000000`
;
getObject
(
this
,
'index_inviteTips'
).
text
=
`已有
${
assistFriendNum
}
位好友助力,体验金增加
${
otherExperienceAmount
}
元`
;
getObject
(
this
,
'index_drawGrayBtn'
).
visible
=
!
canWithdraw
;
getObject
(
this
,
'index_drawBtn'
).
visible
=
canWithdraw
;
const
index_experienceAmountTips2
=
getObject
(
this
,
'index_experienceAmountTips2'
);
const
index_experienceAmountTips
=
getObject
(
this
,
'index_experienceAmountTips'
);
index_experienceAmountTips2
.
x
=
375
+
experienceAmount
.
toString
().
length
*
18
;
...
...
@@ -81,6 +84,7 @@ export class IndexScene extends Scene {
this
.
page
.
view
.
addChild
(
getObject
(
this
,
'index_wrapper'
));
getObject
(
this
,
'index_drawGrayBtn'
).
visible
=
false
;
getObject
(
this
,
'index_drawBtn'
).
visible
=
false
;
centerTextField
(
getObjects
(
this
,
[
'index_yesterdayIncomeTips'
,
...
...
@@ -166,6 +170,7 @@ export class IndexScene extends Scene {
super
.
initEvents
();
watchPageVisibility
(
this
.
onPageVisibilityChange
);
getObject
(
this
,
'index_drawBtn'
).
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
onclick_index_drawBtn
,
this
)
getObject
(
this
,
'index_drawGrayBtn'
).
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
onclick_index_drawBtn
,
this
)
getObject
(
this
,
'index_rulebtn'
).
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
onclick_index_ruleBtn
,
this
)
getObject
(
this
,
'index_inviteBtn'
).
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
onclick_index_inviteBtn
,
this
)
}
...
...
@@ -175,6 +180,7 @@ export class IndexScene extends Scene {
unwatchPageVisibility
(
this
.
onPageVisibilityChange
)
getObject
(
this
,
'index_inviteBtn'
).
removeEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
onclick_index_inviteBtn
,
this
)
getObject
(
this
,
'index_drawBtn'
).
removeEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
onclick_index_drawBtn
,
this
)
getObject
(
this
,
'index_drawGrayBtn'
).
removeEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
onclick_index_drawBtn
,
this
)
getObject
(
this
,
'index_rulebtn'
).
removeEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
onclick_index_ruleBtn
,
this
)
}
...
...
project/src/scenes/NewbieScene.ts
View file @
484c1133
...
...
@@ -68,6 +68,7 @@ export class NewbieScene extends Scene {
}
onClick_openBtn
()
{
FYGE
.
Tween
.
removeTweens
(
getObject
(
this
,
'newbie_open'
))
this
.
openPrize
()
}
...
...
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