|
|
|
@ -557,7 +557,7 @@ background:rgba(0,0,0,0.6); z-index: 999;display: none;"></div>
|
|
|
|
|
<div class="title-one" style="width: 4.06rem;padding: 0;margin-bottom: 0;">
|
|
|
|
|
<img src="__IMG__/20191225/bg.png" alt="" style="width: 100%;height: 100%;box-shadow:0px 0px 6px 0px rgba(109,121,145,0.2)">
|
|
|
|
|
</div>
|
|
|
|
|
<a id="beta-url" href="{$game['beta_url']}" class="mounting-btn">点击安装游戏</a>
|
|
|
|
|
<a id="beta-url" href="javascript:;" class="mounting-btn">点击安装游戏</a>
|
|
|
|
|
<!-- <div class="title-two">第二步:点击下方按钮安装游戏</div> -->
|
|
|
|
|
<a href="#" class="mounting-btn lastStep">上一步</a>
|
|
|
|
|
</div>
|
|
|
|
@ -569,9 +569,12 @@ 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 isLogin = Cookies.get('is_landing_login') == undefined ? false : true;
|
|
|
|
|
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,
|
|
|
|
@ -741,6 +744,25 @@ var PhoneObj = {
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
$('#beta-url').on({
|
|
|
|
|
click: function () {
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: 'POST',
|
|
|
|
|
url: '/index.php?s=/Home/Package/addDownloadLog.html',
|
|
|
|
|
dataType: 'JSON',
|
|
|
|
|
data:{
|
|
|
|
|
user_id: curUserId,
|
|
|
|
|
promote_id: promoteId,
|
|
|
|
|
game_id: gameId,
|
|
|
|
|
type: 2
|
|
|
|
|
},
|
|
|
|
|
success: function (result) {
|
|
|
|
|
window.location.href = betaUrl
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
function GetVerityCode() {
|
|
|
|
|
//刷新验证码
|
|
|
|
|
$("#verifyCode").attr("src", "/mobile.php?s=/Common/verify.html&id=" + Math.random());
|
|
|
|
@ -774,7 +796,7 @@ var PhoneObj = {
|
|
|
|
|
},
|
|
|
|
|
success: function (result) {
|
|
|
|
|
if (result.code == '0000') {
|
|
|
|
|
setLoginStatus()
|
|
|
|
|
setLoginStatus(result.data.user_id)
|
|
|
|
|
$(".commonWindow").hide();
|
|
|
|
|
showMounting()
|
|
|
|
|
} else {
|
|
|
|
@ -784,11 +806,12 @@ var PhoneObj = {
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
function setLoginStatus()
|
|
|
|
|
function setLoginStatus(userId)
|
|
|
|
|
{
|
|
|
|
|
var expireTime = new Date(new Date().getTime() + 10 * 60 * 1000);
|
|
|
|
|
Cookies.set('is_landing_login', 1, { expires: expireTime })
|
|
|
|
|
isLogin = true;
|
|
|
|
|
Cookies.set('landing_login_user', userId, { expires: expireTime })
|
|
|
|
|
isLogin = (curUserId == 0 ? false : true);
|
|
|
|
|
curUserId = userId
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function showMounting()
|
|
|
|
@ -836,7 +859,7 @@ var PhoneObj = {
|
|
|
|
|
cache: false,
|
|
|
|
|
success: function (result) {
|
|
|
|
|
if (result.code == '0000') {
|
|
|
|
|
setLoginStatus()
|
|
|
|
|
setLoginStatus(result.data.user_id)
|
|
|
|
|
$('.login').hide();
|
|
|
|
|
showMounting()
|
|
|
|
|
} else {
|
|
|
|
@ -883,7 +906,7 @@ var PhoneObj = {
|
|
|
|
|
},
|
|
|
|
|
success: function (result) {
|
|
|
|
|
if (result.code == '0000') {
|
|
|
|
|
setLoginStatus()
|
|
|
|
|
setLoginStatus(result.data.user_id)
|
|
|
|
|
$(".commonWindow").hide();
|
|
|
|
|
showMounting()
|
|
|
|
|
} else {
|
|
|
|
|