@@ -17,3 +17,9 @@ var getInfo_get = '/getInfo' //获取用户信息 | |||||
limit: 要查询的数据条数 | limit: 要查询的数据条数 | ||||
*/ | */ | ||||
var news = '/enforce/website/news' //查询新闻管理列表固定条数 | var news = '/enforce/website/news' //查询新闻管理列表固定条数 | ||||
/* | |||||
@purl /enforce/website/getTopDeptId | |||||
@param | |||||
*/ | |||||
var getTopDeptId = '/enforce/website/getTopDeptId' //查询当前系统最高级的deptId |
@@ -22,15 +22,8 @@ requirejs.config({ | |||||
dateTime:'lib/dateTime/dateTime.min',//时间选择器 | dateTime:'lib/dateTime/dateTime.min',//时间选择器 | ||||
//自己写的路径配置 | //自己写的路径配置 | ||||
Tools: 'common/tools', | |||||
addressApi: 'api/index', //所有Ajax接口存放地 | |||||
newApi: 'api/new', //新闻接口 | |||||
itemsApi: 'api/items', //挂牌项目接口 | |||||
biddingApi: 'api/bidding', //竞价大厅接口 | |||||
announApi: 'api/announcementList', //项目公告接口 | |||||
demandApi: 'api/demand', //个人供求接口 | |||||
policyApi: 'api/policy',//政策法规接口 | |||||
interactApi: 'api/interact',//互动交流接口 | |||||
Tools: '/agriculturalLawEnforcement/static/js/common/tools', | |||||
addressApi: '/agriculturalLawEnforcement/static/js/api/index', //所有Ajax接口存放地 | |||||
user: 'api/user',//用户信息接口 | user: 'api/user',//用户信息接口 | ||||
register:'api/register',//用户注册接口 | register:'api/register',//用户注册接口 | ||||
ajaxUploadImage:'lib/ajaxUpload/ajaxupload',//上传图片 | ajaxUploadImage:'lib/ajaxUpload/ajaxupload',//上传图片 | ||||
@@ -186,6 +186,7 @@ define(['jquery', 'dialog'], function ($, dialog) { | |||||
}).join(''); | }).join(''); | ||||
} | } | ||||
console.log(url); | |||||
$.ajax({ | $.ajax({ | ||||
url: url, | url: url, | ||||
type: 'GET', | type: 'GET', | ||||
@@ -15,9 +15,15 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa | |||||
module.init = function (page) { | module.init = function (page) { | ||||
//新闻管理列表 | //新闻管理列表 | ||||
tools.doGet(news + '/003/7', {}, module.focusNews , true); | |||||
// tools.doGet(news + '/003//7', {}, module.focusNews , true); | |||||
tools.doGet(getTopDeptId, {}, module.getInformation , true); | |||||
}; | }; | ||||
module.getInformation = function (data) { | |||||
console.log(data) | |||||
} | |||||
//焦点图数据 | //焦点图数据 | ||||
module.focusNews = function (data) { | module.focusNews = function (data) { | ||||
if (data.code == 200) { | if (data.code == 200) { | ||||