/* 页面交互效果 */ ;(function(win, $) { // $('.ewb-super-numitem').on('click', 'li', function() { // HaveHandlingQuantity() // }) // HaveHandlingQuantity() // function HaveHandlingQuantity() { // var param = { // token: 'Epoint_WebSerivce_**##0601', // params: {} // } // $.ajax({ // url: 'http://www.suzhou.gov.cn/szinf/consult/getbjl', // type: 'POST', // dataType: 'json', // success: function(msg) { // // var result = msg.custom.projectcount // $('.call-p01') // .eq(0) // .html(msg.custom.projectcount.queuetoday) // $('.call-p01') // .eq(1) // .html(msg.custom.projectcount.monthcount) // $('.call-p01') // .eq(2) // .html(msg.custom.projectcount.yearcount) // $('.call-p01') // .eq(3) // .html(msg.custom.projectcount.totalcount) // }, // error: function(msg) { // console.log(msg) // } // }) // } $('.ewb-notice').slide({ mainCell: '.ewb-notice-bd', effect: 'topLoop', autoPlay: true }) // 给具有placeholder属性的元素增加此支持 $('[placeholder]').placeholder() $('#slider').Xslider({ affect: 'fade', //fade 淡入淡出;scrollx 水平轮播; scrolly 垂直轮播 speed: 1200, space: 4000, conbox: '.wb-slider-conbox', ctag: '.wb-slider-ctag', switcher: '.wb-slider-switcher', stag: '.wb-slider-stag', current: 'cur', trigger: 'click', boxWidth: '541', boxHeight: '326' }) // tab切换 $('.tab-view').each(function(index, el) { new TabView({ dom: el, activeCls: 'current' }) }) $('.beauty-scroll').niceScroll({ cursorcolor: '#ccc', // 改变滚动条颜色,使用16进制颜色值 cursoropacitymin: 0, // 当滚动条是隐藏状态时改变透明度, 值范围 1 到 0 cursoropacitymax: 1, // 当滚动条是显示状态时改变透明度, 值范围 1 到 0 cursorwidth: '7px', // 滚动条的宽度,单位:便素 cursorborder: '1px solid #fff' // CSS方式定义滚动条边框 }) /* $('#ewb-super').slide({ titCell: '.ewb-super-numitem', mainCell: '.ewb-super-imgitem', autoPlay: true, //自动运行 autoPage: true, //自动分页 pnLoop: true, //前后按钮循环 delayTime: 500, //效果速度 effect: 'left', //动画效果 vis: 1, // 可视个数 scroll: 1, //每次滚动个数 trigger: 'click' }) */ })(this, jQuery) /* 图表1 */ ;(function(win, $) { var todaycountList = new Array() var historycountList = new Array() // $('.ewb-super-numitem').on('click', 'li', function() { // HaveGovernmentData() // }) // HaveGovernmentData() // function HaveGovernmentData() { // var param = { // token: 'Epoint_WebSerivce_**##0601', // params: {} // } // $.ajax({ // url: 'http://www.suzhou.gov.cn/szinf/consult/getBsrs', // type: 'POST', // dataType: 'json', // success: function(msg) { // var result = msg.custom.peopleCount // todaycountList = result.todaycount // historycountList = result.historycount // showOne() // }, // error: function(msg) { // console.log(msg) // } // }) // } // var showone = document.getElementById('show-one') // function showOne() { // var showChart = echarts.init(showone) // option = { // tooltip: { // trigger: 'axis', // axisPointer: { // type: 'cross', // crossStyle: { // color: '#999' // } // } // }, // legend: { // data: ['今日流量', '历史流量'], // /*data:['历史流量'],*/ // right: 20, // top: 10 // }, // grid: { // bottom: 20, // right: 10, // left: 40, // top: 42 // }, // xAxis: [ // { // type: 'category', // data: [ // '9:00~10:00', // '10:00~11:00', // '11:00~12:00', // '13:00~14:00', // '14:00~15:00', // '15:00~16:00', // '16:00~17:00' // ], // axisPointer: { // type: 'shadow' // }, // axisLabel: { // interval: 0 // } // } // ], // yAxis: [ // { // type: 'value', // name: '(办事人数)', // nameTextStyle: { // fontWeight: 'bold' // }, // min: 0, // max: 300, // interval: 50, // axisLabel: { // formatter: '{value}' // }, // splitLine: { // show: false // } // }, // { // type: 'value', // show: false, // name: '(办事人数)', // min: 0, // max: 300, // interval: 50, // axisLabel: { // formatter: '{value}' // } // } // ], // series: [ // { // name: '今日流量', // type: 'bar', // barWidth: 18, // itemStyle: { // normal: { // color: '#00aacc' // } // }, // data: todaycountList // }, // { // name: '历史流量', // type: 'line', // yAxisIndex: 1, // smooth: true, // itemStyle: { // normal: { // color: '#cd0035' // } // }, // lineStyle: { // normal: { // color: '#949494' // } // }, // symbol: 'circle', // data: historycountList // /*data:[138,170,59,148,77,71,37]*/ // } // ] // } // // 为echarts对象加载数据 // showChart.setOption(option) // } // showOne() })(this, jQuery) /* 图表2 */ ;(function(win, $) { var historytodayList = new Array() var windowNameList = new Array() // $('.ewb-super-numitem').on('click', 'li', function() { // HaveWindowData() // }) // HaveWindowData() // function HaveWindowData() { // var param = { // token: 'Epoint_WebSerivce_**##0601', // params: {} // } // $.ajax({ // url: 'http://www.suzhou.gov.cn/szinf/consult/getJhs', // type: 'POST', // dataType: 'json', // success: function(msg) { // var result = msg.custom.historytodaylist // $.each(result, function(i, item) { // windowNameList[i] = item.windowname // historytodayList[i] = item.count // }) // showTwo() // }, // error: function(msg) { // console.log(msg) // } // }) // } // var showtwo = document.getElementById('show-two') // function showTwo() { // var showChart = echarts.init(showtwo) // option = { // tooltip: { // trigger: 'axis', // axisPointer: { // type: 'cross', // crossStyle: { // color: '#999' // } // } // }, // legend: { // data: ['历史流量'], // right: 20, // top: 10 // }, // grid: { // bottom: 20, // right: 10, // left: 40, // top: 42 // }, // xAxis: [ // { // type: 'category', // data: windowNameList, // //data: ['出入境窗口09','车购税窗口09','公安消防窗口05','审批局准入处12','卫计委窗口06'], // axisPointer: { // type: 'shadow' // }, // axisLabel: { // interval: 0 // } // } // ], // yAxis: [ // { // type: 'value', // name: '(窗口叫号量)', // nameTextStyle: { // fontWeight: 'bold' // }, // min: 0, // interval: 100, // axisLabel: { // formatter: '{value}' // }, // splitLine: { // show: false // } // } // ], // series: [ // { // name: '历史流量', // type: 'bar', // barWidth: 18, // itemStyle: { // normal: { // color: '#00aacc' // } // }, // data: [1120, 600, 270, 148, 59] // } // ] // } // // 为echarts对象加载数据 // showChart.setOption(option) // } // showTwo() })(this, jQuery) /* 图表2 */ ;(function(win, $) { var thisyearpromise = 0, thisyeardo = 0 // $('.ewb-super-numitem').on('click', 'li', function() { // HavePromiseTimely() // }) // HavePromiseTimely() // function HavePromiseTimely() { // var param = { // token: 'Epoint_WebSerivce_**##0601', // params: {} // } // $.ajax({ // url: 'http://www.suzhou.gov.cn/szinf/consult/getbjlx ', // type: 'POST', // dataType: 'json', // success: function(msg) { // var result = msg.custom.projecttype // $('.cm01') // .eq(0) // .html(result.todaypromise) // $('.cm01') // .eq(1) // .html(result.todaydo) // $('.cm01') // .eq(2) // .html(result.thismonthpromise) // $('.cm01') // .eq(3) // .html(result.thismonthdo) // // $('.cm01') // // .eq(0) // // .html(278) // // $('.cm01') // // .eq(1) // // .html(41) // // $('.cm01') // // .eq(2) // // .html(5740) // // $('.cm01') // // .eq(3) // // .html(1802) // thisyearpromise = result.thisyearpromise // thisyeardo = result.thisyeardo // showThree() // }, // error: function(msg) { // console.log(msg) // } // }) // } // var showthree = document.getElementById('show-three') // function showThree() { // var showChart = echarts.init(showthree) // option = { // tooltip: { // trigger: 'item', // formatter: '{a}
{b} : {c} ({d}%)' // }, // legend: { // orient: 'vertical', // left: 'left', // top: 30, // data: ['即办件', '承诺件'] // }, // series: [ // { // name: '', // type: 'pie', // radius: '55%', // center: ['50%', '60%'], // /*data:[ // {value:thisyeardo, name:'即办件'}, // {value:thisyearpromise, name:'承诺件'} // ],*/ // data: [ // { value: [1802], name: '即办件' }, // { value: [5740], name: '承诺件' } // ], // itemStyle: { // emphasis: { // shadowBlur: 10, // shadowOffsetX: 0, // shadowColor: 'rgba(0, 0, 0, 0.5)' // } // } // } // ] // } // // 为echarts对象加载数据 // showChart.setOption(option) // } // showThree() })(this, jQuery) //政声传递 load_zscd(7); function load_zscd(nums){ $.ajax({ url : '/consultfront/common/getManuscriptList/?channel_id=691b76c9b7954eb79e94b1da7c752fb1&check=do&pagesize=10&currpage=1', dataType: "json", type: "POST", success : function(data) { var count=1; var dataStr=""; $.each(data.infolist,function(i,json){ if(count++<=nums){ var _url = json.url if (json.redirect_url != "") { _url = json.redirect_url } var _tit = json.title; if(_tit.length > 20){ _tit = json.title.substring(0,20) + "..."; } // var time_tmp = json.ptime; // var split = time_tmp.split('-'); // var date = split[1] + "/" + split[2] + "/" + split[0]; var _s = "
  • "+ _tit +"
    "+json.ptime+"
  • "; } }) $("#zscdBox").append(dataStr); }, error:function(XMLHttpRequest, textStatus, errorThrown){ //alert('textStatus:'+textStatus); } }); }