Commit 9eeb7679 authored by wangzhujun's avatar wangzhujun

1232

parent 483e5151
......@@ -27,9 +27,11 @@ export default class RankPanel extends Panel{
com['ranklab'].text = data.list[i].rank;
//没有手机号的情况下
if(data.list[i].phone){
com['rankid'].text = data.list[i].phone;
}else if(data.list[i].phone == "null"){
com['rankid'].text = "未知号码"
if(data.list[i].phone == "null"){
com['rankid'].text = "未知号码"
}else{
com['rankid'].text = data.list[i].phone;
}
}else{
com['rankid'].text = "未知号码"
}
......
......@@ -132,6 +132,7 @@ export default class StartScene extends Scene {
if(data.currentLevel>0){
this.needscore.visible = true;
this.needscore.text = "需要达到"+data.nextLevelScore+"分数"
this.needscore.touchEnabled = true;
if(data.nextLevelScore>data.currentScore){
this.onTap(this.unlockBtn,this.noCredits);
this.unlockBtn.icon = "lockBtn_png";
......
......@@ -95,9 +95,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 if(data.myTeamMembers[i-1].phone == "null"){
this["team"+i]["onphone"].text = "未知号码";
if(data.myTeamMembers[i-1].phone == "null"){
this["team"+i]["onphone"].text = "未知号码";
}else{
this["team"+i]["onphone"].text = data.myTeamMembers[i-1].phone;
}
}else{
this["team"+i]["onphone"].text = "未知号码";
}
......@@ -124,9 +127,12 @@ export default class PKScene extends Scene{
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 if(data.myTeamMembers[i-1].phone == "null"){
this["team"+i]["notonphone"].text = "未知号码";
if(data.myTeamMembers[i-1].phone == "null"){
this["team"+i]["notonphone"].text = "未知号码";
}else{
this["team"+i]["notonphone"].text = data.myTeamMembers[i-1].phone;
}
}else{
this["team"+i]["notonphone"].text = "未知号码";
}
......
......@@ -83,9 +83,12 @@ export default class PKScorePanel extends Panel{
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 if(data.pkResult.myTeamMembers[i].phone == "null"){
this["team"+(i+1)]["onphone"].text = "未知号码"
if(data.pkResult.myTeamMembers[i].phone == "null"){
this["team"+(i+1)]["onphone"].text = "未知号码"
}else{
this["team"+(i+1)]["onphone"].text = data.pkResult.myTeamMembers[i].phone
}
}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