Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaole
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wildfirecode13
xiaoxiaole
Commits
17da29c7
Commit
17da29c7
authored
Feb 21, 2020
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
94fd84da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
197 additions
and
192 deletions
+197
-192
index.html
egret/index.html
+197
-192
No files found.
egret/index.html
View file @
17da29c7
...
...
@@ -5,12 +5,12 @@
<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"
/>
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
{
...
...
@@ -18,7 +18,7 @@
background-repeat
:
no-repeat
;
background-color
:
#000
;
background-size
:
100%
;
background-position
:
center
;
background-position
:
center
;
background-image
:
url("https://yun.duiba.com.cn/db_games/activity/game/0217/startscenebg2.jpg")
;
/* background-image: url("https://yun.duiba.com.cn/db_games/activity/game/1565600901/resource/assets/startScene/startscenebg.jpg"); */
padding
:
0
;
...
...
@@ -40,194 +40,199 @@
</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>
<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=
"libs/fileSave.js"
></script>
<img
id=
"pic"
style=
"width:100%;position: absolute;z-index: 999;display: none;"
/>
<script>
window
.
fresp
=
0.00001
;
// localStorage.clear();
window
[
'testUrl'
]
=
'http://cuxiaoprexg.m.cnsuning.com/scms/cx521.html?activityId=SL446689024459878400&subactivityId=SUB446689681678090240&businessid=cx521'
;
window
[
'hbRainTime'
]
=
30
;
// 红包雨倒计时
window
[
'plugs'
]
=
[
1
,
2
,
3
];
// localStorage.clear();
window
[
'isInvitePage'
]
=
0
;
var
targetUrl
=
'https://gameact.suning.com/sngame-web/api/duiba/private/v1/getLoginUrl.do?appCode=duiba&activityCode=3651404'
;
/*
* 邀请有礼分享
*/
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
);
<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=
"libs/fileSave.js"
></script>
<img
id=
"pic"
style=
"width:100%;position: absolute;z-index: 999;display: none;"
/>
<script>
window
.
fresp
=
0.00001
;
// localStorage.clear();
window
[
'testUrl'
]
=
'http://cuxiaoprexg.m.cnsuning.com/scms/cx521.html?activityId=SL446689024459878400&subactivityId=SUB446689681678090240&businessid=cx521'
;
window
[
'hbRainTime'
]
=
30
;
// 红包雨倒计时
window
[
'plugs'
]
=
[
1
,
2
,
3
];
// localStorage.clear();
window
[
'isInvitePage'
]
=
0
;
var
targetUrl
=
'https://gameact.suning.com/sngame-web/api/duiba/private/v1/getLoginUrl.do?appCode=duiba&activityCode=3651404'
;
/*
* 邀请有礼分享
*/
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
share
()
{
let
title
=
""
;
let
content
=
""
;
let
targetUrl
=
""
;
let
iconUrl
=
"http://yun.duiba.com.cn/db_games/xiaoxiaole.jpg"
;
let
shareWays
=
""
;
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
share
()
{
let
title
=
""
;
let
content
=
""
;
let
targetUrl
=
""
;
let
iconUrl
=
"http://yun.duiba.com.cn/db_games/xiaoxiaole.jpg"
;
let
shareWays
=
""
;
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>
window
[
'fresp'
]
=
10
;
window
[
'signconfigs'
]
=
[
{
nums
:
'0.10元'
,
type
:
'quan10'
},
{
nums
:
'*1'
,
type
:
'hammer'
},
{
nums
:
'0.15元'
,
type
:
'quan15'
},
{
nums
:
'*1'
,
type
:
'boom'
},
{
nums
:
'0.23元'
,
type
:
'quan23'
},
{
nums
:
'*1'
,
type
:
'steps'
},
{
nums
:
'0.36元'
,
type
:
'quan36'
}
];
// localStorage.clear();
window
[
'imgver'
]
=
'11112'
;
//top 8 ,repeat 22 , bottom 3
window
[
'total_level'
]
=
8
+
3
+
22
*
21
;
window
[
'last_level'
]
=
450
;
var
sharePic
=
document
.
getElementById
(
'pic'
);
sharePic
.
onclick
=
function
()
{
sharePic
.
style
.
display
=
'none'
}
}
function
isIphone
()
{
var
ua
=
navigator
.
userAgent
.
toLocaleLowerCase
();
if
(
ua
.
match
(
/iphone|ipad/
))
{
return
true
;
}
else
if
(
ua
.
match
(
/android/
))
{
return
false
;
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>
<script
src=
"output.js"
></script>
<script>
const
SAUP
=
()
=>
{
}
}
</script>
<script>
window
[
'fresp'
]
=
10
;
window
[
'signconfigs'
]
=
[
{
nums
:
'0.10元'
,
type
:
'quan10'
},
{
nums
:
'*1'
,
type
:
'hammer'
},
{
nums
:
'0.15元'
,
type
:
'quan15'
},
{
nums
:
'*1'
,
type
:
'boom'
},
{
nums
:
'0.23元'
,
type
:
'quan23'
},
{
nums
:
'*1'
,
type
:
'steps'
},
{
nums
:
'0.36元'
,
type
:
'quan36'
}
];
// localStorage.clear();
window
[
'imgver'
]
=
'11112'
;
//top 8 ,repeat 22 , bottom 3
window
[
'total_level'
]
=
8
+
3
+
22
*
21
;
window
[
'last_level'
]
=
450
;
var
sharePic
=
document
.
getElementById
(
'pic'
);
sharePic
.
onclick
=
function
()
{
sharePic
.
style
.
display
=
'none'
}
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>
<script
src=
"output.js"
></script>
</script>
</body>
</html>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment