|
@@ -328,6 +328,7 @@ function checkMenuForEnt () {
|
|
|
//查询用户信息,响应页面登录信息
|
|
|
var logic = function(data,num){
|
|
|
if(data.result=="ok"){
|
|
|
+ clearLoginStorage(/-login-clear/)
|
|
|
//$(".QRLogin").hide();
|
|
|
$("#bidLogin").modal("hide")
|
|
|
$("#bidcommunity").modal("hide")
|
|
@@ -555,6 +556,21 @@ var processpage = function(shareid,num){
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+function clearObjKeyForRegFn (obj, reg) {
|
|
|
+ if (obj) {
|
|
|
+ for(var k in obj) {
|
|
|
+ if (reg.test(k)) {
|
|
|
+ obj.removeItem(k)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+function clearLoginStorage (reg) {
|
|
|
+ clearObjKeyForRegFn(sessionStorage, reg)
|
|
|
+ clearObjKeyForRegFn(localStorage, reg)
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
//退出登录
|
|
|
var signout = function(){
|
|
@@ -570,6 +586,7 @@ var signout = function(){
|
|
|
$(".superSearch").show();
|
|
|
$.post("/front/signOut",function(data){
|
|
|
if(data=="ok"){
|
|
|
+ clearLoginStorage(/-login-clear/)
|
|
|
try{
|
|
|
$.cookie("userid_secure","",{expires:-1,path:"/",domain:document.domain.replace(/[^.]+/,"")});
|
|
|
}catch(e){
|