181 lines
2.6 KiB
JavaScript
181 lines
2.6 KiB
JavaScript
![]() |
$(document).ready(function(){
|
||
|
loadPage(admin_page_url+"show.php?"+Math.random(),null);
|
||
|
|
||
|
/*
|
||
|
个人修改
|
||
|
*/
|
||
|
$("#infor").click(function(){
|
||
|
init();
|
||
|
disInfor("");
|
||
|
});
|
||
|
|
||
|
/*
|
||
|
系统介绍
|
||
|
*/
|
||
|
$("#show").click(function(){
|
||
|
init();
|
||
|
pagename="show";
|
||
|
disShow("");
|
||
|
});
|
||
|
|
||
|
/*
|
||
|
社区管理
|
||
|
*/
|
||
|
$("#city").click(function(){
|
||
|
init();
|
||
|
pagename="city";
|
||
|
disCity("");
|
||
|
});
|
||
|
|
||
|
/*
|
||
|
广告管理
|
||
|
*/
|
||
|
$("#adManage").click(function(){
|
||
|
init();
|
||
|
pagename="adManage";
|
||
|
disAd("");
|
||
|
});
|
||
|
|
||
|
/*
|
||
|
用户管理
|
||
|
*/
|
||
|
$("#user").click(function(){
|
||
|
init();
|
||
|
pagename="user";
|
||
|
disUser("");
|
||
|
});
|
||
|
|
||
|
/*
|
||
|
订单管理
|
||
|
*/
|
||
|
$("#order").click(function(){
|
||
|
init();
|
||
|
pagename="order";
|
||
|
disOrder("");
|
||
|
});
|
||
|
|
||
|
/*
|
||
|
退出登录
|
||
|
*/
|
||
|
$("#logout").click(function(){
|
||
|
var msg={};
|
||
|
var url=root+"Login/logout";
|
||
|
|
||
|
sendClientMsg(url,"","");
|
||
|
//ajaxData("post",root+"Login/logout",msg,"json",logout);
|
||
|
//return false;
|
||
|
});
|
||
|
|
||
|
});
|
||
|
|
||
|
userid="";
|
||
|
areaid="";
|
||
|
communityid="";
|
||
|
pagename="";
|
||
|
adid="";
|
||
|
oid="";
|
||
|
|
||
|
function init()
|
||
|
{
|
||
|
userid="";
|
||
|
areaid="";
|
||
|
communityid="";
|
||
|
pagename="";
|
||
|
adid="";
|
||
|
}
|
||
|
|
||
|
function disInfor(msg)
|
||
|
{
|
||
|
loadPage(admin_page_url+"infor.php?"+Math.random(),null);
|
||
|
}
|
||
|
|
||
|
function disShow(msg)
|
||
|
{
|
||
|
setNav("#nav a",$("#show"),"active","active");
|
||
|
loadPage(admin_page_url+"show.php?"+Math.random(),null);
|
||
|
}
|
||
|
|
||
|
function disUser(msg)
|
||
|
{
|
||
|
setNav("#nav a",$("#user"),"active","active");
|
||
|
loadPage(admin_page_url+"user.php?"+Math.random(),null);
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
城市列表
|
||
|
*/
|
||
|
function disCity(msg)
|
||
|
{
|
||
|
setNav("#nav a",$("#city"),"active","active");
|
||
|
//loadPage(admin_page_url+"city.php?"+Math.random(),null);
|
||
|
loadPage(admin_page_url+"area.php?"+Math.random(),null);
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
城区列表
|
||
|
*/
|
||
|
function disArea(msg)
|
||
|
{
|
||
|
loadPage(admin_page_url+"area.php?"+Math.random(),null);
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
社区列表
|
||
|
*/
|
||
|
function disCommunity(msg)
|
||
|
{
|
||
|
loadPage(admin_page_url+"community.php?"+Math.random(),null);
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
编辑社区列表
|
||
|
*/
|
||
|
function editCommunity(msg)
|
||
|
{
|
||
|
loadPage(admin_page_url+"edit_community.php?"+Math.random(),null);
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
广告牌
|
||
|
*/
|
||
|
function disAd(msg)
|
||
|
{
|
||
|
if (pagename=="adManage")
|
||
|
{
|
||
|
setNav("#nav a",$("#adManage"),"active","active");
|
||
|
}
|
||
|
loadPage(admin_page_url+"ad.php?"+Math.random(),null);
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
编辑广告牌
|
||
|
*/
|
||
|
function editAd(msg)
|
||
|
{
|
||
|
loadPage(admin_page_url+"edit_ad.php?"+Math.random(),null);
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
广告位列表
|
||
|
*/
|
||
|
function disVacancy(msg)
|
||
|
{
|
||
|
loadPage(admin_page_url+"vacancy.php?"+Math.random(),null);
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
广告位编辑页面
|
||
|
*/
|
||
|
function editVacancy(msg)
|
||
|
{
|
||
|
loadPage(admin_page_url+"edit_vacancy.php?"+Math.random(),null);
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
订单管理
|
||
|
*/
|
||
|
function disOrder(msg)
|
||
|
{
|
||
|
setNav("#nav a",$("#order"),"active","active");
|
||
|
loadPage(admin_page_url+"order.php?"+Math.random(),null);
|
||
|
}
|