function announcement(e,t){t=1==t?getServerHttp()+"/nx/n/list/refer_notice?notice_id="+e:getServerHttp()+"/nx/n/list/refer_notice?publicity_id="+e,$.ajax({url:t,type:"post",cache:!1,dataType:"json",success:function(e){if(0==(e=ajaxDataParames(e)).length)$(".more_content").html("无");else{var t,a="",n="";for(t in e){var i=e[t].notice_nature;"正常公告"===i||"再次公告"===i?n='':"变更公告"===i?n='变更':"延期公告"===i?n='延期':"补充公告"===i?n='补充':"控制价"===i?n='控价':"撤销公告"===i&&(n='撤销'),a+="
  • "+n+''+e[t].notice_title+''+checkDateTime(e[t].notice_release_time)+"
  • "}$(".more_content").html(a)}}})}function copy(){var e=document.createElement("input");e.value=window.location.href,document.body.appendChild(e),e.select(),document.execCommand("Copy"),e.className="createInput",e.style.display="none",layui.use(["layer","carousel"],function(){layui.layer.msg("复制成功,可以粘贴了!")})}$(function(){$("#copy_url").val(window.location.href),$(".copy").click(function(e){document.getElementById("copy_url").select(),document.execCommand("copy"),alert("提示:复制成功!")});new QRCode("qrcode").makeCode(window.location.href),$.getUrlParam=function(e){e=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),e=window.location.search.substr(1).match(e);return null!=e?unescape(e[2]):null},1==$.getUrlParam("type")?$(".first_1").html("公告内容"):$(".first_1").html("公示内容");var i=$.getUrlParam("kid"),e="/nx/n/w/"+i;$.ajax({url:getServerHttp()+e,type:"post",cache:!1,dataType:"json",success:function(t){var e=(t=ajaxDataParames(t)).apply_date_end,a=t.notice_end_time,n=new Date(t.notice_release_time),e=(at.apply_date_end&&$(".position-box").css({display:"none"})}}),"变更公告"===t.notice_nature||"延期公告"===t.notice_nature||"补充公告"===t.notice_nature||"控制价"===t.notice_nature||"候选人公示"===t.notice_type||"中标公示"===t.notice_type?($(".position-box").css({display:"none"}),$(".origin-url a").attr("href","../page_detailed/list.html?kid="+t.reference_notice_id+"&type="+$.getUrlParam("type"))):"撤销公告"===t.notice_nature?($(".position-box").css({display:"none"}),$(".origin-url a").css({display:"none"})):($(".origin-url a").css({display:"none"}),t.is_login?t.res?$(".position-box").css({display:"none"}):"线下"===t.tender_fee_type?t.is_signup?$(".bid-process a").attr("href","/web-back/view/task/tender/sign_up/sign_up_form.html?tender_id="+t.tender_id):$.ajax({url:getServerHttp()+"/back/tender/sign_up/sign_up_form",type:"post",dataType:"json",data:{tender_id:t.tender_id},success:function(e){e=ajaxDataParames(e);$(".bid-process a").attr("href","/web-back/view/task/tender/sign_up/offline_pay_form.html?signup_id="+e.signup_id)}}):"线上"===t.tender_fee_type&&$(".bid-process a").attr("href","/web-back/view/task/tender/sign_up/sign_up_form.html?tender_id="+t.tender_id):$(".bid-process a").attr("href","/web-back?kid="+i)),$.getUrlParam("source")&&$(".bid-process a").click()},error:function(e,t,a){}}),$.ajax({url:getServerHttp()+"/nx/n/list/notice",type:"post",cache:!1,dataType:"json",success:function(e){for(var e=ajaxDataParames(e),t="",a=0;a<5;a++)t+='
  • '+e.pagePackage.data[a].notice_title+"
  • ";$(".more-notice-content ul").html(t)}}),announcement($.getUrlParam("kid"),$.getUrlParam("type"))});