From c8511d3e8a401fedc92ab54e1b96c6ab406d3ad8 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Sun, 8 Sep 2019 15:38:27 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E9=99=86=E6=97=B6=E5=A4=84=E7=90=86lo?= =?UTF-8?q?calStorage=E5=8F=8A=E5=88=A0=E9=99=A4=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E6=97=B6=E7=9A=84=E5=9E=83=E5=9C=BE=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/index.js | 16 ++++++++-------- js/login.js | 2 ++ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/js/index.js b/js/index.js index f83a700..4885c6d 100644 --- a/js/index.js +++ b/js/index.js @@ -46,24 +46,24 @@ mui.back = function() { //获取cid用于推送 mui.plusReady(function() { // var cid = plus.push.getClientInfo().clientid; - var timer = 0; - timer = setInterval(function() { - getData(); - }, 3000) + // var timer = 0; + // timer = setInterval(function() { + // getData(); + // }, 3000) getData(); function getData() { if (!localStorage.getItem('isFirstDownlodad')) { localStorage.setItem('isFirstDownlodad', true); - } - clearInterval(timer); + } + // clearInterval(timer); localStorage.setItem('cssUrl', "../css/"); - localStorage.setItem('jsUrl', "../js/"); + localStorage.setItem('jsUrl', "../js/"); $('nav').css('display', 'block'); $('#bg').css('display', 'none'); var ipxSizeTop = 0; - var ipxSizeBottom = 0; + var ipxSizeBottom = 0; localStorage.setItem('ipxSizeTop', ipxSizeTop); localStorage.setItem('ipxSizeBottom', ipxSizeBottom); // TODO: 这个就是检测新版本的方法 -> init@start.js 先注释了,避免打不开 diff --git a/js/login.js b/js/login.js index 381d559..d102920 100644 --- a/js/login.js +++ b/js/login.js @@ -10,6 +10,8 @@ mui.init({ } }); mui.plusReady(function() { + localStorage.removeItem("userId") + localStorage.removeItem("userName") $('.loginbg').height(window.screen.height); $('.btn').attr('id','Tcaptcha'); $('.btn').attr('data-appid','2089606583');