登陆时处理localStorage及删除加载时的垃圾代码
This commit is contained in:
parent
687fbf7551
commit
c8511d3e8a
10
js/index.js
10
js/index.js
@ -46,10 +46,10 @@ 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() {
|
||||
@ -57,7 +57,7 @@ mui.plusReady(function() {
|
||||
if (!localStorage.getItem('isFirstDownlodad')) {
|
||||
localStorage.setItem('isFirstDownlodad', true);
|
||||
}
|
||||
clearInterval(timer);
|
||||
// clearInterval(timer);
|
||||
localStorage.setItem('cssUrl', "../css/");
|
||||
localStorage.setItem('jsUrl', "../js/");
|
||||
$('nav').css('display', 'block');
|
||||
|
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user