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
99f4d57b
Commit
99f4d57b
authored
Aug 16, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
27ceea23
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
8 deletions
+15
-8
getTimes.ts
project/src/panels/getTimes.ts
+11
-4
share.ts
project/src/panels/share.ts
+1
-1
IndexScene.ts
project/src/scenes/IndexScene.ts
+3
-3
No files found.
project/src/panels/getTimes.ts
View file @
99f4d57b
import
{
showPanel
}
from
"../../module/ctrls"
;
import
{
showPanel
}
from
"../../module/ctrls"
;
import
{
RES
}
from
"../../module/RES"
;
import
{
RES
}
from
"../../module/RES"
;
import
{
layers
}
from
"../../module/views/layers"
;
import
{
Panel
}
from
"../../module/views/Panel"
;
import
{
Panel
}
from
"../../module/views/Panel"
;
import
centerTextField
from
"../common/centerTextField"
;
import
centerTextField
from
"../common/centerTextField"
;
import
getObject
from
"../common/getObject"
;
import
getObject
from
"../common/getObject"
;
import
{
hideShareMask
,
showShareMask
}
from
"../common/ShareMask"
;
import
{
hideShareMask
,
showShareMask
}
from
"../common/ShareMask"
;
import
{
sendLog
}
from
"../WebNet"
;
import
{
sendLog
,
sendWebNet
}
from
"../WebNet"
;
import
{
WebNetName
}
from
"../WebNetName"
;
import
{
SharePanel
}
from
"./share"
;
import
{
SharePanel
}
from
"./share"
;
let
section
;
let
section
;
...
@@ -14,14 +16,19 @@ export class getTimesPanel extends Panel {
...
@@ -14,14 +16,19 @@ export class getTimesPanel extends Panel {
this
.
stage
.
dispatchEvent
(
"restartEnterFrame"
,{});
this
.
stage
.
dispatchEvent
(
"restartEnterFrame"
,{});
super
.
hidePanel
();
super
.
hidePanel
();
}
}
click_getTimes_go
()
{
async
click_getTimes_go
()
{
sendLog
(
"click"
,
7
);
this
.
hidePanel
();
this
.
hidePanel
();
showShareMask
();
showShareMask
();
await
sendWebNet
(
WebNetName
.
getFreeCount
,{},
null
,
true
);
layers
.
stage
.
dispatchEvent
(
'updateIndexData'
);
sendLog
(
"click"
,
7
);
setTimeout
(()
=>
{
setTimeout
(()
=>
{
hideShareMask
();
hideShareMask
();
showPanel
(
SharePanel
);
showPanel
(
SharePanel
);
},
2
000
)
},
4
000
)
}
}
get
groupNames
()
{
return
[
"getTimes"
]
}
get
groupNames
()
{
return
[
"getTimes"
]
}
...
...
project/src/panels/share.ts
View file @
99f4d57b
...
@@ -27,7 +27,7 @@ export class SharePanel extends Panel {
...
@@ -27,7 +27,7 @@ export class SharePanel extends Panel {
centerTextField
(
getObject
(
this
,
'share_tips'
),
496
);
centerTextField
(
getObject
(
this
,
'share_tips'
),
496
);
getObject
(
this
,
'share_tips'
).
text
=
`获得
${
1231233123
}
次拆盲盒机会`
getObject
(
this
,
'share_tips'
).
text
=
`获得
一次拆盲盒机会`
;
}
}
...
...
project/src/scenes/IndexScene.ts
View file @
99f4d57b
...
@@ -133,9 +133,9 @@ export class IndexScene extends Scene {
...
@@ -133,9 +133,9 @@ export class IndexScene extends Scene {
showPanel
(
timesNotEnoughPanel
);
showPanel
(
timesNotEnoughPanel
);
}
else
{
}
else
{
showPanel
(
getTimesPanel
);
showPanel
(
getTimesPanel
);
await
sendWebNet
(
WebNetName
.
getFreeCount
);
await
sendWebNet
(
WebNetName
.
index
);
//
await sendWebNet(WebNetName.index);
this
.
getIndex
();
//
this.getIndex();
}
}
}
}
...
...
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