招标
上海市大数据中心上海市大数据中心数字化转型保障
金额
-
项目地址
上海市
发布时间
2022/09/26
公告摘要
项目编号-
预算金额-
招标联系人-
标书截止时间-
投标截止时间-
公告正文

"; $("#loginFooter").empty(); $("#loginFooter").html(divDate); getApp("ELE_NEW"); setTimeout(timeOut, 60000); } function caLoginInfo() { var pwd = $("#passwordca").val(); // CA登录 if ("" == pwd || == pwd || typeof pwd == "undefined") { errorMessagePrompt("请输入正确的密码!"); return; } // CA登录 getCurCADecoder({ pwd : pwd, callback : cadecoderData, showError : showerrorMessage, IsNeedCheck : true }); // CALogin( pwd, cadecoderData, showerrorMessage ); } function cadecoderData(cadecoder) { var caid = cadecoder.extInfo[decoderGUID].value; var cc = cadecoder.extInfo[creditCode].value; var oz = cadecoder.extInfo[organization].value; if(caid == "" || caid == || caid == "undefined"){ errorMessagePrompt("当前USBKey锁标识缺失,请及时更换USBKey"); return; } if (caid.match("GS")) { if (cc == "" || cc == || typeof cc == "undefined") { if (oz == "" || oz == || typeof oz == "undefined") { errorMessagePrompt("不支持该类型的CA证书,请重新办理上海CA证书"); return; } } } var extInfo = cadecoder.extInfo; //锁号 var ca_num = extInfo[decoderGUID].value; //锁名称 var caName = cadecoder.ownerInfo.value.CN; //序列号 var caIdenNo = cadecoder.sn.value; localStorage.setItem("caNum", ca_num); localStorage.setItem("caName", caName); localStorage.setItem("caNo", caIdenNo); //在js文件中控制caBase64 localStorage.setItem("caBase64", caBase64); caGetToken(); } function caGetToken() { //调用注册平台接口获取 var caNum = localStorage.getItem("caNum"); var caNo = localStorage.getItem("caNo"); var caBase64 = localStorage.getItem("caBase64"); $.ajax({ type : "post", dataType : 'json', async : false, data : { caNum : caNum, caNo : caNo, caBase64 : caBase64 }, url : '/getTokenFromTyslByCa.jspx', success : function(data) { if (data.code == "200") { localStorage.setItem("userName", data.data.token); localStorage.setItem("logoName", data.data.logoName); localStorage.setItem("loginType", "CA"); if("gycqDetails" == thisFlag){ if(projectType == "gycq"){ var channelId = ""; //交通系统招标公告和资审公告 if(channelId == "377" || channelId == "378"){ jdEnroll(); }else{ loginGycq(); } }else if("jd" == projectType){//机电设备 createJdChoseSection(); }else if("tscl" == thisFlag){ $("#logoInfo").hide(); $('.shadow_bigBox').css('display','none'); getTsclUrl(); }else{ $("#logoInfo").hide(); $('.shadow_bigBox').css('display','none'); loginNccq(); } }else if("tscl" == thisFlag){ $("#logoInfo").hide(); $('.shadow_bigBox').css('display','none'); getTsclUrl(); }else if("gycqList" == thisFlag){ $("#logoInfo").hide(); $('.shadow_bigBox').css('display','none'); inToJyxt(); }else{ $("#logoInfo").hide(); $("#logoSuccess").show(); $("#enterpriseName").html(data.data.logoName); var myDate = new Date; var year = myDate.getFullYear(); //获取当前年 var mon = myDate.getMonth() + 1; //获取当前月 var date = myDate.getDate(); //获取当前日 $("#logoDate") .html(year + "年" + mon + "月" + date + "日"); var contentUrl = localStorage.getItem("contentUrl"); if ("" != contentUrl && "undefined" != contentUrl && != contentUrl) { window.open(contentUrl); window.localStorage.removeItem('contentUrl') } } } else if (data.code == "20005") {//密码错误 errorMessagePrompt("密码错误!"); window.open(data.data.url); return false; } else if (data.code == "20016") {//单位子账号禁用 errorMessagePrompt("您的账号已被管理员禁用,请联系管理员启用账号!"); return false; } else if (data.code == "20015") { errorMessagePrompt("CA证书未注册账号,请先注册!"); return false; }else { errorMessagePrompt(data.msg); return false; } } }); } function showerrorMessage(message) { errorMessagePrompt(message); } function timeOut() {//超时提醒 var qrType = localStorage.getItem("qrType"); if ("ELE_NEW" == qrType) { $("#timeOutId").css("display", "block"); } else { $("#appImgId").css("display", "none"); $("#appImgSuccess").css("display", "none"); $("#appPSuccess").css("display", "none"); $("#appPSuccess2").css("display", "block"); $("#appImgfal").css("display", "block"); } if ( != appScanCodeId && "" != appScanCodeId) { clearTimeout(appScanCodeId); } if ( != appTimeOut && "" != appTimeOut) { clearTimeout(appTimeOut); } if ( != appgetAppResult && "" != appgetAppResult) { clearTimeout(appgetAppResult); } return; } function getAppResult() { var qrId = localStorage.getItem("qrid"); var qrType = localStorage.getItem("qrType"); $.ajax({ type : "post", dataType : 'json', async : false, data : { qrId : qrId, qrType : qrType }, url : '/getAppResult.jspx', success : function(data) { if (data.code == "200") { if (data.data.status == "0" || data.data.status == "2") {//0等待扫码,2扫码成功----3秒后继续请求 appScanCodeId = setTimeout(getAppResult, 3000); if (data.data.status == "2") { $("#appImgSuccessWz").css("display", "block"); $("#appImgSuccess").css("display", "block"); $("#appPSuccess").css("display", "block"); $("#appImgId").css("display", "none"); } } else if (data.data.status == "1") {//1授权成功,调整登录成功页面 if (qrType == 'APP') { appGetToken(data.data.loginId); } else { eleGetToken(data.data.creditCode); } if("gycqDetails" == thisFlag){ if(projectType == "gycq"){ loginGycq(); }else{ $("#logoInfo").hide(); $('.shadow_bigBox').css('display','none'); loginNccq(); } }else if("tscl" == thisFlag){ $("#logoInfo").hide(); $('.shadow_bigBox').css('display','none'); getTsclUrl(); }else if("gycqList" == thisFlag){ $("#logoInfo").hide(); $('.shadow_bigBox').css('display','none'); inToJyxt(); }else{ if( != data.data.loginId && "" != data.data.loginId && "undefined" != data.data.loginId){ $("#logoSuccess").show(); $("#logoInfo").hide(); $("#enterpriseName").html(data.data.loginId); var myDate = new Date; var year = myDate.getFullYear(); //获取当前年 var mon = myDate.getMonth() + 1; //获取当前月 var date = myDate.getDate(); //获取当前日 $("#logoDate").html( year + "年" + mon + "月" + date + "日"); localStorage.setItem("appLoginId", data.data.loginId); } } } } else { errorMessagePrompt(data.msg); clearTimeout(appScanCodeId); } } }); } function eleGetToken(creditCode) { $.ajax({ type : "post", dataType : 'json', async : false, data : { creditCode : creditCode }, url : '/getEleTokenFromTysl.jspx', success : function(data) { if (data.code == "200") { localStorage.setItem("userName", data.data.token); localStorage.setItem("logoName", data.data.logoName); $("#enterpriseName").html(data.data.logoName); } else { errorMessagePrompt(data.msg); } } }); } function appGetToken(loginId) { $.ajax({ type : "post", dataType : 'json', async : false, data : { loginId : loginId }, url : '/getAppTokenFromTysl.jspx', success : function(data) { if (data.code == "200") { localStorage.setItem("userName", data.data.token); } else { errorMessagePrompt(data.msg); } } }); } function renovateApp() { $("#appImgId").css("display", "block"); $("#appPSuccess2").css("display", "none"); $("#appImgfal").css("display", "none"); if ( != appScanCodeId && "" != appScanCodeId) { clearTimeout(appScanCodeId); } getApp("APP"); } function renovateEle() { $("#timeOutId").css("display", "none"); if ( != appScanCodeId && "" != appScanCodeId) { clearTimeout(appScanCodeId); } getApp("ELE_NEW"); } function loginOut() { ywtbTime(); } var t = 3;//时间 var ywtbTimeOut = ""; function ywtbTime() { if (t == 0) { var token = localStorage.getItem("userName"); $.ajax({ type : "post", dataType : 'json', async : false, data : {token : token}, url : '/getLoginOutUrl.jspx', success : function(data) { } }); localStorage.removeItem("userName"); localStorage.removeItem("logoName"); localStorage.removeItem("access_token"); window.location.href = "/index.jhtml?outFlag=1"; } else { $("#ywtb_clock").html("正在退出 " + t + " 秒");//改变按钮中value的值 t--; ywtbTimeOut = setTimeout(function() { ywtbTime();//循环调用 }, 1000) } } function closeLogin() { $('.shadow_bigBox').css('display', 'none'); } function loginPwd(name, url) { if ("专家抽取" == name) { window.open(url); return; } else if ("场所预约" == name) { window.open(url); return; } else if ("数据中心" == name) { window.open(url); return; } else if ("文档管理" == name) { window.open(url); return; } else if ("CA认证" == name) { window.open(url); return; } var token = localStorage.getItem("userName"); if ( == token || "" == token || "undefined" == token) { if ("主体登记" == name) { window.open(url); } errorMessagePrompt("请您先登录上海市公共资源交易中心门户网站,再操作!"); return; } var linkType = ""; if ("主体登记" == name) { linkType = "ZTDJ"; } else if ("项目登记" == name) { linkType = "XMDJ"; } else if ("项目报名" == name) { linkType = "XMBM"; } else if ("投诉处理" == name) { linkType = "TSCL"; } else if ("投标人" == name) { linkType = "TBR"; } else if ("招标人" == name) { linkType = "ZBR"; } else if ("招标代理" == name) { linkType = "ZBDL"; } else { linkType = "GZT"; } $.ajax({ type : "post", dataType : 'json', async : false, data : { token : token, linkType : linkType }, url : '/getLoginUrlFromTysl.jspx', success : function(data) { if (data.code == "200") { window.open(data.data.url); } else if (data.code == "20014") { errorMessagePrompt("登录信息失效,请重新登录"); window.localStorage.removeItem('userName'); window.location.reload(); return false; } else { errorMessagePrompt(data.msg); return false; } } }); }上海市大数据中心上海市大数据中心数字化转型保障上海市)

上海市公共资源交易中心

返回顶部