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
0f544424
Commit
0f544424
authored
Aug 09, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
9485af8a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
10 deletions
+16
-10
index.html
project/index.html
+2
-2
IndexScene.ts
project/src/scenes/IndexScene.ts
+4
-2
NewbieScene.ts
project/src/scenes/NewbieScene.ts
+3
-1
ShareScene.ts
project/src/scenes/ShareScene.ts
+7
-5
No files found.
project/index.html
View file @
0f544424
...
...
@@ -38,7 +38,7 @@
</head>
<body>
<div
id=
"__loading__"
style=
"position:absolute;left:50%;top:50%;margin-left:-45px;color:#
ffffff
"
>
拼命加载中...
</div>
<div
id=
"__loading__"
style=
"position:absolute;left:50%;top:50%;margin-left:-45px;color:#
000
"
>
拼命加载中...
</div>
<div
id=
"cusEngine"
style=
"line-height:0;font-size:0;position: absolute;"
>
<canvas
id=
"canvas"
style=
"width: 100%;height: 100%"
></canvas>
</div>
...
...
@@ -67,7 +67,7 @@
<!-- 构建的js -->
<script
src=
"output.js"
crossorigin=
"anonymous"
></script>
<!-- <script src="https://yun.duiba.com.cn/db_games/activity/template/16284
80312
/output.js" crossorigin="anonymous"></script> -->
<!-- <script src="https://yun.duiba.com.cn/db_games/activity/template/16284
93535
/output.js" crossorigin="anonymous"></script> -->
...
...
project/src/scenes/IndexScene.ts
View file @
0f544424
import
{
unwatchPageVisibility
,
watchPageVisibility
}
from
'@spark/utils'
;
import
{
showPanel
,
showToast
}
from
"../../module/ctrls"
;
import
{
hideWaiting
,
showPanel
,
showToast
,
showWaiting
}
from
"../../module/ctrls"
;
import
PanelCtrl
from
'../../module/ctrls/panelCtrl'
;
import
{
Scene
}
from
"../../module/views/Scene"
;
import
centerTextField
from
'../centerTextField'
;
...
...
@@ -46,10 +46,12 @@ export class IndexScene extends Scene {
onclick_index_drawBtn
()
{
const
{
canWithdraw
}
=
getWebData
(
WebNetName
.
myWallet
).
data
;
if
(
canWithdraw
){
showWaiting
();
getPxTokenSave
().
then
(
token
=>
{
sendWebNet
(
WebNetName
.
withDraw
,
{
token
:
token
}).
then
(
res
=>
{
hideWaiting
();
if
(
res
.
success
)
showPanel
(
DrawPanel
,
res
.
data
);
showPanel
(
DrawPanel
,
res
.
data
);
});
})
}
else
{
...
...
project/src/scenes/NewbieScene.ts
View file @
0f544424
import
{
unwatchPageVisibility
,
watchPageVisibility
}
from
"@spark/utils"
;
import
{
changeScene
,
closeCurrentPanel
,
showPanel
}
from
"../../module/ctrls"
;
import
{
changeScene
,
closeCurrentPanel
,
hideWaiting
,
showPanel
,
showWaiting
}
from
"../../module/ctrls"
;
import
{
Scene
}
from
"../../module/views/Scene"
;
import
Group
from
"../common/Group"
;
import
Marquee
from
"../common/Marquee"
;
...
...
@@ -37,8 +37,10 @@ export class NewbieScene extends Scene {
openPrize
()
{
prize
=
1
;
showWaiting
();
getPxTokenSave
().
then
(
token
=>
{
sendWebNet
(
WebNetName
.
acquireExperienceAmount
,
{
token
:
token
}).
then
(
acquireExperienceAmount
=>
{
hideWaiting
();
if
(
acquireExperienceAmount
.
success
)
showPanel
(
PrizePanel
,
acquireExperienceAmount
.
data
);
})
...
...
project/src/scenes/ShareScene.ts
View file @
0f544424
import
{
showPanel
}
from
"../../module/ctrls"
;
import
{
hideWaiting
,
showPanel
,
showWaiting
}
from
"../../module/ctrls"
;
import
{
Scene
}
from
"../../module/views/Scene"
;
import
centerTextField
from
"../centerTextField"
;
import
Marquee
from
"../common/Marquee"
;
...
...
@@ -11,10 +11,12 @@ export class ShareScene extends Scene {
onClick_share_assist
()
{
const
query
=
getQueryParams
();
showWaiting
();
getPxTokenSave
().
then
(
token
=>
{
sendWebNet
(
WebNetName
.
assist
,
{
code
:
query
.
code
}).
then
(
res
=>
{
if
(
res
.
success
)
showPanel
(
AssistPanel
,
res
.
data
)
hideWaiting
();
if
(
res
.
success
)
showPanel
(
AssistPanel
,
res
.
data
)
})
})
...
...
@@ -81,8 +83,8 @@ export class ShareScene extends Scene {
initUi
()
{
super
.
initUi
();
centerTextField
(
getObject
(
this
,
'share_tips1'
));
centerTextField
(
getObject
(
this
,
'share_tips2'
));
centerTextField
(
getObject
(
this
,
'share_tips1'
));
centerTextField
(
getObject
(
this
,
'share_tips2'
));
}
}
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