// var leaidx = $("#leaidx a").text(); // if (leaidx.length > 30) { // $("#leaidx a").css("font-size", "26px"); // } else if (leaidx.length > 25) { // $("#leaidx a").css("font-size", "30px"); // } var zxgkList = '', fwList = '', wsxfList = '', fwrxList = '', yjzjList = '', zwfwList = '', xkcfList; var timestamp = (new Date()).valueOf(); var bsmIsNULL = $('.wzbsm').text(); var isNumber = isNaN(Number(bsmIsNULL)); if (bsmIsNULL == '' || isNumber == true) { $('.wzbsm').html(''); $('.jiucuo').hide(); } $(function () { // 鍒犻櫎url涓寚瀹氱殑鍙傛暟,骞惰繑鍥炲垹闄ゅ弬鏁板悗鐨勫畬鏁磚rl function delParam (name) { var loca = window.location; var baseUrl = loca.origin + loca.pathname + "?"; var query = loca.search.substr(1); if (query.indexOf(name) > -1) { var obj = {} var arr = query.split("&"); for (var i = 0; i < arr.length; i++) { arr[i] = arr[i].split("="); obj[arr[i][0]] = arr[i][1]; }; delete obj[name]; var url = baseUrl + JSON.stringify(obj).replace(/[\"\{\}]/g, "").replace(/\:/g, "=").replace(/\,/g, "&"); return url }; } var pageRequestParams = getRequestParams(); var isPCViewType = pageRequestParams.viewport_type === "pc"; if (isPCViewType) { document.getElementById("viewport").setAttribute('content', ''); var deleteParam = delParam('viewport_type') $('.viewportApp a').attr("href", deleteParam); $('.viewportApp').show(); } $('.version .app').attr("href", window.location.href); var url = window.location.search; if (url.indexOf("?") != -1) { $('.version .pc').attr("href", window.location.href + "&viewport_type=pc"); } else { $('.version .pc').attr("href", window.location.protocol + "//" + window.location.host + window.location.pathname + "?viewport_type=pc"); } var channelCode = $('#CHANNELCODE').val(), siteCode = $('#SITECODE').val(), isPaginationInited = false, SiteConfig = {}; var TplObj = { zxgk: $('#zxgkTpl').html(), xzxk: $('#xzxkTpl').html(), xzcf: $('#xzcfTpl').html(), fwrx: $('#fwrxTpl').html(), yjzj: $('#yjzjTpl').html(), zwfw: $('#zwfwTpl').html() }; var UrlObj = { zxgk: '/u/search/topxxgk/' + siteCode + '?PageSize=6&time=' + timestamp, yjzj: '/b/ms/getSurvyList?sitecode=' + siteCode, sgsPrefix: '/b/sgs/' } $.getJSON('/b/sgs/config', { sitecode: siteCode }, function (configData) { SiteConfig = configData; $('.hnzwfwUrl').attr('href', 'https://wssp.hainan.gov.cn/hnwt/department?regionId=HZ2881f4424539dd014245c4252500f1&orgId=' + SiteConfig.zwzx_bszn); $('.syzwfwUrl').attr('href', 'https://wssp.hainan.gov.cn/hnwt/department?regionId=HZ2881f4424539dd014245c4252500f1&orgId=' + SiteConfig.zwzx_bszn); $('.bsfwiframe').attr('src', 'https://wssp.hainan.gov.cn/hnwt/performance-statistics?regionId=HZ2881f4424539dd014245c4252500f1&orgId=' + SiteConfig.zwzx_bszn + '&serviceSubType=org'); $('.zdpyc').attr('href', 'https://wssp.hainan.gov.cn/hnwt/govpublic_detail2?qdCategory=zdpyc&title=鏈€澶氳窇涓€娆?regionId=HZ2881f4424539dd014245c4252500f1&dept=' + SiteConfig.zwzx_bszn); $('.bjmspqd').attr('href', 'https://wssp.hainan.gov.cn/hnwt/govpublic_detail?qdCategory=bjmspqd&title=涓嶈闈㈠鎵规竻鍗?regionId=HZ2881f4424539dd014245c4252500f1&dept=' + SiteConfig.zwzx_bszn); loadPage(); }); // 閮ㄩ棬鏈嶅姟浜嬮」 var bmfwsx = ['sjjsite','zscqbhzxsite']; if (bmfwsx.indexOf(siteCode) == -1) { $("#con_lzwm_4").append("
鏀垮姟鏈嶅姟
"); }else{ $("#con_lzwm_4").append('
'); } function loadFWSX (PageSize, pageIndex) { if (bmfwsx.indexOf(siteCode) == -1) { $.getJSON('/api/bsfw/' + SiteConfig.zwzx_bszn + '_fwsxlb.json', { time: timestamp }, function (data) { var fwsxData = data.data.shixiangList; var fwsxList = []; pageIndex = pageIndex ? pageIndex : 0; PageSize = PageSize ? PageSize : fwsxList.length; $(".zwfwcon ul").empty(); for (var i = 0; i < fwsxData.length; i++) { for (var y = 0; y < fwsxData[i].subdatas.length; y++) { var fwsx = {}; fwsx.fwsxID = fwsxData[i].subdatas[y].id; fwsx.fwsxSourcekey = fwsxData[i].subdatas[y].sourcekey; fwsx.fwsxTaskname = fwsxData[i].subdatas[y].taskname; fwsxList.push(fwsx); } } if (fwsxList.length <= 10) { $(".page").css({ 'display': 'none' }); } for (var t = 0; t < pageIndex * PageSize; t++) { if (pageIndex > 1) { var k = 0; k = (pageIndex - 1) * 10; t = k + t % 10; $(".zwfwcon ul").append("
  • " + fwsxList[t].fwsxTaskname + "
  • "); } else { $(".zwfwcon ul").append("
  • " + fwsxList[t].fwsxTaskname + "
  • "); } } if (!isPaginationInited && channelCode == '') { $("#Pagination").pagination(fwsxList.length, { num_edge_entries: 0, num_display_entries: 4, link_to: "javascript:;", callback: function pageselectCallback (page_index) { if (isPaginationInited) { loadFWSX(10, page_index + 1); } }, items_per_page: 10, prev_text: "涓婁竴椤?, next_text: "涓嬩竴椤? }); isPaginationInited = true; } $("#Pagination").show(); }); } } // 鏈嶅姟濂藉樊璇 function loadFWHCP () { if (bmfwsx.indexOf(siteCode) == -1) { $.getJSON('/api/bsfw/' + SiteConfig.zwzx_bszn + '_xntj.json', { time: timestamp }, function (data) { var fwhcpData = data.data.datas[0]; $("#con_lzwm_4").append("
    鏈嶅姟濂藉樊璇勶紙涓婅嚜鐒舵湀锛堻/div>
    • 璇勪环鎬婚噺
    • 鍔炰欢璇勪环鐜嘃/span>
    • 鍔炰欢婊℃剰搴?/span>
    • 宸瘎鏁存敼鐜嘃/span>
    "); $(".pjzl").append(fwhcpData.pjzl); $(".bjpjl").append(fwhcpData.bjpjl); $(".bjmyd").append(fwhcpData.bjmyd); $(".cpzgl").append(fwhcpData.cpzgl); }); } } function loadPage () { switch (channelCode) { case '': changeHref("tjzc"); changeHref("bmts"); loadGWYData('', 10); loadFWSX(10, 1); loadFWHCP(); // loadGWYData('', 10); // loadVideo('290', '153'); // loadVideo(); loadSZRX(5); loadYJZJData(4, 1); // loadFuWu(5); loadZhengWu(); lunbo('indexbanner'); lunbo('indexbanner1'); // $('.zrqd').attr('href', 'http://www.sanya.gov.cn' + SiteConfig.bb_qlqd); $('.zrqd').attr('href', 'http://xysy.sanya.gov.cn/CreditHnExtranetWeb/xygs/sgsList.do?messageid=48DAA70C2D9C4C909CF636637A17EF58&domainid=024'); $('.qlqd').attr('href', 'http://www.sanya.gov.cn/sanyasite/qzqd/qzqd.shtml'); $('.ysq').attr('href', SiteConfig.ysq_path); //$('.syzwfwUrl').attr('href', 'https://wssp.hainan.gov.cn/hnwt/home'); // $('.htopt').prepend('