|
@@ -1,1912 +1,1961 @@
|
|
|
-<html>
|
|
|
-
|
|
|
-<head>
|
|
|
-<title>{{.T.obj.title}} - 剑鱼标讯</title>
|
|
|
-<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
|
|
|
-<meta name="Keywords" content="{{.T.obj.keywords}}"/>
|
|
|
-<meta name="Description" content="{{.T.obj.description}}"/>
|
|
|
-<meta name="renderer" content="webkit">
|
|
|
-<meta content="telephone=no" name="format-detection"/>
|
|
|
-{{include "/common/pnc.html"}}
|
|
|
-<link href="{{Msg "seo" "cdn"}}/css/pc.css?v={{Msg "seo" "version"}}" rel="stylesheet">
|
|
|
-<script src="{{Msg "seo" "cdn"}}/js/jquery.cookie.js"></script>
|
|
|
-<script src="{{Msg "seo" "cdn"}}/js/pdfobject.min.js"></script>
|
|
|
-<link rel="stylesheet" type="text/css" href="{{Msg "seo" "cdn"}}/pccss/public-nav-1200.css?v={{Msg "seo" "version"}}" />
|
|
|
-<script type="text/javascript" src="{{Msg "seo" "cdn"}}/js/public-nav.js?v={{Msg "seo" "version"}}"></script>
|
|
|
-<style>
|
|
|
-body{
|
|
|
- font-family: "Microsoft YaHei",sans-serif;
|
|
|
-}
|
|
|
-a{
|
|
|
- color:#000;
|
|
|
-}
|
|
|
-.pdfobject-container { height: 800px;}
|
|
|
-.pdfobject { border: 1px solid #666; }
|
|
|
-.noresize {
|
|
|
- resize: none;
|
|
|
- border-radius: 4px;
|
|
|
- background-color: #f5f5fb;
|
|
|
-}
|
|
|
-.modal-header {
|
|
|
- border-bottom:0px;
|
|
|
- padding: 30px 34px 0px;
|
|
|
-}
|
|
|
-.modal-footer {
|
|
|
- border-top:0px;
|
|
|
- padding: 0px 34px 20px;
|
|
|
-}
|
|
|
-.modal-body {
|
|
|
- padding:18px 34px 25px;
|
|
|
-}
|
|
|
-.modal-header .close {
|
|
|
- margin-top: -22px;
|
|
|
- margin-right: -22px;
|
|
|
-}
|
|
|
-.htlist a:hover{
|
|
|
- text-decoration: underline;
|
|
|
- color: #fe7379;
|
|
|
-}
|
|
|
-.htlist .pcol:hover{
|
|
|
- color: #fe7379;
|
|
|
-}
|
|
|
-.noticetime{
|
|
|
- height:20px;
|
|
|
-}
|
|
|
-/*j-wx-code Start*/
|
|
|
-.j-wx-code{
|
|
|
- width: 335px;
|
|
|
- height: 355px;
|
|
|
- background-color: #fff;
|
|
|
- -webkit-border-radius: 6px;
|
|
|
- -moz-border-radius: 6px;
|
|
|
- border-radius: 6px;
|
|
|
- position: relative;
|
|
|
- /*margin: 100px auto;*/
|
|
|
-}
|
|
|
-.j-wx-code>.code-close{
|
|
|
- width: 40px;
|
|
|
- height: 40px;
|
|
|
- position: absolute;
|
|
|
- right: -20px;
|
|
|
- top: -20px;
|
|
|
- cursor: pointer;
|
|
|
- -webkit-transition: all 1s;
|
|
|
- -o-transition: all 1s;
|
|
|
- -moz-transition: all 1s;
|
|
|
- transition: all 1s;
|
|
|
-}
|
|
|
-.j-wx-code>.code-close:hover{
|
|
|
- -webkit-transform: scale(1.2);
|
|
|
- -moz-transform: scale(1.2);
|
|
|
- -ms-transform: scale(1.2);
|
|
|
- -o-transform: scale(1.2);
|
|
|
- transform: scale(1.2);
|
|
|
-}
|
|
|
-.j-wx-code>.code-title{
|
|
|
- height: 82px;
|
|
|
- background:url(/images/j-wx-code-title.png) center center no-repeat;
|
|
|
- -webkit-animation: moveYun 15s infinite linear both;
|
|
|
- -moz-animation: moveYun 15s infinite linear both;
|
|
|
- -o-animation: moveYun 15s infinite linear both;
|
|
|
- animation: moveYun 15s infinite linear both;
|
|
|
-}
|
|
|
-.j-wx-code>.code-wxm{
|
|
|
- text-align: center;
|
|
|
- margin-bottom: -6px;
|
|
|
- margin-top: -16px;
|
|
|
-
|
|
|
-}
|
|
|
-.j-wx-code>.code-wxm>img{
|
|
|
- width: 200px;
|
|
|
- height: 200px;
|
|
|
- margin-top: -5px;
|
|
|
-}
|
|
|
-.j-wx-code>.code-text{
|
|
|
- text-align: center;
|
|
|
-}
|
|
|
-.j-wx-code>.code-bottom{
|
|
|
- width: 470px;
|
|
|
- height: 211px;
|
|
|
- position: absolute;
|
|
|
- bottom: -113px;
|
|
|
- left: -73px;
|
|
|
- background: url(/images/j-wx-code-bottom.png) 0 0 no-repeat;
|
|
|
-}
|
|
|
-.j-wx-code>.code-bottom>img{
|
|
|
- position: absolute;
|
|
|
- left: 280px;
|
|
|
- top: 88px;
|
|
|
- -webkit-animation: codeWxMove 10s linear both;
|
|
|
- -moz-animation: codeWxMove 10s linear both;
|
|
|
- -o-animation: codeWxMove 10s linear both;
|
|
|
- animation: codeWxMove 10s linear both;
|
|
|
- -webkit-animation-fill-mode:forwards;
|
|
|
- -moz-animation-fill-mode:forwards;
|
|
|
- -o-animation-fill-mode:forwards;
|
|
|
- animation-fill-mode:forwards
|
|
|
-}
|
|
|
-/*add*/
|
|
|
-.animathistory_ent{
|
|
|
- position:absolute;
|
|
|
- border: 1px solid #e0e0e0;
|
|
|
- width: 600px;
|
|
|
- /* min-height: 300px;
|
|
|
- top: 90px;*/
|
|
|
- top: 85px;
|
|
|
- left: 170px;
|
|
|
- background: #fff;
|
|
|
- cursor: pointer;
|
|
|
- border-radius: 4px;
|
|
|
- -webkit-box-shadow: 0 0 20px rgba(0, 0, 0, .2);
|
|
|
- -moz-box-shadow: 0 0 20px rgba(0, 0, 0, .2);
|
|
|
- box-shadow: 0 0 20px rgba(0, 0, 0, .2);
|
|
|
- z-index:999;
|
|
|
-}
|
|
|
-
|
|
|
-.priceStyle
|
|
|
-{
|
|
|
- position: absolute;
|
|
|
- bottom: 10px;
|
|
|
- font-size: 14px;
|
|
|
- right: 22px;
|
|
|
- color: #686868;
|
|
|
-}
|
|
|
-.adv-pccontent-right{
|
|
|
- position:absolute;
|
|
|
- top:0px;
|
|
|
- right:-5px;
|
|
|
- width:200px;
|
|
|
- height:200px;
|
|
|
- text-align:center;
|
|
|
- cursor: pointer;
|
|
|
-}
|
|
|
-.adv-pccontent-bottom{
|
|
|
- width:1200px;
|
|
|
- margin:0px auto;
|
|
|
- height:80px;
|
|
|
- margin-top: 20px;
|
|
|
- text-align:left;
|
|
|
- cursor: pointer;
|
|
|
-}
|
|
|
-.adv-pccontent-bottom img{
|
|
|
- width:980px;
|
|
|
- height:80px;
|
|
|
-}
|
|
|
-.adv-pccontent-right img{
|
|
|
- width:200px;
|
|
|
- height:200px;
|
|
|
-}
|
|
|
-.hytwo,.hyone{
|
|
|
- left: 140px !important;
|
|
|
-}
|
|
|
-.public-nav .iner .logo img{
|
|
|
- width: 130px;
|
|
|
-}
|
|
|
-.fr {
|
|
|
- float: right;
|
|
|
-}
|
|
|
-.public-nav{
|
|
|
- background: #fff;
|
|
|
- border-bottom: 1px solid #e0e0e0;
|
|
|
-}
|
|
|
-.com-buyerclass{
|
|
|
- background-color: #CFAD89;
|
|
|
- border-radius: 3px;
|
|
|
- color: #fff;
|
|
|
- padding: 1px 6px 2px 6px;
|
|
|
- margin-right: 5px;
|
|
|
- font-size: 14px;
|
|
|
-}
|
|
|
-.com-buyerclass > a{
|
|
|
- color: #fff;
|
|
|
-}
|
|
|
-</style>
|
|
|
-</head>
|
|
|
-<body>
|
|
|
-{{include "/common/pchead.html"}}
|
|
|
-<script type="text/javascript">
|
|
|
-var _loop = false;
|
|
|
-var refer = document.referrer;
|
|
|
-if(refer.indexOf("NJ")>0){
|
|
|
- $(".j-nav .j-nav-link:eq(3)").addClass("active");
|
|
|
-}else{
|
|
|
- $(".j-nav .j-nav-link:eq(2)").addClass("active");
|
|
|
-}
|
|
|
-$(function(){
|
|
|
- $(".logo img").attr("src","{{Msg "seo" "cdn"}}/images/swordfish/sf_01_new.png");
|
|
|
- selcetIndexNav(8)
|
|
|
-})
|
|
|
-//
|
|
|
-function isWechat() {
|
|
|
- var ua = navigator.userAgent.toLowerCase();
|
|
|
- if(ua.match(/MicroMessenger/i)=="micromessenger"){
|
|
|
- return true;
|
|
|
- }else{
|
|
|
- return false;
|
|
|
- }
|
|
|
-}
|
|
|
-</script>
|
|
|
-<div class="j-content">
|
|
|
-<div class="main-content" style="width: 1200px; position: relative; margin: 0 auto">
|
|
|
- <div class="biddetail-content" style="width:980px; margin-left:0px;">
|
|
|
- <div class="com-title" id="com-title">
|
|
|
-<!-- <span style="border-bottom:1px solid #2cb7ca">{{.T.obj.title}}</span>-->
|
|
|
- {{.T.obj.title}}
|
|
|
-
|
|
|
- </div>
|
|
|
- <div class="com-statusbar" id="statusbar">
|
|
|
- <span class="com-guanzhu">
|
|
|
- <img src="{{Msg "seo" "cdn"}}/images/guanzhu.png">
|
|
|
- <font>关注项目</font>
|
|
|
- <div class="scanqr">
|
|
|
- <span>微信扫一扫</span>
|
|
|
- <img class="img" id="wxCode" src="/front/share/{{.T.shareid}}" alt="微信订阅号">
|
|
|
- <span>扫码关注此项目<br>实时查看最新公告</span>
|
|
|
- </div>
|
|
|
- </span>
|
|
|
- <span class="com-wxshare">
|
|
|
- <img src="{{Msg "seo" "cdn"}}/images/wxshare.png">微信分享
|
|
|
- <div class="scanqr">
|
|
|
- <span>微信扫一扫</span>
|
|
|
- <img class="img" src="/biddetail/normal/qr/{{.T.obj._id}}" alt="微信分享">
|
|
|
- </div>
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- <div class="cutline"></div>
|
|
|
- <div class="com-prebuilt hidden">
|
|
|
- <div class="preb-title">项目基本信息</div>
|
|
|
- <div class="preb-basic">
|
|
|
- <table>
|
|
|
- <tr>
|
|
|
- {{ if .T.obj.projectinfo.approvecode}}
|
|
|
- <td class="preb-type">项目代码</td>
|
|
|
- <td class="preb-cont" {{if .T.obj.projectname}}{{else}} style="width:850px;" colspan="3"{{end}}>{{.T.obj.projectinfo.approvecode}}</td>
|
|
|
- {{end}}
|
|
|
- {{if .T.obj.projectname}}
|
|
|
- <td class="preb-type">项目名称</td>
|
|
|
- <td class="preb-cont" {{if .T.obj.projectinfo.approvecode}}{{else}} style="width:850px;" colspan="3"{{end}}><span id="a" style="border-bottom:1px solid #2cb7ca">{{.T.obj.projectname}}</span></td>
|
|
|
- {{end}}
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- {{if .T.obj.projectinfo.projecttype}}
|
|
|
- <td class="preb-type">项目类型</td>
|
|
|
- <td class="preb-cont" {{if .T.obj.projectinfo.buyer}}{{else}} style="width:850px;" colspan="3"{{end}}>{{.T.obj.projectinfo.projecttype}}</td>
|
|
|
- {{end}}
|
|
|
- {{if .T.obj.projectinfo.buyer}}
|
|
|
- <td class="preb-type">项目法人单位</td>
|
|
|
- <td class="preb-cont" {{if .T.obj.projectinfo.projecttype}}{{else}} style="width:850px;" colspan="3"{{end}}>{{.T.obj.projectinfo.buyer}}</td>
|
|
|
- {{end}}
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
- <div class="preb-title" id="exaapprove" style="display:none;">审批事项公示信息</div>
|
|
|
- <div class="preb-list">
|
|
|
- <table>
|
|
|
- <tr id="trwidth">
|
|
|
- {{if .T.obj.projectinfo.approvedept}}
|
|
|
- <td class="preb-exam">审批部门</td>
|
|
|
- {{end}}
|
|
|
- {{if .T.obj.projectinfo.approvecontent}}
|
|
|
- <td class="preb-exam">审批事项</td>
|
|
|
- {{end}}
|
|
|
- {{if .T.obj.projectinfo.approvestatus}}
|
|
|
- <td class="preb-exam">审批结果</td>
|
|
|
- {{end}}
|
|
|
- {{if .T.obj.projectinfo.approvetime}}
|
|
|
- {{if ne .T.obj.projectinfo.approvetime "0"}}
|
|
|
- <td class="preb-exam">审批时间</td>
|
|
|
- {{end}}
|
|
|
- {{end}}
|
|
|
- {{if .T.obj.projectinfo.approvenumber}}
|
|
|
- <td class="preb-exam">审批文号</td>
|
|
|
- {{end}}
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- {{if .T.obj.projectinfo.approvedept}}
|
|
|
- <td class="preb-examcont">
|
|
|
- <div class="spbm" id="spbm">{{.T.obj.projectinfo.approvedept}}</div>
|
|
|
- </td>
|
|
|
- {{end}}
|
|
|
- {{if .T.obj.projectinfo.approvecontent}}
|
|
|
- <td class="preb-examcont">
|
|
|
- <div class="spsx" id="spsx">{{.T.obj.projectinfo.approvecontent}}</div>
|
|
|
- </td>
|
|
|
- {{end}}
|
|
|
- {{if .T.obj.projectinfo.approvestatus}}
|
|
|
- <td class="preb-examcont">
|
|
|
- <div class="spjg" id="spjg">{{.T.obj.projectinfo.approvestatus}}</div>
|
|
|
- </td>
|
|
|
- {{end}}
|
|
|
- {{if .T.obj.projectinfo.approvetime}}
|
|
|
- {{if ne .T.obj.projectinfo.approvetime "0"}}
|
|
|
- <td class="preb-examcont">
|
|
|
- <div class="spsj" id="spsj">{{.T.obj.projectinfo.approvetime}}</div>
|
|
|
- </td>
|
|
|
- {{end}}
|
|
|
- {{end}}
|
|
|
- {{if .T.obj.projectinfo.approvenumber}}
|
|
|
- <td class="preb-examcont">
|
|
|
- <div class="spwh" id="spwh">{{.T.obj.projectinfo.approvenumber}}</div>
|
|
|
- </td>
|
|
|
- {{end}}
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- {{if .T.obj.detail}}
|
|
|
- <div class="recoveryfat" style="display:none;">
|
|
|
- <div class="recoveryhead">
|
|
|
- <div class="tab2 active" onclick="jumpTab('2')">公告摘要</div>
|
|
|
- <div class="tab1" onclick="jumpTab('1')">公告正文</div>
|
|
|
- <div class="tab3"></div>
|
|
|
- <div style="clear:none"></div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="tabfat">
|
|
|
- <div id="tab2" style="display:none;">
|
|
|
- <div class="baseInfo">基本信息</div>
|
|
|
- <div class="baseTable">
|
|
|
- <table>
|
|
|
- <tr>
|
|
|
- <td class="tab-type">省份</td>
|
|
|
- <td class="tab-cont">{{if eq .T.obj.area "A"}}全国{{else}}{{.T.obj.area}}{{end}}</td>
|
|
|
- <td class="tab-type">城市</td>
|
|
|
- <td class="tab-cont">{{.T.obj.city}}</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class="tab-type" style="padding-right: 0px;">招标代理机构</td>
|
|
|
- <td class="tab-cont">
|
|
|
- <div class="cont-cont">{{.T.obj.agency}}</div>
|
|
|
- <div class="cont-recy" onclick="recoveryerr(this,'agency','')">纠错</div>
|
|
|
- <div style="display:none;"></div>
|
|
|
- </td>
|
|
|
- <td class="tab-type">项目名称</td>
|
|
|
- <td class="tab-cont">
|
|
|
- <div class="cont-cont">{{.T.obj.projectname}}</div>
|
|
|
- <div class="cont-recy" onclick="recoveryerr(this,'projectname','')">纠错</div>
|
|
|
- <div style="display:none;"></div>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class="tab-type">采购单位</td>
|
|
|
- <td class="tab-cont">
|
|
|
- <div class="cont-cont">{{.T.obj.buyer}}</div>
|
|
|
- <div class="cont-recy" onclick="recoveryerr(this,'buyer','')">纠错</div>
|
|
|
- <div style="display:none;"></div>
|
|
|
- </td>
|
|
|
- <td class="tab-type" style="padding-right: 9px;">采购联系人</td>
|
|
|
- <td class="tab-cont">
|
|
|
- <div class="cont-cont">{{.T.obj.buyerperson}}</div>
|
|
|
- <div class="cont-recy" onclick="recoveryerr(this,'buyerperson','')">纠错</div>
|
|
|
- <div style="display:none;"></div>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class="tab-type">采购电话</td>
|
|
|
- <td class="tab-cont">
|
|
|
- <div class="cont-cont">{{.T.obj.buyertel}}</div>
|
|
|
- <div class="cont-recy" onclick="recoveryerr(this,'buyertel','')">纠错</div>
|
|
|
- <div style="display:none;"></div>
|
|
|
- </td>
|
|
|
- <td class="tab-type piddingfour" id="tdbudget"></td>
|
|
|
- <td class="tab-cont">
|
|
|
- <div class="cont-cont"></div>
|
|
|
- <div class="cont-recy" onclick="recoveryerr(this,'budget','')"></div>
|
|
|
- <div style="display:none;"></div>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr id="baselast" style="display:none;">
|
|
|
- <td class="tab-type">拟定单一来源采购供应商</td>
|
|
|
- <td class="tab-cont">
|
|
|
- <div class="cont-cont">{{.T.obj.winner}}</div>
|
|
|
- <div class="cont-recy" onclick="recoveryerr(this,'winner','')">纠错</div>
|
|
|
- <div style="display:none;"></div>
|
|
|
- </td>
|
|
|
- <td class="tab-type"></td>
|
|
|
- <td class="tab-cont">
|
|
|
- <div class="cont-cont"></div>
|
|
|
- <div class="cont-recy"></div>
|
|
|
- <div style="display:none;"></div>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
- <div class="baseInfo" id="bidInfoTitle" style="display:none;">中标信息</div>
|
|
|
- <div class="baseTable" id="bidInfoCont" style="display:none;">
|
|
|
- <table>
|
|
|
- <tr>
|
|
|
- <td class="tab-type">中标单位</td>
|
|
|
- <td class="tab-cont">
|
|
|
- <div class="cont-cont">{{.T.obj.winner}}</div>
|
|
|
- <div class="cont-recy" onclick="recoveryerr(this,'winner','')">纠错</div>
|
|
|
- <div style="display:none;"></div>
|
|
|
- </td>
|
|
|
- <td class="tab-type piddingfour">中标金额(元)</td>
|
|
|
- <td class="tab-cont">
|
|
|
- <div class="cont-cont" id="bidamount"></div>
|
|
|
- <div class="cont-recy" onclick="recoveryerr(this,'bidamount','')">纠错</div>
|
|
|
- <div style="display:none;"></div>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="explain" style="display:none;">*以上摘要信息由剑鱼标讯智能提取,如有错漏,欢迎纠错!</div>
|
|
|
-
|
|
|
- <div id="tab1">
|
|
|
- <div class="com-detail">
|
|
|
- {{Html (Regexp (Regexp (Regexp (Regexp (Regexp (Regexp .T.obj.detail "(\\n|\\\\n)\\s+" "\n") "(\\n|\\\\n)+" "<br/>") "<td>\\s*$" "") "<tr>\\s*$" "") "<tbody>\\s*$" "") "<table>\\s*$" "")}}
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- </div>
|
|
|
- {{end}}
|
|
|
- {{if .T.obj.projectinfo.attachments}}
|
|
|
- <div class="preb-enclosure hidden">
|
|
|
- <div class="preb-enno"><img src="{{Msg "seo" "cdn"}}/images/wx/enclosure.png"/>附件(1个)</div>
|
|
|
- </div>
|
|
|
- {{end}}
|
|
|
- <div class="pdf-div hidden"></div>
|
|
|
- <div class="original-text">
|
|
|
- <a href="{{.T.obj.url}}" target="_blank" class="com-original hidden">
|
|
|
- <img src="{{Msg "seo" "cdn"}}/images/pc_15.png">查看原文
|
|
|
- </a>
|
|
|
- <!--#onekey{padding:8px 40px;}-->
|
|
|
- <!--<div class="onekey" data-toggle="modal" data-target="#myModal">一键报告排版问题</div>-->
|
|
|
- <!--<div class="clicklike hidden">
|
|
|
- <div class="jyuseful">
|
|
|
- <img src="{{Msg "seo" "cdn"}}/images/praise_no.png"/>
|
|
|
- <span class="hidden">{{if .T.obj.i_upno}}{{.T.obj.i_upno}}{{else}}0{{end}}</span>
|
|
|
- </div>
|
|
|
- <div class="jyuseless hidden">
|
|
|
- <img src="{{Msg "seo" "cdn"}}/images/praise_yes.png"/>
|
|
|
- <span class="hidden">{{if .T.obj.i_downno}}{{.T.obj.i_downno}}{{else}}0{{end}}</span>
|
|
|
- </div>
|
|
|
- </div>-->
|
|
|
- </div>
|
|
|
- <center class="reward text-align">
|
|
|
- <br><div>打赏</div>
|
|
|
- </center>
|
|
|
- {{if .T.obj.urltop}}<a class="trs" style="color:white"> </a>{{end}}
|
|
|
- </div>
|
|
|
- <div onclick="adv_statistics(this)" adv_name="PC快照页-右部" class="adv-pccontent-right" id="B1" style="cursor:default;">
|
|
|
- <script>
|
|
|
- {{$s:=(Ad "jy-pccontent-right" -1)}}
|
|
|
- var ADList={{$s}};
|
|
|
- if(ADList){
|
|
|
- var random=Math.floor(Math.random()*ADList.length);
|
|
|
- var AD=ADList[random];
|
|
|
- var ADHtml = "";
|
|
|
- if(AD.s_pic){
|
|
|
- if(AD.s_link){
|
|
|
- ADHtml += "<a dataHref='"+AD.s_link+"' target='_blank'>";
|
|
|
- }
|
|
|
- ADHtml += "<img src='"+AD.s_pic+"'>";
|
|
|
- if(AD.s_link){
|
|
|
- ADHtml += "</a>";
|
|
|
- }
|
|
|
- }else {
|
|
|
- ADHtml += AD.s_script;
|
|
|
- }
|
|
|
- $("#B1").html(ADHtml);
|
|
|
- }
|
|
|
- </script>
|
|
|
- </div>
|
|
|
- <!--去掉一键报告排版问题-->
|
|
|
- <!--<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
|
|
- <div class="modal-dialog" style="width: 458px">
|
|
|
- <div class="modal-content" style="width: 458px;margin: auto;height: 300px;">
|
|
|
- <div class="modal-header">
|
|
|
- <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
|
- <h4 class="modal-title" id="myModalLabel" style="font-size:14px;">请描述排版存在的问题(非必填)</h4>
|
|
|
- </div>
|
|
|
- <div class="modal-body" style="height: 181px;">
|
|
|
- <textarea class="form-control noresize" id="onekey-value" rows="6" maxlength="200"></textarea>
|
|
|
- </div>
|
|
|
- <div class="modal-footer">
|
|
|
- <button type="button" class="btn" id="onekey">提交</button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>-->
|
|
|
- <div class="otherinfo">
|
|
|
- <!--同一个项目的其他招标信息-->
|
|
|
- {{if .T.projectOther}}
|
|
|
- <div class="com-title">
|
|
|
- {{if .T.obj.projectname}}{{.T.obj.projectname}}{{else if .T.obj.projectcode}}{{.T.obj.projectcode}}{{end}}<front>的其他信息</front>
|
|
|
- </div>
|
|
|
- <ul>
|
|
|
- {{range $k,$v := .T.projectOther}}
|
|
|
- <li>
|
|
|
- <div class="com-index">{{$v.index}}.</div>
|
|
|
- <div class="com-title"><a href="/article/content/{{$v._id}}.html{{if $v.industry}}?industry={{$v.industry}}{{end}}" target="_blank">{{$v.title}}</a></div>
|
|
|
- <div class="com-status">
|
|
|
- {{if $v.area}}<span class="com-area"><a href="/list/area/{{$v.areaadd}}.html">{{$v.area}}</a></span>{{end}}
|
|
|
- {{if $v.type}}<span class="com-type"><a href="/list/stype/{{$v.stypeadd}}.html">{{$v.type}}</a></span>{{end}}
|
|
|
- {{if $v.industry}}<span class="com-industry"><a href="/list/industry/{{$v.indadd}}.html">{{$v.industry}}</a></span>{{end}}
|
|
|
- {{if $v.publishtime}}<span class="com-time" data-value="{{$v.pbtime}}"><i class="glyphicon bofangjilu"></i>{{$v.publishtime}}</span>{{end}}
|
|
|
- </div>
|
|
|
- </li>
|
|
|
- {{end}}
|
|
|
- </ul>
|
|
|
- {{end}}
|
|
|
- <!--同一个业主最近的其他招标信息-->
|
|
|
- {{if .T.buyerOther}}
|
|
|
- <div class="com-title">{{.T.obj.buyer}}<front>的其他信息</front></div>
|
|
|
- <ul>
|
|
|
- {{range $k,$v := .T.buyerOther}}
|
|
|
- <li>
|
|
|
- <div class="com-index">{{$v.index}}.</div>
|
|
|
- <div class="com-title"><a href="/article/content/{{$v._id}}.html{{if $v.industry}}?industry={{$v.industry}}{{end}}" target="_blank">{{$v.title}}</a></div>
|
|
|
- <div class="com-status">
|
|
|
- {{if $v.area}}<span class="com-area"><a href="/list/area/{{$v.areaadd}}.html">{{$v.area}}</a></span>{{end}}
|
|
|
- {{if $v.type}}<span class="com-type"><a href="/list/stype/{{$v.stypeadd}}.html">{{$v.type}}</a></span>{{end}}
|
|
|
- {{if $v.industry}}<span class="com-industry"><a href="/list/industry/{{$v.indadd}}.html">{{$v.industry}}</a></span>{{end}}
|
|
|
- {{if $v.publishtime}}<span class="com-time" data-value="{{$v.pbtime}}"><i class="glyphicon bofangjilu"></i>{{$v.publishtime}}</span>{{end}}
|
|
|
- </div>
|
|
|
- </li>
|
|
|
- {{end}}
|
|
|
- </ul>
|
|
|
- {{end}}
|
|
|
- <!--同一中标人最近中标的其他信息-->
|
|
|
- {{if .T.winnerOther}}
|
|
|
- <div class="com-title">{{.T.obj.winner}}<front>的其他信息</front></div>
|
|
|
- <ul>
|
|
|
- {{range $k,$v := .T.winnerOther}}
|
|
|
- <li>
|
|
|
- <div class="com-index">{{$v.index}}.</div>
|
|
|
- <div class="com-title"><a href="/article/content/{{$v._id}}.html{{if $v.industry}}?industry={{$v.industry}}{{end}}" target="_blank">{{$v.title}}</a></div>
|
|
|
- <div class="com-status">
|
|
|
- {{if $v.area}}<span class="com-area"><a href="/list/area/{{$v.areaadd}}.html">{{$v.area}}</a></span>{{end}}
|
|
|
- {{if $v.type}}<span class="com-type"><a href="/list/stype/{{$v.stypeadd}}.html">{{$v.type}}</a></span>{{end}}
|
|
|
- {{if $v.industry}}<span class="com-industry"><a href="/list/industry/{{$v.indadd}}.html">{{$v.industry}}</a></span>{{end}}
|
|
|
- {{if $v.publishtime}}<span class="com-time" data-value="{{$v.pbtime}}"><i class="glyphicon bofangjilu"></i>{{$v.publishtime}}</span>{{end}}
|
|
|
- </div>
|
|
|
- </li>
|
|
|
- {{end}}
|
|
|
- </ul>
|
|
|
- {{end}}
|
|
|
- </div>
|
|
|
-</div>
|
|
|
-<div onclick="adv_statistics(this)" adv_name="PC快照页-底部" class="adv-pccontent-bottom" id="B2" style="cursor:default;">
|
|
|
- <script>
|
|
|
- {{$s:=(Ad "jy-pccontent-bottom" -1)}}
|
|
|
- var ADList={{$s}};
|
|
|
- if(ADList){
|
|
|
- var AD=ADList[random];
|
|
|
- var ADHtml = "";
|
|
|
- if(AD.s_pic){
|
|
|
- if(AD.s_link){
|
|
|
- ADHtml += "<a dataHref='"+AD.s_link+"' target='_blank'>";
|
|
|
- }
|
|
|
- ADHtml += "<img src='"+AD.s_pic+"'>";
|
|
|
- if(AD.s_link){
|
|
|
- ADHtml += "</a>";
|
|
|
- }
|
|
|
- }else {
|
|
|
- ADHtml += AD.s_script;
|
|
|
- }
|
|
|
- $("#B2").html(ADHtml);
|
|
|
- }
|
|
|
- </script>
|
|
|
-</div>
|
|
|
-</div>
|
|
|
-<div id="popup" class="pop-up poperr">
|
|
|
- <div class="pop-head" id="pop-head">
|
|
|
- <span>标出正确的项目名称</span>
|
|
|
- <img src="{{Msg "seo" "cdn"}}/images/t-close.png"/>
|
|
|
- </div>
|
|
|
- <div class="pop-cont">
|
|
|
- <div class="pop-text">
|
|
|
- <input id="pop-textarea" type="text" class="form-control"/>
|
|
|
- </div>
|
|
|
- <div class="pop-botton">提交</div>
|
|
|
- </div>
|
|
|
- <div class="rec-null" style="display:none;">
|
|
|
- <div class="null-head">提示</div>
|
|
|
- <div class="null-cont">确认为空?</div>
|
|
|
- <div class="null-feet">
|
|
|
- <span class="null-yes">是</span><span class="null-no">否</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-</div>
|
|
|
-
|
|
|
-{{include "/common/pcbottom.html"}}
|
|
|
-<!--支付二维码-->
|
|
|
-<div class="payQRcode">
|
|
|
- <div class="mark"></div>
|
|
|
- <div class="reward-dialog">
|
|
|
- <img src="{{Msg "seo" "cdn"}}/images/reward-close.png" class="reward-close">
|
|
|
- <front>请微信扫码</front><br>
|
|
|
- <img src="/jypay/weixin/reward/qr/{{.T.obj._id}}" class="qrcode">
|
|
|
- </div>
|
|
|
-</div>
|
|
|
-<!--<script type="text/javascript">
|
|
|
-var ucbs_source="pc_rec",ucbsId="{{.T.obj.ucbsId}}";
|
|
|
-</script>
|
|
|
-<script type="text/javascript" src="{{Msg "seo" "cdn"}}/js/ucbs.js?v={{Msg "seo" "version"}}"></script>-->
|
|
|
-<script src="{{Msg "seo" "cdn"}}/js/zxx.drag.1.0-min.js"></script>
|
|
|
-<script type="text/javascript">
|
|
|
-var oBox = document.getElementById("popup");
|
|
|
-var oBar = document.getElementById("pop-head");
|
|
|
-startDrag(oBar, oBox);
|
|
|
-var hstShowFlag = false;
|
|
|
-var entProListShowFlag = false;
|
|
|
-var titleCopyDec = "";
|
|
|
-var cHeight = window.screen.height;
|
|
|
-var cWidth = window.screen.width;
|
|
|
-var m1 = 0; // 滚动的值
|
|
|
-var m2 = 0; // 对比时间的值
|
|
|
-var m3 = 0; //滚动开始的值
|
|
|
-var timer = null;
|
|
|
-var scrollflag = true;
|
|
|
-var packageCon = {{.T.obj.package}}
|
|
|
-var fwtscode = {{.T.obj.fwtscode}}
|
|
|
-var fwtsname = {{.T.obj.fwtsname}}
|
|
|
-var s_winner = {{.T.obj.winner}};//
|
|
|
-var dataName = "";
|
|
|
-var dataCont = "";
|
|
|
-var dataCode = "";
|
|
|
-var originalCon = "";
|
|
|
-var originalTitle = "";
|
|
|
-var insertflog = true;
|
|
|
-var heightLight = 0
|
|
|
-var transmit = null;
|
|
|
-var projectName = {{.T.obj.projectname}};
|
|
|
-var title = {{.T.obj.title}}//统计标识
|
|
|
-var projectname = {{.T.obj.projectname}}//统计标识
|
|
|
-var reg ="";
|
|
|
-var titleCopy ="";
|
|
|
-var tyflag = false;//纠错是否是金额
|
|
|
-//
|
|
|
-function isWechat() {
|
|
|
- var ua = navigator.userAgent.toLowerCase();
|
|
|
- if(ua.match(/MicroMessenger/i)=="micromessenger"){
|
|
|
- return true;
|
|
|
- }else{
|
|
|
- return false;
|
|
|
- }
|
|
|
-}
|
|
|
-//
|
|
|
-function recoveryerr(ts,dcd,name){
|
|
|
- transmit = ts;
|
|
|
- if(name!=""){
|
|
|
- dataName=name
|
|
|
- }else{
|
|
|
- dataName = $(ts).parent("td").prev("td").text();
|
|
|
- }
|
|
|
- if(dcd.indexOf("price")>-1||dcd.indexOf("bidamount")>-1||dcd.indexOf("budget")>-1){
|
|
|
- tyflag = true;
|
|
|
- }else{
|
|
|
- tyflag = false;
|
|
|
- }
|
|
|
- dataCont = $(ts).prev().text();
|
|
|
- dataCode = dcd;
|
|
|
- var dtcontent = originalCon;
|
|
|
- $("#fphl").removeClass("fphl");
|
|
|
- $(".pop-head span").html("输入或选择正确的"+dataName+"并按“复制”");
|
|
|
- $("#popup").removeClass("pop-up");
|
|
|
- $("#pop-textarea").val("");
|
|
|
- $(".pop-botton").css({"background":"#2cbfca"});
|
|
|
- $(".tab1").addClass("active").siblings().removeClass("active");
|
|
|
- var newdataCont= dataCont.replace(/\s/g," ")
|
|
|
- reg = new RegExp(newdataCont+"|"+dataCont);
|
|
|
- if(dataCont==""||!reg.test(dtcontent)){
|
|
|
- $("html, body").stop(true,false).animate({
|
|
|
- scrollTop: $("#tab1").offset().top-40 }, {duration: 500,easing: "swing"});
|
|
|
- }else{
|
|
|
- clearup("R");
|
|
|
- companyAdd();
|
|
|
- $("html, body").stop(true,false).animate({
|
|
|
- scrollTop: $("#fphl").offset().top-cHeight/2+310>0?$("#fphl").offset().top-cHeight/2+310:0 }, {duration: 500,easing: "swing"});
|
|
|
- }
|
|
|
- $(".poperr").fadeIn();
|
|
|
- //防止拖拽的是不跳动
|
|
|
- $("#popup").css({"top":cHeight*0.6,"left":cWidth/2})
|
|
|
- params.left=cWidth/2;
|
|
|
- params.top=cHeight*0.6;
|
|
|
-}
|
|
|
-//
|
|
|
-function clearup(rp){
|
|
|
- var dtcontent = originalCon;
|
|
|
- var dttitlecopy = originalTitle;
|
|
|
- if(dataCode=="projectname"&&rp=="P"){
|
|
|
- projectName=$.trim($("#pop-textarea").val());
|
|
|
- }else if(rp=="R"){
|
|
|
- if(dataCode=="projectname"){
|
|
|
- projectName=dataCont;
|
|
|
- }
|
|
|
- dtcontent = dtcontent.replace(/fphl/g,"");
|
|
|
- dtcontent = dtcontent.replace(reg,"<span id='fphl' class='fphl' dataCode='"+dataCode+"'>"+dataCont+"</span>");
|
|
|
- //
|
|
|
- }
|
|
|
- if(projectName){
|
|
|
- dtcontent = keyWordHighlight(dtcontent,projectName,"<span class='keyword' style=\"border-bottom:1px solid #2cb7ca\">$1</span>");
|
|
|
- dttitlecopy = keyWordHighlight(dttitlecopy,projectName,"<span class='keyword' id='hst' style=\"border-bottom:1px solid #2cb7ca;cursor: pointer;\">$1</span>");
|
|
|
-
|
|
|
- }
|
|
|
- if(dataCode=="winner"&&rp=="P"){
|
|
|
- s_winner=$.trim($("#pop-textarea").val());
|
|
|
- }else if(dataCode=="winner"&&rp=="R"){
|
|
|
- s_winner=dataCont;
|
|
|
- }
|
|
|
- if(s_winner){
|
|
|
- dtcontent = keyWordHighlight(dtcontent,s_winner,"<span class='keyword winner' style=\"border-bottom:1px solid #2cb7ca\">$1</span>");
|
|
|
- }
|
|
|
- var wordsArray = getQueryString("kds").split(" ");
|
|
|
- if(wordsArray!=""&&wordsArray!="undefined"){
|
|
|
- for(var i=0;i<wordsArray.length;i++){
|
|
|
- dtcontent = keyWordHighlight(dtcontent,wordsArray[i],"<span class='jykeyword'>$1</span>");
|
|
|
- }
|
|
|
- }
|
|
|
- $(".com-detail").html(dtcontent);
|
|
|
- $("#com-title").html(dttitlecopy);
|
|
|
-}
|
|
|
-//
|
|
|
-if({{.T.obj.subtype}}=="中标"||{{.T.obj.subtype}}=="成交"||{{.T.obj.subtype}}=="合同"){
|
|
|
- var bidmt = {{.T.obj.bidamount}}
|
|
|
- $("#bidamount").text(bidmt)
|
|
|
- $("#bidInfoTitle").show();
|
|
|
- $("#bidInfoCont").show();
|
|
|
-}
|
|
|
-//
|
|
|
-$(window).scroll(function(event){
|
|
|
- if(cHeight <= 0){
|
|
|
- cHeight = 500;
|
|
|
- }
|
|
|
- var offsetTop = 0;
|
|
|
- var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
|
|
|
- var t1top = 0;
|
|
|
- if({{.T.obj.subtype}}!="拟建"&&{{.T.obj.subtype}}!="违规"){
|
|
|
- offsetTop = $(".recoveryfat").offset().top;
|
|
|
- t1top = $("#tab1").offset().top;
|
|
|
- }
|
|
|
- if(t1top<=(scrollTop+65)&&t1top!=0){
|
|
|
- if(scrollflag){
|
|
|
- $(".tab1").addClass("active").siblings().removeClass("active");
|
|
|
- }
|
|
|
- }else{
|
|
|
- if(scrollflag){
|
|
|
- $(".tab2").addClass("active").siblings().removeClass("active");
|
|
|
- }
|
|
|
- }
|
|
|
- if(scrollTop >= offsetTop&&offsetTop!=0){
|
|
|
- $(".recoveryhead").addClass("tabfix");
|
|
|
- }else{
|
|
|
- $(".recoveryhead").removeClass("tabfix");
|
|
|
- }
|
|
|
-
|
|
|
- //纠错高亮位置
|
|
|
- if($(".com-detail .fphl").length>0){
|
|
|
- heightLight = $(".com-detail .fphl").offset().top;
|
|
|
- }
|
|
|
- if(localStorage.getItem("ere-"+{{.T.obj._id}})==null){
|
|
|
- if(heightLight>(scrollTop+50)&&heightLight<(scrollTop+cHeight)){
|
|
|
- $(".pop-up").fadeIn();
|
|
|
- }else{
|
|
|
- $(".pop-up").fadeOut();
|
|
|
- }
|
|
|
- }
|
|
|
- clearTimeout(timer) // 每次滚动前 清除一次
|
|
|
- timer = setTimeout("pscp()", 200);
|
|
|
- m1 = document.documentElement.scrollTop || document.body.scrollTop;
|
|
|
-})
|
|
|
-//
|
|
|
-function pscp(){
|
|
|
- m2 = document.documentElement.scrollTop || document.body.scrollTop;
|
|
|
- if(m2 == m1){
|
|
|
- scrollflag = true;
|
|
|
- }
|
|
|
-}
|
|
|
-//
|
|
|
-function hmtab(Dirp){
|
|
|
- var tabTwoHeight = $("#tab2").offset().top;
|
|
|
- var scrollTop = document.body.scrollTop|| document.documentElement.scrollTop;
|
|
|
- var pth = 22;
|
|
|
- if(Dirp=="D"&&(scrollTop+pth)<tabTwoHeight&&tabTwoHeight<(scrollTop+cHeight-pth)){
|
|
|
- $("html, body").stop(true,false).animate({scrollTop: $("#tab2").offset().top-inithgt }, {duration: 500,easing: "swing"});
|
|
|
- }else if(Dirp=="U"&&(scrollTop+pth)<tabTwoHeight&&tabTwoHeight<(scrollTop+cHeight-pth)){
|
|
|
- $("html, body").stop(true,false).animate({scrollTop: $("#tab2").offset().top-cHeight }, {duration: 500,easing: "swing"});
|
|
|
- }
|
|
|
-}
|
|
|
-var inithgt = 60;//tab高度
|
|
|
-var reccont ="";
|
|
|
-var rhcontent = "";
|
|
|
-function subData(){
|
|
|
- var fieldName = dataCode;
|
|
|
- var originalcont = dataCont;
|
|
|
- $.ajax({
|
|
|
- type: "POST",
|
|
|
- url: "/front/recovery/info",
|
|
|
- data: {id:{{.T.obj._id}},fieldName:fieldName,fwtscode:fwtscode,reccont:reccont,originalcont:originalcont},
|
|
|
- dataType: "json",
|
|
|
- traditional: true,
|
|
|
- success: function(r){
|
|
|
- if(r.flag){
|
|
|
- localStorage.setItem("ere-"+{{.T.obj._id}},"T");
|
|
|
- $(".rec-null").hide();
|
|
|
- $(".poperr").hide();
|
|
|
- clearup("P");
|
|
|
- companyAdd();
|
|
|
- $("#pop-textarea").val("");
|
|
|
- $("#fphl").removeClass("fphl");
|
|
|
- $(transmit).prev("div").text(reccont);
|
|
|
- EasyAlert.show(r.msg,"",5000);
|
|
|
- }else{
|
|
|
- EasyAlert.show("您提交的信息有误,请确认后再提交!","",5000);
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
-}
|
|
|
-//
|
|
|
-function jumpTab(n){
|
|
|
- if(n==1){
|
|
|
- $(".tab1").addClass("active").siblings().removeClass("active");
|
|
|
- $(window).scrollTop($("#tab"+n).offset().top-inithgt);
|
|
|
- }else{
|
|
|
- $(".tab2").addClass("active").siblings().removeClass("active");
|
|
|
- $(window).scrollTop(0);
|
|
|
- }
|
|
|
- scrollflag = false;
|
|
|
- return false;
|
|
|
-}
|
|
|
-$(function(){
|
|
|
- if ($("#trwidth").find(".preb-exam").length>0){
|
|
|
- $("#exaapprove").show();
|
|
|
- }
|
|
|
- $(document).on("click",function(e) {
|
|
|
- if($(e.target).parents(".easyalert-mask").length == 0){
|
|
|
- $("#easyalert-mask").remove();
|
|
|
- }
|
|
|
- });
|
|
|
- $(".null-no").click(function(){
|
|
|
- $(".rec-null").hide();
|
|
|
- })
|
|
|
- $(".null-yes").click(function(){
|
|
|
- subData();
|
|
|
- })
|
|
|
- setTimeout(function(){
|
|
|
- $(".tab2").click();
|
|
|
- },700)
|
|
|
- //提交纠错数据
|
|
|
- $(".pop-botton").click(function(){
|
|
|
- var animathistory_ent = $(".animathistory_ent").html();
|
|
|
- $(".com-detail").find(".animathistory_ent").html("")
|
|
|
- rhcontent = $(".com-detail").text().replace(/[^\{\u4e00-\u9fa5]{1,90}{[^\}\u4e00-\u9fa5]+?}/g,"");
|
|
|
- $(".com-detail").find(".animathistory_ent").html(animathistory_ent)
|
|
|
- reccont = $.trim($("#pop-textarea").val());
|
|
|
- if(reccont!=""&&(tyflag||rhcontent.indexOf(reccont)>-1)){
|
|
|
- subData();
|
|
|
- }else if(reccont==""){
|
|
|
- $(".null-cont").text("确认 "+dataName+" 为空?");
|
|
|
- $(".rec-null").show();
|
|
|
- }
|
|
|
- })
|
|
|
- //
|
|
|
- document.addEventListener('copy', function(event){
|
|
|
- var userSelection;
|
|
|
- if (window.getSelection) { //
|
|
|
- userSelection = window.getSelection();
|
|
|
- } else if (document.selection) { //IE浏览器 考虑到Opera,应该放在后面
|
|
|
- userSelection = document.selection.createRange();
|
|
|
- }
|
|
|
- var usesetcont = $.trim(userSelection)
|
|
|
- if(usesetcont!=""){
|
|
|
- rhcontent = $(".com-detail").text().replace(/[^\{\u4e00-\u9fa5]{1,90}{[^\}\u4e00-\u9fa5]+?}/g,"");
|
|
|
- if(rhcontent.indexOf(usesetcont.replace(/\n/g,""))>-1){
|
|
|
- $("#pop-textarea").val(usesetcont.replace(/\n/g,""));
|
|
|
- $(".pop-botton").css({"background":"#2cbfca"})
|
|
|
- }else{
|
|
|
- $(".pop-botton").css({"background":"#d0d0d2"})
|
|
|
- }
|
|
|
- }else{
|
|
|
- $(".pop-botton").css({"background":"#2cbfca"})
|
|
|
- }
|
|
|
- });
|
|
|
- //纠错输入框
|
|
|
- $("#pop-textarea").on("input propertychange",function(){
|
|
|
- if($.trim($(this).val())!=""){
|
|
|
- var animathistory_ent = $(".animathistory_ent").html();
|
|
|
- $(".com-detail").find(".animathistory_ent").html("")
|
|
|
- rhcontent = $(".com-detail").text().replace(/[^\{\u4e00-\u9fa5]{1,90}{[^\}\u4e00-\u9fa5]+?}/g,"");
|
|
|
- $(".com-detail").find(".animathistory_ent").html(animathistory_ent)
|
|
|
- var ptval = $.trim($(this).val());
|
|
|
- if(tyflag){
|
|
|
- $(".pop-botton").css({"background":"#2cbfca"})
|
|
|
- }else if(rhcontent.indexOf(ptval)>-1){
|
|
|
- $(".pop-botton").css({"background":"#2cbfca"})
|
|
|
- }else{
|
|
|
- $(".pop-botton").css({"background":"#d0d0d2"})
|
|
|
- }
|
|
|
- }else{
|
|
|
- $(".pop-botton").css({"background":"#2cbfca"})
|
|
|
- }
|
|
|
- })
|
|
|
- if(packageCon==""){
|
|
|
- $("#tdbudget").text("项目预算(元)");
|
|
|
- $("#tdbudget").next("td").find("div").eq(0).text({{.T.obj.budget}})
|
|
|
- $("#tdbudget").next("td").find("div").eq(1).text("纠错")
|
|
|
- }
|
|
|
- if({{.T.obj.subtype}}=="单一"&&packageCon==""){
|
|
|
- $("#baselast").show();
|
|
|
- }
|
|
|
- $(".pop-head img").click(function(){
|
|
|
- $(".rec-null").hide();
|
|
|
- $(".poperr").hide();
|
|
|
- localStorage.setItem("ere-"+{{.T.obj._id}},"T")
|
|
|
- $("#fphl").removeClass("fphl");
|
|
|
- $(".pop-botton").css({"background":"#d0d0d2"})
|
|
|
- })
|
|
|
- var rerwinnerorder = {{.T.obj.winnerorder}}//中标候选人
|
|
|
- //分包信息
|
|
|
- if(packageCon!=""){
|
|
|
- var pkchtml = '';
|
|
|
- for(n in packageCon){
|
|
|
- var pckwinner = packageCon[n].winner;
|
|
|
- if(pckwinner==undefined){
|
|
|
- pckwinner=""
|
|
|
- }
|
|
|
- var pckorigin = packageCon[n].m_origin;
|
|
|
- if(pckorigin==undefined){
|
|
|
- pckorigin=packageCon[n].type+packageCon[n].origin
|
|
|
- }
|
|
|
- var pckbidamount = packageCon[n].bidamount;
|
|
|
- if(pckbidamount==undefined){
|
|
|
- pckbidamount=""
|
|
|
- }
|
|
|
- pkchtml+='<div class="baseInfo">分包</div>'
|
|
|
- +'<div class="baseTable"><table>'
|
|
|
- +'<tr id="left-three-gray">'
|
|
|
- if({{.T.obj.subtype}}=="招标"){
|
|
|
- pkchtml+='<td class="tab-type">分包/标段</td>'
|
|
|
- +'<td class="tab-cont">'
|
|
|
- +'<div class="cont-cont">'+pckorigin+'</div>'
|
|
|
- +'<div class="cont-recy" onclick="recoveryerr(this,\''+n+'-m_origin\',\'\')">纠错</div>'
|
|
|
- +'<div style="display:none;"></div>'
|
|
|
- +'</td>'
|
|
|
- pkchtml+='<td class="tab-type piddingfour">项目预算(元)</td>'
|
|
|
- pkchtml+='<td class="tab-cont">'
|
|
|
- +'<div class="cont-cont">'+pckbidamount+'</div>'
|
|
|
- +'<div class="cont-recy" onclick="recoveryerr(this,\''+n+'-bidamount\',\'\')">纠错</div>'
|
|
|
- +'<div style="display:none;"></div>'
|
|
|
- +'</td>'
|
|
|
- +'</tr>'
|
|
|
- }else{
|
|
|
- var winnername = "";
|
|
|
- var abountname = "";
|
|
|
- pkchtml+='<td class="cd-type">分包/标段</td>'
|
|
|
- if({{.T.obj.subtype}}=="单一"){
|
|
|
- pkchtml+='<td class="cd-type">拟定单一来源采购供应商</td>'
|
|
|
- winnername = "拟定单一来源采购供应商"
|
|
|
- }else{
|
|
|
- pkchtml+='<td class="cd-type">中标单位</td>'
|
|
|
- winnername = "中标单位"
|
|
|
- }
|
|
|
- if({{.T.obj.subtype}}=="单一"){
|
|
|
- pkchtml+='<td class="cd-type piddingfour">项目预算(元)</td>'
|
|
|
- abountname = "项目预算(元)";
|
|
|
- }else{
|
|
|
- pkchtml+='<td class="cd-type piddingfour">中标金额(元)</td>'
|
|
|
- abountname = "中标金额(元)";
|
|
|
- }
|
|
|
- pkchtml+='</tr>'
|
|
|
- pkchtml+='<tr id="left-three-gray">'
|
|
|
- +'<td class="cd-cont subpck">'
|
|
|
- +'<div class="cont-cont">'+pckorigin+'</div>'
|
|
|
- +'<div class="cont-recy" onclick="recoveryerr(this,\''+n+'-m_origin\',\'分包/标段\')">纠错</div>'
|
|
|
- +'<div style="display:none;"></div>'
|
|
|
- +'</td>'
|
|
|
- pkchtml+='<td class="cd-cont winpck">'
|
|
|
- +'<div class="cont-cont">'+pckwinner+'</div>'
|
|
|
- +'<div class="cont-recy" onclick="recoveryerr(this,\''+n+'-winner\',\''+winnername+'\')">纠错</div>'
|
|
|
- +'<div style="display:none;"></div>'
|
|
|
- +'</td>'
|
|
|
- pkchtml+='<td class="cd-cont amountpck">'
|
|
|
- +'<div class="cont-cont">'+pckbidamount+'</div>'
|
|
|
- +'<div class="cont-recy" onclick="recoveryerr(this,\''+n+'-bidamount\',\''+abountname+'\')">纠错</div>'
|
|
|
- +'<div style="display:none;"></div>'
|
|
|
- +'</td>'
|
|
|
- pkchtml+='</tr>'
|
|
|
- }
|
|
|
- pkchtml+='</table></div>'
|
|
|
- var pckwinnerorder = packageCon[n].winnerorder;
|
|
|
- if(pckwinnerorder!=undefined&&pckwinnerorder.length>0){
|
|
|
- pkchtml+='<div class="baseTable"><table>'+
|
|
|
- '<tr id="left-three-blue" style="border-top: 0px;">'+
|
|
|
- '<td class="cd-type" colspan="3" id="candidate">候选人</td>'+
|
|
|
- '</tr>'+
|
|
|
- '<tr id="left-three-blue">'+
|
|
|
- '<td class="cd-type">单位名称</td>'+
|
|
|
- '<td class="cd-type">报价(元)</td>'+
|
|
|
- '<td class="cd-type">名次</td>'+
|
|
|
- '</tr>'
|
|
|
- for(var i=0;i<pckwinnerorder.length;i++){
|
|
|
- if(i>0){
|
|
|
- //pkchtml+='<tr id="left-three-blue" class="cutoff"><td colspan="3"></td></tr>'
|
|
|
- }
|
|
|
- var pckentname = pckwinnerorder[i].entname;
|
|
|
- if(pckentname==undefined){
|
|
|
- pckentname=""
|
|
|
- }
|
|
|
- var pcksortstr = pckwinnerorder[i].sortstr;
|
|
|
- if(pcksortstr==undefined){
|
|
|
- pcksortstr=""
|
|
|
- }
|
|
|
- var pckprice = pckwinnerorder[i].price;
|
|
|
- if(pckprice==undefined){
|
|
|
- pckprice=""
|
|
|
- }
|
|
|
- pkchtml+='<tr id="left-three-blue">'+
|
|
|
- '<td class="cd-cont entnamecont">'+
|
|
|
- '<div class="cont-cont">'+pckentname+'</div>'+
|
|
|
- '<div class="cont-recy" onclick="recoveryerr(this,\''+n+'-'+i+'-entname\',\'单位名称\')">纠错</div>'+
|
|
|
- '<div style="display:none;"></div>'+
|
|
|
- '</td>'+
|
|
|
- '<td class="cd-cont pricecont">'+
|
|
|
- '<div class="cont-cont">'+pckprice+'</div>'+
|
|
|
- '<div class="cont-recy" onclick="recoveryerr(this,\''+n+'-'+i+'-price\',\'报价(元)\')">纠错</div>'+
|
|
|
- '<div style="display:none;"></div>'+
|
|
|
- '</td>'+
|
|
|
- '<td class="cd-cont sortstrcont">'+
|
|
|
- '<div class="cont-cont">'+pcksortstr+'</div>'+
|
|
|
- '<div class="cont-recy" onclick="recoveryerr(this,\''+n+'-'+i+'-sortstr\',\'名次\')">纠错</div>'+
|
|
|
- '<div style="display:none;"></div>'+
|
|
|
- '</td>'+
|
|
|
- '</tr>'
|
|
|
- }
|
|
|
- }
|
|
|
- pkchtml+='</table></div>'
|
|
|
- }
|
|
|
- $("#tab2").append(pkchtml)
|
|
|
- }else if(packageCon==""&&rerwinnerorder!=""){
|
|
|
- var pkchtml = '';
|
|
|
- pkchtml+='<div class="baseTable"><table>'+
|
|
|
- '<tr id="left-three-blue" style="border-top: 0px;">'+
|
|
|
- '<td class="cd-type" colspan="3" id="candidate">候选人</td>'+
|
|
|
- '</tr>'+
|
|
|
- '<tr id="left-three-blue">'+
|
|
|
- '<td class="cd-type">单位名称</td>'+
|
|
|
- '<td class="cd-type">报价(元)</td>'+
|
|
|
- '<td class="cd-type">名次</td>'+
|
|
|
- '</tr>'
|
|
|
- for(var i=0;i<rerwinnerorder.length;i++){
|
|
|
- if(i>0){
|
|
|
- //pkchtml+='<tr id="left-three-blue" class="cutoff"><td colspan="4"></td></tr>'
|
|
|
- }
|
|
|
- var pckentname = rerwinnerorder[i].entname;
|
|
|
- if(pckentname==undefined){
|
|
|
- pckentname=""
|
|
|
- }
|
|
|
- var pcksortstr = rerwinnerorder[i].sortstr;
|
|
|
- if(pcksortstr==undefined){
|
|
|
- pcksortstr=""
|
|
|
- }
|
|
|
- var pckprice = rerwinnerorder[i].price;
|
|
|
- if(pckprice==undefined){
|
|
|
- pckprice=""
|
|
|
- }
|
|
|
- pkchtml+='<tr id="left-three-blue">'+
|
|
|
- '<td class="cd-cont entnamecont">'+
|
|
|
- '<div class="cont-cont">'+pckentname+'</div>'+
|
|
|
- '<div class="cont-recy" onclick="recoveryerr(this,\'winnerorder'+i+'-entname\',\'单位名称\')">纠错</div>'+
|
|
|
- '<div style="display:none;"></div>'+
|
|
|
- '</td>'+
|
|
|
- '<td class="cd-cont pricecont">'+
|
|
|
- '<div class="cont-cont">'+pckprice+'</div>'+
|
|
|
- '<div class="cont-recy" onclick="recoveryerr(this,\'winnerorder'+i+'-price\',\'报价(元)\')">纠错</div>'+
|
|
|
- '<div style="display:none;"></div>'+
|
|
|
- '</td>'+
|
|
|
- '<td class="cd-cont sortstrcont">'+
|
|
|
- '<div class="cont-cont">'+pcksortstr+'</div>'+
|
|
|
- '<div class="cont-recy" onclick="recoveryerr(this,\'winnerorder'+i+'-sortstr\',\'名次\')">纠错</div>'+
|
|
|
- '<div style="display:none;"></div>'+
|
|
|
- '</td>'+
|
|
|
- '</tr>'
|
|
|
-
|
|
|
- }
|
|
|
- pkchtml+='</table></div>'
|
|
|
- $("#tab2").append(pkchtml)
|
|
|
- }
|
|
|
-
|
|
|
- //
|
|
|
- haslogin({{.T.logid}},{{.T.obj.projectname}},"D");
|
|
|
- JYLogin({{.T.logid}})
|
|
|
- if (_loop){
|
|
|
- //console.log("-",_loop)
|
|
|
- return;
|
|
|
- }
|
|
|
- _loop = true;
|
|
|
- var infoDetail = $(".com-detail").html();
|
|
|
- if(infoDetail){
|
|
|
- $(".com-detail").html(infoDetail.replace(/(<\/?br\/?>)+/ig,"<br>"));
|
|
|
- }
|
|
|
- $(".com-wxshare,.com-guanzhu").hover(function(){
|
|
|
- $(this).children(".scanqr").show();
|
|
|
- },function(){
|
|
|
- $(this).children(".scanqr").hide();
|
|
|
- });
|
|
|
- //重新计算最新信息的发布时间
|
|
|
- $(".otherinfo .com-time").each(function(){
|
|
|
- var thisValue = $(this).attr("data-value");
|
|
|
- if(thisValue != "" && thisValue != "0" && thisValue != 0){
|
|
|
- var diff = timeDiff(new Date(Number(thisValue+"000")));
|
|
|
- if(diff != null){
|
|
|
- $(this).text(diff);
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- $.post("/front/pcAjaxReq",{reqType:"rewardText"},function(r){
|
|
|
- $(".reward").prepend(r);
|
|
|
- },"text");
|
|
|
- $(".reward>div").click(function(){
|
|
|
- $(".payQRcode").show();
|
|
|
- });
|
|
|
- $(".payQRcode .reward-close").click(function(){
|
|
|
- $(".payQRcode").hide();
|
|
|
- });
|
|
|
- //
|
|
|
- var uli = 960;
|
|
|
- var tdno = $(".preb-list tr").eq(1);
|
|
|
- if(tdno.find("td").length != 0){
|
|
|
- var tdclass = "";
|
|
|
- for(var i=0;i<tdno.find("td").length;i++){
|
|
|
- var fsize = tdno.find("td").eq(i).find("div").attr("class")
|
|
|
- if(i==0){
|
|
|
- tdclass += fsize;
|
|
|
- }else{
|
|
|
- tdclass += ","+fsize;
|
|
|
- }
|
|
|
- }
|
|
|
- var sparr = tdclass.split(",");
|
|
|
- for(var m =0;m<sparr.length;m++ ){
|
|
|
- var average = uli/tdno.find("td").length ;
|
|
|
- $("#"+sparr[m]).parent("td").css("width",average);
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- var attaflag = false;
|
|
|
- {{if .T.obj.projectinfo.attachments}}
|
|
|
- var attachments = {{.T.obj.projectinfo.attachments}}
|
|
|
- var j = 0 ;
|
|
|
- for(var m in attachments){
|
|
|
- j += 1 ;
|
|
|
- var arr = new Array()
|
|
|
- arr = attachments[m]
|
|
|
- $(".preb-enno").html('<img src="{{Msg "seo" "cdn"}}/images/wx/enclosure.png"/>附件('+j+'个)')
|
|
|
- //for(var i in arr){
|
|
|
- if(arr["url"]&&arr["filename"]&&arr["filename"].slice(-3).toLowerCase()=="pdf"){
|
|
|
- attaflag = true;
|
|
|
- if(arr["url"].indexOf("fj1.jianyu360.com:9888")>-1){
|
|
|
- arr["url"]="/fj1"+arr["url"].substring(arr["url"].lastIndexOf("/"));
|
|
|
- }else if(arr["url"].indexOf("9889")>-1){
|
|
|
- arr["url"]="/fs1"+arr["url"].substring(arr["url"].lastIndexOf("/"));
|
|
|
- }else{
|
|
|
- arr["url"]="/fs"+arr["url"].substring(arr["url"].lastIndexOf("/"));
|
|
|
- }
|
|
|
- var pdfshow = '<div class="approve">'+arr["filename"]+'</div><div id="preb-pdf'+j+'"></div>';
|
|
|
- $(".pdf-div").html(pdfshow);
|
|
|
- var pdfhtml = "";
|
|
|
- pdfhtml = '<div class="preb-encont"><div style="float:left;"><img src="{{Msg "seo" "cdn"}}/images/wx/pdf.png"/></div><div style="float:left;line-height: 22px;">'+arr["filename"]+'<br><a style="color:blue;" href="'+arr["url"]+'">下载</a></div><div style="clear:both;"></div></div>';
|
|
|
- PDFObject.embed(arr["url"], "#preb-pdf"+j);
|
|
|
- }
|
|
|
- //}
|
|
|
- $(".preb-enclosure").append(pdfhtml)
|
|
|
- }
|
|
|
-
|
|
|
- //
|
|
|
- {{end}}
|
|
|
- if({{.T.obj.subtype}}=="拟建"||{{.T.obj.toptype}}=="拟建"||{{.T.obj.subtype}}=="违规"){
|
|
|
- if(attaflag){
|
|
|
- $(".preb-enclosure").removeClass("hidden");
|
|
|
- $(".pdf-div").removeClass("hidden");
|
|
|
- }
|
|
|
- }else{
|
|
|
- $(".recoveryfat").show();
|
|
|
- $("#tab2").show();
|
|
|
- $(".explain").show();
|
|
|
- }
|
|
|
- //
|
|
|
- {{if .T.obj.infoformat}}
|
|
|
- {{if eq .T.obj.infoformat 2}}
|
|
|
- $(".com-prebuilt").removeClass("hidden");
|
|
|
-
|
|
|
- {{else}}
|
|
|
- $(".com-original").removeClass("hidden");
|
|
|
- {{end}}
|
|
|
- {{else}}
|
|
|
- $(".com-original").removeClass("hidden");
|
|
|
- {{end}}
|
|
|
- $(window).scroll(function(){
|
|
|
- if($(this).scrollTop() > 0){
|
|
|
- $("#backTop").show();
|
|
|
- }else{
|
|
|
- $("#backTop").hide();
|
|
|
- }
|
|
|
- });
|
|
|
- var originalUrl = {{.T.obj.url}};
|
|
|
- originalUrl = originalUrl.replace("http://https://","https://");
|
|
|
- $(".com-original").attr("href",originalUrl);
|
|
|
- $(".com-original").click(function(event){
|
|
|
- event.preventDefault();
|
|
|
- var myhref = window.location.href;
|
|
|
- if (myhref.indexOf("mailprivate")>0||isWechat()){
|
|
|
- window.location.href = '/front/transfer?url='+encodeURIComponent($(this).attr("href"));
|
|
|
- }else{
|
|
|
- var url =document.location.protocol+"//"+ window.location.host+"/front/transfer?url="+encodeURIComponent($(this).attr("href"))
|
|
|
- window.open('javascript:window.name', '<script>location.replace("'+url+'")<\/script>');
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
- //var sds = {{.T.keywords}};
|
|
|
- var sds = getQueryString("kds");
|
|
|
- sds = sds.replace(/\++/g," ");
|
|
|
- var content = $(".com-detail").html();
|
|
|
- titleCopy = $("#com-title").text();
|
|
|
- titleCopyDec = $("#com-title").text();
|
|
|
- //
|
|
|
- var lsgim = localStorage.getItem("ere-"+{{.T.obj._id}});
|
|
|
- //if(lsgim!="T"&&fwtsname != "" && content.toLowerCase().indexOf(fwtsname.toLowerCase()) > -1){
|
|
|
- //content = content.replace(fwtsname,"<span id='fphl' class='fphl' dataCode='"+fwtscode+"'>"+fwtsname+"</span>");
|
|
|
- //}
|
|
|
- $(".com-detail").html(content)
|
|
|
- originalCon = content;
|
|
|
- originalTitle = titleCopy;
|
|
|
- //
|
|
|
- if(projectName){
|
|
|
- //if(projectname != "" && content.toLowerCase().indexOf(projectname.toLowerCase()) > -1){
|
|
|
- // content = keyWordHighlight(content,projectname,"<span class='keyword myfollow' style=\"border-bottom:1px solid #2cb7ca\">$1</span>");
|
|
|
- //}
|
|
|
- content = keyWordHighlight(content,projectName,"<span class='keyword' style=\"border-bottom:1px solid #2cb7ca\">$1</span>");
|
|
|
- //if(projectname != "" && titleCopy.toLowerCase().indexOf(projectname.toLowerCase()) > -1){
|
|
|
- // titleCopy = keyWordHighlight(titleCopy,projectname,"<span class='keyword' style=\"border-bottom:1px solid #2cb7ca\">$1</span>");
|
|
|
- //}
|
|
|
- titleCopy = keyWordHighlight(titleCopy,projectName,"<span class='keyword' id='hst' style=\"border-bottom:1px solid #2cb7ca;cursor: pointer;\">$1</span>");
|
|
|
- }else{
|
|
|
- $(".com-guanzhu .scanqr>span:last").html("随时掌握招标信息");
|
|
|
- $(".com-guanzhu>.scanqr>img").height(135);
|
|
|
- $(".com-guanzhu>font").text("关注剑鱼标讯");
|
|
|
- insertflog = false;
|
|
|
- }
|
|
|
- if(s_winner){
|
|
|
- content = keyWordHighlight(content,s_winner,"<span class='keyword winner' style=\"border-bottom:1px solid #2cb7ca\">$1</span>");
|
|
|
- }
|
|
|
- if(sds){
|
|
|
- if(!insertflog){
|
|
|
- $(".com-guanzhu .scanqr>span:last").html("随时掌握招标信息");
|
|
|
- $(".com-guanzhu>.scanqr>img").height(135);
|
|
|
- $(".com-guanzhu>font").text("关注剑鱼标讯");
|
|
|
- }
|
|
|
- var wordsArray = sds.split(" ");
|
|
|
- if(wordsArray!=""){
|
|
|
- for(var i=0;i<wordsArray.length;i++){
|
|
|
- content = keyWordHighlight(content,wordsArray[i],"<span class='jykeyword'>$1</span>");
|
|
|
- titleCopy = keyWordHighlight(titleCopy,wordsArray[i],"<span class='jykeyword'>$1</span>");
|
|
|
- //项目基本信息 关键词高亮
|
|
|
- $(".preb-cont").each(function(){
|
|
|
- var prebCont = $(this).html();
|
|
|
- prebCont = keyWordHighlight(prebCont,wordsArray[i],"<span class='jykeyword' style=\"border-bottom:1px solid #2cb7ca\">$1</span>");
|
|
|
- $(this).html(prebCont);
|
|
|
- })
|
|
|
- //审批事项公示信息高亮
|
|
|
- $(".preb-examcont").each(function(){
|
|
|
- var prebExamcont = $(this).text();
|
|
|
- prebExamcont = keyWordHighlight(prebExamcont,wordsArray[i],"<span class='jykeyword' style=\"border-bottom:1px solid #2cb7ca\">$1</span>");
|
|
|
- $(this).html(prebExamcont);
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- $(".com-detail").html(content);
|
|
|
-
|
|
|
- $("#com-title").html(titleCopy);
|
|
|
- companyAdd();
|
|
|
-})
|
|
|
-//
|
|
|
-function companyAdd(){
|
|
|
- if(s_winner){
|
|
|
- var winner_con = $(".winner");
|
|
|
- for(var i=0;i<winner_con.length;i++){
|
|
|
- var top = getElementTop(winner_con[i]) - $(".public-nav")[0].offsetHeight - 30 + 10 + winner_con[i].offsetHeight;
|
|
|
- var left = getElementLeft(winner_con[i])-getElementLeft($(".biddetail-content")[0])-110;
|
|
|
- if(left>670){
|
|
|
- left = 670;
|
|
|
- }else if(left<-70){
|
|
|
- left = -70;
|
|
|
- }
|
|
|
-// var top = winner_con[i].offsetTop + winner_con[i].offsetHeight + 10;
|
|
|
-// var left = winner_con[i].offsetLeft;
|
|
|
- $(winner_con[i]).attr("dataNum",(i+1));
|
|
|
- $(winner_con[i]).append('<div id="outhistory"><div class="animathistory_ent" style="display:none;top:'+top+'px;left:'+left+'px;">'
|
|
|
- +'<span class="hyone"></span>'
|
|
|
- +'<span class="hytwo"></span>'
|
|
|
- +'<div id="myhtlist" style="max-height: 500px;overflow-y: auto;">'
|
|
|
- +'<div class="hthead">'
|
|
|
- +'<span>企业最新信息</span><span onclick="htclosed_ent()"><img src="{{Msg "seo" "cdn"}}/images/wx/close.png"/></span>'
|
|
|
- +'</div>'
|
|
|
- +'<div class="htcontent">'
|
|
|
- +'</div>'
|
|
|
- +'<div class="htfoot">'
|
|
|
- +''
|
|
|
- +'</div>'
|
|
|
- +'</div>'
|
|
|
- +'</div></div>');
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- function getElementLeft(element){
|
|
|
- var actualLeft = element.offsetLeft;
|
|
|
- var current = element.offsetParent;
|
|
|
- while (current !== null){
|
|
|
- actualLeft += current.offsetLeft;
|
|
|
- current = current.offsetParent;
|
|
|
- }
|
|
|
- return actualLeft;
|
|
|
- }
|
|
|
- function getElementTop(element){
|
|
|
- var actualTop = element.offsetTop;
|
|
|
- var current = element.offsetParent;
|
|
|
- while (current !== null){
|
|
|
- actualTop += current.offsetTop;
|
|
|
- current = current.offsetParent;
|
|
|
- }
|
|
|
- return actualTop;
|
|
|
- }
|
|
|
- $(".winner").hover(function(){
|
|
|
- entProListShowFlag = true;
|
|
|
- var that = $(this);
|
|
|
- $(".animathistory_ent").each(function(){
|
|
|
- if($(this).parents(".winner").attr("dataNum") == that.attr("dataNum")){
|
|
|
- return true
|
|
|
- }
|
|
|
- $(this).fadeOut(1000);
|
|
|
- })
|
|
|
- $(this).find(".animathistory_ent").fadeIn(1000);
|
|
|
- },function(){
|
|
|
- entProListShowFlag = false;
|
|
|
- setTimeout(function(){
|
|
|
- if(entProListShowFlag){
|
|
|
- return;
|
|
|
- }
|
|
|
- $(".animathistory_ent").fadeOut(250);
|
|
|
- },250)
|
|
|
- })
|
|
|
- thishtlists_ent();
|
|
|
- //
|
|
|
- if(insertflog){
|
|
|
- var titleCopyNew = $("#hst");
|
|
|
- titleCopyNew.append('<div id="outhistory"><div class="animathistory" style="display:none;">'
|
|
|
- +'<span class="hyone"></span>'
|
|
|
- +'<span class="hytwo"></span>'
|
|
|
- +'<div id="myhtlist" style="max-height: 500px;overflow-y: auto;">'
|
|
|
- +'<div class="hthead">'
|
|
|
- +'<span>项目公告</span><span onclick="htclosed()"><img src="{{Msg "seo" "cdn"}}/images/wx/close.png"/></span>'
|
|
|
- +'</div>'
|
|
|
- +'<div class="htcontent">'
|
|
|
- +'</div>'
|
|
|
- +'<div class="htfoot">'
|
|
|
- +''
|
|
|
- +'</div>'
|
|
|
- +'</div>'
|
|
|
- +'</div></div>');
|
|
|
- }
|
|
|
- $("#hst").hover(function(){
|
|
|
- hstShowFlag = true;
|
|
|
- $(".animathistory").fadeIn(1000);
|
|
|
- },function(){
|
|
|
- hstShowFlag = false;
|
|
|
- setTimeout(function(){
|
|
|
- if(hstShowFlag){
|
|
|
- return;
|
|
|
- }
|
|
|
- $(".animathistory").fadeOut(250);
|
|
|
- },250)
|
|
|
- })
|
|
|
- thishtlists();
|
|
|
-}
|
|
|
-//
|
|
|
-var thishtlists_ent = function(){
|
|
|
- var _id = {{.T.obj._id}};
|
|
|
- //var s_winner = {{.T.obj.winner}};
|
|
|
- var _bidamount = {{.T.obj.bidamount}};
|
|
|
- var projectname = projectName;
|
|
|
- $.post("/front/pcEntAllNotice",{entname:s_winner},function(D){
|
|
|
- var data = D.data["res"];
|
|
|
- if(data && data.length > 0){
|
|
|
- for(var i = 0; i < data.length; i++){
|
|
|
- var id = data[i]["_id"];
|
|
|
- var noticetime = '';
|
|
|
- var type = '';
|
|
|
- var amountHtml = '';
|
|
|
- var listhtml = '';
|
|
|
- var typeStr = '';
|
|
|
- var title = data[i]["title"];
|
|
|
- var amount = data[i]["bidamount"];
|
|
|
-
|
|
|
- if(data[i]["publishtime"]){
|
|
|
- noticetime = new Date(Number(data[i]["publishtime"]+"000")).Format("MM-dd");
|
|
|
- }
|
|
|
- if(typeof(data[i]["subtype"]) != "undefined" && data[i]["subtype"] != "" && data[i]["subtype"] != null){
|
|
|
- type = data[i]["subtype"];
|
|
|
- typeStr = '<span class="type">'+type+'</span>';
|
|
|
- }else if(typeof(data[i]["toptype"]) != "undefined" && data[i]["toptype"] != "" && data[i]["toptype"] != null){
|
|
|
- type = data[i]["toptype"];
|
|
|
- typeStr = '<span class="type">'+type+'</span>';
|
|
|
- }else{
|
|
|
- typeStr = '<span class="typenull">'+type+'</span>';
|
|
|
- }
|
|
|
- if(amount && !isNaN(amount)){
|
|
|
- amount = parseInt(amount)/10000;
|
|
|
- amountHtml = '<span class="priceStyle">'+amount+'万元中标</span>';
|
|
|
- }
|
|
|
- if(title){
|
|
|
- title = keyWordHighlight(title,projectname,"<span style='color:#2cb7ca;'>$1</span>");
|
|
|
- }else{
|
|
|
- title = "";
|
|
|
- }
|
|
|
- var titleHtml = "";
|
|
|
- if(id){
|
|
|
- titleHtml = '<a target="_blank" href="/article/content/'+id+'.html" >'+title+'</a>';
|
|
|
- }else{
|
|
|
- titleHtml = '<a target="_blank" href="#" >'+title+'</a>';
|
|
|
- }
|
|
|
- listhtml = '<div class="htlist" style="padding-bottom: 30px;">'
|
|
|
- +'<div style="width: 80px;text-align: right;">'
|
|
|
- +'<span class="noticetime">'+noticetime+'</span>'
|
|
|
- +typeStr
|
|
|
- +'</div>'
|
|
|
- +'<div class="timeaxis">'
|
|
|
- +'<span></span>'
|
|
|
- +'</div>'
|
|
|
- +'<div>'
|
|
|
- +titleHtml
|
|
|
- +amountHtml
|
|
|
- +'</div>'
|
|
|
- +'</div>'
|
|
|
- $(".animathistory_ent .htcontent").append(listhtml);
|
|
|
- }
|
|
|
- }else{
|
|
|
- var hthtml = '<div class="htlist" style="padding-bottom: 30px;"><div style="width: 80px;text-align: right;">';
|
|
|
- if($("#statusbar .com-time").text()!=undefined&&$("#statusbar .com-time").text()!=""){
|
|
|
- hthtml += '<span class="noticetime">'+$("#statusbar .com-time").text()+'</span>';
|
|
|
- }else{
|
|
|
- hthtml += '<span class="noticetime"></span>';
|
|
|
- }
|
|
|
- if($("#statusbar .com-type").text()!=undefined&&$("#statusbar .com-type").text()!=""){
|
|
|
- hthtml += '<span class="type">'+$("#statusbar .com-type").text()+'</span>';
|
|
|
- }
|
|
|
- hthtml += '</div><div class="timeaxis"><span></span></div>';
|
|
|
- if(_id){
|
|
|
- hthtml += '<div><a target="_blank" href="/article/content/'+_id+'.html">';
|
|
|
- }else{
|
|
|
- hthtml += '<div><a target="_blank" href="#">';
|
|
|
- }
|
|
|
- if(titleCopyDec!=""){
|
|
|
- var listtitle = titleCopyDec;
|
|
|
- listtitle = keyWordHighlight(listtitle,projectname,"<span style='color:#2cb7ca;'>$1</span>");
|
|
|
- hthtml += listtitle;
|
|
|
- }
|
|
|
- hthtml +='</a>';
|
|
|
- if(_bidamount && !isNaN(_bidamount)){
|
|
|
- _bidamount = parseInt(_bidamount)/10000;
|
|
|
- hthtml += '<span class="priceStyle">'+_bidamount+'万元中标</span>';
|
|
|
- }
|
|
|
- hthtml +='</div></div>';
|
|
|
-
|
|
|
- $(".animathistory_ent .htcontent").append(hthtml);
|
|
|
- }
|
|
|
-
|
|
|
- $(".htlist").find("a").mouseover(function(){
|
|
|
- $(this).find("span").css("color","#fe7379");
|
|
|
- })
|
|
|
- $(".htlist").find("a").mouseout(function(){
|
|
|
- $(this).find("span").css("color","#2cb7ca");
|
|
|
- })
|
|
|
- });
|
|
|
-}
|
|
|
-//
|
|
|
-var thishtlists = function(){
|
|
|
- var _id = {{.T.obj._id}};
|
|
|
- var projectname = projectName;
|
|
|
- var projectcode = {{.T.obj.projectcode}};
|
|
|
- $.post("/front/pcAllNotice",{id:_id,projectname:projectname,projectcode:projectcode},function(D){
|
|
|
- var htdata = D.data["res"]
|
|
|
- if(htdata&&htdata.length>0){
|
|
|
- var htlist = D.data["res"];
|
|
|
- var hthtml = '';
|
|
|
- var myflag = true;
|
|
|
- for(var i in htlist){
|
|
|
- var listone = htlist[i]
|
|
|
- var httime = listone["l_publishtime"];
|
|
|
- var mytime = {{.T.obj.publishtime}};
|
|
|
- if(httime>mytime){
|
|
|
- hthtml += '<div class="htlist"><div style="width: 80px;text-align: right;">'
|
|
|
- if(htdiff!=""&&htdiff!=0){
|
|
|
- var htdiff = timeDiff(new Date(Number(httime+"000")));
|
|
|
- hthtml += '<span class="noticetime">'+htdiff+'</span>'
|
|
|
- }else{
|
|
|
- hthtml += '<span class="noticetime"></span>'
|
|
|
- }
|
|
|
- var httype = listone["s_subtype"]
|
|
|
- if(typeof(httype) == "undefined" || httype == null || httype == ""){
|
|
|
- httype = listone["s_toptype"]
|
|
|
- }
|
|
|
- if(typeof(httype) == "undefined" || httype == null || httype == ""){
|
|
|
- httype = listone["s_type"];
|
|
|
- if(httype == "bid"){
|
|
|
- httype = "中标";
|
|
|
- }else if(httype == "tender"){
|
|
|
- httype = "招标";
|
|
|
- }else{
|
|
|
- httype = "";
|
|
|
- }
|
|
|
- }
|
|
|
- if(httype!=""){
|
|
|
- hthtml += '<span class="type">'+httype+'</span>'
|
|
|
- }
|
|
|
- hthtml += '</div><div class="timeaxis"><span></span></div>'
|
|
|
- if(typeof(listone["s_eid"])!=""){
|
|
|
- hthtml += '<div><a target="_blank" href="/article/content/'+listone["s_eid"]+'.html">'
|
|
|
- }else{
|
|
|
- hthtml += '<div><a target="_blank" href="#">'
|
|
|
- }
|
|
|
- if(listone["s_title"]!=""){
|
|
|
- var listtitle = listone["s_title"];
|
|
|
- listtitle = keyWordHighlight(listtitle,projectname,"<span style='color:#2cb7ca;'>$1</span>");
|
|
|
- hthtml += listtitle
|
|
|
- }
|
|
|
- hthtml +='</a></div></div>'
|
|
|
- }else if(httime<=mytime){
|
|
|
- if(myflag){
|
|
|
- hthtml += '<div class="htlist"><div style="width: 80px;text-align: right;">'
|
|
|
- if($("#statusbar .com-time").text()!=undefined&&$("#statusbar .com-time").text()!=""){
|
|
|
- hthtml += '<span class="noticetime">'+$("#statusbar .com-time").text()+'</span>'
|
|
|
- }else{
|
|
|
- hthtml += '<span class="noticetime"></span>'
|
|
|
- }
|
|
|
- if($("#statusbar .com-type").text()!=undefined&&$("#statusbar .com-type").text()!=""){
|
|
|
- hthtml += '<span class="type">'+$("#statusbar .com-type").text()+'</span>'
|
|
|
- }
|
|
|
- hthtml += '</div><div class="timeaxis"><span></span></div>'
|
|
|
- if(_id){
|
|
|
- hthtml += '<div><a target="_blank" href="/article/content/'+_id+'.html">'
|
|
|
- }else{
|
|
|
- hthtml += '<div><a target="_blank" href="#">'
|
|
|
- }
|
|
|
- if(titleCopyDec!=""){
|
|
|
- var listtitle = titleCopyDec;
|
|
|
- listtitle = keyWordHighlight(listtitle,projectname,"<span style='color:#2cb7ca;'>$1</span>");
|
|
|
- hthtml += listtitle
|
|
|
- }
|
|
|
- hthtml +='</a></div></div>'
|
|
|
- myflag = false;
|
|
|
- }
|
|
|
- hthtml += '<div class="htlist"><div style="width: 80px;text-align: right;">'
|
|
|
- if(htdiff!=""&&httime!=0){
|
|
|
- var htdiff = timeDiff(new Date(Number(httime+"000")));
|
|
|
- hthtml += '<span class="noticetime">'+htdiff+'</span>'
|
|
|
- }else{
|
|
|
- hthtml += '<span class="noticetime"></span>'
|
|
|
- }
|
|
|
- var httype = listone["s_subtype"]
|
|
|
- if(typeof(httype) == "undefined" || httype == null || httype == ""){
|
|
|
- httype = listone["s_toptype"]
|
|
|
- }
|
|
|
- if(typeof(httype) == "undefined" || httype == null || httype == ""){
|
|
|
- httype = listone["s_type"];
|
|
|
- if(httype == "bid"){
|
|
|
- httype = "中标";
|
|
|
- }else if(httype == "tender"){
|
|
|
- httype = "招标";
|
|
|
- }else{
|
|
|
- httype = "";
|
|
|
- }
|
|
|
- }
|
|
|
- if(httype!=""){
|
|
|
- hthtml += '<span class="type">'+httype+'</span>'
|
|
|
- }
|
|
|
- hthtml += '</div><div class="timeaxis"><span></span></div>'
|
|
|
- if(typeof(listone["s_eid"])!=""){
|
|
|
- hthtml += '<div><a target="_blank" href="/article/content/'+listone["s_eid"]+'.html">'
|
|
|
- }else{
|
|
|
- hthtml += '<div><a target="_blank" href="#">'
|
|
|
- }
|
|
|
- if(listone["s_title"]!=""){
|
|
|
- var listtitle = listone["s_title"];
|
|
|
- listtitle = keyWordHighlight(listtitle,projectname,"<span style='color:#2cb7ca;'>$1</span>");
|
|
|
- hthtml += listtitle
|
|
|
- }
|
|
|
- hthtml +='</a></div></div>'
|
|
|
- }
|
|
|
- }
|
|
|
- if(myflag){
|
|
|
- hthtml += '<div class="htlist"><div style="width: 80px;text-align: right;">'
|
|
|
- if($("#statusbar .com-time").text()!=undefined&&$("#statusbar .com-time").text()!=""){
|
|
|
- hthtml += '<span class="noticetime">'+$("#statusbar .com-time").text()+'</span>'
|
|
|
- }else{
|
|
|
- hthtml += '<span class="noticetime"></span>'
|
|
|
- }
|
|
|
- if($("#statusbar .com-type").text()!=undefined&&$("#statusbar .com-type").text()!=""){
|
|
|
- hthtml += '<span class="type">'+$("#statusbar .com-type").text()+'</span>'
|
|
|
- }
|
|
|
- hthtml += '</div><div class="timeaxis"><span></span></div>'
|
|
|
- if(_id){
|
|
|
- hthtml += '<div><a target="_blank" href="/article/content/'+_id+'.html">'
|
|
|
- }else{
|
|
|
- hthtml += '<div><a target="_blank" href="#">'
|
|
|
- }
|
|
|
- if(titleCopyDec!=""){
|
|
|
- var listtitle = titleCopyDec;
|
|
|
- listtitle = keyWordHighlight(listtitle,projectname,"<span style='color:#2cb7ca;'>$1</span>");
|
|
|
- hthtml += listtitle
|
|
|
- }
|
|
|
- hthtml +='</a></div></div>'
|
|
|
- myflag = false;
|
|
|
- }
|
|
|
- $(".animathistory .htcontent").append(hthtml);
|
|
|
- }else{
|
|
|
- var hthtml = '<div class="htlist"><div style="width: 80px;text-align: right;">'
|
|
|
- if($("#statusbar .com-time").text()!=undefined&&$("#statusbar .com-time").text()!=""){
|
|
|
- hthtml += '<span class="noticetime">'+$("#statusbar .com-time").text()+'</span>'
|
|
|
- }else{
|
|
|
- hthtml += '<span class="noticetime"></span>'
|
|
|
- }
|
|
|
- if($("#statusbar .com-type").text()!=undefined&&$("#statusbar .com-type").text()!=""){
|
|
|
- hthtml += '<span class="type">'+$("#statusbar .com-type").text()+'</span>'
|
|
|
- }
|
|
|
- hthtml += '</div><div class="timeaxis"><span></span></div>'
|
|
|
- if(_id){
|
|
|
- hthtml += '<div><a target="_blank" href="/article/content/'+_id+'.html">'
|
|
|
- }else{
|
|
|
- hthtml += '<div><a target="_blank" href="#">'
|
|
|
- }
|
|
|
- if(titleCopyDec!=""){
|
|
|
- var listtitle = titleCopyDec;
|
|
|
- listtitle = keyWordHighlight(listtitle,projectname,"<span style='color:#2cb7ca;'>$1</span>");
|
|
|
- hthtml += listtitle
|
|
|
- }
|
|
|
- hthtml +='</a></div></div>'
|
|
|
-
|
|
|
- $(".animathistory .htcontent").append(hthtml);
|
|
|
- }
|
|
|
- $(".htlist").find("a").mouseover(function(){
|
|
|
- $(this).find("span").css("color","#fe7379");
|
|
|
- })
|
|
|
- $(".htlist").find("a").mouseout(function(){
|
|
|
- $(this).find("span").css("color","#2cb7ca");
|
|
|
- })
|
|
|
- });
|
|
|
-}
|
|
|
-var htclosed = function(){
|
|
|
- $(".animathistory").fadeOut(1000);
|
|
|
-}
|
|
|
-var htclosed_ent = function(){
|
|
|
- $(".animathistory_ent").fadeOut(1000);
|
|
|
-}
|
|
|
-var publishtime = {{.T.obj.publishtime}};
|
|
|
-var type = {{.T.obj.subtype}};
|
|
|
-var area = {{.T.obj.area}};
|
|
|
-//var industry = {{.T.obj.industry}};
|
|
|
-var industry = getQueryString("industry");
|
|
|
-var subscopeclass = {{.T.obj.s_subscopeclass}};
|
|
|
-var buyerclass ={{.T.obj.buyerclass}};
|
|
|
-
|
|
|
-if (area !="" && area != "A"){
|
|
|
- $(".com-statusbar").append('<span class="com-area"><a href="/list/area/'+{{.T.obj.areaadd}}+'.html">'+area+'</a></span>');
|
|
|
-}
|
|
|
-if(typeof(type) == "undefined" || type == null || type == ""){
|
|
|
- type = {{.T.obj.toptype}};
|
|
|
-}
|
|
|
-if(typeof(type) == "undefined" || type == null || type == ""){
|
|
|
- type = {{.T.obj.type}};
|
|
|
- if(type == "bid"){
|
|
|
- type = "中标";
|
|
|
- }else if(type == "tender"){
|
|
|
- type = "招标";
|
|
|
- }else{
|
|
|
- type = "";
|
|
|
- }
|
|
|
-}
|
|
|
-if(typeof(type) != "undefined" && type != null && type != ""){
|
|
|
- $(".com-statusbar").append('<span class="com-type"><a href="/list/stype/'+{{.T.obj.stypeadd}}+'.html">'+type+'</a></span>');
|
|
|
-}
|
|
|
-//
|
|
|
-if(industry && industry!="undefined"){
|
|
|
- $(".com-statusbar").append('<span class="com-industry"><a href="/list/industry/'+{{.T.obj.indadd}}+'.html">'+industry+'</a></span>');
|
|
|
-}else if(subscopeclass){
|
|
|
- var suclass = subscopeclass.split(",")[0];
|
|
|
- $(".com-statusbar").append('<span class="com-industry"><a href="/list/industry/'+{{.T.obj.indadd}}+'.html">'+suclass.split("_")[0]+'</a></span>');
|
|
|
-}
|
|
|
-//
|
|
|
-if ({{.T.isVip}}){
|
|
|
- if(buyerclass){
|
|
|
- $(".com-statusbar").append('<span class="com-buyerclass"><a>'+buyerclass+'</a></span>');
|
|
|
- }
|
|
|
-}
|
|
|
-//
|
|
|
-if(publishtime != ""){
|
|
|
- var diff = timeDiff(new Date(Number(publishtime+"000")));
|
|
|
- if(diff != null){
|
|
|
- $(".com-statusbar").append('<span class="com-time"><i class="glyphicon bofangjilu"></i>'+diff+'</span>');
|
|
|
- }
|
|
|
-}
|
|
|
-var upno = {{if .T.obj.i_upno}}{{.T.obj.i_upno}}{{else}}0{{end}};
|
|
|
-var downno = {{if .T.obj.i_downno}}{{.T.obj.i_downno}}{{else}}0{{end}};
|
|
|
-var cookieup = "";
|
|
|
-var cookiedown = "";
|
|
|
-var id = {{.T.obj._id}};
|
|
|
-var isReqing = false;
|
|
|
-cookiedown=$.cookie("down{{.T.obj._id}}");
|
|
|
-cookieup=$.cookie("up{{.T.obj._id}}");
|
|
|
-if ($.cookie("id{{.T.obj._id}}") != null && $.cookie("id{{.T.obj._id}}") == id){
|
|
|
- if(cookieup == "T"){
|
|
|
- $(".jyuseless").removeClass("hidden");
|
|
|
- $(".jyuseful").addClass("hidden");
|
|
|
- }else if(cookiedown == "T"){
|
|
|
- $(".jyuseful").removeClass("hidden");
|
|
|
- $(".jyuseless").addClass("hidden");
|
|
|
- }
|
|
|
-}
|
|
|
-$(".jyuseful").click(function(){
|
|
|
- upordown("up");
|
|
|
-});
|
|
|
-$(".jyuseless").click(function(){
|
|
|
- upordown("down");
|
|
|
-});
|
|
|
-//
|
|
|
-function upordown(type){
|
|
|
- if(isReqing){
|
|
|
- return;
|
|
|
- }
|
|
|
- var aos = 0;
|
|
|
- var aosup = 0;
|
|
|
- var aosdown = 0;
|
|
|
- cookiedown=$.cookie("down{{.T.obj._id}}");
|
|
|
- cookieup=$.cookie("up{{.T.obj._id}}");
|
|
|
- var praflag = false;
|
|
|
- if($.cookie("id{{.T.obj._id}}") != null && $.cookie("id{{.T.obj._id}}") == id){
|
|
|
- if(type == "up"){
|
|
|
- if(cookieup == "F"&& cookiedown == "T"){
|
|
|
- cookieup = "T";
|
|
|
- cookiedown = "F";
|
|
|
- upno = Number(upno)+1;
|
|
|
- $(".jyuseful span").html(upno);
|
|
|
- downno = Number(downno)-1;
|
|
|
- $(".jyuseless span").html(downno);
|
|
|
- aosup = 1;
|
|
|
- aosdown = -1;
|
|
|
- praflag = true;
|
|
|
- $(".jyuseless").removeClass("hidden");
|
|
|
- $(".jyuseful").addClass("hidden");
|
|
|
- }else if(cookieup == "T"){
|
|
|
- cookieup = "F";
|
|
|
- upno = Number(upno)-1;
|
|
|
- $(".jyuseful span").html(upno);
|
|
|
- aosup = -1;
|
|
|
- praflag = true;
|
|
|
- $(".jyuseless").addClass("hidden");
|
|
|
- $(".jyuseful").removeClass("hidden");
|
|
|
- }else if(cookieup == "F"&& cookiedown == "F"){
|
|
|
- cookieup = "T";
|
|
|
- upno = Number(upno)+1;
|
|
|
- $(".jyuseful span").html(upno);
|
|
|
- aosup = 1;
|
|
|
- praflag = true;
|
|
|
- $(".jyuseless").removeClass("hidden");
|
|
|
- $(".jyuseful").addClass("hidden");
|
|
|
- }
|
|
|
- }else if(type == "down"){
|
|
|
- if(cookieup == "T"&& cookiedown == "F"){
|
|
|
- cookiedown = "T";
|
|
|
- cookieup = "F";
|
|
|
- upno = Number(upno)-1;
|
|
|
- $(".jyuseful span").html(upno);
|
|
|
- downno = Number(downno)+1;
|
|
|
- $(".jyuseless span").html(downno);
|
|
|
- aosup = -1;
|
|
|
- aosdown = 1;
|
|
|
- praflag = true;
|
|
|
- $(".jyuseless").addClass("hidden");
|
|
|
- $(".jyuseful").removeClass("hidden");
|
|
|
- }else if(cookiedown == "T"){
|
|
|
- cookiedown = "F";
|
|
|
- downno = Number(downno)-1;
|
|
|
- $(".jyuseless span").html(downno);
|
|
|
- aosdown = -1;
|
|
|
- praflag = true;
|
|
|
- $(".jyuseful").addClass("hidden");
|
|
|
- $(".jyuseless").removeClass("hidden");
|
|
|
- }else if(cookieup == "F"&& cookiedown == "F"){
|
|
|
- cookiedown = "T";
|
|
|
- downno = Number(downno)+1;
|
|
|
- $(".jyuseless span").html(downno);
|
|
|
- aosdown = 1;
|
|
|
- praflag = true;
|
|
|
- $(".jyuseful").removeClass("hidden");
|
|
|
- $(".jyuseless").addClass("hidden");
|
|
|
- }
|
|
|
- }
|
|
|
- if(praflag){
|
|
|
- isReqing = true;
|
|
|
- $.ajax({
|
|
|
- type:'post',
|
|
|
- url:'/swordfish/praise',
|
|
|
- data:{type:type,aosup:aosup,aosdown:aosdown,id:{{.T.obj._id}}},
|
|
|
- cache:false,
|
|
|
- dataType:'json',
|
|
|
- success:function(data){
|
|
|
- if(data.flag == "T"){
|
|
|
- $.cookie("up{{.T.obj._id}}",'', { expires: -1 })
|
|
|
- $.cookie("down{{.T.obj._id}}",'', { expires: -1 })
|
|
|
- $.cookie("up{{.T.obj._id}}",cookieup,{expires:300});
|
|
|
- $.cookie("down{{.T.obj._id}}",cookiedown,{expires:300});
|
|
|
- praflag = false;
|
|
|
- }
|
|
|
- setTimeout(function(){
|
|
|
- isReqing = false;
|
|
|
- },500);
|
|
|
- },
|
|
|
- error: function(){
|
|
|
- isReqing = false;
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- }else{
|
|
|
- cookieup = "F";
|
|
|
- cookiedown = "F";
|
|
|
- if (type == "up"){
|
|
|
- cookieup = "T";
|
|
|
- upno = Number(upno)+1;
|
|
|
- $(".jyuseful span").html(upno);
|
|
|
- praflag = true;
|
|
|
- aosup = 1;
|
|
|
- $(".jyuseless").removeClass("hidden");
|
|
|
- $(".jyuseful").addClass("hidden");
|
|
|
- }else if (type == "down"){
|
|
|
- cookiedown = "T";
|
|
|
- downno = Number(downno)+1;
|
|
|
- $(".jyuseless span").html(downno);
|
|
|
- praflag = true;
|
|
|
- aosdown = 1;
|
|
|
- $(".jyuseless").addClass("hidden");
|
|
|
- $(".jyuseful").removeClass("hidden");
|
|
|
- }
|
|
|
- if(praflag){
|
|
|
- isReqing = true;
|
|
|
- $.ajax({
|
|
|
- type:'post',
|
|
|
- url:'/swordfish/praise',
|
|
|
- data:{type:type,aosup:aosup,aosdown:aosdown,id:{{.T.obj._id}}},
|
|
|
- cache:false,
|
|
|
- dataType:'json',
|
|
|
- success:function(data){
|
|
|
- if(data.flag == "T"){
|
|
|
- $.cookie("up{{.T.obj._id}}",cookieup,{expires:300});
|
|
|
- $.cookie("down{{.T.obj._id}}",cookiedown,{expires:300});
|
|
|
- $.cookie("id{{.T.obj._id}}",id,{expires:300});
|
|
|
- praflag = false;
|
|
|
- }
|
|
|
- setTimeout(function(){
|
|
|
- isReqing = false;
|
|
|
- },500);
|
|
|
- },
|
|
|
- error: function(){
|
|
|
- isReqing = false;
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
-function getQueryString(name){
|
|
|
- var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
|
|
|
- var r = window.location.search.substr(1).match(reg);
|
|
|
- if(r != null)
|
|
|
- return decodeURIComponent(r[2]);
|
|
|
- return "";
|
|
|
-}
|
|
|
-</script>
|
|
|
-<!--百度统计start-->
|
|
|
-{{include "/common/baiducc.html"}}
|
|
|
-<!--百度统计end-->
|
|
|
-</body>
|
|
|
+<html>
|
|
|
+
|
|
|
+<head>
|
|
|
+<title>{{.T.obj.title}} - 剑鱼标讯</title>
|
|
|
+<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
|
|
|
+<meta name="Keywords" content="{{.T.obj.keywords}}"/>
|
|
|
+<meta name="Description" content="{{.T.obj.description}}"/>
|
|
|
+<meta name="renderer" content="webkit">
|
|
|
+<meta content="telephone=no" name="format-detection"/>
|
|
|
+{{include "/common/pnc.html"}}
|
|
|
+<link href="{{Msg "seo" "cdn"}}/css/pc.css?v={{Msg "seo" "version"}}" rel="stylesheet">
|
|
|
+<script src="{{Msg "seo" "cdn"}}/js/jquery.cookie.js"></script>
|
|
|
+<script src="{{Msg "seo" "cdn"}}/js/pdfobject.min.js"></script>
|
|
|
+<link rel="stylesheet" type="text/css" href="{{Msg "seo" "cdn"}}/pccss/public-nav-1200.css?v={{Msg "seo" "version"}}" />
|
|
|
+<script type="text/javascript" src="{{Msg "seo" "cdn"}}/js/public-nav.js?v={{Msg "seo" "version"}}"></script>
|
|
|
+<style>
|
|
|
+body{
|
|
|
+ font-family: "Microsoft YaHei",sans-serif;
|
|
|
+}
|
|
|
+a{
|
|
|
+ color:#000;
|
|
|
+}
|
|
|
+.pdfobject-container { height: 800px;}
|
|
|
+.pdfobject { border: 1px solid #666; }
|
|
|
+.noresize {
|
|
|
+ resize: none;
|
|
|
+ border-radius: 4px;
|
|
|
+ background-color: #f5f5fb;
|
|
|
+}
|
|
|
+.modal-header {
|
|
|
+ border-bottom:0px;
|
|
|
+ padding: 30px 34px 0px;
|
|
|
+}
|
|
|
+.modal-footer {
|
|
|
+ border-top:0px;
|
|
|
+ padding: 0px 34px 20px;
|
|
|
+}
|
|
|
+.modal-body {
|
|
|
+ padding:18px 34px 25px;
|
|
|
+}
|
|
|
+.modal-header .close {
|
|
|
+ margin-top: -22px;
|
|
|
+ margin-right: -22px;
|
|
|
+}
|
|
|
+.htlist a:hover{
|
|
|
+ text-decoration: underline;
|
|
|
+ color: #fe7379;
|
|
|
+}
|
|
|
+.htlist .pcol:hover{
|
|
|
+ color: #fe7379;
|
|
|
+}
|
|
|
+.noticetime{
|
|
|
+ height:20px;
|
|
|
+}
|
|
|
+/*j-wx-code Start*/
|
|
|
+.j-wx-code{
|
|
|
+ width: 335px;
|
|
|
+ height: 355px;
|
|
|
+ background-color: #fff;
|
|
|
+ -webkit-border-radius: 6px;
|
|
|
+ -moz-border-radius: 6px;
|
|
|
+ border-radius: 6px;
|
|
|
+ position: relative;
|
|
|
+ /*margin: 100px auto;*/
|
|
|
+}
|
|
|
+.j-wx-code>.code-close{
|
|
|
+ width: 40px;
|
|
|
+ height: 40px;
|
|
|
+ position: absolute;
|
|
|
+ right: -20px;
|
|
|
+ top: -20px;
|
|
|
+ cursor: pointer;
|
|
|
+ -webkit-transition: all 1s;
|
|
|
+ -o-transition: all 1s;
|
|
|
+ -moz-transition: all 1s;
|
|
|
+ transition: all 1s;
|
|
|
+}
|
|
|
+.j-wx-code>.code-close:hover{
|
|
|
+ -webkit-transform: scale(1.2);
|
|
|
+ -moz-transform: scale(1.2);
|
|
|
+ -ms-transform: scale(1.2);
|
|
|
+ -o-transform: scale(1.2);
|
|
|
+ transform: scale(1.2);
|
|
|
+}
|
|
|
+.j-wx-code>.code-title{
|
|
|
+ height: 82px;
|
|
|
+ background:url(/images/j-wx-code-title.png) center center no-repeat;
|
|
|
+ -webkit-animation: moveYun 15s infinite linear both;
|
|
|
+ -moz-animation: moveYun 15s infinite linear both;
|
|
|
+ -o-animation: moveYun 15s infinite linear both;
|
|
|
+ animation: moveYun 15s infinite linear both;
|
|
|
+}
|
|
|
+.j-wx-code>.code-wxm{
|
|
|
+ text-align: center;
|
|
|
+ margin-bottom: -6px;
|
|
|
+ margin-top: -16px;
|
|
|
+
|
|
|
+}
|
|
|
+.j-wx-code>.code-wxm>img{
|
|
|
+ width: 200px;
|
|
|
+ height: 200px;
|
|
|
+ margin-top: -5px;
|
|
|
+}
|
|
|
+.j-wx-code>.code-text{
|
|
|
+ text-align: center;
|
|
|
+}
|
|
|
+.j-wx-code>.code-bottom{
|
|
|
+ width: 470px;
|
|
|
+ height: 211px;
|
|
|
+ position: absolute;
|
|
|
+ bottom: -113px;
|
|
|
+ left: -73px;
|
|
|
+ background: url(/images/j-wx-code-bottom.png) 0 0 no-repeat;
|
|
|
+}
|
|
|
+.j-wx-code>.code-bottom>img{
|
|
|
+ position: absolute;
|
|
|
+ left: 280px;
|
|
|
+ top: 88px;
|
|
|
+ -webkit-animation: codeWxMove 10s linear both;
|
|
|
+ -moz-animation: codeWxMove 10s linear both;
|
|
|
+ -o-animation: codeWxMove 10s linear both;
|
|
|
+ animation: codeWxMove 10s linear both;
|
|
|
+ -webkit-animation-fill-mode:forwards;
|
|
|
+ -moz-animation-fill-mode:forwards;
|
|
|
+ -o-animation-fill-mode:forwards;
|
|
|
+ animation-fill-mode:forwards
|
|
|
+}
|
|
|
+/*add*/
|
|
|
+.animathistory_ent{
|
|
|
+ position:absolute;
|
|
|
+ border: 1px solid #e0e0e0;
|
|
|
+ width: 600px;
|
|
|
+ /* min-height: 300px;
|
|
|
+ top: 90px;*/
|
|
|
+ top: 85px;
|
|
|
+ left: 170px;
|
|
|
+ background: #fff;
|
|
|
+ cursor: pointer;
|
|
|
+ border-radius: 4px;
|
|
|
+ -webkit-box-shadow: 0 0 20px rgba(0, 0, 0, .2);
|
|
|
+ -moz-box-shadow: 0 0 20px rgba(0, 0, 0, .2);
|
|
|
+ box-shadow: 0 0 20px rgba(0, 0, 0, .2);
|
|
|
+ z-index:999;
|
|
|
+}
|
|
|
+
|
|
|
+.priceStyle
|
|
|
+{
|
|
|
+ position: absolute;
|
|
|
+ bottom: 10px;
|
|
|
+ font-size: 14px;
|
|
|
+ right: 22px;
|
|
|
+ color: #686868;
|
|
|
+}
|
|
|
+.adv-pccontent-right{
|
|
|
+ position:absolute;
|
|
|
+ top:0px;
|
|
|
+ right:-5px;
|
|
|
+ width:200px;
|
|
|
+ height:200px;
|
|
|
+ text-align:center;
|
|
|
+ cursor: pointer;
|
|
|
+}
|
|
|
+.adv-pccontent-bottom{
|
|
|
+ width:1200px;
|
|
|
+ margin:0px auto;
|
|
|
+ height:80px;
|
|
|
+ margin-top: 20px;
|
|
|
+ text-align:left;
|
|
|
+ cursor: pointer;
|
|
|
+}
|
|
|
+.adv-pccontent-bottom img{
|
|
|
+ width:980px;
|
|
|
+ height:80px;
|
|
|
+}
|
|
|
+.adv-pccontent-right img{
|
|
|
+ width:200px;
|
|
|
+ height:200px;
|
|
|
+}
|
|
|
+.hytwo,.hyone{
|
|
|
+ left: 140px !important;
|
|
|
+}
|
|
|
+.public-nav .iner .logo img{
|
|
|
+ width: 130px;
|
|
|
+}
|
|
|
+.fr {
|
|
|
+ float: right;
|
|
|
+}
|
|
|
+.public-nav{
|
|
|
+ background: #fff;
|
|
|
+ border-bottom: 1px solid #e0e0e0;
|
|
|
+}
|
|
|
+.com-buyerclass{
|
|
|
+ background-color: #CFAD89;
|
|
|
+ border-radius: 3px;
|
|
|
+ color: #fff;
|
|
|
+ padding: 1px 6px 2px 6px;
|
|
|
+ margin-right: 5px;
|
|
|
+ font-size: 14px;
|
|
|
+}
|
|
|
+.com-buyerclass > a{
|
|
|
+ color: #fff;
|
|
|
+}
|
|
|
+.com-amount{
|
|
|
+ background-color: #FE8594;
|
|
|
+ border-radius: 3px;
|
|
|
+ color: #fff;
|
|
|
+ padding: 1px 6px 2px 6px;
|
|
|
+ margin-right: 5px;
|
|
|
+ font-size: 14px;
|
|
|
+}
|
|
|
+.com-amount > a{
|
|
|
+ color: #fff;
|
|
|
+}
|
|
|
+</style>
|
|
|
+</head>
|
|
|
+<body>
|
|
|
+{{include "/common/pchead.html"}}
|
|
|
+<script type="text/javascript">
|
|
|
+var _loop = false;
|
|
|
+var refer = document.referrer;
|
|
|
+if(refer.indexOf("NJ")>0){
|
|
|
+ $(".j-nav .j-nav-link:eq(3)").addClass("active");
|
|
|
+}else{
|
|
|
+ $(".j-nav .j-nav-link:eq(2)").addClass("active");
|
|
|
+}
|
|
|
+$(function(){
|
|
|
+ $(".logo img").attr("src","{{Msg "seo" "cdn"}}/images/swordfish/sf_01_new.png");
|
|
|
+ selcetIndexNav(8)
|
|
|
+})
|
|
|
+//
|
|
|
+function isWechat() {
|
|
|
+ var ua = navigator.userAgent.toLowerCase();
|
|
|
+ if(ua.match(/MicroMessenger/i)=="micromessenger"){
|
|
|
+ return true;
|
|
|
+ }else{
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+}
|
|
|
+</script>
|
|
|
+<div class="j-content">
|
|
|
+<div class="main-content" style="width: 1200px; position: relative; margin: 0 auto">
|
|
|
+ <div class="biddetail-content" style="width:980px; margin-left:0px;">
|
|
|
+ <div class="com-title" id="com-title">
|
|
|
+<!-- <span style="border-bottom:1px solid #2cb7ca">{{.T.obj.title}}</span>-->
|
|
|
+ {{.T.obj.title}}
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <div class="com-statusbar" id="statusbar">
|
|
|
+ <span class="com-guanzhu">
|
|
|
+ <img src="{{Msg "seo" "cdn"}}/images/guanzhu.png">
|
|
|
+ <font>关注项目</font>
|
|
|
+ <div class="scanqr">
|
|
|
+ <span>微信扫一扫</span>
|
|
|
+ <img class="img" id="wxCode" src="/front/share/{{.T.shareid}}" alt="微信订阅号">
|
|
|
+ <span>扫码关注此项目<br>实时查看最新公告</span>
|
|
|
+ </div>
|
|
|
+ </span>
|
|
|
+ <span class="com-wxshare">
|
|
|
+ <img src="{{Msg "seo" "cdn"}}/images/wxshare.png">微信分享
|
|
|
+ <div class="scanqr">
|
|
|
+ <span>微信扫一扫</span>
|
|
|
+ <img class="img" src="/biddetail/normal/qr/{{.T.obj._id}}" alt="微信分享">
|
|
|
+ </div>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <div class="cutline"></div>
|
|
|
+ <div class="com-prebuilt hidden">
|
|
|
+ <div class="preb-title">项目基本信息</div>
|
|
|
+ <div class="preb-basic">
|
|
|
+ <table>
|
|
|
+ <tr>
|
|
|
+ {{ if .T.obj.projectinfo.approvecode}}
|
|
|
+ <td class="preb-type">项目代码</td>
|
|
|
+ <td class="preb-cont" {{if .T.obj.projectname}}{{else}} style="width:850px;" colspan="3"{{end}}>{{.T.obj.projectinfo.approvecode}}</td>
|
|
|
+ {{end}}
|
|
|
+ {{if .T.obj.projectname}}
|
|
|
+ <td class="preb-type">项目名称</td>
|
|
|
+ <td class="preb-cont" {{if .T.obj.projectinfo.approvecode}}{{else}} style="width:850px;" colspan="3"{{end}}><span id="a" style="border-bottom:1px solid #2cb7ca">{{.T.obj.projectname}}</span></td>
|
|
|
+ {{end}}
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ {{if .T.obj.projectinfo.projecttype}}
|
|
|
+ <td class="preb-type">项目类型</td>
|
|
|
+ <td class="preb-cont" {{if .T.obj.projectinfo.buyer}}{{else}} style="width:850px;" colspan="3"{{end}}>{{.T.obj.projectinfo.projecttype}}</td>
|
|
|
+ {{end}}
|
|
|
+ {{if .T.obj.projectinfo.buyer}}
|
|
|
+ <td class="preb-type">项目法人单位</td>
|
|
|
+ <td class="preb-cont" {{if .T.obj.projectinfo.projecttype}}{{else}} style="width:850px;" colspan="3"{{end}}>{{.T.obj.projectinfo.buyer}}</td>
|
|
|
+ {{end}}
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ <div class="preb-title" id="exaapprove" style="display:none;">审批事项公示信息</div>
|
|
|
+ <div class="preb-list">
|
|
|
+ <table>
|
|
|
+ <tr id="trwidth">
|
|
|
+ {{if .T.obj.projectinfo.approvedept}}
|
|
|
+ <td class="preb-exam">审批部门</td>
|
|
|
+ {{end}}
|
|
|
+ {{if .T.obj.projectinfo.approvecontent}}
|
|
|
+ <td class="preb-exam">审批事项</td>
|
|
|
+ {{end}}
|
|
|
+ {{if .T.obj.projectinfo.approvestatus}}
|
|
|
+ <td class="preb-exam">审批结果</td>
|
|
|
+ {{end}}
|
|
|
+ {{if .T.obj.projectinfo.approvetime}}
|
|
|
+ {{if ne .T.obj.projectinfo.approvetime "0"}}
|
|
|
+ <td class="preb-exam">审批时间</td>
|
|
|
+ {{end}}
|
|
|
+ {{end}}
|
|
|
+ {{if .T.obj.projectinfo.approvenumber}}
|
|
|
+ <td class="preb-exam">审批文号</td>
|
|
|
+ {{end}}
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ {{if .T.obj.projectinfo.approvedept}}
|
|
|
+ <td class="preb-examcont">
|
|
|
+ <div class="spbm" id="spbm">{{.T.obj.projectinfo.approvedept}}</div>
|
|
|
+ </td>
|
|
|
+ {{end}}
|
|
|
+ {{if .T.obj.projectinfo.approvecontent}}
|
|
|
+ <td class="preb-examcont">
|
|
|
+ <div class="spsx" id="spsx">{{.T.obj.projectinfo.approvecontent}}</div>
|
|
|
+ </td>
|
|
|
+ {{end}}
|
|
|
+ {{if .T.obj.projectinfo.approvestatus}}
|
|
|
+ <td class="preb-examcont">
|
|
|
+ <div class="spjg" id="spjg">{{.T.obj.projectinfo.approvestatus}}</div>
|
|
|
+ </td>
|
|
|
+ {{end}}
|
|
|
+ {{if .T.obj.projectinfo.approvetime}}
|
|
|
+ {{if ne .T.obj.projectinfo.approvetime "0"}}
|
|
|
+ <td class="preb-examcont">
|
|
|
+ <div class="spsj" id="spsj">{{.T.obj.projectinfo.approvetime}}</div>
|
|
|
+ </td>
|
|
|
+ {{end}}
|
|
|
+ {{end}}
|
|
|
+ {{if .T.obj.projectinfo.approvenumber}}
|
|
|
+ <td class="preb-examcont">
|
|
|
+ <div class="spwh" id="spwh">{{.T.obj.projectinfo.approvenumber}}</div>
|
|
|
+ </td>
|
|
|
+ {{end}}
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ {{if .T.obj.detail}}
|
|
|
+ <div class="recoveryfat" style="display:none;">
|
|
|
+ <div class="recoveryhead">
|
|
|
+ <div class="tab2 active" onclick="jumpTab('2')">公告摘要</div>
|
|
|
+ <div class="tab1" onclick="jumpTab('1')">公告正文</div>
|
|
|
+ <div class="tab3"></div>
|
|
|
+ <div style="clear:none"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="tabfat">
|
|
|
+ <div id="tab2" style="display:none;">
|
|
|
+ <div class="baseInfo">基本信息</div>
|
|
|
+ <div class="baseTable">
|
|
|
+ <table>
|
|
|
+ <tr>
|
|
|
+ <td class="tab-type">省份</td>
|
|
|
+ <td class="tab-cont">{{if eq .T.obj.area "A"}}全国{{else}}{{.T.obj.area}}{{end}}</td>
|
|
|
+ <td class="tab-type">城市</td>
|
|
|
+ <td class="tab-cont">{{.T.obj.city}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="tab-type" style="padding-right: 0px;">招标代理机构</td>
|
|
|
+ <td class="tab-cont">
|
|
|
+ <div class="cont-cont">{{.T.obj.agency}}</div>
|
|
|
+ <div class="cont-recy" onclick="recoveryerr(this,'agency','')">纠错</div>
|
|
|
+ <div style="display:none;"></div>
|
|
|
+ </td>
|
|
|
+ <td class="tab-type">项目名称</td>
|
|
|
+ <td class="tab-cont">
|
|
|
+ <div class="cont-cont">{{.T.obj.projectname}}</div>
|
|
|
+ <div class="cont-recy" onclick="recoveryerr(this,'projectname','')">纠错</div>
|
|
|
+ <div style="display:none;"></div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="tab-type">采购单位</td>
|
|
|
+ <td class="tab-cont">
|
|
|
+ <div class="cont-cont">{{.T.obj.buyer}}</div>
|
|
|
+ <div class="cont-recy" onclick="recoveryerr(this,'buyer','')">纠错</div>
|
|
|
+ <div style="display:none;"></div>
|
|
|
+ </td>
|
|
|
+ <td class="tab-type" style="padding-right: 9px;">采购联系人</td>
|
|
|
+ <td class="tab-cont">
|
|
|
+ <div class="cont-cont">{{.T.obj.buyerperson}}</div>
|
|
|
+ <div class="cont-recy" onclick="recoveryerr(this,'buyerperson','')">纠错</div>
|
|
|
+ <div style="display:none;"></div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="tab-type">采购电话</td>
|
|
|
+ <td class="tab-cont">
|
|
|
+ <div class="cont-cont">{{.T.obj.buyertel}}</div>
|
|
|
+ <div class="cont-recy" onclick="recoveryerr(this,'buyertel','')">纠错</div>
|
|
|
+ <div style="display:none;"></div>
|
|
|
+ </td>
|
|
|
+ <td class="tab-type piddingfour" id="tdbudget"></td>
|
|
|
+ <td class="tab-cont">
|
|
|
+ <div class="cont-cont"></div>
|
|
|
+ <div class="cont-recy" onclick="recoveryerr(this,'budget','')"></div>
|
|
|
+ <div style="display:none;"></div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr id="baselast" style="display:none;">
|
|
|
+ <td class="tab-type">拟定单一来源采购供应商</td>
|
|
|
+ <td class="tab-cont">
|
|
|
+ <div class="cont-cont">{{.T.obj.winner}}</div>
|
|
|
+ <div class="cont-recy" onclick="recoveryerr(this,'winner','')">纠错</div>
|
|
|
+ <div style="display:none;"></div>
|
|
|
+ </td>
|
|
|
+ <td class="tab-type"></td>
|
|
|
+ <td class="tab-cont">
|
|
|
+ <div class="cont-cont"></div>
|
|
|
+ <div class="cont-recy"></div>
|
|
|
+ <div style="display:none;"></div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ <div class="baseInfo" id="bidInfoTitle" style="display:none;">中标信息</div>
|
|
|
+ <div class="baseTable" id="bidInfoCont" style="display:none;">
|
|
|
+ <table>
|
|
|
+ <tr>
|
|
|
+ <td class="tab-type">中标单位</td>
|
|
|
+ <td class="tab-cont">
|
|
|
+ <div class="cont-cont">{{.T.obj.winner}}</div>
|
|
|
+ <div class="cont-recy" onclick="recoveryerr(this,'winner','')">纠错</div>
|
|
|
+ <div style="display:none;"></div>
|
|
|
+ </td>
|
|
|
+ <td class="tab-type piddingfour">中标金额(元)</td>
|
|
|
+ <td class="tab-cont">
|
|
|
+ <div class="cont-cont" id="bidamount"></div>
|
|
|
+ <div class="cont-recy" onclick="recoveryerr(this,'bidamount','')">纠错</div>
|
|
|
+ <div style="display:none;"></div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="explain" style="display:none;">*以上摘要信息由剑鱼标讯智能提取,如有错漏,欢迎纠错!</div>
|
|
|
+
|
|
|
+ <div id="tab1">
|
|
|
+ <div class="com-detail">
|
|
|
+ {{Html (Regexp (Regexp (Regexp (Regexp (Regexp (Regexp .T.obj.detail "(\\n|\\\\n)\\s+" "\n") "(\\n|\\\\n)+" "<br/>") "<td>\\s*$" "") "<tr>\\s*$" "") "<tbody>\\s*$" "") "<table>\\s*$" "")}}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ {{end}}
|
|
|
+ {{if .T.obj.projectinfo.attachments}}
|
|
|
+ <div class="preb-enclosure hidden">
|
|
|
+ <div class="preb-enno"><img src="{{Msg "seo" "cdn"}}/images/wx/enclosure.png"/>附件(1个)</div>
|
|
|
+ </div>
|
|
|
+ {{end}}
|
|
|
+ <div class="pdf-div hidden"></div>
|
|
|
+ <div class="original-text">
|
|
|
+ <a href="{{.T.obj.url}}" target="_blank" class="com-original hidden">
|
|
|
+ <img src="{{Msg "seo" "cdn"}}/images/pc_15.png">查看原文
|
|
|
+ </a>
|
|
|
+ <!--#onekey{padding:8px 40px;}-->
|
|
|
+ <!--<div class="onekey" data-toggle="modal" data-target="#myModal">一键报告排版问题</div>-->
|
|
|
+ <!--<div class="clicklike hidden">
|
|
|
+ <div class="jyuseful">
|
|
|
+ <img src="{{Msg "seo" "cdn"}}/images/praise_no.png"/>
|
|
|
+ <span class="hidden">{{if .T.obj.i_upno}}{{.T.obj.i_upno}}{{else}}0{{end}}</span>
|
|
|
+ </div>
|
|
|
+ <div class="jyuseless hidden">
|
|
|
+ <img src="{{Msg "seo" "cdn"}}/images/praise_yes.png"/>
|
|
|
+ <span class="hidden">{{if .T.obj.i_downno}}{{.T.obj.i_downno}}{{else}}0{{end}}</span>
|
|
|
+ </div>
|
|
|
+ </div>-->
|
|
|
+ </div>
|
|
|
+ <center class="reward text-align">
|
|
|
+ <br><div>打赏</div>
|
|
|
+ </center>
|
|
|
+ {{if .T.obj.urltop}}<a class="trs" style="color:white"> </a>{{end}}
|
|
|
+ </div>
|
|
|
+ <div onclick="adv_statistics(this)" adv_name="PC快照页-右部" class="adv-pccontent-right" id="B1" style="cursor:default;">
|
|
|
+ <script>
|
|
|
+ {{$s:=(Ad "jy-pccontent-right" -1)}}
|
|
|
+ var ADList={{$s}};
|
|
|
+ if(ADList){
|
|
|
+ var random=Math.floor(Math.random()*ADList.length);
|
|
|
+ var AD=ADList[random];
|
|
|
+ var ADHtml = "";
|
|
|
+ if(AD.s_pic){
|
|
|
+ if(AD.s_link){
|
|
|
+ ADHtml += "<a dataHref='"+AD.s_link+"' target='_blank'>";
|
|
|
+ }
|
|
|
+ ADHtml += "<img src='"+AD.s_pic+"'>";
|
|
|
+ if(AD.s_link){
|
|
|
+ ADHtml += "</a>";
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ ADHtml += AD.s_script;
|
|
|
+ }
|
|
|
+ $("#B1").html(ADHtml);
|
|
|
+ }
|
|
|
+ </script>
|
|
|
+ </div>
|
|
|
+ <!--去掉一键报告排版问题-->
|
|
|
+ <!--<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
|
|
+ <div class="modal-dialog" style="width: 458px">
|
|
|
+ <div class="modal-content" style="width: 458px;margin: auto;height: 300px;">
|
|
|
+ <div class="modal-header">
|
|
|
+ <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
|
+ <h4 class="modal-title" id="myModalLabel" style="font-size:14px;">请描述排版存在的问题(非必填)</h4>
|
|
|
+ </div>
|
|
|
+ <div class="modal-body" style="height: 181px;">
|
|
|
+ <textarea class="form-control noresize" id="onekey-value" rows="6" maxlength="200"></textarea>
|
|
|
+ </div>
|
|
|
+ <div class="modal-footer">
|
|
|
+ <button type="button" class="btn" id="onekey">提交</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>-->
|
|
|
+ <div class="otherinfo">
|
|
|
+ <!--同一个项目的其他招标信息-->
|
|
|
+ {{if .T.projectOther}}
|
|
|
+ <div class="com-title">
|
|
|
+ {{if .T.obj.projectname}}{{.T.obj.projectname}}{{else if .T.obj.projectcode}}{{.T.obj.projectcode}}{{end}}<front>的其他信息</front>
|
|
|
+ </div>
|
|
|
+ <ul>
|
|
|
+ {{range $k,$v := .T.projectOther}}
|
|
|
+ <li>
|
|
|
+ <div class="com-index">{{$v.index}}.</div>
|
|
|
+ <div class="com-title"><a href="/article/content/{{$v._id}}.html{{if $v.industry}}?industry={{$v.industry}}{{end}}" target="_blank">{{$v.title}}</a></div>
|
|
|
+ <div class="com-status">
|
|
|
+ {{if $v.area}}<span class="com-area"><a href="/list/area/{{$v.areaadd}}.html">{{$v.area}}</a></span>{{end}}
|
|
|
+ {{if $v.type}}<span class="com-type"><a href="/list/stype/{{$v.stypeadd}}.html">{{$v.type}}</a></span>{{end}}
|
|
|
+ {{if $v.industry}}<span class="com-industry"><a href="/list/industry/{{$v.indadd}}.html">{{$v.industry}}</a></span>{{end}}
|
|
|
+ {{if $v.publishtime}}<span class="com-time" data-value="{{$v.pbtime}}"><i class="glyphicon bofangjilu"></i>{{$v.publishtime}}</span>{{end}}
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
+ {{end}}
|
|
|
+ </ul>
|
|
|
+ {{end}}
|
|
|
+ <!--同一个业主最近的其他招标信息-->
|
|
|
+ {{if .T.buyerOther}}
|
|
|
+ <div class="com-title">{{.T.obj.buyer}}<front>的其他信息</front></div>
|
|
|
+ <ul>
|
|
|
+ {{range $k,$v := .T.buyerOther}}
|
|
|
+ <li>
|
|
|
+ <div class="com-index">{{$v.index}}.</div>
|
|
|
+ <div class="com-title"><a href="/article/content/{{$v._id}}.html{{if $v.industry}}?industry={{$v.industry}}{{end}}" target="_blank">{{$v.title}}</a></div>
|
|
|
+ <div class="com-status">
|
|
|
+ {{if $v.area}}<span class="com-area"><a href="/list/area/{{$v.areaadd}}.html">{{$v.area}}</a></span>{{end}}
|
|
|
+ {{if $v.type}}<span class="com-type"><a href="/list/stype/{{$v.stypeadd}}.html">{{$v.type}}</a></span>{{end}}
|
|
|
+ {{if $v.industry}}<span class="com-industry"><a href="/list/industry/{{$v.indadd}}.html">{{$v.industry}}</a></span>{{end}}
|
|
|
+ {{if $v.publishtime}}<span class="com-time" data-value="{{$v.pbtime}}"><i class="glyphicon bofangjilu"></i>{{$v.publishtime}}</span>{{end}}
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
+ {{end}}
|
|
|
+ </ul>
|
|
|
+ {{end}}
|
|
|
+ <!--同一中标人最近中标的其他信息-->
|
|
|
+ {{if .T.winnerOther}}
|
|
|
+ <div class="com-title">{{.T.obj.winner}}<front>的其他信息</front></div>
|
|
|
+ <ul>
|
|
|
+ {{range $k,$v := .T.winnerOther}}
|
|
|
+ <li>
|
|
|
+ <div class="com-index">{{$v.index}}.</div>
|
|
|
+ <div class="com-title"><a href="/article/content/{{$v._id}}.html{{if $v.industry}}?industry={{$v.industry}}{{end}}" target="_blank">{{$v.title}}</a></div>
|
|
|
+ <div class="com-status">
|
|
|
+ {{if $v.area}}<span class="com-area"><a href="/list/area/{{$v.areaadd}}.html">{{$v.area}}</a></span>{{end}}
|
|
|
+ {{if $v.type}}<span class="com-type"><a href="/list/stype/{{$v.stypeadd}}.html">{{$v.type}}</a></span>{{end}}
|
|
|
+ {{if $v.industry}}<span class="com-industry"><a href="/list/industry/{{$v.indadd}}.html">{{$v.industry}}</a></span>{{end}}
|
|
|
+ {{if $v.publishtime}}<span class="com-time" data-value="{{$v.pbtime}}"><i class="glyphicon bofangjilu"></i>{{$v.publishtime}}</span>{{end}}
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
+ {{end}}
|
|
|
+ </ul>
|
|
|
+ {{end}}
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+<div onclick="adv_statistics(this)" adv_name="PC快照页-底部" class="adv-pccontent-bottom" id="B2" style="cursor:default;">
|
|
|
+ <script>
|
|
|
+ {{$s:=(Ad "jy-pccontent-bottom" -1)}}
|
|
|
+ var ADList={{$s}};
|
|
|
+ if(ADList){
|
|
|
+ var AD=ADList[random];
|
|
|
+ var ADHtml = "";
|
|
|
+ if(AD.s_pic){
|
|
|
+ if(AD.s_link){
|
|
|
+ ADHtml += "<a dataHref='"+AD.s_link+"' target='_blank'>";
|
|
|
+ }
|
|
|
+ ADHtml += "<img src='"+AD.s_pic+"'>";
|
|
|
+ if(AD.s_link){
|
|
|
+ ADHtml += "</a>";
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ ADHtml += AD.s_script;
|
|
|
+ }
|
|
|
+ $("#B2").html(ADHtml);
|
|
|
+ }
|
|
|
+ </script>
|
|
|
+</div>
|
|
|
+</div>
|
|
|
+<div id="popup" class="pop-up poperr">
|
|
|
+ <div class="pop-head" id="pop-head">
|
|
|
+ <span>标出正确的项目名称</span>
|
|
|
+ <img src="{{Msg "seo" "cdn"}}/images/t-close.png"/>
|
|
|
+ </div>
|
|
|
+ <div class="pop-cont">
|
|
|
+ <div class="pop-text">
|
|
|
+ <input id="pop-textarea" type="text" class="form-control"/>
|
|
|
+ </div>
|
|
|
+ <div class="pop-botton">提交</div>
|
|
|
+ </div>
|
|
|
+ <div class="rec-null" style="display:none;">
|
|
|
+ <div class="null-head">提示</div>
|
|
|
+ <div class="null-cont">确认为空?</div>
|
|
|
+ <div class="null-feet">
|
|
|
+ <span class="null-yes">是</span><span class="null-no">否</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+
|
|
|
+{{include "/common/pcbottom.html"}}
|
|
|
+<!--支付二维码-->
|
|
|
+<div class="payQRcode">
|
|
|
+ <div class="mark"></div>
|
|
|
+ <div class="reward-dialog">
|
|
|
+ <img src="{{Msg "seo" "cdn"}}/images/reward-close.png" class="reward-close">
|
|
|
+ <front>请微信扫码</front><br>
|
|
|
+ <img src="/jypay/weixin/reward/qr/{{.T.obj._id}}" class="qrcode">
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+<!--<script type="text/javascript">
|
|
|
+var ucbs_source="pc_rec",ucbsId="{{.T.obj.ucbsId}}";
|
|
|
+</script>
|
|
|
+<script type="text/javascript" src="{{Msg "seo" "cdn"}}/js/ucbs.js?v={{Msg "seo" "version"}}"></script>-->
|
|
|
+<script src="{{Msg "seo" "cdn"}}/js/zxx.drag.1.0-min.js"></script>
|
|
|
+<script type="text/javascript">
|
|
|
+var oBox = document.getElementById("popup");
|
|
|
+var oBar = document.getElementById("pop-head");
|
|
|
+startDrag(oBar, oBox);
|
|
|
+var hstShowFlag = false;
|
|
|
+var entProListShowFlag = false;
|
|
|
+var titleCopyDec = "";
|
|
|
+var cHeight = window.screen.height;
|
|
|
+var cWidth = window.screen.width;
|
|
|
+var m1 = 0; // 滚动的值
|
|
|
+var m2 = 0; // 对比时间的值
|
|
|
+var m3 = 0; //滚动开始的值
|
|
|
+var timer = null;
|
|
|
+var scrollflag = true;
|
|
|
+var packageCon = {{.T.obj.package}}
|
|
|
+var fwtscode = {{.T.obj.fwtscode}}
|
|
|
+var fwtsname = {{.T.obj.fwtsname}}
|
|
|
+var s_winner = {{.T.obj.winner}};//
|
|
|
+var dataName = "";
|
|
|
+var dataCont = "";
|
|
|
+var dataCode = "";
|
|
|
+var originalCon = "";
|
|
|
+var originalTitle = "";
|
|
|
+var insertflog = true;
|
|
|
+var heightLight = 0
|
|
|
+var transmit = null;
|
|
|
+var projectName = {{.T.obj.projectname}};
|
|
|
+var title = {{.T.obj.title}}//统计标识
|
|
|
+var projectname = {{.T.obj.projectname}}//统计标识
|
|
|
+var reg ="";
|
|
|
+var titleCopy ="";
|
|
|
+var tyflag = false;//纠错是否是金额
|
|
|
+//
|
|
|
+function isWechat() {
|
|
|
+ var ua = navigator.userAgent.toLowerCase();
|
|
|
+ if(ua.match(/MicroMessenger/i)=="micromessenger"){
|
|
|
+ return true;
|
|
|
+ }else{
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+}
|
|
|
+//
|
|
|
+function recoveryerr(ts,dcd,name){
|
|
|
+ transmit = ts;
|
|
|
+ if(name!=""){
|
|
|
+ dataName=name
|
|
|
+ }else{
|
|
|
+ dataName = $(ts).parent("td").prev("td").text();
|
|
|
+ }
|
|
|
+ if(dcd.indexOf("price")>-1||dcd.indexOf("bidamount")>-1||dcd.indexOf("budget")>-1){
|
|
|
+ tyflag = true;
|
|
|
+ }else{
|
|
|
+ tyflag = false;
|
|
|
+ }
|
|
|
+ dataCont = $(ts).prev().text();
|
|
|
+ dataCode = dcd;
|
|
|
+ var dtcontent = originalCon;
|
|
|
+ $("#fphl").removeClass("fphl");
|
|
|
+ $(".pop-head span").html("输入或选择正确的"+dataName+"并按“复制”");
|
|
|
+ $("#popup").removeClass("pop-up");
|
|
|
+ $("#pop-textarea").val("");
|
|
|
+ $(".pop-botton").css({"background":"#2cbfca"});
|
|
|
+ $(".tab1").addClass("active").siblings().removeClass("active");
|
|
|
+ var newdataCont= dataCont.replace(/\s/g," ")
|
|
|
+ reg = new RegExp(newdataCont+"|"+dataCont);
|
|
|
+ if(dataCont==""||!reg.test(dtcontent)){
|
|
|
+ $("html, body").stop(true,false).animate({
|
|
|
+ scrollTop: $("#tab1").offset().top-40 }, {duration: 500,easing: "swing"});
|
|
|
+ }else{
|
|
|
+ clearup("R");
|
|
|
+ companyAdd();
|
|
|
+ $("html, body").stop(true,false).animate({
|
|
|
+ scrollTop: $("#fphl").offset().top-cHeight/2+310>0?$("#fphl").offset().top-cHeight/2+310:0 }, {duration: 500,easing: "swing"});
|
|
|
+ }
|
|
|
+ $(".poperr").fadeIn();
|
|
|
+ //防止拖拽的是不跳动
|
|
|
+ $("#popup").css({"top":cHeight*0.6,"left":cWidth/2})
|
|
|
+ params.left=cWidth/2;
|
|
|
+ params.top=cHeight*0.6;
|
|
|
+}
|
|
|
+//
|
|
|
+function clearup(rp){
|
|
|
+ var dtcontent = originalCon;
|
|
|
+ var dttitlecopy = originalTitle;
|
|
|
+ if(dataCode=="projectname"&&rp=="P"){
|
|
|
+ projectName=$.trim($("#pop-textarea").val());
|
|
|
+ }else if(rp=="R"){
|
|
|
+ if(dataCode=="projectname"){
|
|
|
+ projectName=dataCont;
|
|
|
+ }
|
|
|
+ dtcontent = dtcontent.replace(/fphl/g,"");
|
|
|
+ dtcontent = dtcontent.replace(reg,"<span id='fphl' class='fphl' dataCode='"+dataCode+"'>"+dataCont+"</span>");
|
|
|
+ //
|
|
|
+ }
|
|
|
+ if(projectName){
|
|
|
+ dtcontent = keyWordHighlight(dtcontent,projectName,"<span class='keyword' style=\"border-bottom:1px solid #2cb7ca\">$1</span>");
|
|
|
+ dttitlecopy = keyWordHighlight(dttitlecopy,projectName,"<span class='keyword' id='hst' style=\"border-bottom:1px solid #2cb7ca;cursor: pointer;\">$1</span>");
|
|
|
+
|
|
|
+ }
|
|
|
+ if(dataCode=="winner"&&rp=="P"){
|
|
|
+ s_winner=$.trim($("#pop-textarea").val());
|
|
|
+ }else if(dataCode=="winner"&&rp=="R"){
|
|
|
+ s_winner=dataCont;
|
|
|
+ }
|
|
|
+ if(s_winner){
|
|
|
+ dtcontent = keyWordHighlight(dtcontent,s_winner,"<span class='keyword winner' style=\"border-bottom:1px solid #2cb7ca\">$1</span>");
|
|
|
+ }
|
|
|
+ var wordsArray = getQueryString("kds").split(" ");
|
|
|
+ if(wordsArray!=""&&wordsArray!="undefined"){
|
|
|
+ for(var i=0;i<wordsArray.length;i++){
|
|
|
+ dtcontent = keyWordHighlight(dtcontent,wordsArray[i],"<span class='jykeyword'>$1</span>");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $(".com-detail").html(dtcontent);
|
|
|
+ $("#com-title").html(dttitlecopy);
|
|
|
+}
|
|
|
+//
|
|
|
+if({{.T.obj.subtype}}=="中标"||{{.T.obj.subtype}}=="成交"||{{.T.obj.subtype}}=="合同"){
|
|
|
+ var bidmt = {{.T.obj.bidamount}}
|
|
|
+ $("#bidamount").text(bidmt)
|
|
|
+ $("#bidInfoTitle").show();
|
|
|
+ $("#bidInfoCont").show();
|
|
|
+}
|
|
|
+//
|
|
|
+$(window).scroll(function(event){
|
|
|
+ if(cHeight <= 0){
|
|
|
+ cHeight = 500;
|
|
|
+ }
|
|
|
+ var offsetTop = 0;
|
|
|
+ var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
|
|
|
+ var t1top = 0;
|
|
|
+ if({{.T.obj.subtype}}!="拟建"&&{{.T.obj.subtype}}!="违规"){
|
|
|
+ offsetTop = $(".recoveryfat").offset().top;
|
|
|
+ t1top = $("#tab1").offset().top;
|
|
|
+ }
|
|
|
+ if(t1top<=(scrollTop+65)&&t1top!=0){
|
|
|
+ if(scrollflag){
|
|
|
+ $(".tab1").addClass("active").siblings().removeClass("active");
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ if(scrollflag){
|
|
|
+ $(".tab2").addClass("active").siblings().removeClass("active");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(scrollTop >= offsetTop&&offsetTop!=0){
|
|
|
+ $(".recoveryhead").addClass("tabfix");
|
|
|
+ }else{
|
|
|
+ $(".recoveryhead").removeClass("tabfix");
|
|
|
+ }
|
|
|
+
|
|
|
+ //纠错高亮位置
|
|
|
+ if($(".com-detail .fphl").length>0){
|
|
|
+ heightLight = $(".com-detail .fphl").offset().top;
|
|
|
+ }
|
|
|
+ if(localStorage.getItem("ere-"+{{.T.obj._id}})==null){
|
|
|
+ if(heightLight>(scrollTop+50)&&heightLight<(scrollTop+cHeight)){
|
|
|
+ $(".pop-up").fadeIn();
|
|
|
+ }else{
|
|
|
+ $(".pop-up").fadeOut();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ clearTimeout(timer) // 每次滚动前 清除一次
|
|
|
+ timer = setTimeout("pscp()", 200);
|
|
|
+ m1 = document.documentElement.scrollTop || document.body.scrollTop;
|
|
|
+})
|
|
|
+//
|
|
|
+function pscp(){
|
|
|
+ m2 = document.documentElement.scrollTop || document.body.scrollTop;
|
|
|
+ if(m2 == m1){
|
|
|
+ scrollflag = true;
|
|
|
+ }
|
|
|
+}
|
|
|
+//
|
|
|
+function hmtab(Dirp){
|
|
|
+ var tabTwoHeight = $("#tab2").offset().top;
|
|
|
+ var scrollTop = document.body.scrollTop|| document.documentElement.scrollTop;
|
|
|
+ var pth = 22;
|
|
|
+ if(Dirp=="D"&&(scrollTop+pth)<tabTwoHeight&&tabTwoHeight<(scrollTop+cHeight-pth)){
|
|
|
+ $("html, body").stop(true,false).animate({scrollTop: $("#tab2").offset().top-inithgt }, {duration: 500,easing: "swing"});
|
|
|
+ }else if(Dirp=="U"&&(scrollTop+pth)<tabTwoHeight&&tabTwoHeight<(scrollTop+cHeight-pth)){
|
|
|
+ $("html, body").stop(true,false).animate({scrollTop: $("#tab2").offset().top-cHeight }, {duration: 500,easing: "swing"});
|
|
|
+ }
|
|
|
+}
|
|
|
+var inithgt = 60;//tab高度
|
|
|
+var reccont ="";
|
|
|
+var rhcontent = "";
|
|
|
+function subData(){
|
|
|
+ var fieldName = dataCode;
|
|
|
+ var originalcont = dataCont;
|
|
|
+ $.ajax({
|
|
|
+ type: "POST",
|
|
|
+ url: "/front/recovery/info",
|
|
|
+ data: {id:{{.T.obj._id}},fieldName:fieldName,fwtscode:fwtscode,reccont:reccont,originalcont:originalcont},
|
|
|
+ dataType: "json",
|
|
|
+ traditional: true,
|
|
|
+ success: function(r){
|
|
|
+ if(r.flag){
|
|
|
+ localStorage.setItem("ere-"+{{.T.obj._id}},"T");
|
|
|
+ $(".rec-null").hide();
|
|
|
+ $(".poperr").hide();
|
|
|
+ clearup("P");
|
|
|
+ companyAdd();
|
|
|
+ $("#pop-textarea").val("");
|
|
|
+ $("#fphl").removeClass("fphl");
|
|
|
+ $(transmit).prev("div").text(reccont);
|
|
|
+ EasyAlert.show(r.msg,"",5000);
|
|
|
+ }else{
|
|
|
+ EasyAlert.show("您提交的信息有误,请确认后再提交!","",5000);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+}
|
|
|
+//
|
|
|
+function jumpTab(n){
|
|
|
+ if(n==1){
|
|
|
+ $(".tab1").addClass("active").siblings().removeClass("active");
|
|
|
+ $(window).scrollTop($("#tab"+n).offset().top-inithgt);
|
|
|
+ }else{
|
|
|
+ $(".tab2").addClass("active").siblings().removeClass("active");
|
|
|
+ $(window).scrollTop(0);
|
|
|
+ }
|
|
|
+ scrollflag = false;
|
|
|
+ return false;
|
|
|
+}
|
|
|
+$(function(){
|
|
|
+ if ($("#trwidth").find(".preb-exam").length>0){
|
|
|
+ $("#exaapprove").show();
|
|
|
+ }
|
|
|
+ $(document).on("click",function(e) {
|
|
|
+ if($(e.target).parents(".easyalert-mask").length == 0){
|
|
|
+ $("#easyalert-mask").remove();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ $(".null-no").click(function(){
|
|
|
+ $(".rec-null").hide();
|
|
|
+ })
|
|
|
+ $(".null-yes").click(function(){
|
|
|
+ subData();
|
|
|
+ })
|
|
|
+ setTimeout(function(){
|
|
|
+ $(".tab2").click();
|
|
|
+ },700)
|
|
|
+ //提交纠错数据
|
|
|
+ $(".pop-botton").click(function(){
|
|
|
+ var animathistory_ent = $(".animathistory_ent").html();
|
|
|
+ $(".com-detail").find(".animathistory_ent").html("")
|
|
|
+ rhcontent = $(".com-detail").text().replace(/[^\{\u4e00-\u9fa5]{1,90}{[^\}\u4e00-\u9fa5]+?}/g,"");
|
|
|
+ $(".com-detail").find(".animathistory_ent").html(animathistory_ent)
|
|
|
+ reccont = $.trim($("#pop-textarea").val());
|
|
|
+ if(reccont!=""&&(tyflag||rhcontent.indexOf(reccont)>-1)){
|
|
|
+ subData();
|
|
|
+ }else if(reccont==""){
|
|
|
+ $(".null-cont").text("确认 "+dataName+" 为空?");
|
|
|
+ $(".rec-null").show();
|
|
|
+ }
|
|
|
+ })
|
|
|
+ //
|
|
|
+ document.addEventListener('copy', function(event){
|
|
|
+ var userSelection;
|
|
|
+ if (window.getSelection) { //
|
|
|
+ userSelection = window.getSelection();
|
|
|
+ } else if (document.selection) { //IE浏览器 考虑到Opera,应该放在后面
|
|
|
+ userSelection = document.selection.createRange();
|
|
|
+ }
|
|
|
+ var usesetcont = $.trim(userSelection)
|
|
|
+ if(usesetcont!=""){
|
|
|
+ rhcontent = $(".com-detail").text().replace(/[^\{\u4e00-\u9fa5]{1,90}{[^\}\u4e00-\u9fa5]+?}/g,"");
|
|
|
+ if(rhcontent.indexOf(usesetcont.replace(/\n/g,""))>-1){
|
|
|
+ $("#pop-textarea").val(usesetcont.replace(/\n/g,""));
|
|
|
+ $(".pop-botton").css({"background":"#2cbfca"})
|
|
|
+ }else{
|
|
|
+ $(".pop-botton").css({"background":"#d0d0d2"})
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ $(".pop-botton").css({"background":"#2cbfca"})
|
|
|
+ }
|
|
|
+ });
|
|
|
+ //纠错输入框
|
|
|
+ $("#pop-textarea").on("input propertychange",function(){
|
|
|
+ if($.trim($(this).val())!=""){
|
|
|
+ var animathistory_ent = $(".animathistory_ent").html();
|
|
|
+ $(".com-detail").find(".animathistory_ent").html("")
|
|
|
+ rhcontent = $(".com-detail").text().replace(/[^\{\u4e00-\u9fa5]{1,90}{[^\}\u4e00-\u9fa5]+?}/g,"");
|
|
|
+ $(".com-detail").find(".animathistory_ent").html(animathistory_ent)
|
|
|
+ var ptval = $.trim($(this).val());
|
|
|
+ if(tyflag){
|
|
|
+ $(".pop-botton").css({"background":"#2cbfca"})
|
|
|
+ }else if(rhcontent.indexOf(ptval)>-1){
|
|
|
+ $(".pop-botton").css({"background":"#2cbfca"})
|
|
|
+ }else{
|
|
|
+ $(".pop-botton").css({"background":"#d0d0d2"})
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ $(".pop-botton").css({"background":"#2cbfca"})
|
|
|
+ }
|
|
|
+ })
|
|
|
+ if(packageCon==""){
|
|
|
+ $("#tdbudget").text("项目预算(元)");
|
|
|
+ $("#tdbudget").next("td").find("div").eq(0).text({{.T.obj.budget}})
|
|
|
+ $("#tdbudget").next("td").find("div").eq(1).text("纠错")
|
|
|
+ }
|
|
|
+ if({{.T.obj.subtype}}=="单一"&&packageCon==""){
|
|
|
+ $("#baselast").show();
|
|
|
+ }
|
|
|
+ $(".pop-head img").click(function(){
|
|
|
+ $(".rec-null").hide();
|
|
|
+ $(".poperr").hide();
|
|
|
+ localStorage.setItem("ere-"+{{.T.obj._id}},"T")
|
|
|
+ $("#fphl").removeClass("fphl");
|
|
|
+ $(".pop-botton").css({"background":"#d0d0d2"})
|
|
|
+ })
|
|
|
+ var rerwinnerorder = {{.T.obj.winnerorder}}//中标候选人
|
|
|
+ //分包信息
|
|
|
+ if(packageCon!=""){
|
|
|
+ var pkchtml = '';
|
|
|
+ for(n in packageCon){
|
|
|
+ var pckwinner = packageCon[n].winner;
|
|
|
+ if(pckwinner==undefined){
|
|
|
+ pckwinner=""
|
|
|
+ }
|
|
|
+ var pckorigin = packageCon[n].m_origin;
|
|
|
+ if(pckorigin==undefined){
|
|
|
+ pckorigin=packageCon[n].type+packageCon[n].origin
|
|
|
+ }
|
|
|
+ var pckbidamount = packageCon[n].bidamount;
|
|
|
+ if(pckbidamount==undefined){
|
|
|
+ pckbidamount=""
|
|
|
+ }
|
|
|
+ pkchtml+='<div class="baseInfo">分包</div>'
|
|
|
+ +'<div class="baseTable"><table>'
|
|
|
+ +'<tr id="left-three-gray">'
|
|
|
+ if({{.T.obj.subtype}}=="招标"){
|
|
|
+ pkchtml+='<td class="tab-type">分包/标段</td>'
|
|
|
+ +'<td class="tab-cont">'
|
|
|
+ +'<div class="cont-cont">'+pckorigin+'</div>'
|
|
|
+ +'<div class="cont-recy" onclick="recoveryerr(this,\''+n+'-m_origin\',\'\')">纠错</div>'
|
|
|
+ +'<div style="display:none;"></div>'
|
|
|
+ +'</td>'
|
|
|
+ pkchtml+='<td class="tab-type piddingfour">项目预算(元)</td>'
|
|
|
+ pkchtml+='<td class="tab-cont">'
|
|
|
+ +'<div class="cont-cont">'+pckbidamount+'</div>'
|
|
|
+ +'<div class="cont-recy" onclick="recoveryerr(this,\''+n+'-bidamount\',\'\')">纠错</div>'
|
|
|
+ +'<div style="display:none;"></div>'
|
|
|
+ +'</td>'
|
|
|
+ +'</tr>'
|
|
|
+ }else{
|
|
|
+ var winnername = "";
|
|
|
+ var abountname = "";
|
|
|
+ pkchtml+='<td class="cd-type">分包/标段</td>'
|
|
|
+ if({{.T.obj.subtype}}=="单一"){
|
|
|
+ pkchtml+='<td class="cd-type">拟定单一来源采购供应商</td>'
|
|
|
+ winnername = "拟定单一来源采购供应商"
|
|
|
+ }else{
|
|
|
+ pkchtml+='<td class="cd-type">中标单位</td>'
|
|
|
+ winnername = "中标单位"
|
|
|
+ }
|
|
|
+ if({{.T.obj.subtype}}=="单一"){
|
|
|
+ pkchtml+='<td class="cd-type piddingfour">项目预算(元)</td>'
|
|
|
+ abountname = "项目预算(元)";
|
|
|
+ }else{
|
|
|
+ pkchtml+='<td class="cd-type piddingfour">中标金额(元)</td>'
|
|
|
+ abountname = "中标金额(元)";
|
|
|
+ }
|
|
|
+ pkchtml+='</tr>'
|
|
|
+ pkchtml+='<tr id="left-three-gray">'
|
|
|
+ +'<td class="cd-cont subpck">'
|
|
|
+ +'<div class="cont-cont">'+pckorigin+'</div>'
|
|
|
+ +'<div class="cont-recy" onclick="recoveryerr(this,\''+n+'-m_origin\',\'分包/标段\')">纠错</div>'
|
|
|
+ +'<div style="display:none;"></div>'
|
|
|
+ +'</td>'
|
|
|
+ pkchtml+='<td class="cd-cont winpck">'
|
|
|
+ +'<div class="cont-cont">'+pckwinner+'</div>'
|
|
|
+ +'<div class="cont-recy" onclick="recoveryerr(this,\''+n+'-winner\',\''+winnername+'\')">纠错</div>'
|
|
|
+ +'<div style="display:none;"></div>'
|
|
|
+ +'</td>'
|
|
|
+ pkchtml+='<td class="cd-cont amountpck">'
|
|
|
+ +'<div class="cont-cont">'+pckbidamount+'</div>'
|
|
|
+ +'<div class="cont-recy" onclick="recoveryerr(this,\''+n+'-bidamount\',\''+abountname+'\')">纠错</div>'
|
|
|
+ +'<div style="display:none;"></div>'
|
|
|
+ +'</td>'
|
|
|
+ pkchtml+='</tr>'
|
|
|
+ }
|
|
|
+ pkchtml+='</table></div>'
|
|
|
+ var pckwinnerorder = packageCon[n].winnerorder;
|
|
|
+ if(pckwinnerorder!=undefined&&pckwinnerorder.length>0){
|
|
|
+ pkchtml+='<div class="baseTable"><table>'+
|
|
|
+ '<tr id="left-three-blue" style="border-top: 0px;">'+
|
|
|
+ '<td class="cd-type" colspan="3" id="candidate">候选人</td>'+
|
|
|
+ '</tr>'+
|
|
|
+ '<tr id="left-three-blue">'+
|
|
|
+ '<td class="cd-type">单位名称</td>'+
|
|
|
+ '<td class="cd-type">报价(元)</td>'+
|
|
|
+ '<td class="cd-type">名次</td>'+
|
|
|
+ '</tr>'
|
|
|
+ for(var i=0;i<pckwinnerorder.length;i++){
|
|
|
+ if(i>0){
|
|
|
+ //pkchtml+='<tr id="left-three-blue" class="cutoff"><td colspan="3"></td></tr>'
|
|
|
+ }
|
|
|
+ var pckentname = pckwinnerorder[i].entname;
|
|
|
+ if(pckentname==undefined){
|
|
|
+ pckentname=""
|
|
|
+ }
|
|
|
+ var pcksortstr = pckwinnerorder[i].sortstr;
|
|
|
+ if(pcksortstr==undefined){
|
|
|
+ pcksortstr=""
|
|
|
+ }
|
|
|
+ var pckprice = pckwinnerorder[i].price;
|
|
|
+ if(pckprice==undefined){
|
|
|
+ pckprice=""
|
|
|
+ }
|
|
|
+ pkchtml+='<tr id="left-three-blue">'+
|
|
|
+ '<td class="cd-cont entnamecont">'+
|
|
|
+ '<div class="cont-cont">'+pckentname+'</div>'+
|
|
|
+ '<div class="cont-recy" onclick="recoveryerr(this,\''+n+'-'+i+'-entname\',\'单位名称\')">纠错</div>'+
|
|
|
+ '<div style="display:none;"></div>'+
|
|
|
+ '</td>'+
|
|
|
+ '<td class="cd-cont pricecont">'+
|
|
|
+ '<div class="cont-cont">'+pckprice+'</div>'+
|
|
|
+ '<div class="cont-recy" onclick="recoveryerr(this,\''+n+'-'+i+'-price\',\'报价(元)\')">纠错</div>'+
|
|
|
+ '<div style="display:none;"></div>'+
|
|
|
+ '</td>'+
|
|
|
+ '<td class="cd-cont sortstrcont">'+
|
|
|
+ '<div class="cont-cont">'+pcksortstr+'</div>'+
|
|
|
+ '<div class="cont-recy" onclick="recoveryerr(this,\''+n+'-'+i+'-sortstr\',\'名次\')">纠错</div>'+
|
|
|
+ '<div style="display:none;"></div>'+
|
|
|
+ '</td>'+
|
|
|
+ '</tr>'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ pkchtml+='</table></div>'
|
|
|
+ }
|
|
|
+ $("#tab2").append(pkchtml)
|
|
|
+ }else if(packageCon==""&&rerwinnerorder!=""){
|
|
|
+ var pkchtml = '';
|
|
|
+ pkchtml+='<div class="baseTable"><table>'+
|
|
|
+ '<tr id="left-three-blue" style="border-top: 0px;">'+
|
|
|
+ '<td class="cd-type" colspan="3" id="candidate">候选人</td>'+
|
|
|
+ '</tr>'+
|
|
|
+ '<tr id="left-three-blue">'+
|
|
|
+ '<td class="cd-type">单位名称</td>'+
|
|
|
+ '<td class="cd-type">报价(元)</td>'+
|
|
|
+ '<td class="cd-type">名次</td>'+
|
|
|
+ '</tr>'
|
|
|
+ for(var i=0;i<rerwinnerorder.length;i++){
|
|
|
+ if(i>0){
|
|
|
+ //pkchtml+='<tr id="left-three-blue" class="cutoff"><td colspan="4"></td></tr>'
|
|
|
+ }
|
|
|
+ var pckentname = rerwinnerorder[i].entname;
|
|
|
+ if(pckentname==undefined){
|
|
|
+ pckentname=""
|
|
|
+ }
|
|
|
+ var pcksortstr = rerwinnerorder[i].sortstr;
|
|
|
+ if(pcksortstr==undefined){
|
|
|
+ pcksortstr=""
|
|
|
+ }
|
|
|
+ var pckprice = rerwinnerorder[i].price;
|
|
|
+ if(pckprice==undefined){
|
|
|
+ pckprice=""
|
|
|
+ }
|
|
|
+ pkchtml+='<tr id="left-three-blue">'+
|
|
|
+ '<td class="cd-cont entnamecont">'+
|
|
|
+ '<div class="cont-cont">'+pckentname+'</div>'+
|
|
|
+ '<div class="cont-recy" onclick="recoveryerr(this,\'winnerorder'+i+'-entname\',\'单位名称\')">纠错</div>'+
|
|
|
+ '<div style="display:none;"></div>'+
|
|
|
+ '</td>'+
|
|
|
+ '<td class="cd-cont pricecont">'+
|
|
|
+ '<div class="cont-cont">'+pckprice+'</div>'+
|
|
|
+ '<div class="cont-recy" onclick="recoveryerr(this,\'winnerorder'+i+'-price\',\'报价(元)\')">纠错</div>'+
|
|
|
+ '<div style="display:none;"></div>'+
|
|
|
+ '</td>'+
|
|
|
+ '<td class="cd-cont sortstrcont">'+
|
|
|
+ '<div class="cont-cont">'+pcksortstr+'</div>'+
|
|
|
+ '<div class="cont-recy" onclick="recoveryerr(this,\'winnerorder'+i+'-sortstr\',\'名次\')">纠错</div>'+
|
|
|
+ '<div style="display:none;"></div>'+
|
|
|
+ '</td>'+
|
|
|
+ '</tr>'
|
|
|
+
|
|
|
+ }
|
|
|
+ pkchtml+='</table></div>'
|
|
|
+ $("#tab2").append(pkchtml)
|
|
|
+ }
|
|
|
+
|
|
|
+ //
|
|
|
+ haslogin({{.T.logid}},{{.T.obj.projectname}},"D");
|
|
|
+ JYLogin({{.T.logid}})
|
|
|
+ if (_loop){
|
|
|
+ //console.log("-",_loop)
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ _loop = true;
|
|
|
+ var infoDetail = $(".com-detail").html();
|
|
|
+ if(infoDetail){
|
|
|
+ $(".com-detail").html(infoDetail.replace(/(<\/?br\/?>)+/ig,"<br>"));
|
|
|
+ }
|
|
|
+ $(".com-wxshare,.com-guanzhu").hover(function(){
|
|
|
+ $(this).children(".scanqr").show();
|
|
|
+ },function(){
|
|
|
+ $(this).children(".scanqr").hide();
|
|
|
+ });
|
|
|
+ //重新计算最新信息的发布时间
|
|
|
+ $(".otherinfo .com-time").each(function(){
|
|
|
+ var thisValue = $(this).attr("data-value");
|
|
|
+ if(thisValue != "" && thisValue != "0" && thisValue != 0){
|
|
|
+ var diff = timeDiff(new Date(Number(thisValue+"000")));
|
|
|
+ if(diff != null){
|
|
|
+ $(this).text(diff);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ $.post("/front/pcAjaxReq",{reqType:"rewardText"},function(r){
|
|
|
+ $(".reward").prepend(r);
|
|
|
+ },"text");
|
|
|
+ $(".reward>div").click(function(){
|
|
|
+ $(".payQRcode").show();
|
|
|
+ });
|
|
|
+ $(".payQRcode .reward-close").click(function(){
|
|
|
+ $(".payQRcode").hide();
|
|
|
+ });
|
|
|
+ //
|
|
|
+ var uli = 960;
|
|
|
+ var tdno = $(".preb-list tr").eq(1);
|
|
|
+ if(tdno.find("td").length != 0){
|
|
|
+ var tdclass = "";
|
|
|
+ for(var i=0;i<tdno.find("td").length;i++){
|
|
|
+ var fsize = tdno.find("td").eq(i).find("div").attr("class")
|
|
|
+ if(i==0){
|
|
|
+ tdclass += fsize;
|
|
|
+ }else{
|
|
|
+ tdclass += ","+fsize;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ var sparr = tdclass.split(",");
|
|
|
+ for(var m =0;m<sparr.length;m++ ){
|
|
|
+ var average = uli/tdno.find("td").length ;
|
|
|
+ $("#"+sparr[m]).parent("td").css("width",average);
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ var attaflag = false;
|
|
|
+ {{if .T.obj.projectinfo.attachments}}
|
|
|
+ var attachments = {{.T.obj.projectinfo.attachments}}
|
|
|
+ var j = 0 ;
|
|
|
+ for(var m in attachments){
|
|
|
+ j += 1 ;
|
|
|
+ var arr = new Array()
|
|
|
+ arr = attachments[m]
|
|
|
+ $(".preb-enno").html('<img src="{{Msg "seo" "cdn"}}/images/wx/enclosure.png"/>附件('+j+'个)')
|
|
|
+ //for(var i in arr){
|
|
|
+ if(arr["url"]&&arr["filename"]&&arr["filename"].slice(-3).toLowerCase()=="pdf"){
|
|
|
+ attaflag = true;
|
|
|
+ if(arr["url"].indexOf("fj1.jianyu360.com:9888")>-1){
|
|
|
+ arr["url"]="/fj1"+arr["url"].substring(arr["url"].lastIndexOf("/"));
|
|
|
+ }else if(arr["url"].indexOf("9889")>-1){
|
|
|
+ arr["url"]="/fs1"+arr["url"].substring(arr["url"].lastIndexOf("/"));
|
|
|
+ }else{
|
|
|
+ arr["url"]="/fs"+arr["url"].substring(arr["url"].lastIndexOf("/"));
|
|
|
+ }
|
|
|
+ var pdfshow = '<div class="approve">'+arr["filename"]+'</div><div id="preb-pdf'+j+'"></div>';
|
|
|
+ $(".pdf-div").html(pdfshow);
|
|
|
+ var pdfhtml = "";
|
|
|
+ pdfhtml = '<div class="preb-encont"><div style="float:left;"><img src="{{Msg "seo" "cdn"}}/images/wx/pdf.png"/></div><div style="float:left;line-height: 22px;">'+arr["filename"]+'<br><a style="color:blue;" href="'+arr["url"]+'">下载</a></div><div style="clear:both;"></div></div>';
|
|
|
+ PDFObject.embed(arr["url"], "#preb-pdf"+j);
|
|
|
+ }
|
|
|
+ //}
|
|
|
+ $(".preb-enclosure").append(pdfhtml)
|
|
|
+ }
|
|
|
+
|
|
|
+ //
|
|
|
+ {{end}}
|
|
|
+ if({{.T.obj.subtype}}=="拟建"||{{.T.obj.toptype}}=="拟建"||{{.T.obj.subtype}}=="违规"){
|
|
|
+ if(attaflag){
|
|
|
+ $(".preb-enclosure").removeClass("hidden");
|
|
|
+ $(".pdf-div").removeClass("hidden");
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ $(".recoveryfat").show();
|
|
|
+ $("#tab2").show();
|
|
|
+ $(".explain").show();
|
|
|
+ }
|
|
|
+ //
|
|
|
+ {{if .T.obj.infoformat}}
|
|
|
+ {{if eq .T.obj.infoformat 2}}
|
|
|
+ $(".com-prebuilt").removeClass("hidden");
|
|
|
+
|
|
|
+ {{else}}
|
|
|
+ $(".com-original").removeClass("hidden");
|
|
|
+ {{end}}
|
|
|
+ {{else}}
|
|
|
+ $(".com-original").removeClass("hidden");
|
|
|
+ {{end}}
|
|
|
+ $(window).scroll(function(){
|
|
|
+ if($(this).scrollTop() > 0){
|
|
|
+ $("#backTop").show();
|
|
|
+ }else{
|
|
|
+ $("#backTop").hide();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ var originalUrl = {{.T.obj.url}};
|
|
|
+ originalUrl = originalUrl.replace("http://https://","https://");
|
|
|
+ $(".com-original").attr("href",originalUrl);
|
|
|
+ $(".com-original").click(function(event){
|
|
|
+ event.preventDefault();
|
|
|
+ var myhref = window.location.href;
|
|
|
+ if (myhref.indexOf("mailprivate")>0||isWechat()){
|
|
|
+ window.location.href = '/front/transfer?url='+encodeURIComponent($(this).attr("href"));
|
|
|
+ }else{
|
|
|
+ var url =document.location.protocol+"//"+ window.location.host+"/front/transfer?url="+encodeURIComponent($(this).attr("href"))
|
|
|
+ window.open('javascript:window.name', '<script>location.replace("'+url+'")<\/script>');
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ //var sds = {{.T.keywords}};
|
|
|
+ var sds = getQueryString("kds");
|
|
|
+ sds = sds.replace(/\++/g," ");
|
|
|
+ var content = $(".com-detail").html();
|
|
|
+ titleCopy = $("#com-title").text();
|
|
|
+ titleCopyDec = $("#com-title").text();
|
|
|
+ //
|
|
|
+ var lsgim = localStorage.getItem("ere-"+{{.T.obj._id}});
|
|
|
+ //if(lsgim!="T"&&fwtsname != "" && content.toLowerCase().indexOf(fwtsname.toLowerCase()) > -1){
|
|
|
+ //content = content.replace(fwtsname,"<span id='fphl' class='fphl' dataCode='"+fwtscode+"'>"+fwtsname+"</span>");
|
|
|
+ //}
|
|
|
+ $(".com-detail").html(content)
|
|
|
+ originalCon = content;
|
|
|
+ originalTitle = titleCopy;
|
|
|
+ //
|
|
|
+ if(projectName){
|
|
|
+ //if(projectname != "" && content.toLowerCase().indexOf(projectname.toLowerCase()) > -1){
|
|
|
+ // content = keyWordHighlight(content,projectname,"<span class='keyword myfollow' style=\"border-bottom:1px solid #2cb7ca\">$1</span>");
|
|
|
+ //}
|
|
|
+ content = keyWordHighlight(content,projectName,"<span class='keyword' style=\"border-bottom:1px solid #2cb7ca\">$1</span>");
|
|
|
+ //if(projectname != "" && titleCopy.toLowerCase().indexOf(projectname.toLowerCase()) > -1){
|
|
|
+ // titleCopy = keyWordHighlight(titleCopy,projectname,"<span class='keyword' style=\"border-bottom:1px solid #2cb7ca\">$1</span>");
|
|
|
+ //}
|
|
|
+ titleCopy = keyWordHighlight(titleCopy,projectName,"<span class='keyword' id='hst' style=\"border-bottom:1px solid #2cb7ca;cursor: pointer;\">$1</span>");
|
|
|
+ }else{
|
|
|
+ $(".com-guanzhu .scanqr>span:last").html("随时掌握招标信息");
|
|
|
+ $(".com-guanzhu>.scanqr>img").height(135);
|
|
|
+ $(".com-guanzhu>font").text("关注剑鱼标讯");
|
|
|
+ insertflog = false;
|
|
|
+ }
|
|
|
+ if(s_winner){
|
|
|
+ content = keyWordHighlight(content,s_winner,"<span class='keyword winner' style=\"border-bottom:1px solid #2cb7ca\">$1</span>");
|
|
|
+ }
|
|
|
+ if(sds){
|
|
|
+ if(!insertflog){
|
|
|
+ $(".com-guanzhu .scanqr>span:last").html("随时掌握招标信息");
|
|
|
+ $(".com-guanzhu>.scanqr>img").height(135);
|
|
|
+ $(".com-guanzhu>font").text("关注剑鱼标讯");
|
|
|
+ }
|
|
|
+ var wordsArray = sds.split(" ");
|
|
|
+ if(wordsArray!=""){
|
|
|
+ for(var i=0;i<wordsArray.length;i++){
|
|
|
+ content = keyWordHighlight(content,wordsArray[i],"<span class='jykeyword'>$1</span>");
|
|
|
+ titleCopy = keyWordHighlight(titleCopy,wordsArray[i],"<span class='jykeyword'>$1</span>");
|
|
|
+ //项目基本信息 关键词高亮
|
|
|
+ $(".preb-cont").each(function(){
|
|
|
+ var prebCont = $(this).html();
|
|
|
+ prebCont = keyWordHighlight(prebCont,wordsArray[i],"<span class='jykeyword' style=\"border-bottom:1px solid #2cb7ca\">$1</span>");
|
|
|
+ $(this).html(prebCont);
|
|
|
+ })
|
|
|
+ //审批事项公示信息高亮
|
|
|
+ $(".preb-examcont").each(function(){
|
|
|
+ var prebExamcont = $(this).text();
|
|
|
+ prebExamcont = keyWordHighlight(prebExamcont,wordsArray[i],"<span class='jykeyword' style=\"border-bottom:1px solid #2cb7ca\">$1</span>");
|
|
|
+ $(this).html(prebExamcont);
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ $(".com-detail").html(content);
|
|
|
+
|
|
|
+ $("#com-title").html(titleCopy);
|
|
|
+ companyAdd();
|
|
|
+})
|
|
|
+//
|
|
|
+function companyAdd(){
|
|
|
+ if(s_winner){
|
|
|
+ var winner_con = $(".winner");
|
|
|
+ for(var i=0;i<winner_con.length;i++){
|
|
|
+ var top = getElementTop(winner_con[i]) - $(".public-nav")[0].offsetHeight - 30 + 10 + winner_con[i].offsetHeight;
|
|
|
+ var left = getElementLeft(winner_con[i])-getElementLeft($(".biddetail-content")[0])-110;
|
|
|
+ if(left>670){
|
|
|
+ left = 670;
|
|
|
+ }else if(left<-70){
|
|
|
+ left = -70;
|
|
|
+ }
|
|
|
+// var top = winner_con[i].offsetTop + winner_con[i].offsetHeight + 10;
|
|
|
+// var left = winner_con[i].offsetLeft;
|
|
|
+ $(winner_con[i]).attr("dataNum",(i+1));
|
|
|
+ $(winner_con[i]).append('<div id="outhistory"><div class="animathistory_ent" style="display:none;top:'+top+'px;left:'+left+'px;">'
|
|
|
+ +'<span class="hyone"></span>'
|
|
|
+ +'<span class="hytwo"></span>'
|
|
|
+ +'<div id="myhtlist" style="max-height: 500px;overflow-y: auto;">'
|
|
|
+ +'<div class="hthead">'
|
|
|
+ +'<span>企业最新信息</span><span onclick="htclosed_ent()"><img src="{{Msg "seo" "cdn"}}/images/wx/close.png"/></span>'
|
|
|
+ +'</div>'
|
|
|
+ +'<div class="htcontent">'
|
|
|
+ +'</div>'
|
|
|
+ +'<div class="htfoot">'
|
|
|
+ +''
|
|
|
+ +'</div>'
|
|
|
+ +'</div>'
|
|
|
+ +'</div></div>');
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ function getElementLeft(element){
|
|
|
+ var actualLeft = element.offsetLeft;
|
|
|
+ var current = element.offsetParent;
|
|
|
+ while (current !== null){
|
|
|
+ actualLeft += current.offsetLeft;
|
|
|
+ current = current.offsetParent;
|
|
|
+ }
|
|
|
+ return actualLeft;
|
|
|
+ }
|
|
|
+ function getElementTop(element){
|
|
|
+ var actualTop = element.offsetTop;
|
|
|
+ var current = element.offsetParent;
|
|
|
+ while (current !== null){
|
|
|
+ actualTop += current.offsetTop;
|
|
|
+ current = current.offsetParent;
|
|
|
+ }
|
|
|
+ return actualTop;
|
|
|
+ }
|
|
|
+ $(".winner").hover(function(){
|
|
|
+ entProListShowFlag = true;
|
|
|
+ var that = $(this);
|
|
|
+ $(".animathistory_ent").each(function(){
|
|
|
+ if($(this).parents(".winner").attr("dataNum") == that.attr("dataNum")){
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ $(this).fadeOut(1000);
|
|
|
+ })
|
|
|
+ $(this).find(".animathistory_ent").fadeIn(1000);
|
|
|
+ },function(){
|
|
|
+ entProListShowFlag = false;
|
|
|
+ setTimeout(function(){
|
|
|
+ if(entProListShowFlag){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ $(".animathistory_ent").fadeOut(250);
|
|
|
+ },250)
|
|
|
+ })
|
|
|
+ thishtlists_ent();
|
|
|
+ //
|
|
|
+ if(insertflog){
|
|
|
+ var titleCopyNew = $("#hst");
|
|
|
+ titleCopyNew.append('<div id="outhistory"><div class="animathistory" style="display:none;">'
|
|
|
+ +'<span class="hyone"></span>'
|
|
|
+ +'<span class="hytwo"></span>'
|
|
|
+ +'<div id="myhtlist" style="max-height: 500px;overflow-y: auto;">'
|
|
|
+ +'<div class="hthead">'
|
|
|
+ +'<span>项目公告</span><span onclick="htclosed()"><img src="{{Msg "seo" "cdn"}}/images/wx/close.png"/></span>'
|
|
|
+ +'</div>'
|
|
|
+ +'<div class="htcontent">'
|
|
|
+ +'</div>'
|
|
|
+ +'<div class="htfoot">'
|
|
|
+ +''
|
|
|
+ +'</div>'
|
|
|
+ +'</div>'
|
|
|
+ +'</div></div>');
|
|
|
+ }
|
|
|
+ $("#hst").hover(function(){
|
|
|
+ hstShowFlag = true;
|
|
|
+ $(".animathistory").fadeIn(1000);
|
|
|
+ },function(){
|
|
|
+ hstShowFlag = false;
|
|
|
+ setTimeout(function(){
|
|
|
+ if(hstShowFlag){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ $(".animathistory").fadeOut(250);
|
|
|
+ },250)
|
|
|
+ })
|
|
|
+ thishtlists();
|
|
|
+}
|
|
|
+//
|
|
|
+var thishtlists_ent = function(){
|
|
|
+ var _id = {{.T.obj._id}};
|
|
|
+ //var s_winner = {{.T.obj.winner}};
|
|
|
+ var _bidamount = {{.T.obj.bidamount}};
|
|
|
+ var projectname = projectName;
|
|
|
+ $.post("/front/pcEntAllNotice",{entname:s_winner},function(D){
|
|
|
+ var data = D.data["res"];
|
|
|
+ if(data && data.length > 0){
|
|
|
+ for(var i = 0; i < data.length; i++){
|
|
|
+ var id = data[i]["_id"];
|
|
|
+ var noticetime = '';
|
|
|
+ var type = '';
|
|
|
+ var amountHtml = '';
|
|
|
+ var listhtml = '';
|
|
|
+ var typeStr = '';
|
|
|
+ var title = data[i]["title"];
|
|
|
+ var amount = data[i]["bidamount"];
|
|
|
+
|
|
|
+ if(data[i]["publishtime"]){
|
|
|
+ noticetime = new Date(Number(data[i]["publishtime"]+"000")).Format("MM-dd");
|
|
|
+ }
|
|
|
+ if(typeof(data[i]["subtype"]) != "undefined" && data[i]["subtype"] != "" && data[i]["subtype"] != null){
|
|
|
+ type = data[i]["subtype"];
|
|
|
+ typeStr = '<span class="type">'+type+'</span>';
|
|
|
+ }else if(typeof(data[i]["toptype"]) != "undefined" && data[i]["toptype"] != "" && data[i]["toptype"] != null){
|
|
|
+ type = data[i]["toptype"];
|
|
|
+ typeStr = '<span class="type">'+type+'</span>';
|
|
|
+ }else{
|
|
|
+ typeStr = '<span class="typenull">'+type+'</span>';
|
|
|
+ }
|
|
|
+ if(amount && !isNaN(amount)){
|
|
|
+ amount = parseInt(amount)/10000;
|
|
|
+ amountHtml = '<span class="priceStyle">'+amount+'万元中标</span>';
|
|
|
+ }
|
|
|
+ if(title){
|
|
|
+ title = keyWordHighlight(title,projectname,"<span style='color:#2cb7ca;'>$1</span>");
|
|
|
+ }else{
|
|
|
+ title = "";
|
|
|
+ }
|
|
|
+ var titleHtml = "";
|
|
|
+ if(id){
|
|
|
+ titleHtml = '<a target="_blank" href="/article/content/'+id+'.html" >'+title+'</a>';
|
|
|
+ }else{
|
|
|
+ titleHtml = '<a target="_blank" href="#" >'+title+'</a>';
|
|
|
+ }
|
|
|
+ listhtml = '<div class="htlist" style="padding-bottom: 30px;">'
|
|
|
+ +'<div style="width: 80px;text-align: right;">'
|
|
|
+ +'<span class="noticetime">'+noticetime+'</span>'
|
|
|
+ +typeStr
|
|
|
+ +'</div>'
|
|
|
+ +'<div class="timeaxis">'
|
|
|
+ +'<span></span>'
|
|
|
+ +'</div>'
|
|
|
+ +'<div>'
|
|
|
+ +titleHtml
|
|
|
+ +amountHtml
|
|
|
+ +'</div>'
|
|
|
+ +'</div>'
|
|
|
+ $(".animathistory_ent .htcontent").append(listhtml);
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ var hthtml = '<div class="htlist" style="padding-bottom: 30px;"><div style="width: 80px;text-align: right;">';
|
|
|
+ if($("#statusbar .com-time").text()!=undefined&&$("#statusbar .com-time").text()!=""){
|
|
|
+ hthtml += '<span class="noticetime">'+$("#statusbar .com-time").text()+'</span>';
|
|
|
+ }else{
|
|
|
+ hthtml += '<span class="noticetime"></span>';
|
|
|
+ }
|
|
|
+ if($("#statusbar .com-type").text()!=undefined&&$("#statusbar .com-type").text()!=""){
|
|
|
+ hthtml += '<span class="type">'+$("#statusbar .com-type").text()+'</span>';
|
|
|
+ }
|
|
|
+ hthtml += '</div><div class="timeaxis"><span></span></div>';
|
|
|
+ if(_id){
|
|
|
+ hthtml += '<div><a target="_blank" href="/article/content/'+_id+'.html">';
|
|
|
+ }else{
|
|
|
+ hthtml += '<div><a target="_blank" href="#">';
|
|
|
+ }
|
|
|
+ if(titleCopyDec!=""){
|
|
|
+ var listtitle = titleCopyDec;
|
|
|
+ listtitle = keyWordHighlight(listtitle,projectname,"<span style='color:#2cb7ca;'>$1</span>");
|
|
|
+ hthtml += listtitle;
|
|
|
+ }
|
|
|
+ hthtml +='</a>';
|
|
|
+ if(_bidamount && !isNaN(_bidamount)){
|
|
|
+ _bidamount = parseInt(_bidamount)/10000;
|
|
|
+ hthtml += '<span class="priceStyle">'+_bidamount+'万元中标</span>';
|
|
|
+ }
|
|
|
+ hthtml +='</div></div>';
|
|
|
+
|
|
|
+ $(".animathistory_ent .htcontent").append(hthtml);
|
|
|
+ }
|
|
|
+
|
|
|
+ $(".htlist").find("a").mouseover(function(){
|
|
|
+ $(this).find("span").css("color","#fe7379");
|
|
|
+ })
|
|
|
+ $(".htlist").find("a").mouseout(function(){
|
|
|
+ $(this).find("span").css("color","#2cb7ca");
|
|
|
+ })
|
|
|
+ });
|
|
|
+}
|
|
|
+//
|
|
|
+var thishtlists = function(){
|
|
|
+ var _id = {{.T.obj._id}};
|
|
|
+ var projectname = projectName;
|
|
|
+ var projectcode = {{.T.obj.projectcode}};
|
|
|
+ $.post("/front/pcAllNotice",{id:_id,projectname:projectname,projectcode:projectcode},function(D){
|
|
|
+ var htdata = D.data["res"]
|
|
|
+ if(htdata&&htdata.length>0){
|
|
|
+ var htlist = D.data["res"];
|
|
|
+ var hthtml = '';
|
|
|
+ var myflag = true;
|
|
|
+ for(var i in htlist){
|
|
|
+ var listone = htlist[i]
|
|
|
+ var httime = listone["l_publishtime"];
|
|
|
+ var mytime = {{.T.obj.publishtime}};
|
|
|
+ if(httime>mytime){
|
|
|
+ hthtml += '<div class="htlist"><div style="width: 80px;text-align: right;">'
|
|
|
+ if(htdiff!=""&&htdiff!=0){
|
|
|
+ var htdiff = timeDiff(new Date(Number(httime+"000")));
|
|
|
+ hthtml += '<span class="noticetime">'+htdiff+'</span>'
|
|
|
+ }else{
|
|
|
+ hthtml += '<span class="noticetime"></span>'
|
|
|
+ }
|
|
|
+ var httype = listone["s_subtype"]
|
|
|
+ if(typeof(httype) == "undefined" || httype == null || httype == ""){
|
|
|
+ httype = listone["s_toptype"]
|
|
|
+ }
|
|
|
+ if(typeof(httype) == "undefined" || httype == null || httype == ""){
|
|
|
+ httype = listone["s_type"];
|
|
|
+ if(httype == "bid"){
|
|
|
+ httype = "中标";
|
|
|
+ }else if(httype == "tender"){
|
|
|
+ httype = "招标";
|
|
|
+ }else{
|
|
|
+ httype = "";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(httype!=""){
|
|
|
+ hthtml += '<span class="type">'+httype+'</span>'
|
|
|
+ }
|
|
|
+ hthtml += '</div><div class="timeaxis"><span></span></div>'
|
|
|
+ if(typeof(listone["s_eid"])!=""){
|
|
|
+ hthtml += '<div><a target="_blank" href="/article/content/'+listone["s_eid"]+'.html">'
|
|
|
+ }else{
|
|
|
+ hthtml += '<div><a target="_blank" href="#">'
|
|
|
+ }
|
|
|
+ if(listone["s_title"]!=""){
|
|
|
+ var listtitle = listone["s_title"];
|
|
|
+ listtitle = keyWordHighlight(listtitle,projectname,"<span style='color:#2cb7ca;'>$1</span>");
|
|
|
+ hthtml += listtitle
|
|
|
+ }
|
|
|
+ hthtml +='</a></div></div>'
|
|
|
+ }else if(httime<=mytime){
|
|
|
+ if(myflag){
|
|
|
+ hthtml += '<div class="htlist"><div style="width: 80px;text-align: right;">'
|
|
|
+ if($("#statusbar .com-time").text()!=undefined&&$("#statusbar .com-time").text()!=""){
|
|
|
+ hthtml += '<span class="noticetime">'+$("#statusbar .com-time").text()+'</span>'
|
|
|
+ }else{
|
|
|
+ hthtml += '<span class="noticetime"></span>'
|
|
|
+ }
|
|
|
+ if($("#statusbar .com-type").text()!=undefined&&$("#statusbar .com-type").text()!=""){
|
|
|
+ hthtml += '<span class="type">'+$("#statusbar .com-type").text()+'</span>'
|
|
|
+ }
|
|
|
+ hthtml += '</div><div class="timeaxis"><span></span></div>'
|
|
|
+ if(_id){
|
|
|
+ hthtml += '<div><a target="_blank" href="/article/content/'+_id+'.html">'
|
|
|
+ }else{
|
|
|
+ hthtml += '<div><a target="_blank" href="#">'
|
|
|
+ }
|
|
|
+ if(titleCopyDec!=""){
|
|
|
+ var listtitle = titleCopyDec;
|
|
|
+ listtitle = keyWordHighlight(listtitle,projectname,"<span style='color:#2cb7ca;'>$1</span>");
|
|
|
+ hthtml += listtitle
|
|
|
+ }
|
|
|
+ hthtml +='</a></div></div>'
|
|
|
+ myflag = false;
|
|
|
+ }
|
|
|
+ hthtml += '<div class="htlist"><div style="width: 80px;text-align: right;">'
|
|
|
+ if(htdiff!=""&&httime!=0){
|
|
|
+ var htdiff = timeDiff(new Date(Number(httime+"000")));
|
|
|
+ hthtml += '<span class="noticetime">'+htdiff+'</span>'
|
|
|
+ }else{
|
|
|
+ hthtml += '<span class="noticetime"></span>'
|
|
|
+ }
|
|
|
+ var httype = listone["s_subtype"]
|
|
|
+ if(typeof(httype) == "undefined" || httype == null || httype == ""){
|
|
|
+ httype = listone["s_toptype"]
|
|
|
+ }
|
|
|
+ if(typeof(httype) == "undefined" || httype == null || httype == ""){
|
|
|
+ httype = listone["s_type"];
|
|
|
+ if(httype == "bid"){
|
|
|
+ httype = "中标";
|
|
|
+ }else if(httype == "tender"){
|
|
|
+ httype = "招标";
|
|
|
+ }else{
|
|
|
+ httype = "";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(httype!=""){
|
|
|
+ hthtml += '<span class="type">'+httype+'</span>'
|
|
|
+ }
|
|
|
+ hthtml += '</div><div class="timeaxis"><span></span></div>'
|
|
|
+ if(typeof(listone["s_eid"])!=""){
|
|
|
+ hthtml += '<div><a target="_blank" href="/article/content/'+listone["s_eid"]+'.html">'
|
|
|
+ }else{
|
|
|
+ hthtml += '<div><a target="_blank" href="#">'
|
|
|
+ }
|
|
|
+ if(listone["s_title"]!=""){
|
|
|
+ var listtitle = listone["s_title"];
|
|
|
+ listtitle = keyWordHighlight(listtitle,projectname,"<span style='color:#2cb7ca;'>$1</span>");
|
|
|
+ hthtml += listtitle
|
|
|
+ }
|
|
|
+ hthtml +='</a></div></div>'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(myflag){
|
|
|
+ hthtml += '<div class="htlist"><div style="width: 80px;text-align: right;">'
|
|
|
+ if($("#statusbar .com-time").text()!=undefined&&$("#statusbar .com-time").text()!=""){
|
|
|
+ hthtml += '<span class="noticetime">'+$("#statusbar .com-time").text()+'</span>'
|
|
|
+ }else{
|
|
|
+ hthtml += '<span class="noticetime"></span>'
|
|
|
+ }
|
|
|
+ if($("#statusbar .com-type").text()!=undefined&&$("#statusbar .com-type").text()!=""){
|
|
|
+ hthtml += '<span class="type">'+$("#statusbar .com-type").text()+'</span>'
|
|
|
+ }
|
|
|
+ hthtml += '</div><div class="timeaxis"><span></span></div>'
|
|
|
+ if(_id){
|
|
|
+ hthtml += '<div><a target="_blank" href="/article/content/'+_id+'.html">'
|
|
|
+ }else{
|
|
|
+ hthtml += '<div><a target="_blank" href="#">'
|
|
|
+ }
|
|
|
+ if(titleCopyDec!=""){
|
|
|
+ var listtitle = titleCopyDec;
|
|
|
+ listtitle = keyWordHighlight(listtitle,projectname,"<span style='color:#2cb7ca;'>$1</span>");
|
|
|
+ hthtml += listtitle
|
|
|
+ }
|
|
|
+ hthtml +='</a></div></div>'
|
|
|
+ myflag = false;
|
|
|
+ }
|
|
|
+ $(".animathistory .htcontent").append(hthtml);
|
|
|
+ }else{
|
|
|
+ var hthtml = '<div class="htlist"><div style="width: 80px;text-align: right;">'
|
|
|
+ if($("#statusbar .com-time").text()!=undefined&&$("#statusbar .com-time").text()!=""){
|
|
|
+ hthtml += '<span class="noticetime">'+$("#statusbar .com-time").text()+'</span>'
|
|
|
+ }else{
|
|
|
+ hthtml += '<span class="noticetime"></span>'
|
|
|
+ }
|
|
|
+ if($("#statusbar .com-type").text()!=undefined&&$("#statusbar .com-type").text()!=""){
|
|
|
+ hthtml += '<span class="type">'+$("#statusbar .com-type").text()+'</span>'
|
|
|
+ }
|
|
|
+ hthtml += '</div><div class="timeaxis"><span></span></div>'
|
|
|
+ if(_id){
|
|
|
+ hthtml += '<div><a target="_blank" href="/article/content/'+_id+'.html">'
|
|
|
+ }else{
|
|
|
+ hthtml += '<div><a target="_blank" href="#">'
|
|
|
+ }
|
|
|
+ if(titleCopyDec!=""){
|
|
|
+ var listtitle = titleCopyDec;
|
|
|
+ listtitle = keyWordHighlight(listtitle,projectname,"<span style='color:#2cb7ca;'>$1</span>");
|
|
|
+ hthtml += listtitle
|
|
|
+ }
|
|
|
+ hthtml +='</a></div></div>'
|
|
|
+
|
|
|
+ $(".animathistory .htcontent").append(hthtml);
|
|
|
+ }
|
|
|
+ $(".htlist").find("a").mouseover(function(){
|
|
|
+ $(this).find("span").css("color","#fe7379");
|
|
|
+ })
|
|
|
+ $(".htlist").find("a").mouseout(function(){
|
|
|
+ $(this).find("span").css("color","#2cb7ca");
|
|
|
+ })
|
|
|
+ });
|
|
|
+}
|
|
|
+var htclosed = function(){
|
|
|
+ $(".animathistory").fadeOut(1000);
|
|
|
+}
|
|
|
+var htclosed_ent = function(){
|
|
|
+ $(".animathistory_ent").fadeOut(1000);
|
|
|
+}
|
|
|
+var publishtime = {{.T.obj.publishtime}};
|
|
|
+var type = {{.T.obj.subtype}};
|
|
|
+var area = {{.T.obj.area}};
|
|
|
+//var industry = {{.T.obj.industry}};
|
|
|
+var industry = getQueryString("industry");
|
|
|
+var subscopeclass = {{.T.obj.s_subscopeclass}};
|
|
|
+var buyerclass ={{.T.obj.buyerclass}};
|
|
|
+
|
|
|
+if (area !="" && area != "A"){
|
|
|
+ $(".com-statusbar").append('<span class="com-area"><a href="/list/area/'+{{.T.obj.areaadd}}+'.html">'+area+'</a></span>');
|
|
|
+}
|
|
|
+if(typeof(type) == "undefined" || type == null || type == ""){
|
|
|
+ type = {{.T.obj.toptype}};
|
|
|
+}
|
|
|
+if(typeof(type) == "undefined" || type == null || type == ""){
|
|
|
+ type = {{.T.obj.type}};
|
|
|
+ if(type == "bid"){
|
|
|
+ type = "中标";
|
|
|
+ }else if(type == "tender"){
|
|
|
+ type = "招标";
|
|
|
+ }else{
|
|
|
+ type = "";
|
|
|
+ }
|
|
|
+}
|
|
|
+if(typeof(type) != "undefined" && type != null && type != ""){
|
|
|
+ $(".com-statusbar").append('<span class="com-type"><a href="/list/stype/'+{{.T.obj.stypeadd}}+'.html">'+type+'</a></span>');
|
|
|
+}
|
|
|
+//
|
|
|
+if(industry && industry!="undefined"){
|
|
|
+ $(".com-statusbar").append('<span class="com-industry"><a href="/list/industry/'+{{.T.obj.indadd}}+'.html">'+industry+'</a></span>');
|
|
|
+}else if(subscopeclass){
|
|
|
+ var suclass = subscopeclass.split(",")[0];
|
|
|
+ $(".com-statusbar").append('<span class="com-industry"><a href="/list/industry/'+{{.T.obj.indadd}}+'.html">'+suclass.split("_")[0]+'</a></span>');
|
|
|
+}
|
|
|
+//
|
|
|
+if ({{.T.isVip}}){
|
|
|
+ if(buyerclass){
|
|
|
+ $(".com-statusbar").append('<span class="com-buyerclass"><a>'+buyerclass+'</a></span>');
|
|
|
+ }
|
|
|
+}
|
|
|
+var amount=getacount(bidamount_class,budget_class)
|
|
|
+if (amount!=""){
|
|
|
+ $(".com-statusbar").append('<span class="com-amount"><a>'+conversionMoeny(amount)+'</a></span>');
|
|
|
+}
|
|
|
+//
|
|
|
+if(publishtime != ""){
|
|
|
+ var diff = timeDiff(new Date(Number(publishtime+"000")));
|
|
|
+ if(diff != null){
|
|
|
+ $(".com-statusbar").append('<span class="com-time"><i class="glyphicon bofangjilu"></i>'+diff+'</span>');
|
|
|
+ }
|
|
|
+}
|
|
|
+var upno = {{if .T.obj.i_upno}}{{.T.obj.i_upno}}{{else}}0{{end}};
|
|
|
+var downno = {{if .T.obj.i_downno}}{{.T.obj.i_downno}}{{else}}0{{end}};
|
|
|
+var cookieup = "";
|
|
|
+var cookiedown = "";
|
|
|
+var id = {{.T.obj._id}};
|
|
|
+var isReqing = false;
|
|
|
+cookiedown=$.cookie("down{{.T.obj._id}}");
|
|
|
+cookieup=$.cookie("up{{.T.obj._id}}");
|
|
|
+if ($.cookie("id{{.T.obj._id}}") != null && $.cookie("id{{.T.obj._id}}") == id){
|
|
|
+ if(cookieup == "T"){
|
|
|
+ $(".jyuseless").removeClass("hidden");
|
|
|
+ $(".jyuseful").addClass("hidden");
|
|
|
+ }else if(cookiedown == "T"){
|
|
|
+ $(".jyuseful").removeClass("hidden");
|
|
|
+ $(".jyuseless").addClass("hidden");
|
|
|
+ }
|
|
|
+}
|
|
|
+$(".jyuseful").click(function(){
|
|
|
+ upordown("up");
|
|
|
+});
|
|
|
+$(".jyuseless").click(function(){
|
|
|
+ upordown("down");
|
|
|
+});
|
|
|
+//
|
|
|
+function upordown(type){
|
|
|
+ if(isReqing){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ var aos = 0;
|
|
|
+ var aosup = 0;
|
|
|
+ var aosdown = 0;
|
|
|
+ cookiedown=$.cookie("down{{.T.obj._id}}");
|
|
|
+ cookieup=$.cookie("up{{.T.obj._id}}");
|
|
|
+ var praflag = false;
|
|
|
+ if($.cookie("id{{.T.obj._id}}") != null && $.cookie("id{{.T.obj._id}}") == id){
|
|
|
+ if(type == "up"){
|
|
|
+ if(cookieup == "F"&& cookiedown == "T"){
|
|
|
+ cookieup = "T";
|
|
|
+ cookiedown = "F";
|
|
|
+ upno = Number(upno)+1;
|
|
|
+ $(".jyuseful span").html(upno);
|
|
|
+ downno = Number(downno)-1;
|
|
|
+ $(".jyuseless span").html(downno);
|
|
|
+ aosup = 1;
|
|
|
+ aosdown = -1;
|
|
|
+ praflag = true;
|
|
|
+ $(".jyuseless").removeClass("hidden");
|
|
|
+ $(".jyuseful").addClass("hidden");
|
|
|
+ }else if(cookieup == "T"){
|
|
|
+ cookieup = "F";
|
|
|
+ upno = Number(upno)-1;
|
|
|
+ $(".jyuseful span").html(upno);
|
|
|
+ aosup = -1;
|
|
|
+ praflag = true;
|
|
|
+ $(".jyuseless").addClass("hidden");
|
|
|
+ $(".jyuseful").removeClass("hidden");
|
|
|
+ }else if(cookieup == "F"&& cookiedown == "F"){
|
|
|
+ cookieup = "T";
|
|
|
+ upno = Number(upno)+1;
|
|
|
+ $(".jyuseful span").html(upno);
|
|
|
+ aosup = 1;
|
|
|
+ praflag = true;
|
|
|
+ $(".jyuseless").removeClass("hidden");
|
|
|
+ $(".jyuseful").addClass("hidden");
|
|
|
+ }
|
|
|
+ }else if(type == "down"){
|
|
|
+ if(cookieup == "T"&& cookiedown == "F"){
|
|
|
+ cookiedown = "T";
|
|
|
+ cookieup = "F";
|
|
|
+ upno = Number(upno)-1;
|
|
|
+ $(".jyuseful span").html(upno);
|
|
|
+ downno = Number(downno)+1;
|
|
|
+ $(".jyuseless span").html(downno);
|
|
|
+ aosup = -1;
|
|
|
+ aosdown = 1;
|
|
|
+ praflag = true;
|
|
|
+ $(".jyuseless").addClass("hidden");
|
|
|
+ $(".jyuseful").removeClass("hidden");
|
|
|
+ }else if(cookiedown == "T"){
|
|
|
+ cookiedown = "F";
|
|
|
+ downno = Number(downno)-1;
|
|
|
+ $(".jyuseless span").html(downno);
|
|
|
+ aosdown = -1;
|
|
|
+ praflag = true;
|
|
|
+ $(".jyuseful").addClass("hidden");
|
|
|
+ $(".jyuseless").removeClass("hidden");
|
|
|
+ }else if(cookieup == "F"&& cookiedown == "F"){
|
|
|
+ cookiedown = "T";
|
|
|
+ downno = Number(downno)+1;
|
|
|
+ $(".jyuseless span").html(downno);
|
|
|
+ aosdown = 1;
|
|
|
+ praflag = true;
|
|
|
+ $(".jyuseful").removeClass("hidden");
|
|
|
+ $(".jyuseless").addClass("hidden");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(praflag){
|
|
|
+ isReqing = true;
|
|
|
+ $.ajax({
|
|
|
+ type:'post',
|
|
|
+ url:'/swordfish/praise',
|
|
|
+ data:{type:type,aosup:aosup,aosdown:aosdown,id:{{.T.obj._id}}},
|
|
|
+ cache:false,
|
|
|
+ dataType:'json',
|
|
|
+ success:function(data){
|
|
|
+ if(data.flag == "T"){
|
|
|
+ $.cookie("up{{.T.obj._id}}",'', { expires: -1 })
|
|
|
+ $.cookie("down{{.T.obj._id}}",'', { expires: -1 })
|
|
|
+ $.cookie("up{{.T.obj._id}}",cookieup,{expires:300});
|
|
|
+ $.cookie("down{{.T.obj._id}}",cookiedown,{expires:300});
|
|
|
+ praflag = false;
|
|
|
+ }
|
|
|
+ setTimeout(function(){
|
|
|
+ isReqing = false;
|
|
|
+ },500);
|
|
|
+ },
|
|
|
+ error: function(){
|
|
|
+ isReqing = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ cookieup = "F";
|
|
|
+ cookiedown = "F";
|
|
|
+ if (type == "up"){
|
|
|
+ cookieup = "T";
|
|
|
+ upno = Number(upno)+1;
|
|
|
+ $(".jyuseful span").html(upno);
|
|
|
+ praflag = true;
|
|
|
+ aosup = 1;
|
|
|
+ $(".jyuseless").removeClass("hidden");
|
|
|
+ $(".jyuseful").addClass("hidden");
|
|
|
+ }else if (type == "down"){
|
|
|
+ cookiedown = "T";
|
|
|
+ downno = Number(downno)+1;
|
|
|
+ $(".jyuseless span").html(downno);
|
|
|
+ praflag = true;
|
|
|
+ aosdown = 1;
|
|
|
+ $(".jyuseless").addClass("hidden");
|
|
|
+ $(".jyuseful").removeClass("hidden");
|
|
|
+ }
|
|
|
+ if(praflag){
|
|
|
+ isReqing = true;
|
|
|
+ $.ajax({
|
|
|
+ type:'post',
|
|
|
+ url:'/swordfish/praise',
|
|
|
+ data:{type:type,aosup:aosup,aosdown:aosdown,id:{{.T.obj._id}}},
|
|
|
+ cache:false,
|
|
|
+ dataType:'json',
|
|
|
+ success:function(data){
|
|
|
+ if(data.flag == "T"){
|
|
|
+ $.cookie("up{{.T.obj._id}}",cookieup,{expires:300});
|
|
|
+ $.cookie("down{{.T.obj._id}}",cookiedown,{expires:300});
|
|
|
+ $.cookie("id{{.T.obj._id}}",id,{expires:300});
|
|
|
+ praflag = false;
|
|
|
+ }
|
|
|
+ setTimeout(function(){
|
|
|
+ isReqing = false;
|
|
|
+ },500);
|
|
|
+ },
|
|
|
+ error: function(){
|
|
|
+ isReqing = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+function getQueryString(name){
|
|
|
+ var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
|
|
|
+ var r = window.location.search.substr(1).match(reg);
|
|
|
+ if(r != null)
|
|
|
+ return decodeURIComponent(r[2]);
|
|
|
+ return "";
|
|
|
+}
|
|
|
+function getacount(bidamount,budget){
|
|
|
+ if(typeof(bidamount) != "undefined" && bidamount != null && bidamount != ""){
|
|
|
+ return bidamount
|
|
|
+ }
|
|
|
+ if(typeof(budget) != "undefined" && budget != null && budget != ""){
|
|
|
+ return budget
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+//金额转化 金额:0-万元以下单位为元 ,万元以上至亿元以下单位为万元 ,亿元以上单位为亿元。保留 小数点后 2 位,不进行四舍五入。
|
|
|
+function conversionMoeny(money){
|
|
|
+ var m = ""+money;
|
|
|
+ var m_arr = m.split(".")
|
|
|
+ var m_1 = m_arr[0]
|
|
|
+ var len_m1 = m_1.length;
|
|
|
+ if (len_m1 >= 9 ){
|
|
|
+ m = m_1.substring(0,len_m1-8) + "." + m_1.substring(len_m1-8,len_m1-6) + "亿元"
|
|
|
+ } else if (len_m1 >= 5) {
|
|
|
+ m =m_1.substring(0,len_m1-4) + "." + m_1.substring(len_m1-4,len_m1-2) + "万元"
|
|
|
+ } else {
|
|
|
+ if(m_arr.length == 1) {
|
|
|
+ return m + ".00元"
|
|
|
+ }
|
|
|
+ var m_2 = m_arr[1]
|
|
|
+ if (m_2.length > 1) {
|
|
|
+ m_2 = m_2.substring(0,2)
|
|
|
+ } else {
|
|
|
+ m_2 = m_2.substring(0,1) + "0"
|
|
|
+ }
|
|
|
+ m = m_1 + "." + m_2 + "元"
|
|
|
+ }
|
|
|
+ return m
|
|
|
+}
|
|
|
+</script>
|
|
|
+<!--百度统计start-->
|
|
|
+{{include "/common/baiducc.html"}}
|
|
|
+<!--百度统计end-->
|
|
|
+</body>
|
|
|
</html>
|