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
64ab4836
Commit
64ab4836
authored
Dec 10, 2019
by
wangzhujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
3333123
parent
846c2996
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
62 additions
and
34 deletions
+62
-34
Main.ts
egret/src/Main.ts
+28
-28
RankPanel.ts
egret/src/rankPanel/RankPanel.ts
+8
-1
PKScene.ts
egret/src/yazuwei/PKScene.ts
+12
-2
PKScorePanel.ts
egret/src/yazuwei/PKScorePanel.ts
+6
-1
PlacePanel.ts
egret/src/yazuwei/PlacePanel.ts
+2
-1
RecordScene.ts
egret/src/yazuwei/RecordScene.ts
+5
-0
homeBaseInfo.json
mock/yzw/homeBaseInfo.json
+1
-1
No files found.
egret/src/Main.ts
View file @
64ab4836
...
...
@@ -170,35 +170,35 @@ class Main extends MainBase {
// Waiting.instance.hide();
// return;
if
(
window
[
'pageID'
])
{
if
(
GameConst
.
getQueryString
(
"InviteSource"
))
{
yzwNet
.
homeBaseInfo
((
s
)
=>
{
if
(
!
s
)
{
ToastCtrl
.
instance
.
show
(
DataManager
.
ins
.
getData
(
"homeBaseInfo"
).
message
)
// ToastCtrl.instance.show("网络异常请重试~");
return
;
}
},
window
[
'projectId'
],
GameConst
.
getQueryString
(
"InviteSource"
))
}
Waiting
.
instance
.
hide
();
//
if (window['pageID']) {
//
if (GameConst.getQueryString("InviteSource")) {
//
yzwNet.homeBaseInfo((s) => {
//
if (!s) {
//
ToastCtrl.instance.show(DataManager.ins.getData("homeBaseInfo").message)
//
// ToastCtrl.instance.show("网络异常请重试~");
//
return;
//
}
//
}, window['projectId'], GameConst.getQueryString("InviteSource"))
//
}
//
Waiting.instance.hide();
if
(
window
[
'pageID'
]
==
'JoinShareScene'
)
{
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
JoinShareScene
);
}
if
(
window
[
'pageID'
]
==
'TeamShareScene'
)
{
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
TeamShareScene
);
}
if
(
window
[
'pageID'
]
==
'Share2Scene'
)
{
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
Share2Scene
);
}
if
(
window
[
'pageID'
]
==
'TeamShareScene'
)
{
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
TeamShareScene
);
}
if
(
window
[
'pageID'
]
==
'TransScene'
)
{
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
TransScene
);
}
return
;
}
//
if (window['pageID'] == 'JoinShareScene') {
//
SceneCtrl.instance.change(ModuleTypes.JoinShareScene);
//
}
//
if (window['pageID'] == 'TeamShareScene') {
//
SceneCtrl.instance.change(ModuleTypes.TeamShareScene);
//
}
//
if (window['pageID'] == 'Share2Scene') {
//
SceneCtrl.instance.change(ModuleTypes.Share2Scene);
//
}
//
if (window['pageID'] == 'TeamShareScene') {
//
SceneCtrl.instance.change(ModuleTypes.TeamShareScene);
//
}
//
if (window['pageID'] == 'TransScene') {
//
SceneCtrl.instance.change(ModuleTypes.TransScene);
//
}
//
return;
//
}
loadSvgaRes
(
getResPath
()
+
'resource/assets/svgas/standby.svga'
);
...
...
egret/src/rankPanel/RankPanel.ts
View file @
64ab4836
...
...
@@ -25,7 +25,14 @@ export default class RankPanel extends Panel{
let
com
=
new
eui
.
Component
();
com
.
skinName
=
"RankItemSkin"
com
[
'ranklab'
].
text
=
data
.
list
[
i
].
rank
;
//没有手机号的情况下
if
(
data
.
list
[
i
].
phone
){
com
[
'rankid'
].
text
=
data
.
list
[
i
].
phone
;
}
else
{
com
[
'rankid'
].
text
=
"未知号码"
}
com
[
'ranknum'
].
text
=
data
.
list
[
i
].
count
;
com
.
y
=
i
*
50
;
if
(
data
.
list
[
i
].
rank
%
2
==
1
){
...
...
egret/src/yazuwei/PKScene.ts
View file @
64ab4836
...
...
@@ -85,7 +85,12 @@ export default class PKScene extends Scene{
for
(
let
i
=
1
;
i
<
data
.
myTeamMembers
.
length
+
1
;
i
++
){
this
[
"team"
+
i
][
"onnum"
].
text
=
"+"
+
data
.
myTeamMembers
[
i
-
1
].
memberStepCounts
;
if
(
data
.
myTeamMembers
[
i
-
1
].
phone
){
this
[
"team"
+
i
][
"onphone"
].
text
=
data
.
myTeamMembers
[
i
-
1
].
phone
;
}
else
{
this
[
"team"
+
i
][
"onphone"
].
text
=
"未知号码"
;
}
this
[
"team"
+
i
][
"headimg"
].
source
=
data
.
myTeamMembers
[
i
-
1
].
avatar
;
let
now
=
new
Date
();
let
year
=
now
.
getFullYear
();
...
...
@@ -107,7 +112,12 @@ export default class PKScene extends Scene{
this
[
"team"
+
i
][
"onGroup"
].
visible
=
false
;
this
[
"team"
+
i
][
"notGroup"
].
visible
=
true
;
this
.
setColor
(
this
[
"team"
+
i
][
"headimg"
]);
if
(
data
.
myTeamMembers
[
i
-
1
].
phone
){
this
[
"team"
+
i
][
"notonphone"
].
text
=
data
.
myTeamMembers
[
i
-
1
].
phone
;
}
else
{
this
[
"team"
+
i
][
"notonphone"
].
text
=
"未知号码"
;
}
this
.
onTap
(
this
[
"team"
+
i
][
"notonBtn"
],
this
.
askOnline
);
}
if
(
data
.
myTeamMembers
[
i
-
1
].
uid
==
uiddata
.
consumerId
){
...
...
egret/src/yazuwei/PKScorePanel.ts
View file @
64ab4836
...
...
@@ -75,7 +75,12 @@ export default class PKScorePanel extends Panel{
if
(
data
.
pkResult
.
myTeamMembers
[
i
].
uid
==
uiddata
.
consumerId
){
this
[
"team"
+
(
i
+
1
)][
"onphone"
].
text
=
"我"
}
else
{
if
(
data
.
pkResult
.
myTeamMembers
[
i
].
phone
){
this
[
"team"
+
(
i
+
1
)][
"onphone"
].
text
=
data
.
pkResult
.
myTeamMembers
[
i
].
phone
}
else
{
this
[
"team"
+
(
i
+
1
)][
"onphone"
].
text
=
"未知号码"
}
}
...
...
egret/src/yazuwei/PlacePanel.ts
View file @
64ab4836
...
...
@@ -46,7 +46,8 @@ export default class PlacePanel extends Panel{
backStart
(){
yzwNet
.
homeBaseInfo
((
s
)
=>
{
if
(
!
s
){
ToastCtrl
.
instance
.
show
(
"网络异常请重试~"
);
ToastCtrl
.
instance
.
show
(
DataManager
.
ins
.
getData
(
"homeBaseInfo"
).
message
)
// ToastCtrl.instance.show("网络异常请重试~");
return
;
}
Waiting
.
instance
.
hide
();
...
...
egret/src/yazuwei/RecordScene.ts
View file @
64ab4836
...
...
@@ -20,6 +20,11 @@ export default class RecordScene extends Scene{
constructor
(
data
){
super
()
if
(
data
){
}
else
{
data
=
0
;
}
this
.
initUI
(
data
);
}
...
...
mock/yzw/homeBaseInfo.json
View file @
64ab4836
{
"code"
:
null
,
"data"
:{
"currentLevel"
:
5
,
"currentLevel"
:
0
,
"treasureBoxNum"
:
0
,
"currentScore"
:
1222
,
"pkResult"
:{
...
...
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