Commit c4358d2e authored by wildfirecode's avatar wildfirecode

Merge branch 'dev' of http://gitlab2.dui88.com/wanghongyuan/yyh into dev

parents 6ae3a2c4 f9792120
...@@ -36,7 +36,8 @@ ...@@ -36,7 +36,8 @@
"resource/skins/ConfirmSkin.exml", "resource/skins/ConfirmSkin.exml",
"resource/skins/JoinShareSkin.exml", "resource/skins/JoinShareSkin.exml",
"resource/skins/PKScoreSkin.exml", "resource/skins/PKScoreSkin.exml",
"resource/skins/CertificateSkin.exml" "resource/skins/CertificateSkin.exml",
"resource/skins/ShareStarterSkin.exml"
], ],
"path": "resource/default.thm.json" "path": "resource/default.thm.json"
} }
\ No newline at end of file
...@@ -221,11 +221,12 @@ class Main extends MainBase { ...@@ -221,11 +221,12 @@ class Main extends MainBase {
// ToastCtrl.instance.show("网络异常请重试~"); // ToastCtrl.instance.show("网络异常请重试~");
return; return;
} }
}, window['projectId'], GameConst.getQueryString("InviteSource")) Waiting.instance.hide();
Waiting.instance.hide(); let data = DataManager.ins.getData("homeBaseInfo").data;
let data = DataManager.ins.getData("homeBaseInfo").data;
SceneCtrl.instance.change(ModuleTypes.START_SCENE, data); SceneCtrl.instance.change(ModuleTypes.START_SCENE, data);
}, window['projectId'], GameConst.getQueryString("InviteSource"))
} else { } else {
yzwNet.homeBaseInfo((s) => { yzwNet.homeBaseInfo((s) => {
if (!s) { if (!s) {
......
...@@ -129,8 +129,55 @@ export default class StartScene extends Scene { ...@@ -129,8 +129,55 @@ export default class StartScene extends Scene {
private arr = ["hz","am","xg","tb","rb","hg","cx","mg"] private arr = ["hz","am","xg","tb","rb","hg","cx","mg"]
showMap(num){ showMap(num){
for(let i = 0;i<num;i++){ // for(let i = 0;i<num;i++){
this[this.arr[i]].source = this[this.arr[i]].source.substring(2); // this[this.arr[i]].source = this[this.arr[i]].source.substring(2);
// }
if(num = 1){
this.hz.source = "CHNhangzhou_png"
}else if(num = 2){
this.hz.source = "CHNhangzhou_png"
this.am.source = "CHNaomen_png"
}else if(num = 3){
this.hz.source = "CHNhangzhou_png"
this.am.source = "CHNaomen_png"
this.xg.source = "CHNxianggang_png"
}else if(num = 4){
this.hz.source = "CHNhangzhou_png"
this.am.source = "CHNaomen_png"
this.xg.source = "CHNxianggang_png"
this.tb.source = "CHNtaiwanpng_png"
}else if(num = 5){
this.hz.source = "CHNhangzhou_png"
this.am.source = "CHNaomen_png"
this.xg.source = "CHNxianggang_png"
this.tb.source = "CHNtaiwanpng_png"
this.rb.source = "riben_png"
}else if(num = 6){
this.hz.source = "CHNhangzhou_png"
this.am.source = "CHNaomen_png"
this.xg.source = "CHNxianggang_png"
this.tb.source = "CHNtaiwanpng_png"
this.rb.source = "riben_png"
this.hg.source = "hanguo_png"
}else if(num = 7){
this.hz.source = "CHNhangzhou_png"
this.am.source = "CHNaomen_png"
this.xg.source = "CHNxianggang_png"
this.tb.source = "CHNtaiwanpng_png"
this.rb.source = "riben_png"
this.hg.source = "hanguo_png"
this.cx.source = "chaoxian_png"
}else if(num = 8){
this.hz.source = "CHNhangzhou_png"
this.am.source = "CHNaomen_png"
this.xg.source = "CHNxianggang_png"
this.tb.source = "CHNtaiwanpng_png"
this.rb.source = "riben_png"
this.hg.source = "hanguo_png"
this.cx.source = "chaoxian_png"
this.mg.source = "menggu_png"
}else{
} }
} }
......
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