Example #1
0
 accountError:function(){
     Dialog.open({
         container : {
             header:'异地登录',
             content : '<p>您的账号在异地登录,你已被迫下线请重新登录!</p>',
             yesText:'强制登录',
             noText:'取消',
             yesFn:function() {
                 $.ajax({
                     url:baseUrl+'/bs/userlg/relogin',
                     success:function(){
                         alert('登录成功!');
                         Dialog.close();
                     },
                     error:function(){
                         alert('登录失败!');
                     }
                 });
             },
             noFn:function(){
                 Dialog.close();
                 window.location.href = baseUrl+"/login.html";
             }
         },
         lock:true
     });
     document.getElementById("closeBtn").options[i].removeNode(true);
 },
Example #2
0
 notAccessError:function(){
     Dialog.open({
         container : {
             header:'没有权限',
             content : '<p>抱歉,您没有权限操作!</p>',
             yesText:'强制登录',
             yesFn:function() {
                 Dialog.close();
                 window.location.href = baseUrl+"/index.html";
             }
         },
         lock:true
     });
     document.getElementById("closeBtn").options[i].removeNode(true);
 },
Example #3
0
 loginError:function(){
     var self = this;
     Dialog.open({
         container : {
             header:'尚未登录',
             content : '您尚未登录,请登录后再试!',
             yesFn:function() {
                 Dialog.close();
                 window.location.href = baseUrl+"/login.html";
             }
         },
         lock:true
     });
     document.getElementById("closeBtn").options[i].removeNode(true);
 },
Example #4
0
 unknownState:function(){
     Dialog.open({
         container : {
             header:'未知状态',
             content : '<p>抱歉,我们发现您的登录状态似乎不对!</p>',
             yesText:'重新登录',
             yesFn:function() {
                 Dialog.close();
                 window.location.href = baseUrl+"/login.html";
             }
         },
         lock:true
     });
     document.getElementById("closeBtn").options[i].removeNode(true);
 }