Commit d7bd2972 authored by wangzhujun's avatar wangzhujun

123

parent 75347933
This diff is collapsed.
...@@ -39,19 +39,21 @@ export default class PKScene extends Scene{ ...@@ -39,19 +39,21 @@ export default class PKScene extends Scene{
this.myteamnum.text = data.myTeamSteps; this.myteamnum.text = data.myTeamSteps;
this.otherteamnum.text = data.enemyTeamSteps; this.otherteamnum.text = data.enemyTeamSteps;
if(data.myTeamSteps<50000){ if(data.myTeamSteps<50000){
this.myline.anchorOffsetY = this.myline.height
this.myline.height = 200+data.myTeamSteps*0.016 this.myline.height = 200+data.myTeamSteps*0.016
}else{ }else{
this.myline.anchorOffsetY = this.myline.height
this.myline.height = 1000+(data.myTeamSteps-50000)*0.01 this.myline.height = 1000+(data.myTeamSteps-50000)*0.01
} }
if(data.enemyTeamSteps<50000){ if(data.enemyTeamSteps<50000){
this.otherline.anchorOffsetY = this.otherline.height
this.otherline.height = 200+data.enemyTeamSteps*0.016 this.otherline.height = 200+data.enemyTeamSteps*0.016
}else{ }else{
this.otherline.anchorOffsetY = this.otherline.height
this.otherline.height = 1000+(data.enemyTeamSteps-50000)*0.01 this.otherline.height = 1000+(data.enemyTeamSteps-50000)*0.01
} }
this.myline.anchorOffsetY = this.myline.height
this.otherline.anchorOffsetY = this.otherline.height
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].steps; this["team"+i]["onnum"].text = "+"+data.myTeamMembers[i-1].steps;
this["team"+i]["onphone"].text = data.myTeamMembers[i-1].phone; this["team"+i]["onphone"].text = data.myTeamMembers[i-1].phone;
......
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