Commit e0bc15ed authored by wangzhujun's avatar wangzhujun

123

parent 022086ac
......@@ -132,46 +132,46 @@ export default class StartScene extends Scene {
// for(let i = 0;i<num;i++){
// this[this.arr[i]].source = this[this.arr[i]].source.substring(2);
// }
if(num = 1){
if(num == 1){
this.hz.source = "CHNhangzhou_png"
}else if(num = 2){
}else if(num == 2){
this.hz.source = "CHNhangzhou_png"
this.am.source = "CHNaomen_png"
}else if(num = 3){
}else if(num == 3){
this.hz.source = "CHNhangzhou_png"
this.am.source = "CHNaomen_png"
this.xg.source = "CHNxianggang_png"
}else if(num = 4){
}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.tb.source = "CHNtaiwan_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.tb.source = "CHNtaiwan_png"
this.rb.source = "riben_png"
}else if(num = 6){
}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.tb.source = "CHNtaiwan_png"
this.rb.source = "riben_png"
this.hg.source = "hanguo_png"
}else if(num = 7){
}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.tb.source = "CHNtaiwan_png"
this.rb.source = "riben_png"
this.hg.source = "hanguo_png"
this.cx.source = "chaoxian_png"
}else if(num = 8){
}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.tb.source = "CHNtaiwan_png"
this.rb.source = "riben_png"
this.hg.source = "hanguo_png"
this.cx.source = "chaoxian_png"
......
......@@ -17,23 +17,23 @@ export default class RecordMapScene extends Scene{
}
initUI(data){
// if(data.num == 1){
// this.mapBG.source = "maphz_png"
// }else if(data.num == 2){
// this.mapBG.source = "mapam_png"
// }else if(data.num == 3){
// this.mapBG.source = "mapxg_png"
// }else if(data.num == 4){
// this.mapBG.source = "maptb_png"
// }else if(data.num == 5){
// this.mapBG.source = "maprb_png"
// }else if(data.num == 6){
// this.mapBG.source = "maphg_png"
// }else if(data.num == 7){
// this.mapBG.source = "mapcx_png"
// }else if(data.num == 8){
// this.mapBG.source = "mapmg_png"
// }
if(data.num == 1){
this.mapBG.source = "maphz_png"
}else if(data.num == 2){
this.mapBG.source = "mapam_png"
}else if(data.num == 3){
this.mapBG.source = "mapxg_png"
}else if(data.num == 4){
this.mapBG.source = "maptb_png"
}else if(data.num == 5){
this.mapBG.source = "maprb_png"
}else if(data.num == 6){
this.mapBG.source = "maphg_png"
}else if(data.num == 7){
this.mapBG.source = "mapcx_png"
}else if(data.num == 8){
this.mapBG.source = "mapmg_png"
}
const arr = ["HZ","AM","XG","TB","RB","HG","CX","MG"];
for(let i =0;i<data.data.length;i++){
......
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