网站
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

69 regels
2.1 KiB

  1. /**
  2. * Created by Administrator on 2021/4/5.
  3. */
  4. define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, template, Tools, echarts, swiper) {
  5. //数据存储
  6. var module = {
  7. data: {
  8. //服务器地址
  9. serverApi:'',
  10. //焦点图数据
  11. focusList: [],
  12. communicateList: [],
  13. noticeList: [],
  14. policyList: [],
  15. newList: [],
  16. },
  17. };
  18. var tools = new Tools();
  19. module.init = function (page) {
  20. //新闻管理列表
  21. // tools.doGet(news + '/003//7', {}, module.focusNews , true);
  22. tools.doGet(financialDetails + '/' + getQueryVariable('id'), {}, module.financialList , true);
  23. };
  24. //获取地址栏参数
  25. function getQueryVariable(variable){
  26. var query = window.location.search.substring(1);
  27. var vars = query.split("&");
  28. for (var i=0;i<vars.length;i++) {
  29. var pair = vars[i].split("=");
  30. if(pair[0] == variable){return pair[1];}
  31. }
  32. return(false);
  33. }
  34. //新闻列表
  35. module.financialList = function (data) {
  36. if (data.code == 200) {
  37. var content = data.data;
  38. module.data.financiaName = content[0].financialName;
  39. module.data.financialList = content;
  40. var financialData = template('financialData', module.data);
  41. $("#financialContent").html(financialData);
  42. }
  43. }
  44. goDetail = function(id){
  45. tools.skip('/agriculturalLawEnforcement/view/workDynamics/workDetail.html?id='+id);
  46. }
  47. goNotice = function(id){
  48. tools.skip('/agriculturalLawEnforcement/view/noticeAnnouncement/noticeDetail.html?id='+id);
  49. }
  50. goScheme = function(id){
  51. tools.skip('/agriculturalLawEnforcement/view/schemeDisclosure/schemeDetail.html?id='+id);
  52. }
  53. goEnforcement = function(id){
  54. tools.skip('/agriculturalLawEnforcement/view/basis/basisDetail.html?id='+id);
  55. }
  56. goInteractSearch = function(){
  57. tools.skip('view/interact/interactList.html?keyWord='+$('#interactInput').val());
  58. }
  59. return module;
  60. });