修改落地页

master
ELF 5 years ago
parent 3246745e58
commit 660e0063f7

@ -5,7 +5,7 @@
<meta itemprop="image" content="{$game['icon']}"/> <meta itemprop="image" content="{$game['icon']}"/>
<meta name="description" itemprop="description" content="{$game['features']}"/> <meta name="description" itemprop="description" content="{$game['features']}"/>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1"/>
<meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta http-equiv="X-UA-Compatible" content="ie=edge">
<link href="{:get_cover(C('CH_SET_ICO'),'path')}" type="image/x-icon" rel="shortcut icon"> <link href="{:get_cover(C('CH_SET_ICO'),'path')}" type="image/x-icon" rel="shortcut icon">
<script src="__JS__/jquery-1.11.3.min.js"></script> <script src="__JS__/jquery-1.11.3.min.js"></script>
@ -729,8 +729,7 @@ var PhoneObj = {
}, },
success: function (result) { success: function (result) {
if (result.code == '0000') { if (result.code == '0000') {
Cookies.set('is_landing_login', 1, { expires: 1 }) setLoginStatus()
isLogin = true;
$(".phone").hide(); $(".phone").hide();
showMounting() showMounting()
} else { } else {
@ -740,6 +739,13 @@ var PhoneObj = {
}) })
}) })
function setLoginStatus()
{
var expireTime = new Date(new Date().getTime() + 10 * 60 * 1000);
Cookies.set('is_landing_login', 1, { expires: expireTime })
isLogin = true;
}
function showMounting() function showMounting()
{ {
$('.mounting').show(); $('.mounting').show();
@ -784,8 +790,7 @@ var PhoneObj = {
cache: false, cache: false,
success: function (result) { success: function (result) {
if (result.code == '0000') { if (result.code == '0000') {
Cookies.set('is_landing_login', 1, { expires: 1 }) setLoginStatus()
isLogin = true;
$('.login').hide(); $('.login').hide();
showMounting() showMounting()
} else { } else {
@ -832,8 +837,7 @@ var PhoneObj = {
}, },
success: function (result) { success: function (result) {
if (result.code == '0000') { if (result.code == '0000') {
Cookies.set('is_landing_login', 1, { expires: 1 }) setLoginStatus()
isLogin = true;
$(".common").hide(); $(".common").hide();
showMounting() showMounting()
} else { } else {

Loading…
Cancel
Save