Commit b5cd7359 authored by wangzhujun's avatar wangzhujun

123

parent ca3beeae
......@@ -5,7 +5,7 @@
<e:Image width="100" height="100" y="0" horizontalCenter="0" source="pkcirle_png"/>
<e:Label id="notonline" text="未上线" y="41" size="20" horizontalCenter="0" visible="false"/>
<e:Group id="onGroup" width="110" height="45" y="113" horizontalCenter="1">
<e:Label id="onphone" text="130****1856" y="0" size="20" scaleX="1" scaleY="1" x="1"/>
<e:Label id="onphone" text="130****1856" y="0" size="20" scaleX="1" scaleY="1" x="1" width="110" textAlign="center"/>
<e:Label id="onnum" text="+1586步" y="25" size="20" x="0" scaleX="1" scaleY="1" width="110" textAlign="center"/>
</e:Group>
<e:Group id="notGroup" width="106" height="58" y="111" horizontalCenter="0" visible="false">
......
......@@ -149,11 +149,11 @@ class Main extends MainBase {
// 创建游戏场景
protected createGameScene() {
super.createGameScene();
SceneCtrl.instance.change(ModuleTypes.Share2Scene);
// PanelCtrl.instance.show(ModuleTypes.JoinShareScene);
Waiting.instance.hide();
// SceneCtrl.instance.change(ModuleTypes.Share2Scene);
// // PanelCtrl.instance.show(ModuleTypes.JoinShareScene);
// Waiting.instance.hide();
return;
// return;
//获取UA信息
let userAgent = navigator.userAgent.toLowerCase();
console.log(userAgent);
......
......@@ -40,16 +40,18 @@ export default class PKScorePanel extends Panel{
this.light.source = "pkpeacelight_png"
this.title.text = "未能获得宝箱"
this.endtitle.text = "本场助力排行榜"
this.setColor(this.box);
}else if(data.pkResult.pkResult == 1){
this.status.source = "pkwinlogo_png"
this.light.source = "pkwinlight_png"
this.title.text = "宝箱已发到胜利队伍"
this.title.text = "宝箱已发到胜利队伍"
this.endtitle.text = "本场分数奖励"
}else if(data.pkResult.pkResult == 2){
this.status.source = "pkloselogo_png"
this.light.source = "pkloselight_png"
this.title.text = "未能获得宝箱"
this.endtitle.text = "本场助力排行榜"
this.setColor(this.box);
}
for(let i = 0;i<data.pkResult.myTeamMembers.length;i++){
this["team"+(i+1)]["onGroup"].visible = true;
......@@ -66,11 +68,17 @@ export default class PKScorePanel extends Panel{
this["team"+(i+1)]["onphone"].text = data.pkResult.myTeamMembers[i].phone
}
}
for(let n = 5;n>data.pkResult.myTeamMembers.length;n--){
this["team"+n]["notonline"].visible = false;
this["team"+n]["onGroup"].visible = false;
this["team"+n]["notGroup"].visible = false;
this["team"+n]["headimg"].source = "pkadd_png"
this["team"+n]["nopeople"].visible = false;
}
this.onTap(this.closeBtn,this.onTap_PKBtn)
this.onTap(this.prizeBtn,this.onTap_PKBtn)
}
onTap_PKBtn(){
......@@ -81,6 +89,7 @@ export default class PKScorePanel extends Panel{
}
let data = DataManager.ins.getData("getPkBaseInfo").data;
let pkdata = {data:data,startdata:this.startdata}
this.hidePanel();
SceneCtrl.instance.change(ModuleTypes.PK_SCENE,pkdata);
},window['projectId']);
}
......
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