|
|
@ -638,12 +638,9 @@ background:rgba(0,0,0,0.6); z-index: 999;display: none;"></div>
|
|
|
|
<script src="__STATIC__/ios9/js/layer/layer.js?VerNo=20190923" type="text/javascript"></script>
|
|
|
|
<script src="__STATIC__/ios9/js/layer/layer.js?VerNo=20190923" type="text/javascript"></script>
|
|
|
|
<script src="__STATIC__/js.cookie.min.js"></script>
|
|
|
|
<script src="__STATIC__/js.cookie.min.js"></script>
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
var curUserId = 0;
|
|
|
|
|
|
|
|
var gameId = parseInt("{$game.id}");
|
|
|
|
var gameId = parseInt("{$game.id}");
|
|
|
|
var promoteId = parseInt("{$promoteId}");
|
|
|
|
var promoteId = parseInt("{$promoteId}");
|
|
|
|
var betaUrl = "{$game['beta_url']}";
|
|
|
|
var betaUrl = "{$game['beta_url']}";
|
|
|
|
curUserId = Cookies.get('landing_login_user') == undefined ? 0 : Cookies.get('landing_login_user');
|
|
|
|
|
|
|
|
var isLogin = (curUserId == 0 ? false : true);
|
|
|
|
|
|
|
|
var PhoneObj = {
|
|
|
|
var PhoneObj = {
|
|
|
|
i:60,
|
|
|
|
i:60,
|
|
|
|
codeflag: true,
|
|
|
|
codeflag: true,
|
|
|
@ -717,10 +714,20 @@ var PhoneObj = {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function isLogin() {
|
|
|
|
|
|
|
|
return (getCurUserId() == 0 ? false : true);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function getCurUserId() {
|
|
|
|
|
|
|
|
var curUserId = 0;
|
|
|
|
|
|
|
|
curUserId = Cookies.get('landing_login_user') == undefined ? 0 : Cookies.get('landing_login_user');
|
|
|
|
|
|
|
|
return curUserId;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$(function(){
|
|
|
|
$(function(){
|
|
|
|
$(".stabilization").click(function(){
|
|
|
|
$(".stabilization").click(function(){
|
|
|
|
event.stopPropagation();
|
|
|
|
event.stopPropagation();
|
|
|
|
if (isLogin) {
|
|
|
|
if (isLogin()) {
|
|
|
|
showMounting()
|
|
|
|
showMounting()
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$(".commonWindow").show();
|
|
|
|
$(".commonWindow").show();
|
|
|
@ -820,7 +827,7 @@ var PhoneObj = {
|
|
|
|
url: '/index.php?s=/Home/Package/addDownloadLog.html',
|
|
|
|
url: '/index.php?s=/Home/Package/addDownloadLog.html',
|
|
|
|
dataType: 'JSON',
|
|
|
|
dataType: 'JSON',
|
|
|
|
data:{
|
|
|
|
data:{
|
|
|
|
user_id: curUserId,
|
|
|
|
user_id: getCurUserId(),
|
|
|
|
promote_id: promoteId,
|
|
|
|
promote_id: promoteId,
|
|
|
|
game_id: gameId,
|
|
|
|
game_id: gameId,
|
|
|
|
type: 2
|
|
|
|
type: 2
|
|
|
@ -880,8 +887,6 @@ var PhoneObj = {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var expireTime = new Date(new Date().getTime() + 10 * 60 * 1000);
|
|
|
|
var expireTime = new Date(new Date().getTime() + 10 * 60 * 1000);
|
|
|
|
Cookies.set('landing_login_user', userId, { expires: expireTime })
|
|
|
|
Cookies.set('landing_login_user', userId, { expires: expireTime })
|
|
|
|
isLogin = (curUserId == 0 ? false : true);
|
|
|
|
|
|
|
|
curUserId = userId
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function showMounting()
|
|
|
|
function showMounting()
|
|
|
@ -1348,7 +1353,7 @@ var PhoneObj = {
|
|
|
|
document.body.style.overflow = 'hidden';
|
|
|
|
document.body.style.overflow = 'hidden';
|
|
|
|
$(".window").hide();
|
|
|
|
$(".window").hide();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
$(".second").click(function(){
|
|
|
|
/* $(".second").click(function(){
|
|
|
|
var isTipSafari = is_tip_safari();
|
|
|
|
var isTipSafari = is_tip_safari();
|
|
|
|
if (isTipSafari) {
|
|
|
|
if (isTipSafari) {
|
|
|
|
$('.safari').show();
|
|
|
|
$('.safari').show();
|
|
|
@ -1356,7 +1361,7 @@ var PhoneObj = {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$(".second").hide();
|
|
|
|
$(".second").hide();
|
|
|
|
document.body.style.overflow = 'auto';
|
|
|
|
document.body.style.overflow = 'auto';
|
|
|
|
})
|
|
|
|
}) */
|
|
|
|
|
|
|
|
|
|
|
|
$(".doubt").click(function(){
|
|
|
|
$(".doubt").click(function(){
|
|
|
|
var isTipSafari = is_tip_safari();
|
|
|
|
var isTipSafari = is_tip_safari();
|
|
|
@ -1626,11 +1631,5 @@ var PhoneObj = {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
return novice
|
|
|
|
return novice
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function isLogin() {
|
|
|
|
|
|
|
|
var curUserId = 0;
|
|
|
|
|
|
|
|
curUserId = Cookies.get('landing_login_user') == undefined ? 0 : Cookies.get('landing_login_user');
|
|
|
|
|
|
|
|
return (curUserId == 0 ? false : true);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|