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
23b6e12d
Commit
23b6e12d
authored
Aug 27, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
c345db53
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
cost.ts
project/src/panels/cost.ts
+7
-3
No files found.
project/src/panels/cost.ts
View file @
23b6e12d
...
...
@@ -83,6 +83,8 @@ export class CostPanel extends Panel {
hideWaiting
();
return
;
}
await
sendWebNet
(
WebNetName
.
index
);
layers
.
stage
.
dispatchEvent
(
'updateIndexData'
);
prizeData
=
await
sendWebNetWithToken
(
WebNetName
.
drawPrize
,
{
ticket
:
result
.
data
});
btn
.
mouseEnable
=
true
;
}
else
if
(
resultPolling
==
2
)
{
...
...
@@ -90,6 +92,8 @@ export class CostPanel extends Panel {
}
}
else
{
await
sendWebNet
(
WebNetName
.
index
);
layers
.
stage
.
dispatchEvent
(
'updateIndexData'
);
prizeData
=
await
sendWebNetWithToken
(
WebNetName
.
drawPrize
);
btn
.
mouseEnable
=
true
;
}
...
...
@@ -97,9 +101,9 @@ export class CostPanel extends Panel {
hideWaiting
();
// waitAPI(3000).then(()=>{
//
sendWebNet(WebNetName.index).then(res => {
//
layers.stage.dispatchEvent('updateIndexData')
//
})
sendWebNet
(
WebNetName
.
index
).
then
(
res
=>
{
layers
.
stage
.
dispatchEvent
(
'updateIndexData'
)
})
// })
if
(
prizeData
&&
prizeData
.
success
)
{
...
...
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