master
ELF 5 years ago
parent dba4fb4e6e
commit c134f55248

@ -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__/js.cookie.min.js"></script>
<script>
var curUserId = 0;
var gameId = parseInt("{$game.id}");
var promoteId = parseInt("{$promoteId}");
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 = {
i:60,
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(){
$(".stabilization").click(function(){
event.stopPropagation();
if (isLogin) {
if (isLogin()) {
showMounting()
} else {
$(".commonWindow").show();
@ -820,7 +827,7 @@ var PhoneObj = {
url: '/index.php?s=/Home/Package/addDownloadLog.html',
dataType: 'JSON',
data:{
user_id: curUserId,
user_id: getCurUserId(),
promote_id: promoteId,
game_id: gameId,
type: 2
@ -880,8 +887,6 @@ var PhoneObj = {
{
var expireTime = new Date(new Date().getTime() + 10 * 60 * 1000);
Cookies.set('landing_login_user', userId, { expires: expireTime })
isLogin = (curUserId == 0 ? false : true);
curUserId = userId
}
function showMounting()
@ -1348,7 +1353,7 @@ var PhoneObj = {
document.body.style.overflow = 'hidden';
$(".window").hide();
});
$(".second").click(function(){
/* $(".second").click(function(){
var isTipSafari = is_tip_safari();
if (isTipSafari) {
$('.safari').show();
@ -1356,7 +1361,7 @@ var PhoneObj = {
}
$(".second").hide();
document.body.style.overflow = 'auto';
})
}) */
$(".doubt").click(function(){
var isTipSafari = is_tip_safari();
@ -1626,11 +1631,5 @@ var PhoneObj = {
})
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>

Loading…
Cancel
Save