|
@@ -0,0 +1,1706 @@
|
|
|
|
+<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="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0" user-scalable="no" />
|
|
|
|
+<meta name="renderer" content="webkit">
|
|
|
|
+<meta content="telephone=no" name="format-detection"/>
|
|
|
|
+{{include "/common/pnc.html"}}
|
|
|
|
+<link href="/css/pc.css?v={{Msg "seo" "version"}}" rel="stylesheet">
|
|
|
|
+<script src="/js/jquery.cookie.js"></script>
|
|
|
|
+<script src="/js/pdfobject.min.js"></script>
|
|
|
|
+<style>
|
|
|
|
+.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:281px;
|
|
|
|
+ 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;
|
|
|
|
+}
|
|
|
|
+</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");
|
|
|
|
+}
|
|
|
|
+</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">
|
|
|
|
+
|
|
|
|
+ </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">审批事项公示信息</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}}
|
|
|
|
+ <td class="preb-exam">审批时间</td>
|
|
|
|
+ {{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}}
|
|
|
|
+ <td class="preb-examcont">
|
|
|
|
+ <div class="spsj" id="spsj">{{.T.obj.projectinfo.approvetime}}</div>
|
|
|
|
+ </td>
|
|
|
|
+ {{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="tab1 active">公告正文</div>
|
|
|
|
+ <div class="tab2">公告摘要</div>
|
|
|
|
+ <div style="clear:none"></div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="tabfat">
|
|
|
|
+ <div id="tab1">
|
|
|
|
+ <div class="com-detail">
|
|
|
|
+ {{Html (Regexp (Regexp .T.obj.detail "(\\n|\\\\n)\\s+" "\n") "(\\n|\\\\n)+" "<br/>")}}
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div id="tab2" style="display:none;">
|
|
|
|
+ <div class="baseInfo">基本信息</div>
|
|
|
|
+ <div class="baseTable">
|
|
|
|
+ <table>
|
|
|
|
+ <tr>
|
|
|
|
+ <td class="tab-type">省份</td>
|
|
|
|
+ <td class="tab-cont">{{.T.obj.area}}</td>
|
|
|
|
+ <td class="tab-type">城市</td>
|
|
|
|
+ <td class="tab-cont">{{.T.obj.city}}</td>
|
|
|
|
+ </tr>
|
|
|
|
+ <tr>
|
|
|
|
+ <td class="tab-type">招标机构</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" 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">中标金额</td>
|
|
|
|
+ <td class="tab-cont">
|
|
|
|
+ <div class="cont-cont">{{.T.obj.bidamount}}</div>
|
|
|
|
+ <div class="cont-recy" onclick="recoveryerr(this,'bidamount')">纠错</div>
|
|
|
|
+ <div style="display:none;"></div>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ </table>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ {{end}}
|
|
|
|
+ {{if .T.obj.projectinfo.attachments}}
|
|
|
|
+ <div class="preb-enclosure hidden">
|
|
|
|
+ <div class="preb-enno"><img src="/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="/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="/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="/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 class="side-bar" id="makeCode" style="top:-2px; right:-5px; left:inherit; background:white;z-index:0;">
|
|
|
|
+ <div class="side-bar-div">
|
|
|
|
+<!-- <font class="side-bar-title" style="padding-left:17px; line-height:45px;"><b>扫码关注项目</b></font>-->
|
|
|
|
+ </div>
|
|
|
|
+ <div class="side-bar-div-img" style="margin-bottom:0px;">
|
|
|
|
+ <img class="img" id="wxCode" src="/front/share/{{.T.shareid}}" style="width:165px; height:165px; margin-top:4px;" alt="微信订阅号">
|
|
|
|
+ </div>
|
|
|
|
+ <div class="side-bar-div-con" style="border:0px;">
|
|
|
|
+<!-- <div class="side-bar-bottom-lable" style="font-size:14px; line-height:20px; text-align:left; margin-left:8px; margin-bottom:20px;">扫码关注此项目,实时接收最新公告</div>-->
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="adv-pccontent-right" id="B1" style="cursor:default;">
|
|
|
|
+ {{$s:=(Ad "jy-pccontent-right" 1)}}
|
|
|
|
+ {{range $k,$v := $s}}
|
|
|
|
+ {{if $v.s_pic}}
|
|
|
|
+ {{if $v.s_link}}<a href="{{$v.s_link}}" target="_blank"/>{{end}}
|
|
|
|
+ <img src="{{$v.s_pic}}">
|
|
|
|
+ {{if $v.s_link}}</a>{{end}}
|
|
|
|
+ {{else}}
|
|
|
|
+ {{Html $v.s_script}}
|
|
|
|
+ {{end}}
|
|
|
|
+ {{end}}
|
|
|
|
+ </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 class="adv-pccontent-bottom" id="B2" style="cursor:default;">
|
|
|
|
+ {{$s:=(Ad "jy-pccontent-bottom" 1)}}
|
|
|
|
+ {{range $k,$v := $s}}
|
|
|
|
+ {{if $v.s_pic}}
|
|
|
|
+ {{if $v.s_link}}<a href="{{$v.s_link}}" target="_blank"/>{{end}}
|
|
|
|
+ <img src="{{$v.s_pic}}">
|
|
|
|
+ {{if $v.s_link}}</a>{{end}}
|
|
|
|
+ {{else}}
|
|
|
|
+ {{Html $v.s_script}}
|
|
|
|
+ {{end}}
|
|
|
|
+ {{end}}
|
|
|
|
+</div>
|
|
|
|
+</div>
|
|
|
|
+<div id="popup" class="pop-up poperr">
|
|
|
|
+ <div class="pop-head">
|
|
|
|
+ <span>标出正确的项目名称</span>
|
|
|
|
+ <img src="/images/t-close.png"/>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="pop-cont">
|
|
|
|
+ <div class="pop-text">
|
|
|
|
+ <textarea class="pop-textarea" type="textarea" maxlength="150" ></textarea>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="pop-botton">提交</div>
|
|
|
|
+ </div>
|
|
|
|
+</div>
|
|
|
|
+{{include "/common/pcbottom.html"}}
|
|
|
|
+<!--支付二维码-->
|
|
|
|
+<div class="payQRcode">
|
|
|
|
+ <div class="mark"></div>
|
|
|
|
+ <div class="reward-dialog">
|
|
|
|
+ <img src="/images/reward-close.png" class="reward-close">
|
|
|
|
+ <front>请微信扫码</front><br>
|
|
|
|
+ <img src="/front/pay/qr/{{.T.obj._id}}" class="qrcode">
|
|
|
|
+ </div>
|
|
|
|
+</div>
|
|
|
|
+<script type="text/javascript">
|
|
|
|
+var hstShowFlag = false;
|
|
|
|
+var entProListShowFlag = false;
|
|
|
|
+var titleCopyDec = "";
|
|
|
|
+var cHeight = window.screen.height;
|
|
|
|
+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 insertflog = true;
|
|
|
|
+var heightLight = 0
|
|
|
|
+var transmit = null;
|
|
|
|
+//
|
|
|
|
+function recoveryerr(ts,dcd){
|
|
|
|
+ transmit = ts;
|
|
|
|
+ dataName = $(ts).parent("td").prev("td").text();
|
|
|
|
+ dataCont = $(ts).prev().text();
|
|
|
|
+ dataCode = dcd;
|
|
|
|
+ var dtcontent = originalCon;
|
|
|
|
+ $("#fphl").removeClass("fphl");
|
|
|
|
+ $(".pop-head span").html('标出正确的'+dataName);
|
|
|
|
+ $("#popup").removeClass("pop-up");
|
|
|
|
+ $(".pop-textarea").val("");
|
|
|
|
+ $(".tab1").addClass("active").siblings().removeClass("active");
|
|
|
|
+ if(dataCont==""){
|
|
|
|
+ $("html, body").stop(true,false).animate({
|
|
|
|
+ scrollTop: 280 }, {duration: 500,easing: "swing"});
|
|
|
|
+ }else{
|
|
|
|
+ dtcontent = dtcontent.replace(/fphl/g,"");
|
|
|
|
+ dtcontent = dtcontent.replace(dataCont,"<span id='fphl' class='fphl' dataCode='"+dataCode+"'>"+dataCont+"</span>");
|
|
|
|
+ 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);
|
|
|
|
+ companyAdd();
|
|
|
|
+ $("html, body").stop(true,false).animate({
|
|
|
|
+ scrollTop: $("#fphl").offset().top-cHeight/2+280>0?$("#fphl").offset().top-cHeight/2+280:0 }, {duration: 500,easing: "swing"});
|
|
|
|
+ }
|
|
|
|
+ $(".poperr").fadeIn();
|
|
|
|
+}
|
|
|
|
+if({{.T.obj.subtype}}=="中标"||{{.T.obj.subtype}}=="成交"||{{.T.obj.subtype}}=="合同"){
|
|
|
|
+ $("#bidInfoTitle").show();
|
|
|
|
+ $("#bidInfoCont").show();
|
|
|
|
+}
|
|
|
|
+//
|
|
|
|
+$(window).scroll(function(event){
|
|
|
|
+ if(cHeight <= 0){
|
|
|
|
+ cHeight = 500;
|
|
|
|
+ }
|
|
|
|
+ var offsetTop = $(".recoveryfat").offset().top;
|
|
|
|
+ var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
|
|
|
|
+ var t2top = $("#tab2").offset().top;
|
|
|
|
+ if(t2top<=(scrollTop+65)&&t2top!=0){
|
|
|
|
+ $(".tab2").addClass("active").siblings().removeClass("active");
|
|
|
|
+ }else{
|
|
|
|
+ $(".tab1").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();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ //
|
|
|
|
+ if(scrollflag){
|
|
|
|
+ m3 = document.documentElement.scrollTop || document.body.scrollTop;
|
|
|
|
+ scrollflag = false;
|
|
|
|
+ }
|
|
|
|
+ //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;
|
|
|
|
+ if(m3>m2){
|
|
|
|
+ hmtab("U");
|
|
|
|
+ }else if(m3<m2){
|
|
|
|
+ hmtab("D");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+//
|
|
|
|
+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高度
|
|
|
|
+$(function(){
|
|
|
|
+ //提交纠错数据
|
|
|
|
+ $(".pop-botton").click(function(){
|
|
|
|
+ var rhcontent = $(".com-detail").text().replace(/[^\{\u4e00-\u9fa5]{1,90}{[^\}\u4e00-\u9fa5]+?}/g,"");
|
|
|
|
+ var fieldName = dataCode;
|
|
|
|
+ var originalcont = dataCont;
|
|
|
|
+ var reccont = $.trim($(".pop-textarea").val());
|
|
|
|
+ if(reccont!=""&&rhcontent.indexOf(reccont)>-1&&reccont.length<150){
|
|
|
|
+ $.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");
|
|
|
|
+ $(".poperr").hide();
|
|
|
|
+ $(".pop-textarea").val("");
|
|
|
|
+ $("#fphl").removeClass("fphl");
|
|
|
|
+ $(transmit).prev("div").text(reccont);
|
|
|
|
+ EasyAlert.show(r.msg,"",2000);
|
|
|
|
+ }else{
|
|
|
|
+ EasyAlert.show("您提交的信息有误,请确认后再提交!","",2000);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ //
|
|
|
|
+ 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!=""){
|
|
|
|
+ if(usesetcont.length>150){
|
|
|
|
+ usesetcont = usesetcont.substring(0,150);
|
|
|
|
+ }
|
|
|
|
+ $(".pop-textarea").val(usesetcont);
|
|
|
|
+ $(".pop-botton").css({"background":"#2cbfca"})
|
|
|
|
+ }else{
|
|
|
|
+ $(".pop-botton").css({"background":"#d0d0d2"})
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ //纠错输入框
|
|
|
|
+ $(".pop-textarea").on("input propertychange",function(){
|
|
|
|
+ if($.trim($(this).val())!=""){
|
|
|
|
+ var rhcontent = $(".com-detail").text().replace(/[^\{\u4e00-\u9fa5]{1,90}{[^\}\u4e00-\u9fa5]+?}/g,"");
|
|
|
|
+ rhcontent = rhcontent.replace(/\s/g,"");
|
|
|
|
+ var ptval = $.trim($(this).val());
|
|
|
|
+ ptval = ptval.replace(/\s/g,"")
|
|
|
|
+ if(rhcontent.indexOf(ptval)>-1){
|
|
|
|
+ $(".pop-botton").css({"background":"#2cbfca"})
|
|
|
|
+ }else{
|
|
|
|
+ $(".pop-botton").css({"background":"#d0d0d2"})
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ $(".pop-botton").css({"background":"#d0d0d2"})
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ 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}}=="预告"&&{{.T.obj.winner}}!=""&&packageCon==""){
|
|
|
|
+ $("#baselast").show();
|
|
|
|
+ }
|
|
|
|
+ $(".pop-head img").click(function(){
|
|
|
|
+ $(".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 pckbidamount = packageCon[n].bidamount;
|
|
|
|
+ if(pckbidamount==undefined){
|
|
|
|
+ pckbidamount=""
|
|
|
|
+ }
|
|
|
|
+ pkchtml+='<div class="baseInfo">分包</div>'
|
|
|
|
+ +'<div class="baseTable"><table>'
|
|
|
|
+ +'<tr id="left-three-gray">'
|
|
|
|
+ +'<td class="tab-type">包/段名称</td>'
|
|
|
|
+ +'<td class="tab-cont">'
|
|
|
|
+ +'<div class="cont-cont">'+n+'</div>'
|
|
|
|
+ +'<div class="cont-recy"></div>'
|
|
|
|
+ +'<div style="display:none;"></div>'
|
|
|
|
+ +'</td>'
|
|
|
|
+ +'<td class="tab-type">中标单位</td>'
|
|
|
|
+ +'<td class="tab-cont">'
|
|
|
|
+ +'<div class="cont-cont">'+pckwinner+'</div>'
|
|
|
|
+ +'<div class="cont-recy" onclick="recoveryerr(this,\''+n+'-winner\')">纠错</div>'
|
|
|
|
+ +'<div style="display:none;"></div>'
|
|
|
|
+ +'</td>'
|
|
|
|
+ +'</tr>'
|
|
|
|
+ +'<tr id="left-three-gray">'
|
|
|
|
+ +'<td class="tab-type">中标金额</td>'
|
|
|
|
+ +'<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>'
|
|
|
|
+ +'<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>'
|
|
|
|
+
|
|
|
|
+ var pckwinnerorder = packageCon[n].winnerorder;
|
|
|
|
+ if(pckwinnerorder!=undefined&&pckwinnerorder.length>0){
|
|
|
|
+ pkchtml+='<tr id="left-three-blue"><td class="tab-type" colspan="4" id="candidate">候选人</td></tr>'
|
|
|
|
+ for(var i=0;i<pckwinnerorder.length;i++){
|
|
|
|
+ if(i>0){
|
|
|
|
+ pkchtml+='<tr id="left-three-blue" class="cutoff"><td colspan="4"></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="tab-type">单位名称</td>'+
|
|
|
|
+ '<td class="tab-cont">'+
|
|
|
|
+ '<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="tab-type">名次</td>'+
|
|
|
|
+ '<td class="tab-cont">'+
|
|
|
|
+ '<div class="cont-cont">'+pcksortstr+'</div>'+
|
|
|
|
+ '<div class="cont-recy" onclick="recoveryerr(this,\''+n+'-'+i+'-sortstr\')">纠错</div>'+
|
|
|
|
+ '<div style="display:none;"></div>'+
|
|
|
|
+ '</td>'+
|
|
|
|
+ '</tr>'+
|
|
|
|
+ '<tr id="left-three-blue">'+
|
|
|
|
+ '<td class="tab-type">报价</td>'+
|
|
|
|
+ '<td class="tab-cont">'+
|
|
|
|
+ '<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="tab-type"></td>'+
|
|
|
|
+ '<td class="tab-cont">'+
|
|
|
|
+ '<div class="cont-cont"></div>'+
|
|
|
|
+ '<div class="cont-recy"></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 style="border-top: 0px;" id="left-three-blue"><td class="tab-type" colspan="4" id="candidate">候选人</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>'
|
|
|
|
+ }
|
|
|
|
+ pkchtml+='<tr id="left-three-blue">'+
|
|
|
|
+ '<td class="tab-type">单位名称</td>'+
|
|
|
|
+ '<td class="tab-cont">'+
|
|
|
|
+ '<div class="cont-cont">'+rerwinnerorder[i].entname+'</div>'+
|
|
|
|
+ '<div class="cont-recy" onclick="recoveryerr(this,\'winnerorder'+i+'-entname\')">纠错</div>'+
|
|
|
|
+ '<div style="display:none;"></div>'+
|
|
|
|
+ '</td>'+
|
|
|
|
+ '<td class="tab-type">名次</td>'+
|
|
|
|
+ '<td class="tab-cont">'+
|
|
|
|
+ '<div class="cont-cont">'+rerwinnerorder[i].sortstr+'</div>'+
|
|
|
|
+ '<div class="cont-recy" onclick="recoveryerr(this,\'winnerorder'+i+'-sortstr\')">纠错</div>'+
|
|
|
|
+ '<div style="display:none;"></div>'+
|
|
|
|
+ '</td>'+
|
|
|
|
+ '</tr>'+
|
|
|
|
+ '<tr id="left-three-blue">'+
|
|
|
|
+ '<td class="tab-type">报价</td>'+
|
|
|
|
+ '<td class="tab-cont">'+
|
|
|
|
+ '<div class="cont-cont">'+rerwinnerorder[i].price+'</div>'+
|
|
|
|
+ '<div class="cont-recy" onclick="recoveryerr(this,\'winnerorder'+i+'-price\')">纠错</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>'
|
|
|
|
+ }
|
|
|
|
+ pkchtml+='</table></div>'
|
|
|
|
+ $("#tab2").append(pkchtml)
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ //
|
|
|
|
+ $(".recoveryhead div").click(function(){
|
|
|
|
+ var n = 2;
|
|
|
|
+ $(this).addClass("active").siblings().removeClass("active");
|
|
|
|
+ if($(this).hasClass("tab1")){
|
|
|
|
+ n=1;
|
|
|
|
+ }
|
|
|
|
+ $("html, body").stop(true,false).animate({
|
|
|
|
+ scrollTop: $("#tab"+n).offset().top-inithgt }, {duration: 500,easing: "swing"});
|
|
|
|
+ return false;
|
|
|
|
+ })
|
|
|
|
+ //
|
|
|
|
+ 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>"));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ //重新计算最新信息的发布时间
|
|
|
|
+ $(".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);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ {{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="/images/wx/enclosure.png"/>附件('+j+'个)')
|
|
|
|
+ //for(var i in arr){
|
|
|
|
+ if(arr["url"]&&arr["filename"]&&arr["filename"].slice(-3).toLowerCase()=="pdf"){
|
|
|
|
+ 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="/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}}=="拟建"){
|
|
|
|
+ $(".preb-enclosure").removeClass("hidden");
|
|
|
|
+ $(".pdf-div").removeClass("hidden");
|
|
|
|
+ }else{
|
|
|
|
+ $(".recoveryfat").show();
|
|
|
|
+ $("#tab2").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();
|
|
|
|
+ window.location.href = '/front/transfer?url='+encodeURIComponent($(this).attr("href"));
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ //var sds = {{.T.keywords}};
|
|
|
|
+ var sds = getQueryString("kds");
|
|
|
|
+ sds = sds.replace(/\++/g," ");
|
|
|
|
+ var projectName = {{.T.obj.projectname}};
|
|
|
|
+ var content = $(".com-detail").html();
|
|
|
|
+ var 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>");
|
|
|
|
+ }
|
|
|
|
+ //
|
|
|
|
+ if(projectName){
|
|
|
|
+ $(".side-bar-div").html("<font class='side-bar-title' style='padding-left:17px; line-height:45px;'><b>扫码关注项目</b></font>");
|
|
|
|
+ $(".side-bar-div-con").html("<div class='side-bar-bottom-lable' style='font-size:14px; line-height:20px; text-align:left; margin-left:8px; margin-bottom:20px;'>扫码关注此项目,实时接收最新公告</div>");
|
|
|
|
+ //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{
|
|
|
|
+ $(".side-bar-div").html("<font class='side-bar-title' style='padding-left:17px; line-height:45px;'><b>扫码关注剑鱼招标订阅</b></font>");
|
|
|
|
+ $(".side-bar-div-con").html("<div class='side-bar-bottom-lable' style='font-size:16px; line-height:20px; text-align:center; margin-left:0px; margin-bottom:0px;'>微信扫一扫</div><div class='side-bar-bottom-lable' style='font-size:16px; line-height:20px; text-align:center; margin-left:0px; margin-bottom:00px;'>随时掌握招标信息</div>");
|
|
|
|
+ insertflog = false;
|
|
|
|
+ }
|
|
|
|
+ originalCon = content;
|
|
|
|
+ if(s_winner){
|
|
|
|
+ content = keyWordHighlight(content,s_winner,"<span class='keyword winner' style=\"border-bottom:1px solid #2cb7ca\">$1</span>");
|
|
|
|
+ }
|
|
|
|
+ if(sds){
|
|
|
|
+ if(!insertflog){
|
|
|
|
+ $(".side-bar-div").html("<font class='side-bar-title' style='padding-left:17px; line-height:45px;'><b>扫码关注剑鱼招标订阅</b></font>");
|
|
|
|
+ $(".side-bar-div-con").html("<div class='side-bar-bottom-lable' style='font-size:16px; line-height:20px; text-align:center; margin-left:0px; margin-bottom:0px;'>微信扫一扫</div><div class='side-bar-bottom-lable' style='font-size:16px; line-height:20px; text-align:center; margin-left:0px; margin-bottom:00px;'>随时掌握招标信息</div>");
|
|
|
|
+ }
|
|
|
|
+ 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);
|
|
|
|
+ //
|
|
|
|
+ if(lsgim=="T"){
|
|
|
|
+ $(".poperr").hide();
|
|
|
|
+ }else if($(".com-detail .fphl").length>0){
|
|
|
|
+ var rerfieldname = "项目名称"
|
|
|
|
+ if(fwtscode!=""&&fwtscode=="agency"){
|
|
|
|
+ rerfieldname="招标机构"
|
|
|
|
+ }else if(fwtscode!=""&&fwtscode=="budget"){
|
|
|
|
+ rerfieldname="项目预算"
|
|
|
|
+ }else if(fwtscode!=""&&fwtscode=="buyer"){
|
|
|
|
+ rerfieldname="采购单位"
|
|
|
|
+ }else if(fwtscode!=""&&fwtscode=="winner"){
|
|
|
|
+ rerfieldname="中标单位"
|
|
|
|
+ }else if(fwtscode!=""&&fwtscode=="bidamount"){
|
|
|
|
+ rerfieldname="中标金额"
|
|
|
|
+ }else if(fwtscode!=""&&fwtscode=="bidopentime"){
|
|
|
|
+ rerfieldname="开标日期"
|
|
|
|
+ }else if(fwtscode!=""&&fwtscode=="buyerperson"){
|
|
|
|
+ rerfieldname="采购联系人"
|
|
|
|
+ }else if(fwtscode!=""&&fwtscode=="buyertel"){
|
|
|
|
+ rerfieldname="采购电话"
|
|
|
|
+ }
|
|
|
|
+ $(".pop-head span").html('标出正确的'+rerfieldname);
|
|
|
|
+ if($(".com-detail .fphl").length>0){
|
|
|
|
+ heightLight = $(".com-detail .fphl").offset().top;
|
|
|
|
+ }
|
|
|
|
+ var sctop = document.documentElement.scrollTop || document.body.scrollTop;
|
|
|
|
+ if(heightLight>sctop&&heightLight<(sctop+cHeight)){
|
|
|
|
+ $(".poperr").show();//纠错高亮位置
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ 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]) - $(".j-head")[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="/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(1000);
|
|
|
|
+ },1000)
|
|
|
|
+ })
|
|
|
|
+ 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="/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(1000);
|
|
|
|
+ },1000)
|
|
|
|
+ })
|
|
|
|
+ thishtlists();
|
|
|
|
+}
|
|
|
|
+//
|
|
|
|
+var thishtlists_ent = function(){
|
|
|
|
+ var _id = {{.T.obj._id}};
|
|
|
|
+ var s_winner = {{.T.obj.winner}};
|
|
|
|
+ var _bidamount = {{.T.obj.bidamount}};
|
|
|
|
+ var projectname = {{.T.obj.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: 74px;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: 74px;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 = {{.T.obj.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: 74px;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: 74px;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: 74px;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: 74px;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: 74px;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}};
|
|
|
|
+
|
|
|
|
+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(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 decodeURI(r[2]);
|
|
|
|
+ return "";
|
|
|
|
+}
|
|
|
|
+</script>
|
|
|
|
+<!--百度统计start-->
|
|
|
|
+<script>
|
|
|
|
+var _hmt = _hmt || [];
|
|
|
|
+(function(){
|
|
|
|
+ var hm = document.createElement("script");
|
|
|
|
+ hm.src = "//hm.baidu.com/hm.js?d7bc90fd54f45f37f12967f13c4ba19a";
|
|
|
|
+ var s = document.getElementsByTagName("script")[0];
|
|
|
|
+ s.parentNode.insertBefore(hm, s);
|
|
|
|
+})();
|
|
|
|
+</script>
|
|
|
|
+<!--百度统计end-->
|
|
|
|
+{{include "/common/baiducc.html"}}
|
|
|
|
+</body>
|
|
|
|
+</html>
|