From 660e0063f75569a2e5b59aba159ed4963a6b9d51 Mon Sep 17 00:00:00 2001
From: ELF <360197197@qq.com>
Date: Thu, 26 Dec 2019 18:37:27 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=90=BD=E5=9C=B0=E9=A1=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Home/View/default/Home/landingPage.html | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/Application/Home/View/default/Home/landingPage.html b/Application/Home/View/default/Home/landingPage.html
index fbc0ab997..c1d2aafa9 100644
--- a/Application/Home/View/default/Home/landingPage.html
+++ b/Application/Home/View/default/Home/landingPage.html
@@ -5,7 +5,7 @@
-
+
@@ -729,8 +729,7 @@ var PhoneObj = {
},
success: function (result) {
if (result.code == '0000') {
- Cookies.set('is_landing_login', 1, { expires: 1 })
- isLogin = true;
+ setLoginStatus()
$(".phone").hide();
showMounting()
} 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()
{
$('.mounting').show();
@@ -784,8 +790,7 @@ var PhoneObj = {
cache: false,
success: function (result) {
if (result.code == '0000') {
- Cookies.set('is_landing_login', 1, { expires: 1 })
- isLogin = true;
+ setLoginStatus()
$('.login').hide();
showMounting()
} else {
@@ -832,8 +837,7 @@ var PhoneObj = {
},
success: function (result) {
if (result.code == '0000') {
- Cookies.set('is_landing_login', 1, { expires: 1 })
- isLogin = true;
+ setLoginStatus()
$(".common").hide();
showMounting()
} else {