|
@@ -0,0 +1,366 @@
|
|
|
+<html>
|
|
|
+<head>
|
|
|
+<title>信息检索</title>
|
|
|
+{{include "/common/inc.html"}}
|
|
|
+</head>
|
|
|
+<body>
|
|
|
+<script type="text/javascript">
|
|
|
+$(function(){
|
|
|
+
|
|
|
+ $(".b-nav>ul>li:eq(2)").addClass("b-nav-active");
|
|
|
+ var seap = {{.T.s_type}};
|
|
|
+ if (seap.length < 1){
|
|
|
+ seap = "1"
|
|
|
+ }
|
|
|
+ type(seap);
|
|
|
+ var s_words = [];
|
|
|
+ s_words = {{.T.s_name}};
|
|
|
+
|
|
|
+ var flog = {{.T.success}};
|
|
|
+ if (!flog){
|
|
|
+ $("#conlist").html('<div class="text-center"><div ><img style="width:137px;margin-top:60px;" src="/images/findnull.png"></div><div style="margin-bottom:50px;">没有找到和该关键词匹配的信息</div></div>');
|
|
|
+ }else{
|
|
|
+ $("#searchts").removeClass("hidden");
|
|
|
+ var str = ""
|
|
|
+ var temp = {{.T.msglist}}
|
|
|
+ str+=temp["s_content"];
|
|
|
+ a_visitedindex=temp["a_visitedindex"];
|
|
|
+ a_publishtime=temp["a_publishtime"];
|
|
|
+ f_id=temp["_id"];
|
|
|
+ $("#conlist").append('<div id="ycwords" datatype="'+temp["s_type"]+'">'+str+'</div>')
|
|
|
+ //信息条总数
|
|
|
+ le=$(".tslist").length;
|
|
|
+ //
|
|
|
+ $(".tslist").each(function(i){
|
|
|
+ $(this).children(".xh").text(function(i,v){
|
|
|
+ v = v.replace(".","")
|
|
|
+ return v
|
|
|
+ });
|
|
|
+ //关键词高亮
|
|
|
+ var html = $(this).html();
|
|
|
+ if(s_words != ""){
|
|
|
+ var wordsArray = s_words.split("+");
|
|
|
+ for(var si=0;si<wordsArray.length;si++){
|
|
|
+ var reg = new RegExp(wordsArray[si],"g");
|
|
|
+ html = html.replace(reg,function(word){
|
|
|
+ return '<font class="keyword">'+word+'</font>';
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ $(this).html(html);
|
|
|
+ //已访问过的灰色
|
|
|
+ var xh = $(this).children(".xh").text();
|
|
|
+ if(typeof(a_visitedindex)!= "undefined"){
|
|
|
+ for(var i=0;i<a_visitedindex.length;i++){
|
|
|
+ if(xh == a_visitedindex[i]){
|
|
|
+ $(this).find("a.bt").addClass("visited");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ var datatype = $(this).parents("#ycwords").attr("datatype");
|
|
|
+ //if(datatype == "bid"){
|
|
|
+ // datatype = "【中标公告】";
|
|
|
+ //}else if(datatype == "tender"){
|
|
|
+ // datatype = "【招标公告】";
|
|
|
+ //}else{
|
|
|
+ datatype = "";
|
|
|
+ //}
|
|
|
+ $(this).find("a.bt").prepend(datatype).wrap("<div class='bt-parent' id="+xh+"></div>");
|
|
|
+ $(this).append(function(){
|
|
|
+ if(a_publishtime == "" || typeof(a_publishtime[xh]) == "undefined"){
|
|
|
+ return "";
|
|
|
+ }else{
|
|
|
+ var date1=new Date(Number(a_publishtime[xh]+"000"));//开始时间
|
|
|
+ var date2=new Date();//结束时间
|
|
|
+ var date3=date2.getTime()-date1.getTime();//时间差的毫秒数
|
|
|
+ //计算出相差天数
|
|
|
+ var days=Math.floor(date3/(24*3600*1000));
|
|
|
+ //计算出小时数
|
|
|
+ var leave1=date3%(24*3600*1000);//计算天数后剩余的毫秒数
|
|
|
+ var hours=Math.floor(leave1/(3600*1000));
|
|
|
+ //计算相差分钟数
|
|
|
+ var leave2=leave1%(3600*1000);//计算小时数后剩余的毫秒数
|
|
|
+ var minutes=Math.floor(leave2/(60*1000));
|
|
|
+ //计算相差秒数
|
|
|
+ /*var leave3=leave2%(60*1000);//计算分钟数后剩余的毫秒数
|
|
|
+ var seconds=Math.round(leave3/1000);*/
|
|
|
+ var timeDiff = "1分钟";
|
|
|
+ if(days > 0){
|
|
|
+ timeDiff = days+"天";
|
|
|
+ }else if(hours > 0){
|
|
|
+ timeDiff = hours+"小时";
|
|
|
+ }else if(minutes > 0){
|
|
|
+ timeDiff = minutes+"分钟";
|
|
|
+ }
|
|
|
+ return '<span class="time-diff">'+timeDiff+'前</span>';
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }
|
|
|
+ setTimeout(function(){
|
|
|
+ var abt=$("a.bt");
|
|
|
+ abt.each(function(){
|
|
|
+ var h=$(this).attr("href");
|
|
|
+ $(this).removeAttr("target");
|
|
|
+ $(this).removeAttr("href");
|
|
|
+ if (h.indexOf("java")==-1){
|
|
|
+ $(this).attr("s",h)
|
|
|
+ $(this).attr("f_id",f_id)
|
|
|
+ $(this).attr("href","javascript:void(0);")
|
|
|
+ }
|
|
|
+ })
|
|
|
+ abt.click(function(){
|
|
|
+ var h=$(this).attr("s");
|
|
|
+ open_window(h);
|
|
|
+ return false;
|
|
|
+ })
|
|
|
+ },800)
|
|
|
+});
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+</script>
|
|
|
+<style type="text/css">
|
|
|
+#kong{
|
|
|
+ margin-top:120px;
|
|
|
+ margin-bottom:150px;
|
|
|
+ font-size:18px;
|
|
|
+ cursor:hand;
|
|
|
+}
|
|
|
+.visited{
|
|
|
+ color: #a0a0a0;
|
|
|
+}
|
|
|
+.time-diff{
|
|
|
+ color: #a0a0a0;
|
|
|
+ font-size: 14px;
|
|
|
+ display: inline-block;
|
|
|
+ width: 40px;
|
|
|
+ white-space:nowrap;
|
|
|
+ margin-left: 50px;
|
|
|
+}
|
|
|
+.keyword{
|
|
|
+ color: #FF5A5F;
|
|
|
+}
|
|
|
+.tim{
|
|
|
+ padding:21px 0px;
|
|
|
+}
|
|
|
+.row{
|
|
|
+ margin-left:10px;
|
|
|
+ margin-right:10px;
|
|
|
+}
|
|
|
+#ycwords>div:first-of-type{
|
|
|
+ display:none;
|
|
|
+}
|
|
|
+#forkw{
|
|
|
+ margin-top: 15px;
|
|
|
+ padding:10px 0px 10px 50px;
|
|
|
+ background-color: #F7F8FA;
|
|
|
+ color: #a0a0a0;
|
|
|
+}
|
|
|
+.xh{
|
|
|
+ width: 10%;
|
|
|
+ color:#35C5DA;
|
|
|
+ font-size:15px;
|
|
|
+ font-weight:bold;
|
|
|
+ margin:0px 10px;
|
|
|
+ float:left;
|
|
|
+ display: inline-block;
|
|
|
+ width:18px;
|
|
|
+ text-align:right;
|
|
|
+}
|
|
|
+.tslist{
|
|
|
+ border-bottom:1px solid #ccc;
|
|
|
+ width:100%;
|
|
|
+ padding:15px 0px;
|
|
|
+}
|
|
|
+#timestamp{
|
|
|
+ color:#ccc;
|
|
|
+}
|
|
|
+#bt{
|
|
|
+ font-size:15px;
|
|
|
+}
|
|
|
+#more{
|
|
|
+ border:1px solid #ccc;
|
|
|
+ margin:20px;
|
|
|
+}
|
|
|
+.btn-link:hover{
|
|
|
+ text-decoration:none;
|
|
|
+}
|
|
|
+.btn-link{
|
|
|
+ text-decoration:none;
|
|
|
+ color:#000;
|
|
|
+}
|
|
|
+.bt-parent{
|
|
|
+ width: 82%;
|
|
|
+ display: inline-block;
|
|
|
+}
|
|
|
+#searchtitle{
|
|
|
+ padding:25px 30px 10px 30px;
|
|
|
+}
|
|
|
+#searchtitle span{
|
|
|
+ padding:0px 20px;
|
|
|
+ font-size:16px;
|
|
|
+ cursor:hand;
|
|
|
+ margin-left:-10px;
|
|
|
+}
|
|
|
+#searchtitle span:hover{
|
|
|
+ color:#37c6da;
|
|
|
+}
|
|
|
+#searchzhb2{
|
|
|
+ border-left:2px solid rgb(229, 230, 233);
|
|
|
+ border-right:2px solid rgb(229, 230, 233);
|
|
|
+}
|
|
|
+.searchactive{
|
|
|
+ color:rgb(53, 197, 218);
|
|
|
+}
|
|
|
+.searchbtn{
|
|
|
+ border:1px solid #37c6da;
|
|
|
+ background-color:#37c6da;
|
|
|
+ height:38px;
|
|
|
+ width:130px;
|
|
|
+ line-height:38px;
|
|
|
+ border-radius: 4px;
|
|
|
+ color:#fff;
|
|
|
+ padding-left:28px;
|
|
|
+ font-size:15px;
|
|
|
+ cursor:hand;
|
|
|
+}
|
|
|
+.rsssetbtn{
|
|
|
+ border:1px solid #37c6da;
|
|
|
+ height:38px;
|
|
|
+ width:180px;
|
|
|
+ line-height:38px;
|
|
|
+ vertical-align: middle;
|
|
|
+ border-radius: 4px;
|
|
|
+ padding-left:28px;
|
|
|
+ font-size:15px;
|
|
|
+ cursor:hand;
|
|
|
+}
|
|
|
+#conlist{
|
|
|
+ padding:20px 50px 10px 0px;
|
|
|
+ margin-left:30px;
|
|
|
+}
|
|
|
+.tslist {
|
|
|
+ padding-left:0px !important;
|
|
|
+}
|
|
|
+
|
|
|
+.dybtn{
|
|
|
+ border:1px solid #37c6da;
|
|
|
+ background-color:#37c6da;
|
|
|
+ height:38px;
|
|
|
+ width:130px;
|
|
|
+ line-height:38px;
|
|
|
+ border-radius: 4px;
|
|
|
+ color:#fff;
|
|
|
+ font-size:15px;
|
|
|
+ cursor:hand;
|
|
|
+ display: inline-block;
|
|
|
+ margin:10px;
|
|
|
+}
|
|
|
+</style>
|
|
|
+<!-- 头部 -->
|
|
|
+{{include "/common/swordfishhead.html"}}
|
|
|
+<!-- 中间 -->
|
|
|
+<div class="b-content container-fluid">
|
|
|
+ <div class="b-left">
|
|
|
+ <div class="swordfish-page-title">
|
|
|
+ <i class="img-circle glyphicon jianyu"></i>信息查询
|
|
|
+ </div>
|
|
|
+ <!-- 关键词提示start -->
|
|
|
+ <div id="searchtitle" >
|
|
|
+ <span onClick="type(1)" id="searchzhb1" class="searchactive">招标公告</span>
|
|
|
+ <span onClick="type(2)" id="searchzhb2">中标公告</span>
|
|
|
+ <span id="searchzhb3">企业情报</span>
|
|
|
+ </div>
|
|
|
+ <div id="listform" style="padding:0px 0px 10px 40px">
|
|
|
+ <form action="/member/swordfish/searchinfolist" name="searchsword" method="post">
|
|
|
+ <div class="form-group">
|
|
|
+ <div class="col-sm-7">
|
|
|
+ <input class="form-control" id="searchname" name="searchname" value="{{.T.keywords}}" style="background-color:#FFFFFF; border:1px solid #e5e6e9;" placeholder="输入关键词查询"/>
|
|
|
+ </div>
|
|
|
+ <div class="col-sm-2">
|
|
|
+ <input name="s_type" id="sea_type" value="1" style="display:none;"/>
|
|
|
+ <input name="s_name" id="sea_name" value="" style="display:none;"/>
|
|
|
+ <div class="searchbtn" onclick="subsea()"><i class="glyphicon sousuo"></i> 查询</div>
|
|
|
+ </div>
|
|
|
+ <div class="col-sm-3">
|
|
|
+ <!--<div class="rsssetbtn" onClick="window.location.href='/member/swordfish/rssset';">进入我的信息订阅</div>-->
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ <!-- 关键词提示end -->
|
|
|
+ <!-- 列表start -->
|
|
|
+ <div class="row"><div class="col-sm-12" id="conlist"></div></div>
|
|
|
+ <!-- 列表end -->
|
|
|
+ <div id="more" class="hidden">
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-sm-12 btn btn-link text-center" onClick="loadMore()">
|
|
|
+ 点击加载更多
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div id="searchts" class="text-center hidden">
|
|
|
+ <div class="dybtn" onClick="window.location.href='/member/swordfish/rssset';">订阅</div>
|
|
|
+ <div>确认该关键词查询结果无误</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="b-right swordfish-qrcode text-center">
|
|
|
+ <img src="/images/swordfish/qrcode.png">
|
|
|
+ <br>关注微信公众号:企明星
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+
|
|
|
+<!-- 按钮触发模态框 -->
|
|
|
+<button class="btn hidden kfing" data-toggle="modal"
|
|
|
+ data-target="#myModal">
|
|
|
+</button>
|
|
|
+
|
|
|
+<!-- 模态框(Modal) -->
|
|
|
+<div class="modal fade" id="myModal" tabindex="-1" role="dialog"
|
|
|
+ aria-labelledby="myModalLabel" aria-hidden="true">
|
|
|
+ <div class="modal-dialog">
|
|
|
+ <div class="modal-content" style="height:500px;">
|
|
|
+ <div class="modal-header">
|
|
|
+ <button type="button" class="close"
|
|
|
+ data-dismiss="modal" aria-hidden="true">
|
|
|
+ ×
|
|
|
+ </button>
|
|
|
+ <h4 class="modal-title" id="myModalLabel">
|
|
|
+ 企业情报
|
|
|
+ </h4>
|
|
|
+ </div>
|
|
|
+ <div class="modal-body text-center" style="margin-top:150px;">
|
|
|
+ 开发中,敬请期待!
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div><!-- /.modal-content -->
|
|
|
+</div><!-- /.modal -->
|
|
|
+</div>
|
|
|
+<!-- 底部 -->
|
|
|
+{{include "/common/bottom.html"}}
|
|
|
+<script type="text/javascript">
|
|
|
+$("#searchzhb3").click(function(){
|
|
|
+ $(".kfing").click();
|
|
|
+});
|
|
|
+function subsea(){
|
|
|
+ var searchname = $("#searchname").val();
|
|
|
+ searchname = searchname.replace(/^\s+|\s+$/g,"").replace(/\s+/g,"+");
|
|
|
+ document.getElementById("sea_name").value = searchname;
|
|
|
+ document.forms['searchsword'].submit();
|
|
|
+}
|
|
|
+function type(i){
|
|
|
+ document.getElementById("sea_type").value = i;
|
|
|
+ for (j=1;j<3;j++){
|
|
|
+ if (j==i){
|
|
|
+ $("#searchzhb"+i).addClass("searchactive");
|
|
|
+ }else{
|
|
|
+ $("#searchzhb"+j).removeClass("searchactive");
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</script>
|
|
|
+</body>
|
|
|
+</html>
|