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