Commit 64ab4836 authored by wangzhujun's avatar wangzhujun

3333123

parent 846c2996
...@@ -170,35 +170,35 @@ class Main extends MainBase { ...@@ -170,35 +170,35 @@ class Main extends MainBase {
// Waiting.instance.hide(); // Waiting.instance.hide();
// return; // return;
if (window['pageID']) { // if (window['pageID']) {
if (GameConst.getQueryString("InviteSource")) { // if (GameConst.getQueryString("InviteSource")) {
yzwNet.homeBaseInfo((s) => { // yzwNet.homeBaseInfo((s) => {
if (!s) { // if (!s) {
ToastCtrl.instance.show(DataManager.ins.getData("homeBaseInfo").message) // ToastCtrl.instance.show(DataManager.ins.getData("homeBaseInfo").message)
// ToastCtrl.instance.show("网络异常请重试~"); // // ToastCtrl.instance.show("网络异常请重试~");
return; // return;
} // }
}, window['projectId'], GameConst.getQueryString("InviteSource")) // }, window['projectId'], GameConst.getQueryString("InviteSource"))
} // }
Waiting.instance.hide(); // Waiting.instance.hide();
if (window['pageID'] == 'JoinShareScene') { // if (window['pageID'] == 'JoinShareScene') {
SceneCtrl.instance.change(ModuleTypes.JoinShareScene); // SceneCtrl.instance.change(ModuleTypes.JoinShareScene);
} // }
if (window['pageID'] == 'TeamShareScene') { // if (window['pageID'] == 'TeamShareScene') {
SceneCtrl.instance.change(ModuleTypes.TeamShareScene); // SceneCtrl.instance.change(ModuleTypes.TeamShareScene);
} // }
if (window['pageID'] == 'Share2Scene') { // if (window['pageID'] == 'Share2Scene') {
SceneCtrl.instance.change(ModuleTypes.Share2Scene); // SceneCtrl.instance.change(ModuleTypes.Share2Scene);
} // }
if (window['pageID'] == 'TeamShareScene') { // if (window['pageID'] == 'TeamShareScene') {
SceneCtrl.instance.change(ModuleTypes.TeamShareScene); // SceneCtrl.instance.change(ModuleTypes.TeamShareScene);
} // }
if (window['pageID'] == 'TransScene') { // if (window['pageID'] == 'TransScene') {
SceneCtrl.instance.change(ModuleTypes.TransScene); // SceneCtrl.instance.change(ModuleTypes.TransScene);
} // }
return; // return;
} // }
loadSvgaRes(getResPath() + 'resource/assets/svgas/standby.svga'); loadSvgaRes(getResPath() + 'resource/assets/svgas/standby.svga');
......
...@@ -25,7 +25,14 @@ export default class RankPanel extends Panel{ ...@@ -25,7 +25,14 @@ export default class RankPanel extends Panel{
let com = new eui.Component(); let com = new eui.Component();
com.skinName = "RankItemSkin" com.skinName = "RankItemSkin"
com['ranklab'].text = data.list[i].rank; com['ranklab'].text = data.list[i].rank;
com['rankid'].text = data.list[i].phone; //没有手机号的情况下
if(data.list[i].phone){
com['rankid'].text = data.list[i].phone;
}else{
com['rankid'].text = "未知号码"
}
com['ranknum'].text = data.list[i].count; com['ranknum'].text = data.list[i].count;
com.y = i*50; com.y = i*50;
if(data.list[i].rank%2 == 1){ if(data.list[i].rank%2 == 1){
......
...@@ -85,7 +85,12 @@ export default class PKScene extends Scene{ ...@@ -85,7 +85,12 @@ 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;
this["team"+i]["onphone"].text = data.myTeamMembers[i-1].phone; if(data.myTeamMembers[i-1].phone){
this["team"+i]["onphone"].text = data.myTeamMembers[i-1].phone;
}else{
this["team"+i]["onphone"].text = "未知号码";
}
this["team"+i]["headimg"].source = data.myTeamMembers[i-1].avatar; this["team"+i]["headimg"].source = data.myTeamMembers[i-1].avatar;
let now = new Date(); let now = new Date();
let year = now.getFullYear(); let year = now.getFullYear();
...@@ -107,7 +112,12 @@ export default class PKScene extends Scene{ ...@@ -107,7 +112,12 @@ 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"]);
this["team"+i]["notonphone"].text = data.myTeamMembers[i-1].phone; if(data.myTeamMembers[i-1].phone){
this["team"+i]["notonphone"].text = data.myTeamMembers[i-1].phone;
}else{
this["team"+i]["notonphone"].text = "未知号码";
}
this.onTap(this["team"+i]["notonBtn"],this.askOnline); this.onTap(this["team"+i]["notonBtn"],this.askOnline);
} }
if(data.myTeamMembers[i-1].uid == uiddata.consumerId){ if(data.myTeamMembers[i-1].uid == uiddata.consumerId){
......
...@@ -75,7 +75,12 @@ export default class PKScorePanel extends Panel{ ...@@ -75,7 +75,12 @@ export default class PKScorePanel extends Panel{
if(data.pkResult.myTeamMembers[i].uid == uiddata.consumerId){ if(data.pkResult.myTeamMembers[i].uid == uiddata.consumerId){
this["team"+(i+1)]["onphone"].text = "我" this["team"+(i+1)]["onphone"].text = "我"
}else{ }else{
this["team"+(i+1)]["onphone"].text = data.pkResult.myTeamMembers[i].phone if(data.pkResult.myTeamMembers[i].phone){
this["team"+(i+1)]["onphone"].text = data.pkResult.myTeamMembers[i].phone
}else{
this["team"+(i+1)]["onphone"].text = "未知号码"
}
} }
......
...@@ -46,7 +46,8 @@ export default class PlacePanel extends Panel{ ...@@ -46,7 +46,8 @@ export default class PlacePanel extends Panel{
backStart(){ backStart(){
yzwNet.homeBaseInfo((s)=>{ yzwNet.homeBaseInfo((s)=>{
if(!s){ if(!s){
ToastCtrl.instance.show("网络异常请重试~"); ToastCtrl.instance.show(DataManager.ins.getData("homeBaseInfo").message)
// ToastCtrl.instance.show("网络异常请重试~");
return; return;
} }
Waiting.instance.hide(); Waiting.instance.hide();
......
...@@ -20,6 +20,11 @@ export default class RecordScene extends Scene{ ...@@ -20,6 +20,11 @@ export default class RecordScene extends Scene{
constructor(data){ constructor(data){
super() super()
if(data){
}else{
data = 0;
}
this.initUI(data); this.initUI(data);
} }
......
{ {
"code":null, "code":null,
"data":{ "data":{
"currentLevel":5, "currentLevel":0,
"treasureBoxNum":0, "treasureBoxNum":0,
"currentScore":1222, "currentScore":1222,
"pkResult":{ "pkResult":{
......
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