Commit e0bc15ed authored by wangzhujun's avatar wangzhujun

123

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