强化预防、分***元化应急管理模式建设项目发布日期:******月***日 发布媒介:中国招标投标公共服务平台 来***道:发布工具 原文链接地址 相关公告
本广告将在(5s)后关闭 × 微信扫码,手机也能看公告 ![]()
联系招标人招标代理机构 01 公告内容
function getCookie(name) { var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)")); if(arr != null) return (arr[2]); return null; } //删cookie function delCookie(name){ var exp = new Date(); exp.setTime(exp.getTime() - 1); var cval = getCookie(name); if (cval != null) document.cookie = name + "=" + cval + ";expires=" + exp.toGMTString(); } var IsShow=true; //var IsShow=false; if(IsShow){ var ids=(Math.random()****).toString(16).substr(0,4)+"-"+(new Date()).getTime()+"-"+Math.random().toString().substr(2,5); a=getCookie("PublicAddress"); var Id=$(".mian_list_03").attr("index") var title=$(".mian_list_02 h3").html(); var string = title.replace(/[~|`|!|@|#|$|%|^|&|*|(|)|_|+|=||||[|]|{|}|;|:|"|"|,|<|.|>|/|]/g,""); var str=string.substring(0,12) c_start=document.cookie.indexOf("PublicAddress"); // if(c_start == -1){ $.ajax({ type:"get", url:"http***pubservice.com:7443/bulletin/qrCode/"+ids, data:{ "bulletinId":Id, "bulletinTitle":str }, success:function(data){ var data=JSON.parse(data) $(".PublicAddress img").attr("src",data.qrUrl) setTimeout(function(){ $(".close").show() $(".time").hide() },5000) var d=5 time=window.setInterval(function(){ d-- if(d==0){ window.clearInterval(time); var dom=document.getElementById("contact") dom.onclick = function(){ contact() } }else{ $(".time").html("本广告将在("+d+"s)后关闭 ") } },1000) t = setInterval(pollingImg, 1500); }, error:function(e){ var d=5 time=window.setInterval(function(){ d-- console.log(d) if(d==0){ window.clearInterval(time); }else{ $(".time").html("本广告将在("+d+"s)后关闭 ") } },1000) setTimeout(function(){ $(".close").show() $(".time").hide() },5000) return } }) $(".PublicAddress").show() // } // else{ // $(".PublicAddress").hide() // window.clearInterval(t); // } }else{ $(".PublicAddress").hide() } //关闭 $(".close a").click(function(){ $(".PublicAddress").hide() window.clearInterval(t); }) function contact(){ t = setInterval(pollingImg, 1500); $(".PublicAddress").show(); $("#loadingContent").hide(); $(".is-loading").show(); $(".refresh").hide(); $(".CodeImg img").css({ "filter":"blur(0px)" }) setTimeout(function () { $("#loadingContent").show(); $(".is-loading").hide(); $("#Tips").html("微信扫描下方二维码,手机即刻获取联系方式") },1000); setTimeout(function(){ window.clearInterval(t); closepolling(); },60000) } //***分钟后关闭轮询 function closepolling(){ window.clearInterval(t); $("#Tips").html("二维码已失效,请刷新二维码"); $(".refresh").show(); $(".CodeImg img").css({ "filter":"blur(2px)" }) } setTimeout(function(){ window.clearInterval(t); closepolling() },60000) $(".refresh").click(function(){ t = setInterval(pollingImg, 1500); $(".PublicAddress").show(); $("#loadingContent").hide(); $(".is-loading").show(); $(".refresh").hide(); $(".CodeImg img").css({ "filter":"blur(0px)" }) setTimeout(function () { $("#loadingContent").show(); $(".is-loading").hide(); $("#Tips").html("微信扫码,手机也能看公告") },1000); setTimeout(function(){ window.clearInterval(t); closepolling() },60000) }) function pollingImg(){ $.ajax({ type:"get", cache: false, url:"http***pubservice.com:7443/bulletin/qrScanStatus/"+ids, success:function(data){ var data=JSON.parse(data) if(data.scanStatus=="1"){ $(".PublicAddress").hide() var name = "PublicAddress"; var value = "已登录" var exp = new Date(); exp.setTime(exp.getTime() + 1 * 24 * 3600 * 1000);//过期时间1天 document.cookie = name + "=" + escape(value) + ";expires=" + exp.toGMTString()+";path=/"; window.clearInterval(t); } }, error:function(e){ console.log(1) return } }) } 02 监督部门 / |