// JavaScript Document //bigpic $(function() { var channelCode = $('#CHANNELCODE').val(); switch (channelCode){ case '': jQuery(".slideBox").slide({ mainCell: ".bd ul", titCell: ".hd ul li", autoPlay: true }); jQuery(".news_list").slide({ titCell: ".hd ul li", mainCell: ".bd", targetCell: ".more a", delayTime: 0, triggerTime: 0 }); jQuery(".news_road_right").slide({ mainCell: ".bd", autoPlay: true, effect: "topMarquee", vis: 2, interTime: 50, trigger: "click" }); jQuery(".scrollpiclist").slide({mainCell:".bd ul",autoPlay:true,effect:"leftMarquee",vis:5,interTime:50,trigger:"click"}); $("#bstaba").click(function() { $("#bstab").children().removeClass("current") $(this).parent().addClass("current"); $("#open_list").hide(); $("#open_list_1").show(); }); $("#bstabb").click(function() { $("#bstab").children().removeClass("current") $(this).parent().addClass("current"); $("#open_list").show(); $("#open_list_1").hide(); }); loadZXXXGK(14); break; case 'ygjt': jQuery(".slideBox").slide({ mainCell: ".bd ul", titCell: ".hd ul li", autoPlay: true }); loadZXXXGK(30); $("#newsTab").find("li").click(function () { $("#newsTab").find("li").removeClass("current"); var cName = $(this).attr("class"); var num = $(this).index(); if (cName == "" || typeof cName == "undefined") { $(this).addClass("current"); $(".moreNews").hide().eq(num).show(); $(".textList1").hide().eq(num).show(); } else $(this).removeClass("current"); }); break; case 'bjjt':break; case 'hdjt': $.ajax({ type: 'POST', //用POST方式传输 dataType: 'JSON', //数据格式:JSON url: '/consultfront/getGzjdlistFY/?pagesize=10&currpage=1&type=11&check=do&state=2&deptcode=11320500014149885L', success: function(data) { var jsonobj = data if (jsonobj.infolist.length) { var template = "" if (jsonobj.infolist.length) { $.each(jsonobj.infolist, function(index, item) { template += "" + (index+1) + ''+ item.completetitle + '' + item.name + '' + item.consult_state + '' + item.consult_type + '' + item.consult_date.replace(/-/g,"/") + ''; }) $('#tblData').html(template) } } } }) break; default: break; } function loadZXXXGK(wordsNum){ $.ajax({ type: "POST", //用POST方式传输 dataType: "json", //数据格式:JSON url: '/szinf/getNewxxgkInfo/?num=8&deptcode=11320500014149885L&orderb=pubtime', success: succFunction //成功执行方法 }); function succFunction(back) { // var jsonobj = eval('(' + back + ')'); var jsonobj = back; for (var i = 0 ;i< 8 ;i++){ var publishTime = jsonobj.infolist[i].time.replace(/-/g,"/"); var title = jsonobj.infolist[i].title.length >= wordsNum ? (jsonobj.infolist[i].title.slice(0,wordsNum) + '...') : jsonobj.infolist[i].title; $("#zwgkData").append("
  • "+ title+""+publishTime+"
  • ") } } } }) function getRequestParams() { var url = window.location.search; var theRequest = {}; var str = url.substr(1), strs = str.split("&"); for (var i = 0; i < strs.length; i++) { theRequest[strs[i].split("=")[0]] = strs[i].split("=")[1]; } return theRequest; } //政声传递