Commit b4165376 authored by wjf's avatar wjf

l

parent 5d6618bd
This diff is collapsed.
This diff is collapsed.
......@@ -4,13 +4,12 @@
<head>
<meta charset="utf-8">
<title>Egret</title>
<meta name="viewport"
content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="full-screen" content="true"/>
<meta name="screen-orientation" content="portrait"/>
<meta name="x5-fullscreen" content="true"/>
<meta name="360-fullscreen" content="true"/>
<meta name="viewport" content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="full-screen" content="true" />
<meta name="screen-orientation" content="portrait" />
<meta name="x5-fullscreen" content="true" />
<meta name="360-fullscreen" content="true" />
<style>
html,
body {
......@@ -35,34 +34,93 @@
font-family: "FZY4JW";
src: url("https://yun.duiba.com.cn/db_games/FZY4JW.TTF");
}
.video-land-page-content {
position: absolute;
z-index: 99999;
width: 100%;
height: 100%;
left: 0;
top: 0;
background: rgba(0, 0, 0, 0.6);
}
.app-close {
position: absolute;
width: 5vw;
height: 5vw;
top: 5vw;
right: 5vw;
}
.app-info-wrap {
padding: 3vh 0;
box-sizing: border-box;
width: 84vw;
height: 40vh;
background-color: #fff;
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
margin: auto;
display: flex;
flex-direction: column;
align-items: center;
}
.app-logo {
width: 18.7vw;
margin-top: 4vh;
height: 10.5vh;
background-repeat: no-repeat;
background-size: 100%;
}
.app-name {
font-size: 24px;
font-weight: 400;
color: rgb(70, 63, 63);
line-height: 3.4vh;
text-align: center;
margin-top: 3vh;
}
.app-button {
width: 75.2vw;
height: 6.9vh;
margin: 4vh;
background: rgba(110, 166, 232, 1);
border-radius: 4px;
font-size: 17px;
color: rgba(255, 255, 255, 1);
display: flex;
justify-content: center;
align-items: center;
}
</style>
</head>
<body>
<div style="margin: auto;width: 100%;height: 100%;" class="egret-player" data-entry-class="Main"
data-orientation="auto" data-scale-mode="showAll" data-frame-rate="60" data-content-width="750"
data-content-height="1624" data-multi-fingered="2" data-show-fps="false" data-show-log="true"
data-show-fps-style="x:0,y:0,size:12,textColor:0xffffff,bgAlpha:0.9">
</div>
<div style="margin: auto;width: 100%;height: 100%;" class="egret-player" data-entry-class="Main" data-orientation="auto"
data-scale-mode="showAll" data-frame-rate="60" data-content-width="750" data-content-height="1624" data-multi-fingered="2"
data-show-fps="false" data-show-log="true" data-show-fps-style="x:0,y:0,size:12,textColor:0xffffff,bgAlpha:0.9">
</div>
<script src="libs/modules/egret/egret.js"></script>
<script src="libs/modules/egret/egret.web.js"></script>
<script src="libs/modules/eui/eui.js"></script>
<script src="libs/modules/assetsmanager/assetsmanager.js"></script>
<script src="libs/modules/tween/tween.js"></script>
<script src="libs/zepto.min.js"></script>
<script src="libs/security.js"></script>
<script src="libs/downloadApp.js"></script>
<script src="libs/svga.egret.min2.js"></script>
<script src="libs/aes.js"></script>
<script src="libs/pad-zeropadding.js"></script>
<script src="https://yun.tuisnake.com/h5-mami/inspire/v1.3/inspire.min.js"></script>
<script src="libs/modules/egret/egret.js"></script>
<script src="libs/modules/egret/egret.web.js"></script>
<script src="libs/modules/eui/eui.js"></script>
<script src="libs/modules/assetsmanager/assetsmanager.js"></script>
<script src="libs/modules/tween/tween.js"></script>
<script src="libs/zepto.min.js"></script>
<script src="libs/security.js"></script>
<script src="libs/downloadApp.js"></script>
<script src="libs/svga.egret.min2.js"></script>
<script src="libs/aes.js"></script>
<script src="libs/pad-zeropadding.js"></script>
<script src="https://yun.tuisnake.com/h5-mami/inspire/v1.3/inspire.min.js"></script>
<!-- //线上不需要 -->
<script src="libs/fileSave.js"></script>
<img id="pic" style="width:100%;position: absolute;z-index: 999;display: none;"/>
<!-- //线上不需要 -->
<script src="libs/fileSave.js"></script>
<img id="pic" style="width:100%;position: absolute;z-index: 999;display: none;" />
<script>
<script>
window['signconfigs'] = [
{ nums: '*20', type: 'money' },
{ nums: '*20', type: 'money' },
......@@ -154,10 +212,10 @@
var b = eval(a);
return b;
}
</script>
</script>
<script src="output.js"></script>
<script src="output.js"></script>
</body>
</html>
\ No newline at end of file
......@@ -416,12 +416,48 @@ export default class MainBase extends eui.UILayer {
// });
updateMainTimer();
//注释,页面停留时间
initstatistics();
document.addEventListener("visibilitychange", () => {
// document.addEventListener("visibilitychange", () => {
// if (document.visibilityState == "visible") {
// 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']);
// // }
// GDispatcher.dispatchEvent('docVisible'); // 触发document显示事件
// }
// if (document.visibilityState == "hidden") {
// stopBg();
// stopGamebg();
if (document.visibilityState == "visible") {
// GDispatcher.dispatchEvent('docHide'); // 触发document隐藏事件
// }
// })
window["webviewHide"] = () => {
stopBg();
stopGamebg();
}
window["webviewShow"] = () => {
if (getBgOn()) {
if (SceneCtrl.instance.currentScene instanceof MapScene)
playBg();
......@@ -440,19 +476,7 @@ export default class MainBase extends eui.UILayer {
if (current && current['updateTimerView'])
current['updateTimerView']();
}, window['collectRuleId']);
// }
GDispatcher.dispatchEvent('docVisible'); // 触发document显示事件
}
if (document.visibilityState == "hidden") {
stopBg();
stopGamebg();
GDispatcher.dispatchEvent('docHide'); // 触发document隐藏事件
}
})
}
}
// let timerInit=false;
......
......@@ -85,7 +85,7 @@ export default class PrizePanel extends Panel {
(s) => {
Loading.instace.hide()
if (s) {
// showToast("成功加倍");
showToast("翻倍成功");
NetManager.ins.hc_home(() => {
}, window['collectRuleId']);
} else {
......
This diff is collapsed.
......@@ -1922,7 +1922,7 @@ export default class MainScene extends Scene {
if (movieClips["bonusTime"].parent) {
this.removeChild(movieClips["bonusTime"])
}
}, 1930)
}, 2217)
} else {
this.addChild(this.bonusTime);
this.bonusTime.play(() => {
......
......@@ -214,7 +214,7 @@ class Video extends eui.Component/*egret.DisplayObjectContainer*/ {
s._isAdded = true;
document.body.appendChild(s.media)
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 {
if (s.media && s.visible) {
s.media.style.display = "block";
......@@ -293,6 +293,13 @@ class Video extends eui.Component/*egret.DisplayObjectContainer*/ {
this.volume = 1;
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"] = () => {
this.closeEvent();
......@@ -389,10 +396,10 @@ class Video extends eui.Component/*egret.DisplayObjectContainer*/ {
var closeBtn = new Image()
closeBtn.src = "https://yun.duiba.com.cn/db_games/activity/xiaoxiaoleTuia/cssImage/videoCloseBtn.png";
closeBtn.style.position = "absolute";
closeBtn.style.top = "10vw";
closeBtn.style.right = "10px";
closeBtn.style.width = "10vw";
closeBtn.style.height = "10vw"
closeBtn.style.top = "5vw";
closeBtn.style.right = "5vw";
closeBtn.style.width = "5vw";
closeBtn.style.height = "5vw"
closeBtn.style.zIndex = "9999"
element1.appendChild(closeBtn)
closeBtn.addEventListener("click", (e) => {
......@@ -423,25 +430,13 @@ class Video extends eui.Component/*egret.DisplayObjectContainer*/ {
//appUi,待修改
this.appUi = document.createElement('div');
this.appUi.style.display = "none";
document.body.appendChild(this.appUi);
var v = this.videoRaw.rewardvideo;
this.initAppUi({
appIcon: v.endcardicon || '',
name: v.endcardtitle || '',
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 }) {
......@@ -452,14 +447,14 @@ class Video extends eui.Component/*egret.DisplayObjectContainer*/ {
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAApCAYAAABDV7v1AAAJoUlEQVRYR62ZDUxTWRbH7yuFtnzYgsCYZQ1RG6bIUkHTomhnCQNGZkxmgzNqZlZXRdQExLW67kBiXIgMWleFEMGvurMbJqDJzhoXszFGhBWByscKjGgVjWLUgC47Q0HKV9n8X95t3nt9tYx6k6Z9pfec3z33nHPPuTBEOBjukb7jcZr7jr6Lprzzo1inpD7+j/AZLxn3js+YhJeL9/l9AfP1UZ3UMNDH18mCYeCHeMkbGxsXGI3GE/7+/ksmJibabTbbLpPJdJ8QMslNpgLexZRUnx8hxH9wcHCXWq3eCYEOh+O4RqMp5/RNUWD+qvwJIQqn03lZoVAspxQul2vg2rVrmStXrrxNCJkghLgnvyWp2ygajUb5+PHjI2q1eitfVldX12eLFi26RggZp/ooqByQhJAgl8vVyzBMMH/i1NTUYH19/edpaWlthJCxd4ClkP4hISGBfX19pRqN5rfiBff19RVFR0eXEkJGqXGoTwI0kBCifvnypTU8PPxj8WSXy/VjQ0PD+tTU1Ka3hHVDarXa4La2thNqtfoLsZ7p6emps2fPfrFt27abhJBhzqqTFBTbDtDQjIwMbXV1daVarZ4vAetoamr60mQy/ZuDpX7rK8AoZIBerw9ubGw8HRIS8pkE5HRdXd2xtLS0bwkh/yWEDFE9dOspqIYQEmEwGOZfvnz5m4iICCnYEZvNtiE5ORk+BDfwBQtINmgMBsOs69evW4OCgj6RgHRduHChYv369X8nhAxwoLCoE64m9tFZhJAwwMbGxs6tq6vbP2fOHK2E0NHOzs7fJSYmXvEB64ZMT0/XXLx48dvAwMB0qe22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OZdENNbQ5pjoS9Ur9dHFhUVmfz9/SeLi4trm5qaHnO1K83LLChe2HpEKAoNTMY7PYUQzZgAWORJehU4o2KCt6PUsjgM2CtOrrWBLnwGA45f6MCxSi8i2FQlDib4KSZhxZiIpAvrAY5W5fRiAKA/d/BhabcAfdALa0MmTjboErTP4vTEJnsOEivHRKwSq8KLfz3+cyHFPkubRgBDL0BhGOgALNWHG273lQ5dKW03IATfYSK9CmcncPBvC8mH5VuX6sPfYRyq0+1e4iOUugL/e3rmehQK70rL++8L1QuRkvq8lXnvgeH9ivg/Q8XnV69aMKIAAAAASUVORK5CYII=">
</img>
<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-button">${slogen}</div>
<div class="app-button">${slogen||"马上下载"}</div>
</div>
</div>
`;
// document.body.appendChild(this.appUi);
// this.appUiEvent();
this.appUiEvent();
}
private appUiEvent() {
let appUiChild = document.querySelector('.video-land-page-content');
......@@ -467,9 +462,10 @@ class Video extends eui.Component/*egret.DisplayObjectContainer*/ {
let appButton = document.querySelector('.app-button');
appUiChild.addEventListener('click', (e) => {
if (e.target === appClose) {
this.appUi.style.display = "none";
this.closeEvent();
this.appAdClose();
} else if (e.target === appButton) {
console.log('点击事件');
this.downloadEvent(e);
}
})
}
......
......@@ -87,7 +87,7 @@ const reflectObj = {
'3g': 3,
'4g': 4,
'5g': 5,
other: 6
other: 1
};
function getNetworkType(obj = reflectObj) {
......
......@@ -50,7 +50,7 @@ export default class BoxPanel extends Panel {
(s) => {
Loading.instace.hide()
if (s) {
// showToast("成功加倍");
showToast("翻倍成功");
NetManager.ins.hc_home(() => {
updateMainTimer();
SceneCtrl.instance.updateScene();
......
......@@ -40,7 +40,6 @@ export default class SignPanel extends Panel {
}
item['btn1'].enabled=false;
NetManager.ins.doSign((s)=>{
NetManager.ins.showLog(getlogItem(22));
item['btn1'].enabled=true;
wait(300).then(()=>{
NetManager.ins.getSignInfo(() => {
......@@ -52,9 +51,9 @@ export default class SignPanel extends Panel {
const {customInfo,success} =DataManager.ins.getData('dosign');
if(!success || !customInfo.success || customInfo.prizeType =='none') {
if(customInfo.code==100004) {
showToast('哎呀,奖励擦肩而过!明天再来试试吧!');
showToast('与奖励失之交臂!明天再来试试吧!');
}else {
showToast('哎呀,奖励擦肩而过!');
showToast('与奖励失之交臂');
}
return;
}
......@@ -71,7 +70,7 @@ export default class SignPanel extends Panel {
}, window['collectRuleId']);
});
}else {
showToast('哎呀,奖励擦肩而过!');
showToast('与奖励失之交臂');
}
this.hidePanel();
......
......@@ -61,7 +61,7 @@ export default class SignPrizePanel extends Panel {
this['close2Btn'].visible = true;
this['doubleBtn'].visible = false;
if (s) {
// showToast("成功加倍");
showToast("翻倍成功");
NetManager.ins.hc_home(() => {
updateMainTimer();
SceneCtrl.instance.updateScene();
......
......@@ -56,9 +56,9 @@
"duration": 24,
"endcardhtml": "http://xxx.xxx.html",
"endcardimage": "//yun.dui88.com/images/201910/e6pmpk2pne.png",
"endcardicon": "http://xxx.jpg",
"endcardtitle": "xxx",
"endcarddesc": "xxxxx",
"endcardicon": "//yun.dui88.com/images/201910/e6pmpk2pne.png",
"endcardtitle": "665",
"endcarddesc": "qqq",
"endcardshownotice": [
"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