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
483e5151
Commit
483e5151
authored
Dec 10, 2019
by
wangzhujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1232
parent
aaf2c97d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
5 deletions
+13
-5
RankPanel.ts
egret/src/rankPanel/RankPanel.ts
+3
-1
PKScene.ts
egret/src/yazuwei/PKScene.ts
+6
-2
PKScorePanel.ts
egret/src/yazuwei/PKScorePanel.ts
+4
-2
No files found.
egret/src/rankPanel/RankPanel.ts
View file @
483e5151
...
@@ -26,8 +26,10 @@ export default class RankPanel extends Panel{
...
@@ -26,8 +26,10 @@ export default class RankPanel extends Panel{
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
||
data
.
list
[
i
].
phone
==
"null"
){
if
(
data
.
list
[
i
].
phone
){
com
[
'rankid'
].
text
=
data
.
list
[
i
].
phone
;
com
[
'rankid'
].
text
=
data
.
list
[
i
].
phone
;
}
else
if
(
data
.
list
[
i
].
phone
==
"null"
){
com
[
'rankid'
].
text
=
"未知号码"
}
else
{
}
else
{
com
[
'rankid'
].
text
=
"未知号码"
com
[
'rankid'
].
text
=
"未知号码"
}
}
...
...
egret/src/yazuwei/PKScene.ts
View file @
483e5151
...
@@ -94,8 +94,10 @@ export default class PKScene extends Scene{
...
@@ -94,8 +94,10 @@ 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
||
data
.
myTeamMembers
[
i
-
1
].
phone
==
"null"
){
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
if
(
data
.
myTeamMembers
[
i
-
1
].
phone
==
"null"
){
this
[
"team"
+
i
][
"onphone"
].
text
=
"未知号码"
;
}
else
{
}
else
{
this
[
"team"
+
i
][
"onphone"
].
text
=
"未知号码"
;
this
[
"team"
+
i
][
"onphone"
].
text
=
"未知号码"
;
}
}
...
@@ -121,8 +123,10 @@ export default class PKScene extends Scene{
...
@@ -121,8 +123,10 @@ 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
||
data
.
myTeamMembers
[
i
-
1
].
phone
==
"null"
){
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
if
(
data
.
myTeamMembers
[
i
-
1
].
phone
==
"null"
){
this
[
"team"
+
i
][
"notonphone"
].
text
=
"未知号码"
;
}
else
{
}
else
{
this
[
"team"
+
i
][
"notonphone"
].
text
=
"未知号码"
;
this
[
"team"
+
i
][
"notonphone"
].
text
=
"未知号码"
;
}
}
...
...
egret/src/yazuwei/PKScorePanel.ts
View file @
483e5151
...
@@ -35,7 +35,7 @@ export default class PKScorePanel extends Panel{
...
@@ -35,7 +35,7 @@ export default class PKScorePanel extends Panel{
this
.
otherscore
.
text
=
data
.
pkResult
.
enemyTeamSteps
;
this
.
otherscore
.
text
=
data
.
pkResult
.
enemyTeamSteps
;
let
now
=
new
Date
();
let
now
=
new
Date
();
let
mon
=
now
.
getMonth
()
+
1
;
let
mon
=
now
.
getMonth
()
+
1
;
let
day
=
now
.
getDate
();
let
day
=
now
.
getDate
()
-
1
;
this
.
date
.
text
=
mon
+
"月"
+
day
+
"日"
;
this
.
date
.
text
=
mon
+
"月"
+
day
+
"日"
;
if
(
data
.
pkResult
.
pkResult
==
0
){
//pk结果 0 失败,1 获胜,2 平局
if
(
data
.
pkResult
.
pkResult
==
0
){
//pk结果 0 失败,1 获胜,2 平局
...
@@ -82,8 +82,10 @@ export default class PKScorePanel extends Panel{
...
@@ -82,8 +82,10 @@ export default class PKScorePanel extends Panel{
if
(
data
.
pkResult
.
myTeamMembers
[
i
].
uId
==
uiddata
.
partnerUserId
){
if
(
data
.
pkResult
.
myTeamMembers
[
i
].
uId
==
uiddata
.
partnerUserId
){
this
[
"team"
+
(
i
+
1
)][
"onphone"
].
text
=
"我"
this
[
"team"
+
(
i
+
1
)][
"onphone"
].
text
=
"我"
}
else
{
}
else
{
if
(
data
.
pkResult
.
myTeamMembers
[
i
].
phone
||
data
.
pkResult
.
myTeamMembers
[
i
].
phone
==
"null"
){
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
if
(
data
.
pkResult
.
myTeamMembers
[
i
].
phone
==
"null"
){
this
[
"team"
+
(
i
+
1
)][
"onphone"
].
text
=
"未知号码"
}
else
{
}
else
{
this
[
"team"
+
(
i
+
1
)][
"onphone"
].
text
=
"未知号码"
this
[
"team"
+
(
i
+
1
)][
"onphone"
].
text
=
"未知号码"
}
}
...
...
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