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
9e1748fa
Commit
9e1748fa
authored
Aug 20, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
c647d63a
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
17 deletions
+20
-17
drawPrize.do.json
project/mock/webNet/dazzle/drawPrize.do.json
+1
-1
RulePanel.ts
project/src/panels/RulePanel.ts
+1
-1
prize.ts
project/src/panels/prize.ts
+3
-0
IndexScene.ts
project/src/scenes/IndexScene.ts
+8
-3
LoadingScene.ts
project/src/template/LoadingScene.ts
+1
-4
StartScene.ts
project/src/template/StartScene.ts
+6
-8
No files found.
project/mock/webNet/dazzle/drawPrize.do.json
View file @
9e1748fa
{
"code"
:
null
,
"data"
:
{
"extra"
:
"ob
je11
ct"
,
"extra"
:
"ob
1111je
ct"
,
"options"
:
[
{
"extra"
:
"increase-credits"
,
...
...
project/src/panels/RulePanel.ts
View file @
9e1748fa
...
...
@@ -34,7 +34,7 @@ export class RulePanel extends Panel {
async
start
(
data
)
{
super
.
start
();
//取接口数据
const
res
=
await
sendWebNet
(
WebNetName
.
projectRule
)
const
res
=
getWebData
(
WebNetName
.
projectRule
)
if
(
!
res
.
success
)
return
var
ruleStr
=
res
.
data
;
//原先视图上有一个
...
...
project/src/panels/prize.ts
View file @
9e1748fa
...
...
@@ -19,6 +19,9 @@ export class PrizePanel extends Panel {
const
opt
=
this
[
'opt'
]
=
result
.
data
.
options
[
0
];
getImage
(
opt
.
optionImg
,
this
.
prizeContainer
,
size
,
size
,
3
);
getObject
(
this
,
'prize_name'
).
text
=
opt
.
optionName
;
getObject
(
this
,
'prize_tips'
).
visible
=
result
.
data
.
extra
==
'object'
;
}
click_prize_open
()
{
...
...
project/src/scenes/IndexScene.ts
View file @
9e1748fa
import
{
showPanel
}
from
"../../module/ctrls"
;
import
{
hideWaiting
,
showPanel
,
showWaiting
}
from
"../../module/ctrls"
;
import
{
RES
}
from
"../../module/RES"
;
import
{
Scene
}
from
"../../module/views/Scene"
;
import
getObject
from
"../common/getObject"
;
...
...
@@ -6,7 +6,7 @@ import { isMember } from "../isMember";
import
{
getTimesPanel
}
from
"../panels/getTimes"
;
import
{
RulePanel
}
from
"../panels/RulePanel"
;
import
{
timesNotEnoughPanel
}
from
"../panels/timesNotEnough"
;
import
{
getWebData
,
sendLog
}
from
"../WebNet"
;
import
{
getWebData
,
sendLog
,
sendWebNet
}
from
"../WebNet"
;
import
{
WebNetName
}
from
"../WebNetName"
;
import
{
BoxGroup
}
from
"./BoxGroup"
;
import
{
createPrizeTxt
}
from
"./createPrizeTxt"
;
...
...
@@ -123,7 +123,12 @@ export class IndexScene extends Scene {
}
toRule
()
{
showWaiting
();
sendWebNet
(
WebNetName
.
projectRule
).
then
(()
=>
{
hideWaiting
();
showPanel
(
RulePanel
);
})
}
removeEvent
()
{
...
...
project/src/template/LoadingScene.ts
View file @
9e1748fa
import
{
changeScene
}
from
"../../module/ctrls"
;
import
{
RES
}
from
"../../module/RES"
;
import
{
Scene
}
from
"../../module/views/Scene"
;
import
{
ProgressBarS
}
from
"../common/ProgressBarS"
;
import
{
sendWebNetWithToken
}
from
"../sendWebNetWithToken"
;
import
{
getWebData
,
sendWebNet
}
from
"../WebNet"
;
import
{
WebNetName
}
from
"../WebNetName"
;
import
{
StartScene
}
from
"./StartScene"
;
export
class
LoadingScene
extends
Scene
{
get
groupNames
()
{
...
...
@@ -73,7 +70,7 @@ export class LoadingScene extends Scene {
.
call
(()
=>
{
if
(
pro
>=
1
)
{
this
.
removeEventListener
(
FYGE
.
Event
.
PROGRESS
,
this
.
progressEvent
,
this
);
changeScene
(
StartScene
,
getWebData
(
WebNetName
.
index
).
data
)
//
changeScene(StartScene,getWebData(WebNetName.index).data)
}
})
}
...
...
project/src/template/StartScene.ts
View file @
9e1748fa
import
{
changeScene
,
hideWaiting
,
showPanel
,
showWaiting
}
from
"../../module/ctrls"
;
import
{
Scene
}
from
"../../module/views/Scene"
;
import
{
showPanel
,
showWaiting
,
hideWaiting
,
showToast
,
changeScene
}
from
"../../module/ctrls"
;
import
{
RulePanel
}
from
"../panels/RulePanel"
;
import
{
Tools
}
from
"../Tools"
;
import
{
layers
}
from
"../../module/views/layers"
;
import
{
GDispatcher
}
from
"../Main"
;
import
{
G_EVENT
}
from
"../common/G_EVENT"
;
import
{
PlayScene
}
from
"./PlayScene"
;
import
{
GDispatcher
}
from
"../Main"
;
import
{
SharePanel
}
from
"../panels/share"
;
import
{
Tools
}
from
"../Tools"
;
import
{
sendWebNet
}
from
"../WebNet"
;
import
{
WebNetName
}
from
"../WebNetName"
;
import
{
SharePanel
}
from
"../panels/shar
e"
;
import
{
PlayScene
}
from
"./PlayScen
e"
;
export
class
StartScene
extends
Scene
{
get
groupNames
()
{
return
[
"index"
]
}
get
skinName
()
{
return
"index"
}
...
...
@@ -46,7 +44,7 @@ export class StartScene extends Scene {
},
this
)
//规则按钮
this
.
ruleBtn
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
()
=>
{
showPanel
(
RulePanel
)
//
showPanel(RulePanel)
},
this
)
//我的奖品按钮
this
.
recordBtn
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
()
=>
{
...
...
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