Commit b4165376 authored by wjf's avatar wjf

l

parent 5d6618bd
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -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,129 +34,188 @@
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>
window['signconfigs'] = [
{ nums: '*20', type: 'money' },
{ nums: '*20', type: 'money' },
{ nums: '*1', type: 'hammer' },
{ nums: '*20', type: 'money' },
{ nums: '*20', type: 'money' },
{ nums: '*20', type: 'money' },
{ nums: '*100', type: 'money' }
];
// localStorage.clear();
window['imgver'] = '11112'
window['total_level'] = 18 + 13 * 17;
window['last_level'] = 239;//必须大于等于total_level
<script>
window['signconfigs'] = [
{ nums: '*20', type: 'money' },
{ nums: '*20', type: 'money' },
{ nums: '*1', type: 'hammer' },
{ nums: '*20', type: 'money' },
{ nums: '*20', type: 'money' },
{ nums: '*20', type: 'money' },
{ nums: '*100', type: 'money' }
];
// localStorage.clear();
window['imgver'] = '11112'
window['total_level'] = 18 + 13 * 17;
window['last_level'] = 239;//必须大于等于total_level
window['duiba'] = '';
// window['duiba'] = '/duiba';
window['registerWX'] = (result) => {
console.log(result)
}
window['price1'] = 123;
window['price2'] = 2;
window['price3'] = 3;
window['price4'] = 4;
window['price5'] = 555;
window['INIT_BALL_NUMS'] = 1;
window['numsP'] = 0.1;
// window['debugPhysics']=true;
window['renderMode'] = 'webgl';
window['development'] = true;
var gameId = 1;
var CFG = {
"actId": "3335069",
"oaId": "3335069",
"unitName": "积分",
"btnUnitName": "积分",
"doJoin": "/hdtool/doJoin?dpm=1.3.1.0&activityId=3335069",
"quireOrder": "/hdtool/getOrderStatus",
"styleConfig": "/hdtool/getHdtoolConfig",
"getElement": "/hdtool/ajaxElement",
"getPrizeDetail": "/hdtool/prizeDetail",
"ajaxThroughInfo": "/hdtool/ajaxThroughInfo",
"throughSubmit": "/hdtool/throughSubmit",
"gameGetOrder": "/hdtool/getOrderInfo",
"gameSubmit": "/hdtool/gameSubmit",
"doSubmit": "/hdtool/submit",
"adslotId": "",
"consumerId": "1",
"isNotLoginUser": false,
"uid": "1",
"hdType": "duiba",
"hdToolId": "42363",
"appType": "credits",
"subType": "custom",
"directSendCoupon": "false",
"ajaxAction": "",
"recommendQueue": "/recommend/getRecommend",
"recommendSkin": "/recommend/getRecommendSkin",
"isShowDetail": true,
"preview": false,
"from": "",
"login": "//activity.m.duiba.com.cn/hdtool/login?dpm=1.3.3.0",
"flowRedirectUrl": "",
"flowRedirectTuiaUrl": "",
"isOpenRecommend": false,
"getCreditsLink": "http://baidu.com?uid=1&dbnewopen",
"appId": "1",
"recordUrl": "//activity.m.duiba.com.cn/crecord/record?dbnewopen&dpm=1.3.2.0",
"shareDesc": "分享分享文案文案",
"entranceDesc": "测试领奖,也可到我的奖品领奖,24小时内有效哦",
"isSHowMeat": true,
"needCouponModal": true,
"needRecommendModal": true,
"asyncFiles": [],
"shareAndroidLinkActivity": "http://www.duiba.com.cn",
"shareIosLinkActivity": "http://www.iqiyi.com",
"appName": "custom",
"needShare": true,
"shareTitle": "",
"shareSubTitle": "",
"sharePicUrl": "",
"shareLink": "",
"shareAndroidDeeplink": "",
"shareIOSDeeplink": ""
};
var recordUrl = 'record/';
var resPath = '';
window['duiba'] = '';
// window['duiba'] = '/duiba';
window['registerWX'] = (result) => {
console.log(result)
}
window['price1'] = 123;
window['price2'] = 2;
window['price3'] = 3;
window['price4'] = 4;
window['price5'] = 555;
window['INIT_BALL_NUMS'] = 1;
window['numsP'] = 0.1;
// window['debugPhysics']=true;
window['renderMode'] = 'webgl';
window['development'] = true;
var gameId = 1;
var CFG = {
"actId": "3335069",
"oaId": "3335069",
"unitName": "积分",
"btnUnitName": "积分",
"doJoin": "/hdtool/doJoin?dpm=1.3.1.0&activityId=3335069",
"quireOrder": "/hdtool/getOrderStatus",
"styleConfig": "/hdtool/getHdtoolConfig",
"getElement": "/hdtool/ajaxElement",
"getPrizeDetail": "/hdtool/prizeDetail",
"ajaxThroughInfo": "/hdtool/ajaxThroughInfo",
"throughSubmit": "/hdtool/throughSubmit",
"gameGetOrder": "/hdtool/getOrderInfo",
"gameSubmit": "/hdtool/gameSubmit",
"doSubmit": "/hdtool/submit",
"adslotId": "",
"consumerId": "1",
"isNotLoginUser": false,
"uid": "1",
"hdType": "duiba",
"hdToolId": "42363",
"appType": "credits",
"subType": "custom",
"directSendCoupon": "false",
"ajaxAction": "",
"recommendQueue": "/recommend/getRecommend",
"recommendSkin": "/recommend/getRecommendSkin",
"isShowDetail": true,
"preview": false,
"from": "",
"login": "//activity.m.duiba.com.cn/hdtool/login?dpm=1.3.3.0",
"flowRedirectUrl": "",
"flowRedirectTuiaUrl": "",
"isOpenRecommend": false,
"getCreditsLink": "http://baidu.com?uid=1&dbnewopen",
"appId": "1",
"recordUrl": "//activity.m.duiba.com.cn/crecord/record?dbnewopen&dpm=1.3.2.0",
"shareDesc": "分享分享文案文案",
"entranceDesc": "测试领奖,也可到我的奖品领奖,24小时内有效哦",
"isSHowMeat": true,
"needCouponModal": true,
"needRecommendModal": true,
"asyncFiles": [],
"shareAndroidLinkActivity": "http://www.duiba.com.cn",
"shareIosLinkActivity": "http://www.iqiyi.com",
"appName": "custom",
"needShare": true,
"shareTitle": "",
"shareSubTitle": "",
"sharePicUrl": "",
"shareLink": "",
"shareAndroidDeeplink": "",
"shareIOSDeeplink": ""
};
var recordUrl = 'record/';
var resPath = '';
function resolve(a) {
var b = eval(a);
return b;
}
</script>
function resolve(a) {
var b = eval(a);
return b;
}
</script>
<script src="output.js"></script>
<script src="output.js"></script>
</body>
</html>
\ No newline at end of file
......@@ -87,7 +87,7 @@ export default class MainBase extends eui.UILayer {
['sign', { cls: SignPanel }],
['signPrize', { cls: SignPrizePanel }],
['friend', { cls: FriendPanel }],
['ad', { cls: ADPanel }],
['BombTipsPanel', { cls: BombTipsPanel }],
......@@ -416,43 +416,67 @@ export default class MainBase extends eui.UILayer {
// });
updateMainTimer();
//注释,页面停留时间
initstatistics();
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();
GDispatcher.dispatchEvent('docHide'); // 触发document隐藏事件
// 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();
// 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;
......
......@@ -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 {
......
......@@ -12,11 +12,13 @@
<meta content="f73ee1cf" name="siteid">
<meta content="Ag87JsAaAa" name="pageid">
<script>
window['hbRainTime'] = 30; // 红包雨倒计时
window['plugs'] = [];
var __startTime__ = Date.now();
window['imgver'] = '11112';
window['duiba'] = '/duiba';
window['imgver'] = '11112';//签到itemId对应图片,线上注意对应修改
window['duiba'] = '';
//window['tryWuhanVideo']=true;
window["slotidIcon"] = "srlKMxcd2230";//首页icon的广告位id
window["slotid"] = "srlboItw2231";//其他位置广告位id
window["slotIdTuia"] = "324689";//推啊广告id
</script>
<div style="margin: auto;width: 100%;height: 100%;" class="egret-player" data-entry-class="Main" data-orientation="auto"
......@@ -30,7 +32,7 @@
background-color: #ccc;
background-size: 100%;
background-position: top;
background-image: url("https://yun.duiba.com.cn/db_games/activity/game/1573192567/resource/assets/startScene/startscenebg.jpg");
background-image: url("https://yun.duiba.com.cn/db_games/activity/xiaoxiaoleTuia/startscenebg.jpg");
padding: 0;
border: 0;
margin: 0;
......@@ -46,22 +48,81 @@
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>
<img id="pic" style="width:100%;position: absolute;z-index: 999;display: none;" />
<script>
window['h5URL'] = "https://gameact.suning.com/duiba/customShare/share?id=3531";
window['h5URL2'] = "https://gameact.suning.com/duiba/customShare/share?id=3611";
//签到7天配置
window['signconfigs'] = [
{ nums: '0.10元', type: 'quan10' },
{ nums: '*20', type: 'money' },
{ nums: '*20', type: 'money' },
{ nums: '*1', type: 'hammer' },
{ nums: '0.15元', type: 'quan15' },
{ nums: '*1', type: 'boom' },
{ nums: '0.25元', type: 'quan25' },
{ nums: '*1', type: 'steps' },
{ nums: '0.35元', type: 'quan35' }
{ nums: '*20', type: 'money' },
{ nums: '*20', type: 'money' },
{ nums: '*20', type: 'money' },
{ nums: '*100', type: 'money' }
];
window['signActivityId'] = 564;//签到id,线上需处理
window['signActivityId'] = 824;//签到id,线上需处理
window['total_level'] = 18 + 13 * 14;
window['last_level'] = 200;//必须大于等于total_level
......@@ -72,14 +133,14 @@
window['price5'] = 1000;
window['renderMode'] = 'webgl';
window['__link__'] = 'http://res.m.suning.com/project/coupon/dist/red.html#/index';
window['rankId'] = 58;//排行榜id,线上需处理
window['endtime'] = 1566057600000;
//window['rankId'] = 58;//排行榜id
//window['endtime'] = 1566057600000;
//游戏id
window["gameId"] = "${id}";
//资源路径
var resPath = "https://yun.duiba.com.cn/db_games/activity/xiaoxiaoleTuia/1575365284/";
var resPath = "https://yun.duiba.com.cn/db_games/activity/xiaoxiaoleTuia/1578915796/";
//record
var recordUrl = "/crecord/record";
......@@ -101,171 +162,18 @@
<script crossorigin="anonymous" src="//yun.duiba.com.cn/db_games/svga.egret.min2.js"></script>
<script crossorigin="anonymous" src="//yun.duiba.com.cn/db_games/libs/aes.js"></script>
<script crossorigin="anonymous" src="//yun.duiba.com.cn/db_games/libs/pad-zeropadding.js"></script>
<script crossorigin="anonymous" src="//yun.duiba.com.cn/db_games/activity/xiaoxiaoleTuia/1575377991/output.js"></script>
<script crossorigin="anonymous" src="//yun.duiba.com.cn/db_games/activity/xiaoxiaoleTuia/1575365284/resource/default.thm.js"></script>
<script crossorigin="anonymous" src="//yun.duiba.com.cn/db_games/activity/xiaoxiaoleTuia/1578921046/output.js"></script>
<script crossorigin="anonymous" src="//yun.duiba.com.cn/db_games/activity/xiaoxiaoleTuia/1578915796/resource/default.thm.js"></script>
<!--推啊激励视频-->
<script src="https://yun.tuisnake.com/h5-mami/inspire/v1.3/inspire.min.js"></script>
<script type="text/javascript" src="https://res.suning.cn/public/v5/??js/zepto/1.1.4/app.js,mod/alertBox/2.0.0/alertBox.js"></script>
<!--生产-->
<script type="text/javascript" src="https://iar-web.suning.com/iar-web/snstatic/SnCaptcha.js"></script>
<script type="text/javascript" src="https://dfp.suning.com/dfprs-collect/dist/fp.js?appCode=oL5SyeefiMStfRSe"></script>
<!-- 测试
<script type="text/javascript" src="https://iar-webxg.cnsuning.com/iar-web/snstatic/SnCaptcha.js"></script>
<script type="text/javascript" src="https://dfpxgpre.cnsuning.com/dfprs-collect/dist/fp.js?appCode=oL5SyeefiMStfRSe"></script>-->
<!-- 苏宁两个js,去掉 -->
<!-- <script type="text/javascript" src="https://res.suning.cn/public/v5/js/vue/app.js"></script>
<script src="//res.suning.cn/project/mvs/RES/common/script/android/sneapp.js"></script> -->
<script>
var sharePic = document.getElementById('pic');
sharePic.onclick = function () {
sharePic.style.display = 'none'
};
snVue.base.getEnvName = function () { return 'PRD' }
//snVue.base.getEnvName=function(){return 'XGPRE'}
snVue.token(() => { });
//很多地方都调用过(现置空函数),去掉
window.getRST = function () {
// window.detect = bd.rst(); //获取人机参数
// window._device_session_id = _dfp.getToken(); //获取设备指纹
// console.log('detect====>', detect, '\n_device_session_id====>', _device_session_id)
}
var shareImgUrl = 'https://yun.duiba.com.cn/db_games/fishlogo.png';
var channel = 1;
var title = "狮狮连萌超好玩~我已经玩到第一了!";
CFG.wxShareTitle = title;
var content = "我在萌狮消消乐等你来挑战哦";
var targetUrl = 'https://gameact.suning.com/sngame-web/api/duiba/private/v1/getLoginUrl.do?appCode=duiba&activityCode=3651404';
var iconUrl = 'https://yun.duiba.com.cn/db_games/fishlogo.png';
CFG.wxShareLink = targetUrl;
CFG.wxShareImg = 'http://yun.duiba.com.cn/db_games/xiaoxiaole2.jpg';
var shareWays = '1,2,3,4';
console.log("share");
CFG.wxShareDesc = content;
function share() {
console.log("AppReady");
if (isIphone()) {
console.log("IOS");
console.log(window.SNNativeClient);
window.callNativeShareResult = function () { };
window.SNNativeClient.callNativeShare(title, content, targetUrl, iconUrl, shareWays);
} else {
console.log("安卓");
console.log(shareApi);
console.log(shareApi.callMediaShare);
shareApi.callNativeShare(title, content, targetUrl, iconUrl, shareWays);
}
}
function isIphone() {
var ua = navigator.userAgent.toLocaleLowerCase();
if (ua.match(/iphone|ipad/)) {
return true;
} else if (ua.match(/android/)) {
return false;
}
}
</script>
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<!-- 分享相关,去掉 -->
<script>
function invokeWX() {
console.log('invokeWX 执行了');
wx.onMenuShareTimeline({
title: CFG.wxShareTitle,//标题
link: CFG.wxShareLink,//链接
imgUrl: CFG.wxShareImg,//图片
success: function () { },
cancel: function () { }
});
wx.onMenuShareAppMessage({
title: CFG.wxShareTitle,//标题
desc: CFG.wxShareDesc,//描述
link: CFG.wxShareLink,//链接
imgUrl: CFG.wxShareImg,//图片
success: function (res) { },
cancel: function (res) { },
fail: function (res) { }
});
}
var registerWX = function (data) {
wx.config({
debug: false,
appId: data.wxappid,
timestamp: data.wxtimestamp,
nonceStr: data.wxnonceStr,
signature: data.wxsignature,
jsApiList: ['checkJsApi', 'onMenuShareTimeline', 'onMenuShareAppMessage']
});
wx.ready(function () {
invokeWX();
});
}
//registerWX();
/*
* 邀请有礼分享
*/
function inviteShare(shareCode) {
let title = "狮狮连萌超好玩~我已经玩到第一了!";
let content = "我在萌狮消消乐等你来挑战哦";
let targetUrl = "https://gameact.suning.com/duiba/customShare/share?id=3531" + "&shareCode=" + shareCode; // 待修改
let iconUrl = "http://yun.duiba.com.cn/db_games/xiaoxiaole2.jpg";
let shareWays = "1,2";
console.log("AppReady");
if (isIphone()) {
console.log("IOS");
console.log(window.SNNativeClient);
window.callNativeShareResult = function () { };
window.SNNativeClient.callNativeShare(title, content, targetUrl, iconUrl, shareWays);
} else {
console.log("安卓");
console.log(shareApi);
console.log(shareApi.callMediaShare);
shareApi.callNativeShare(title, content, targetUrl, iconUrl, shareWays);
}
}
/*
* 刮刮卡分享
*/
function scratchShare(shareCode) {
let title = "萌狮消消消";
let content = "超好玩的萌狮消消乐,快来和我一起玩吧~";
let targetUrl = "https://gameact.suning.com/duiba/customShare/share?id=3611" + "&shareCode=" + shareCode; // 待修改
let iconUrl = "http://yun.duiba.com.cn/db_games/xiaoxiaole2.jpg";
let shareWays = "1,2";
console.log("AppReady");
if (isIphone()) {
console.log("IOS");
console.log(window.SNNativeClient);
window.callNativeShareResult = function () { };
window.SNNativeClient.callNativeShare(title, content, targetUrl, iconUrl, shareWays);
} else {
console.log("安卓");
console.log(shareApi);
console.log(shareApi.callMediaShare);
shareApi.callNativeShare(title, content, targetUrl, iconUrl, shareWays);
}
}
</script>
<!-- -->
\ No newline at end of file
......@@ -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,iVBORw0KGgoAAAANSUhEUgAAACoAAAApCAYAAABDV7v1AAAJoUlEQVRYR62ZDUxTWRbH7yuFtnzYgsCYZQ1RG6bIUkHTomhnCQNGZkxmgzNqZlZXRdQExLW67kBiXIgMWleFEMGvurMbJqDJz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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