Commit cb1a1f61 authored by zjz1994's avatar zjz1994

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

parents 516eedb9 b395da78
...@@ -7,13 +7,13 @@ import wait from "../../libs/new_tc/wait"; ...@@ -7,13 +7,13 @@ import wait from "../../libs/new_tc/wait";
export default class AdSmallComp extends ComponentBase { export default class AdSmallComp extends ComponentBase {
start(data?) { start(data?) {
this.visible=false; this.visible = false;
let result; let result;
// this.touchEnabled = this.touchChildren = false; // this.touchEnabled = this.touchChildren = false;
super.start(data); super.start(data);
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;
if (popupAdvert == null) if (popupAdvert == null)
popupAdvert = { enable: false, advertList: [] } popupAdvert = { enable: false, advertList: [] }
this.visible = popupAdvert.enable; this.visible = popupAdvert.enable;
...@@ -28,10 +28,10 @@ export default class AdSmallComp extends ComponentBase { ...@@ -28,10 +28,10 @@ export default class AdSmallComp extends ComponentBase {
}); });
this['img'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => { this['img'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
if(data.logid) if (data.logid)
NetManager.ins.clickLog(getlogItem(data.logid)); NetManager.ins.clickLog(getlogItem(data.logid));
wait(50).then(()=>{ wait(50).then(() => {
window.location.href = result.url; if (result.url != 0) window.location.href = result.url;
}); });
}, this); }, this);
} }
......
...@@ -735,7 +735,8 @@ export default class MapScene extends Scene { ...@@ -735,7 +735,8 @@ export default class MapScene extends Scene {
this['adBtn'].source = result.img; this['adBtn'].source = result.img;
this['adBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => { this['adBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
NetManager.ins.clickLog(getlogItem(32)); NetManager.ins.clickLog(getlogItem(32));
window.location.href = result.url; if(result.url!=0)
window.location.href = result.url;
}, this); }, this);
} }
} }
......
...@@ -281,7 +281,8 @@ const chapterFuns = { ...@@ -281,7 +281,8 @@ const chapterFuns = {
[63, 72], [63, 72],
], ],
msg: [ msg: [
"将两个特效互相拖动即可直\n接触发组合特效,组合特效的效\n果视组合的两个特效类型而定" "拖动两个特效即可触发\n组合特效"
// "将两个特效互相拖动即可直\n接触发组合特效,组合特效的效\n果视组合的两个特效类型而定"
// "五个相同动物形成一字型即可合成魔力花特效", // "五个相同动物形成一字型即可合成魔力花特效",
// "拖动魔力花特效即可直接触发" // "拖动魔力花特效即可直接触发"
] ]
......
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