Commit 93e9c6fb authored by zjz1994's avatar zjz1994

调整底部广告显示

parent 08544bf8
...@@ -241,7 +241,7 @@ ...@@ -241,7 +241,7 @@
"name": "helpGroup" "name": "helpGroup"
}, },
{ {
"keys": "virprizebg_png,lightdi_png,wormhole_png,startscenebg_jpg", "keys": "virprizebg_png,lightdi_png,wormhole_png,startscenebg_jpg,adsmask_png,nsad2_png,nsad1_png",
"name": "preload" "name": "preload"
} }
], ],
...@@ -5401,6 +5401,21 @@ ...@@ -5401,6 +5401,21 @@
"name": "startscenebg_jpg", "name": "startscenebg_jpg",
"type": "image", "type": "image",
"url": "assets/startscenebg.jpg" "url": "assets/startscenebg.jpg"
},
{
"name": "adsmask_png",
"type": "image",
"url": "assets/ad/adsmask.png"
},
{
"name": "nsad2_png",
"type": "image",
"url": "assets/ad/nsad2.png"
},
{
"name": "nsad1_png",
"type": "image",
"url": "assets/ad/nsad1.png"
} }
] ]
} }
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<e:Skin class="ADSmallSkin" width="615" height="238" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing"> <e:Skin class="ADSmallSkin" width="615" height="238" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<w:Config id="16db4bf413f"/> <w:Config id="16db4bf413f"/>
<e:Image source="common_adbg_png"/>
<e:Image id="img" y="69" width="493" height="111" source="{data.img}" anchorOffsetY="0" horizontalCenter="0"/> <e:Image source="nsad1_png" horizontalCenter="0" y="35"/>
<e:Image id="img" y="44" width="560" height="160" source="{data.img}" anchorOffsetY="0" horizontalCenter="0.5"/>
<e:Image id="adsmask" source="adsmask_png" horizontalCenter="0.5" y="45" width="560" height="160"/>
<e:Image source="nsad2_png" horizontalCenter="-7.5"/>
</e:Skin> </e:Skin>
\ No newline at end of file
...@@ -11,6 +11,10 @@ export default class AdSmallComp extends ComponentBase { ...@@ -11,6 +11,10 @@ export default class AdSmallComp extends ComponentBase {
let result; let result;
// this.touchEnabled = this.touchChildren = false; // this.touchEnabled = this.touchChildren = false;
super.start(data); super.start(data);
if(!this['img'].mask){
this['img'].mask = this['adsmask'];
}
NetManager.ins.hc_advert(() => { NetManager.ins.hc_advert(() => {
const { data } = DataManager.ins.getData('hc_advert'); const { data } = DataManager.ins.getData('hc_advert');
let { popupAdvert } = data; let { popupAdvert } = data;
......
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