/** * Created by Administrator on 2021/4/5. */ define(['jquery', "template", "Tools", "interactApi", "paging"], function ($, template, Tools ) { //数据存储 var module = { data: { //互动交流列表 interactInformationList:'', //搜索结果列表 searchInformationList:'', //页码 pageNum: 1, //页码集合 pageList: [], //每页数量 pageSize: 5, //总页数 pageCount:0, questionsUrl:'', answerUrl:'' }, }; var tools = new Tools(); module.init = function (page) { //底部友情链接 tools.doGet(friendsLinks, {}, module.bottomFriendsLinks, true); if(getQueryVariable('keyWord')){ $('#searchTitle').val(getQueryVariable('keyWord')); goSearch() } //网站配置信息(网站名称 底部联系方式 公安备案号 网站备案号) tools.getWebConfig(); setTimeout(function(){ //主题图片切换 module.switchTheme(); //互动交流 tools.doGet(interactList, {deptId:100,pageNum:module.data.pageNum,pageSize:module.data.pageSize,reply:'notnull'}, module.interactInformation,true); },500) }; //主题图片切换 module.switchTheme = function(){ if(themeColor == 'red'){ module.data.questionsUrl='../../static/images/questions_red.png'; module.data.answerUrl='../../static/images/answer_red.png'; }else if(themeColor == 'green'){ module.data.questionsUrl='../../static/images/questions.png'; module.data.answerUrl='../../static/images/answer.png'; } } //获取地址栏参数 function getQueryVariable(variable){ var query = window.location.search.substring(1); var vars = query.split("&"); for (var i=0;i