Commit b4165376 authored by wjf's avatar wjf

l

parent 5d6618bd
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -87,7 +87,7 @@ export default class MainBase extends eui.UILayer { ...@@ -87,7 +87,7 @@ export default class MainBase extends eui.UILayer {
['sign', { cls: SignPanel }], ['sign', { cls: SignPanel }],
['signPrize', { cls: SignPrizePanel }], ['signPrize', { cls: SignPrizePanel }],
['friend', { cls: FriendPanel }], ['friend', { cls: FriendPanel }],
['ad', { cls: ADPanel }], ['ad', { cls: ADPanel }],
['BombTipsPanel', { cls: BombTipsPanel }], ['BombTipsPanel', { cls: BombTipsPanel }],
...@@ -416,43 +416,67 @@ export default class MainBase extends eui.UILayer { ...@@ -416,43 +416,67 @@ export default class MainBase extends eui.UILayer {
// }); // });
updateMainTimer(); updateMainTimer();
//注释,页面停留时间
initstatistics(); initstatistics();
document.addEventListener("visibilitychange", () => { // document.addEventListener("visibilitychange", () => {
if (document.visibilityState == "visible") { // if (document.visibilityState == "visible") {
if (getBgOn()) { // if (getBgOn()) {
if (SceneCtrl.instance.currentScene instanceof MapScene) // if (SceneCtrl.instance.currentScene instanceof MapScene)
playBg(); // playBg();
else if (SceneCtrl.instance.currentScene instanceof MainScene) // else if (SceneCtrl.instance.currentScene instanceof MainScene)
playGameBg(); // playGameBg();
} // }
// if(timerInit) { // // if(timerInit) {
NetManager.ins.hc_home(() => { // NetManager.ins.hc_home(() => {
updateMainTimer(); // updateMainTimer();
//更新bloodpanel和mapscene // //更新bloodpanel和mapscene
const currentScene = SceneCtrl.instance.currentScene; // const currentScene = SceneCtrl.instance.currentScene;
if (currentScene && currentScene['updateTimerView']) // if (currentScene && currentScene['updateTimerView'])
currentScene['updateTimerView'](); // currentScene['updateTimerView']();
const current = PanelCtrl.instance._current; // const current = PanelCtrl.instance._current;
if (current && current['updateTimerView']) // if (current && current['updateTimerView'])
current['updateTimerView'](); // current['updateTimerView']();
}, window['collectRuleId']); // }, window['collectRuleId']);
// } // // }
GDispatcher.dispatchEvent('docVisible'); // 触发document显示事件 // GDispatcher.dispatchEvent('docVisible'); // 触发document显示事件
} // }
if (document.visibilityState == "hidden") { // if (document.visibilityState == "hidden") {
stopBg(); // stopBg();
stopGamebg(); // stopGamebg();
GDispatcher.dispatchEvent('docHide'); // 触发document隐藏事件 // GDispatcher.dispatchEvent('docHide'); // 触发document隐藏事件
// }
// })
window["webviewHide"] = () => {
stopBg();
stopGamebg();
}
window["webviewShow"] = () => {
if (getBgOn()) {
if (SceneCtrl.instance.currentScene instanceof MapScene)
playBg();
else if (SceneCtrl.instance.currentScene instanceof MainScene)
playGameBg();
} }
})
// if(timerInit) {
NetManager.ins.hc_home(() => {
updateMainTimer();
//更新bloodpanel和mapscene
const currentScene = SceneCtrl.instance.currentScene;
if (currentScene && currentScene['updateTimerView'])
currentScene['updateTimerView']();
const current = PanelCtrl.instance._current;
if (current && current['updateTimerView'])
current['updateTimerView']();
}, window['collectRuleId']);
}
} }
} }
// let timerInit=false; // let timerInit=false;
......
...@@ -85,7 +85,7 @@ export default class PrizePanel extends Panel { ...@@ -85,7 +85,7 @@ export default class PrizePanel extends Panel {
(s) => { (s) => {
Loading.instace.hide() Loading.instace.hide()
if (s) { if (s) {
// showToast("成功加倍"); showToast("翻倍成功");
NetManager.ins.hc_home(() => { NetManager.ins.hc_home(() => {
}, window['collectRuleId']); }, window['collectRuleId']);
} else { } else {
......
This diff is collapsed.
...@@ -1922,7 +1922,7 @@ export default class MainScene extends Scene { ...@@ -1922,7 +1922,7 @@ export default class MainScene extends Scene {
if (movieClips["bonusTime"].parent) { if (movieClips["bonusTime"].parent) {
this.removeChild(movieClips["bonusTime"]) this.removeChild(movieClips["bonusTime"])
} }
}, 1930) }, 2217)
} else { } else {
this.addChild(this.bonusTime); this.addChild(this.bonusTime);
this.bonusTime.play(() => { this.bonusTime.play(() => {
......
...@@ -214,7 +214,7 @@ class Video extends eui.Component/*egret.DisplayObjectContainer*/ { ...@@ -214,7 +214,7 @@ class Video extends eui.Component/*egret.DisplayObjectContainer*/ {
s._isAdded = true; s._isAdded = true;
document.body.appendChild(s.media) document.body.appendChild(s.media)
if (s.element1) document.body.appendChild(s.element1); if (s.element1) document.body.appendChild(s.element1);
if (s.appUi) document.body.appendChild(s.appUi); // if (s.appUi) document.body.appendChild(s.appUi);
} else { } else {
if (s.media && s.visible) { if (s.media && s.visible) {
s.media.style.display = "block"; s.media.style.display = "block";
...@@ -293,6 +293,13 @@ class Video extends eui.Component/*egret.DisplayObjectContainer*/ { ...@@ -293,6 +293,13 @@ class Video extends eui.Component/*egret.DisplayObjectContainer*/ {
this.volume = 1; this.volume = 1;
this.volumeBtn.src = "https://yun.duiba.com.cn/db_games/activity/xiaoxiaoleTuia/cssImage/voice.png"; this.volumeBtn.src = "https://yun.duiba.com.cn/db_games/activity/xiaoxiaoleTuia/cssImage/voice.png";
var v = this.videoRaw.rewardvideo;
this.initAppUi({
appIcon: v.endcardicon || '',
name: v.endcardtitle || '',
slogen: v.endcarddesc || ''
})
//挂方法 //挂方法
window["videoCloseEvent"] = () => { window["videoCloseEvent"] = () => {
this.closeEvent(); this.closeEvent();
...@@ -389,10 +396,10 @@ class Video extends eui.Component/*egret.DisplayObjectContainer*/ { ...@@ -389,10 +396,10 @@ class Video extends eui.Component/*egret.DisplayObjectContainer*/ {
var closeBtn = new Image() var closeBtn = new Image()
closeBtn.src = "https://yun.duiba.com.cn/db_games/activity/xiaoxiaoleTuia/cssImage/videoCloseBtn.png"; closeBtn.src = "https://yun.duiba.com.cn/db_games/activity/xiaoxiaoleTuia/cssImage/videoCloseBtn.png";
closeBtn.style.position = "absolute"; closeBtn.style.position = "absolute";
closeBtn.style.top = "10vw"; closeBtn.style.top = "5vw";
closeBtn.style.right = "10px"; closeBtn.style.right = "5vw";
closeBtn.style.width = "10vw"; closeBtn.style.width = "5vw";
closeBtn.style.height = "10vw" closeBtn.style.height = "5vw"
closeBtn.style.zIndex = "9999" closeBtn.style.zIndex = "9999"
element1.appendChild(closeBtn) element1.appendChild(closeBtn)
closeBtn.addEventListener("click", (e) => { closeBtn.addEventListener("click", (e) => {
...@@ -423,25 +430,13 @@ class Video extends eui.Component/*egret.DisplayObjectContainer*/ { ...@@ -423,25 +430,13 @@ class Video extends eui.Component/*egret.DisplayObjectContainer*/ {
//appUi,待修改 //appUi,待修改
this.appUi = document.createElement('div'); this.appUi = document.createElement('div');
this.appUi.style.display = "none"; this.appUi.style.display = "none";
document.body.appendChild(this.appUi);
var v = this.videoRaw.rewardvideo; var v = this.videoRaw.rewardvideo;
this.initAppUi({ this.initAppUi({
appIcon: v.endcardicon || '', appIcon: v.endcardicon || '',
name: v.endcardtitle || '', name: v.endcardtitle || '',
slogen: v.endcarddesc || '' slogen: v.endcarddesc || ''
}) })
//事件
let appUiChild = document.querySelector('.video-land-page-content');
let appClose = document.querySelector('.app-close');
let appButton = document.querySelector('.app-button');
appUiChild.addEventListener('click', (e) => {
if (e.target === appClose) {
this.closeEvent();
this.appAdClose();
} else if (e.target === appButton) {
this.downloadEvent(e);
}
})
} }
private initAppUi(content: { appIcon: String, name: String, slogen: String }) { private initAppUi(content: { appIcon: String, name: String, slogen: String }) {
...@@ -452,14 +447,14 @@ class Video extends eui.Component/*egret.DisplayObjectContainer*/ { ...@@ -452,14 +447,14 @@ class Video extends eui.Component/*egret.DisplayObjectContainer*/ {
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAApCAYAAABDV7v1AAAJoUlEQVRYR62ZDUxTWRbH7yuFtnzYgsCYZQ1RG6bIUkHTomhnCQNGZkxmgzNqZlZXRdQExLW67kBiXIgMWleFEMGvurMbJqDJzhoXszFGhBWByscKjGgVjWLUgC47Q0HKV9n8X95t3nt9tYx6k6Z9pfec3z33nHPPuTBEOBjukb7jcZr7jr6Lprzzo1inpD7+j/AZLxn3js+YhJeL9/l9AfP1UZ3UMNDH18mCYeCHeMkbGxsXGI3GE/7+/ksmJibabTbbLpPJdJ8QMslNpgLexZRUnx8hxH9wcHCXWq3eCYEOh+O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aLyWw27/Lz8/OQ5XQ6W3Jzc9dbrVa0IbSXF8CK61EoYC8i7Hb7VzExMWWcZQWQjx49up2UlPTnV69e8SFhTZofIRc7gKCDVZFrw4qKipbl5+eb5XK5x+44nc72/Pz8taWlpdgdD1gKyvdJ5cOHDzfNnz//KLeFAki73d5uNBqPDg0NYfXUkoh0QNJ0Q2ta+HQQIQT5FrChBQUFSYWFhXukjtyxsbGukpKSNYWFhS/4tyQA4PdM8B+l3W5fFxMTc1Iqrdy9e7fFaDSWDQ8P8yFhSRyJfP+CbLcLcbBuy+7duxdH776AgAAEnGCMj493r169etXVq1f5Acb2TPyKPhgXY3K5/JdiAV1dXY1Lly4tHx0dpZ0i+htqSamIFWQOnhuwrc3OnTsTjhw58rVCoYDFxbu2W6fT/YVr8NjeiYLCL9l0MjExcVt8fre3t9cnJSVV4A6Kt93UJ9+UVsSwgHJbNjs7O768vDxfoVDgyHWPnp6eP8XFxVXw0h17AUEDCOlE09HR8fvExMQ8Ostms11Zvnz5WR4kLDkTSCrCGyxr2Y0bNy6srKzMDwwMxDNxOp0D69aty7x06dJDXrrzuHuC04cfO3YsJT4+Pr6lpeXh/v370d9gi2k7C0hcs8z4nOZdENNbQ5pjoS9Ur9dHFhUVmfz9/SeLi4trm5qaHnO1K83LLChe2HpEKAoNTMY7PYUQzZgAWORJehU4o2KCt6PUsjgM2CtOrrWBLnwGA45f6MCxSi8i2FQlDib4KSZhxZiIpAvrAY5W5fRiAKA/d/BhabcAfdALa0MmTjboErTP4vTEJnsOEivHRKwSq8KLfz3+cyHFPkubRgBDL0BhGOgALNWHG273lQ5dKW03IATfYSK9CmcncPBvC8mH5VuX6sPfYRyq0+1e4iOUugL/e3rmehQK70rL++8L1QuRkvq8lXnvgeH9ivg/Q8XnV69aMKIAAAAASUVORK5CYII=">
</img> </img>
<div class="app-info-wrap"> <div class="app-info-wrap">
<div class="app-logo" style="backgroundImage:url(${appIcon})"></div> <div class="app-logo" style="background-image:url(${appIcon})"></div>
<div class="app-name">${name}</div> <div class="app-name">${name}</div>
<div class="app-button">${slogen}</div> <div class="app-button">${slogen||"马上下载"}</div>
</div> </div>
</div> </div>
`; `;
// document.body.appendChild(this.appUi); // document.body.appendChild(this.appUi);
// this.appUiEvent(); this.appUiEvent();
} }
private appUiEvent() { private appUiEvent() {
let appUiChild = document.querySelector('.video-land-page-content'); let appUiChild = document.querySelector('.video-land-page-content');
...@@ -467,9 +462,10 @@ class Video extends eui.Component/*egret.DisplayObjectContainer*/ { ...@@ -467,9 +462,10 @@ class Video extends eui.Component/*egret.DisplayObjectContainer*/ {
let appButton = document.querySelector('.app-button'); let appButton = document.querySelector('.app-button');
appUiChild.addEventListener('click', (e) => { appUiChild.addEventListener('click', (e) => {
if (e.target === appClose) { if (e.target === appClose) {
this.appUi.style.display = "none"; this.closeEvent();
this.appAdClose();
} else if (e.target === appButton) { } else if (e.target === appButton) {
console.log('点击事件'); this.downloadEvent(e);
} }
}) })
} }
......
...@@ -87,7 +87,7 @@ const reflectObj = { ...@@ -87,7 +87,7 @@ const reflectObj = {
'3g': 3, '3g': 3,
'4g': 4, '4g': 4,
'5g': 5, '5g': 5,
other: 6 other: 1
}; };
function getNetworkType(obj = reflectObj) { function getNetworkType(obj = reflectObj) {
......
...@@ -50,7 +50,7 @@ export default class BoxPanel extends Panel { ...@@ -50,7 +50,7 @@ export default class BoxPanel extends Panel {
(s) => { (s) => {
Loading.instace.hide() Loading.instace.hide()
if (s) { if (s) {
// showToast("成功加倍"); showToast("翻倍成功");
NetManager.ins.hc_home(() => { NetManager.ins.hc_home(() => {
updateMainTimer(); updateMainTimer();
SceneCtrl.instance.updateScene(); SceneCtrl.instance.updateScene();
......
...@@ -40,7 +40,6 @@ export default class SignPanel extends Panel { ...@@ -40,7 +40,6 @@ export default class SignPanel extends Panel {
} }
item['btn1'].enabled=false; item['btn1'].enabled=false;
NetManager.ins.doSign((s)=>{ NetManager.ins.doSign((s)=>{
NetManager.ins.showLog(getlogItem(22));
item['btn1'].enabled=true; item['btn1'].enabled=true;
wait(300).then(()=>{ wait(300).then(()=>{
NetManager.ins.getSignInfo(() => { NetManager.ins.getSignInfo(() => {
...@@ -52,9 +51,9 @@ export default class SignPanel extends Panel { ...@@ -52,9 +51,9 @@ export default class SignPanel extends Panel {
const {customInfo,success} =DataManager.ins.getData('dosign'); const {customInfo,success} =DataManager.ins.getData('dosign');
if(!success || !customInfo.success || customInfo.prizeType =='none') { if(!success || !customInfo.success || customInfo.prizeType =='none') {
if(customInfo.code==100004) { if(customInfo.code==100004) {
showToast('哎呀,奖励擦肩而过!明天再来试试吧!'); showToast('与奖励失之交臂!明天再来试试吧!');
}else { }else {
showToast('哎呀,奖励擦肩而过!'); showToast('与奖励失之交臂');
} }
return; return;
} }
...@@ -71,7 +70,7 @@ export default class SignPanel extends Panel { ...@@ -71,7 +70,7 @@ export default class SignPanel extends Panel {
}, window['collectRuleId']); }, window['collectRuleId']);
}); });
}else { }else {
showToast('哎呀,奖励擦肩而过!'); showToast('与奖励失之交臂');
} }
this.hidePanel(); this.hidePanel();
......
...@@ -61,7 +61,7 @@ export default class SignPrizePanel extends Panel { ...@@ -61,7 +61,7 @@ export default class SignPrizePanel extends Panel {
this['close2Btn'].visible = true; this['close2Btn'].visible = true;
this['doubleBtn'].visible = false; this['doubleBtn'].visible = false;
if (s) { if (s) {
// showToast("成功加倍"); showToast("翻倍成功");
NetManager.ins.hc_home(() => { NetManager.ins.hc_home(() => {
updateMainTimer(); updateMainTimer();
SceneCtrl.instance.updateScene(); SceneCtrl.instance.updateScene();
......
...@@ -56,9 +56,9 @@ ...@@ -56,9 +56,9 @@
"duration": 24, "duration": 24,
"endcardhtml": "http://xxx.xxx.html", "endcardhtml": "http://xxx.xxx.html",
"endcardimage": "//yun.dui88.com/images/201910/e6pmpk2pne.png", "endcardimage": "//yun.dui88.com/images/201910/e6pmpk2pne.png",
"endcardicon": "http://xxx.jpg", "endcardicon": "//yun.dui88.com/images/201910/e6pmpk2pne.png",
"endcardtitle": "xxx", "endcardtitle": "665",
"endcarddesc": "xxxxx", "endcarddesc": "qqq",
"endcardshownotice": [ "endcardshownotice": [
"http://xxx.xxx.xxx" "http://xxx.xxx.xxx"
], ],
......
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