//登录框 function ajaxlogin() { art.dialog.open("/templets/passport/ap_div.html", { fixed: true, background: '#e7e7e7', opacity: 0.3 }); } //获取用户信息 function getmember() { $.getjson("/ajax?action=member&cmd=get.json&r=" + math.random() * 1000, function(json) { try { $("#ajax-member-login").hide(); $('#ajax-member-info').show().html('欢迎您,' + json.account + ' ! [个人中心] [退出]'); $("#memberstat").val("true"); } catch (e) { } }); } //退出登录 function outlogin(){ $.cookie('member',null,{path:'/'}); } //top.window.setinterval(function() { // if ($("#memberstat").val() == "false") { // getmember(); // } //}, 1000); //$(document).ready(function() { // $("#submit-password").ajaxform(function(data) { // data = $.evaljson(data); // if (data.msg == "error") { $.dialog.tips(data.error); } // if (data.msg == "success") { $.dialog.tips(data.success); } // }); // $("#submit-info").ajaxform(function(data) { // data = $.evaljson(data); // if (data.msg == "error") { $.dialog.tips(data.error); } // if (data.msg == "success") { $.dialog.tips(data.success); } // }); //});