|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- /**
- * Created by Administrator on 2021/4/5.
- */
- define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, template, Tools, echarts, swiper) {
- //数据存储
- var module = {
- data: {
- //服务器地址
- serverApi:'',
- //焦点图数据
- focusList: [],
- communicateList: [],
- noticeList: [],
- policyList: [],
- newList: [],
- },
- };
- var tools = new Tools();
-
- module.init = function (page) {
- //新闻管理列表
- // tools.doGet(news + '/003//7', {}, module.focusNews , true);
- tools.doGet(financialDetails + '/' + getQueryVariable('id'), {}, module.financialList , true);
- };
-
- //获取地址栏参数
- function getQueryVariable(variable){
- var query = window.location.search.substring(1);
- var vars = query.split("&");
- for (var i=0;i<vars.length;i++) {
- var pair = vars[i].split("=");
- if(pair[0] == variable){return pair[1];}
- }
- return(false);
- }
-
- //新闻列表
- module.financialList = function (data) {
- if (data.code == 200) {
- var content = data.data;
- module.data.financiaName = content[0].financialName;
- module.data.financialList = content;
- var financialData = template('financialData', module.data);
- $("#financialContent").html(financialData);
- }
- }
-
-
- goDetail = function(id){
- tools.skip('/agriculturalLawEnforcement/view/workDynamics/workDetail.html?id='+id);
- }
-
- goNotice = function(id){
- tools.skip('/agriculturalLawEnforcement/view/noticeAnnouncement/noticeDetail.html?id='+id);
- }
-
- goScheme = function(id){
- tools.skip('/agriculturalLawEnforcement/view/schemeDisclosure/schemeDetail.html?id='+id);
- }
-
- goEnforcement = function(id){
- tools.skip('/agriculturalLawEnforcement/view/basis/basisDetail.html?id='+id);
- }
-
- goInteractSearch = function(){
- tools.skip('view/interact/interactList.html?keyWord='+$('#interactInput').val());
- }
- return module;
- });
|