Commit 483e5151 authored by wangzhujun's avatar wangzhujun

1232

parent aaf2c97d
......@@ -26,8 +26,10 @@ export default class RankPanel extends Panel{
com.skinName = "RankItemSkin"
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;
}else if(data.list[i].phone == "null"){
com['rankid'].text = "未知号码"
}else{
com['rankid'].text = "未知号码"
}
......
......@@ -94,8 +94,10 @@ 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 || data.myTeamMembers[i-1].phone == "null"){
if(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{
this["team"+i]["onphone"].text = "未知号码";
}
......@@ -121,8 +123,10 @@ 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 || data.myTeamMembers[i-1].phone == "null"){
if(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{
this["team"+i]["notonphone"].text = "未知号码";
}
......
......@@ -35,7 +35,7 @@ export default class PKScorePanel extends Panel{
this.otherscore.text = data.pkResult.enemyTeamSteps;
let now = new Date();
let mon = now.getMonth()+1;
let day = now.getDate();
let day = now.getDate()-1;
this.date.text = mon+"月"+day+"日";
if(data.pkResult.pkResult == 0){//pk结果 0 失败,1 获胜,2 平局
......@@ -82,8 +82,10 @@ export default class PKScorePanel extends Panel{
if(data.pkResult.myTeamMembers[i].uId == uiddata.partnerUserId){
this["team"+(i+1)]["onphone"].text = "我"
}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
}else if(data.pkResult.myTeamMembers[i].phone == "null"){
this["team"+(i+1)]["onphone"].text = "未知号码"
}else{
this["team"+(i+1)]["onphone"].text = "未知号码"
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment