panshi_vue_new/public/static/baidu/js/pop.up.window.js

40 lines
1.5 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

$(function(){
var type = document.getElementById("type").value;
var mess;
if(type=='xoJxpj3bxDHDB7630pGCdQ=='){
mess = '尊敬的用户,您好:<br/>  由于您长时间未操作电脑,系统自动终止了您的会话时间,如需继续使用,请重新登录!';
icon = 'face-smile';
getDialog(mess,icon);
}else if (type=='4RGFtuNcG3ZxdNyYiqDxeQ=='){
mess = '尊敬的用户,您好:<br/>  登录失败,请您认真核对后重新登录!';
icon = 'face-smile';
getDialog(mess,icon);
}else if (type=='8k9i7reJGZubLkZ987GHaw=='){
mess = '尊敬的用户,您好:<br/>  您已退出系统,如需继续使用,请您重新登录!';
icon = 'face-smile';
getDialog(mess,icon);
}
$("#toggleLogin").toggle(function(){
$("#login").parent("div").animate({ height : 105 } , 520 );
$("#login").animate({marginTop : 0 } , 500 );
$(this).blur();
},function(){
$("#login").parent("div").animate({ height : 0 } , 500 );
$("#login").animate({marginTop : -105 } , 520 );
$(this).blur();
});
$("#closeLogin").click(function(){
$("#login").parent("div").animate({ height : 0 } , 500 );
$("#login").animate({marginTop : -105 } , 520 );
});
});
function getDialog(mess,icon){
art.dialog.notice({
title: '系统温馨提示',
width: 220,// 必须指定一个像素宽度值或者百分比否则浏览器窗口改变可能导致artDialog收缩
content: mess,
icon: icon,
time: 6,
cancel:false
});
}