Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Y
yyh
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wildfirecode13
yyh
Commits
01dcb6db
Commit
01dcb6db
authored
Dec 09, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://gitlab2.dui88.com/wanghongyuan/yyh
into dev
parents
9094ff7f
51e6807e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
105 additions
and
10 deletions
+105
-10
default.thm.json
egret/resource/default.thm.json
+4
-0
StartScene.ts
egret/src/startScene/StartScene.ts
+33
-9
rankInfo.json
mock/yzw/rankInfo.json
+68
-1
No files found.
egret/resource/default.thm.json
View file @
01dcb6db
...
@@ -29,6 +29,10 @@
...
@@ -29,6 +29,10 @@
"resource/skins/HeadItemSkin.exml"
,
"resource/skins/HeadItemSkin.exml"
,
"resource/skins/PKRuleSkin.exml"
,
"resource/skins/PKRuleSkin.exml"
,
"resource/skins/PKPrizeSkin.exml"
,
"resource/skins/PKPrizeSkin.exml"
,
"resource/skins/FinishSkin.exml"
,
"resource/skins/RankSkin.exml"
,
"resource/skins/RankItemSkin.exml"
,
"resource/skins/ConfirmSkin.exml"
,
"resource/skins/ConfirmSkin.exml"
,
"resource/skins/JoinShareSkin.exml"
,
"resource/skins/JoinShareSkin.exml"
,
"resource/skins/PKScoreSkin.exml"
,
"resource/skins/PKScoreSkin.exml"
,
...
...
egret/src/startScene/StartScene.ts
View file @
01dcb6db
...
@@ -102,6 +102,13 @@ export default class StartScene extends Scene {
...
@@ -102,6 +102,13 @@ export default class StartScene extends Scene {
PanelCtrl
.
instance
.
show
(
ModuleTypes
.
PKSCORE_PANEL
,
this
.
startdata
);
PanelCtrl
.
instance
.
show
(
ModuleTypes
.
PKSCORE_PANEL
,
this
.
startdata
);
}
}
}
}
if
(
data
.
currentLevel
==
8
){
if
(
!
GCache
.
readCache
(
"finishtzw"
)){
GCache
.
writeCache
(
"finishtzw"
,
true
);
PanelCtrl
.
instance
.
show
(
ModuleTypes
.
FINISH_PANEL
);
}
}
}
}
noCredits
(){
noCredits
(){
...
@@ -142,7 +149,7 @@ export default class StartScene extends Scene {
...
@@ -142,7 +149,7 @@ export default class StartScene extends Scene {
return
;
return
;
}
}
let
data
=
DataManager
.
ins
.
getData
(
"rankInfo"
).
data
;
let
data
=
DataManager
.
ins
.
getData
(
"rankInfo"
).
data
;
PanelCtrl
.
instance
.
show
(
ModuleTypes
.
RANK_PANEL
);
PanelCtrl
.
instance
.
show
(
ModuleTypes
.
RANK_PANEL
,
data
);
},
window
[
'projectId'
])
},
window
[
'projectId'
])
}
}
onTap_ruleBtn
(){
onTap_ruleBtn
(){
...
@@ -152,6 +159,21 @@ export default class StartScene extends Scene {
...
@@ -152,6 +159,21 @@ export default class StartScene extends Scene {
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
RECORD_SCENE
,
this
.
level
)
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
RECORD_SCENE
,
this
.
level
)
}
}
unlockArea
(){
unlockArea
(){
if
(
this
.
level
==
0
){
yzwNet
.
doStart
((
s
)
=>
{
if
(
!
s
){
ToastCtrl
.
instance
.
show
(
"网络异常请重试~"
);
return
;
}
let
startdata
=
DataManager
.
ins
.
getData
(
"doStart"
).
data
;
let
data
=
{
startdata
:
startdata
,
type
:
3
};
this
.
hz
.
source
=
"CHNhangzhou_png"
this
.
hand
.
visible
=
false
;
this
.
clearTap
(
this
.
unlockBtn
,
this
.
GuideFive
);
this
.
onTap
(
this
.
unlockBtn
,
this
.
unlockArea
);
PanelCtrl
.
instance
.
show
(
ModuleTypes
.
GUIDE_PANEL
,
data
);
},
window
[
'projectId'
])
}
else
{
yzwNet
.
unlockArea
((
s
)
=>
{
yzwNet
.
unlockArea
((
s
)
=>
{
if
(
!
s
){
if
(
!
s
){
ToastCtrl
.
instance
.
show
(
"网络异常请重试~"
);
ToastCtrl
.
instance
.
show
(
"网络异常请重试~"
);
...
@@ -162,6 +184,8 @@ export default class StartScene extends Scene {
...
@@ -162,6 +184,8 @@ export default class StartScene extends Scene {
},
window
[
'projectId'
]);
},
window
[
'projectId'
]);
}
}
}
initEvents
(){
initEvents
(){
super
.
initEvents
();
super
.
initEvents
();
this
.
onTap
(
this
.
ruleBtn
,
this
.
onTap_ruleBtn
);
this
.
onTap
(
this
.
ruleBtn
,
this
.
onTap_ruleBtn
);
...
...
mock/yzw/rankInfo.json
View file @
01dcb6db
{
{
"code"
:
null
,
"code"
:
null
,
"data"
:
123456
,
"data"
:{
"currentUserInfo"
:{
"count"
:
1
,
"rank"
:
2
},
"list"
:[
{
"count"
:
2
,
"phone"
:
"136****4582"
,
"rank"
:
1
,
"userId"
:
"500095001"
},
{
"count"
:
1
,
"phone"
:
"null"
,
"rank"
:
2
,
"userId"
:
"1539361"
},
{
"count"
:
1
,
"phone"
:
"null"
,
"rank"
:
3
,
"userId"
:
"1539361"
},
{
"count"
:
1
,
"phone"
:
"null"
,
"rank"
:
4
,
"userId"
:
"1539361"
},
{
"count"
:
1
,
"phone"
:
"null"
,
"rank"
:
5
,
"userId"
:
"1539361"
},
{
"count"
:
1
,
"phone"
:
"null"
,
"rank"
:
6
,
"userId"
:
"1539361"
},
{
"count"
:
1
,
"phone"
:
"null"
,
"rank"
:
7
,
"userId"
:
"1539361"
},
{
"count"
:
1
,
"phone"
:
"null"
,
"rank"
:
8
,
"userId"
:
"1539361"
},
{
"count"
:
1
,
"phone"
:
"null"
,
"rank"
:
10
,
"userId"
:
"1539361"
},
{
"count"
:
1
,
"phone"
:
"null"
,
"rank"
:
11
,
"userId"
:
"1539361"
}
]
},
"message"
:
null
,
"message"
:
null
,
"success"
:
true
"success"
:
true
}
}
\ No newline at end of file
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