|
@@ -8,7 +8,9 @@ class DataBuildingScene extends scene {
|
|
|
onCreate(data) {
|
|
|
this.setContentView(require('../../../res/tpl/DataBuildingScene.tpl'), {}, 'DataBuildingScene', {}, () => {
|
|
|
if (data && data.bgUrl) {
|
|
|
- document.getElementById('building-pic-bg').setAttribute('src', Consts.IMG_PATH + '/' + data.bgUrl);
|
|
|
+ document.getElementById('building-pic-bg').setAttribute('src', Consts.IMG_PATH + '/' + data.bgUrl);
|
|
|
+ } else {
|
|
|
+ document.getElementById('building-pic-bg').setAttribute('src', Consts.DATA_BUILDING);
|
|
|
}
|
|
|
});
|
|
|
}
|