소스 검색

Merge branch 'dev2.0' of 192.168.3.17:qmx/jy into dev2.0

张金坤 8 년 전
부모
커밋
abc0e02892

+ 33 - 0
src/jfw/front/entserach.go

@@ -0,0 +1,33 @@
+package front
+
+import (
+	//"fmt"
+	//"jfw/config"
+	"log"
+	//"math/rand"
+	//"qfw/util"
+	//"time"
+
+	"github.com/go-xweb/xweb"
+)
+
+type Entsearch struct {
+	*xweb.Action
+
+	bidsearchforent xweb.Mapper `xweb:"/jylab/bidsearchforent"`
+}
+
+func init() {
+	xweb.AddAction(&Entsearch{})
+}
+
+func (p *Entsearch) Bidsearchforent() error {
+	//defer util.Catch()
+	//var shareid = p.GetString("id")
+	//if len(shareid) == 0 {
+	//	shareid = fmt.Sprintf("%s%d", config.Seoconfig["jysslby"].(string)+fmt.Sprintf("%d", time.Now().UnixNano())[8:14], rand.Intn(9))
+	//}
+	//p.T["shareid"] = se.EncodeString(shareid)
+	log.Println("-------中标企业搜索:")
+	return p.Render("/pc/biddingsearch_enterprise.html", &p.T)
+}

+ 6 - 6
src/jfw/front/front.go

@@ -88,7 +88,7 @@ type Front struct {
 	historypushPaging xweb.Mapper `xweb:"/swordfish/historypush/paging"` //历时推送记录--分页
 	historypushPaging xweb.Mapper `xweb:"/swordfish/historypush/paging"` //历时推送记录--分页
 	aboutus           xweb.Mapper `xweb:"/front/aboutus.html"`           //关于我们
 	aboutus           xweb.Mapper `xweb:"/front/aboutus.html"`           //关于我们
 	busicooperation	  xweb.Mapper `xweb:"/front/busicooperation.html"`   //商务合作
 	busicooperation	  xweb.Mapper `xweb:"/front/busicooperation.html"`   //商务合作
-	bidsearchforent	  xweb.Mapper `xweb:"/front/bidsearchforent.html"`   //中标企业搜索
+	//bidsearchforent	  xweb.Mapper `xweb:"/front/bidsearchforent.html"`   //中标企业搜索
 
 
 	/********************wxkeyset:v1.8**************************/
 	/********************wxkeyset:v1.8**************************/
 	wxrssset        xweb.Mapper `xweb:"/swordfish/page"`
 	wxrssset        xweb.Mapper `xweb:"/swordfish/page"`
@@ -857,11 +857,11 @@ func (f *Front) Busicooperation() error {
 }
 }
 
 
 //中标企业搜索
 //中标企业搜索
-func (f *Front) Bidsearchforent() error {
-
-	content, _ := f.Render4Cache("/pc/biddingsearch_enterprise.html", &f.T)
-	return f.SetBody(content)
-}
+//func (f *Front) Bidsearchforent() error {
+//
+//	content, _ := f.Render4Cache("/pc/biddingsearch_enterprise.html", &f.T)
+//	return f.SetBody(content)
+//}
 
 
 func (f *Front) Gethotkey() error {
 func (f *Front) Gethotkey() error {
 	keys := []interface{}{}
 	keys := []interface{}{}

+ 8 - 0
src/jfw/front/supsearch.go

@@ -15,15 +15,23 @@ type Pcsearch struct {
 	*xweb.Action
 	*xweb.Action
 
 
 	pcSearchIndex xweb.Mapper `xweb:"/jylab/supsearch/index"`
 	pcSearchIndex xweb.Mapper `xweb:"/jylab/supsearch/index"`
+	getEntName    xweb.Mapper `xweb:"/jylab/supsearch/getentname"`
 }
 }
 
 
 func init() {
 func init() {
 	xweb.AddAction(&Pcsearch{})
 	xweb.AddAction(&Pcsearch{})
 }
 }
 
 
+//
+func (p *Pcsearch) GetEntName() error {
+	return nil
+}
+
+//
 func (p *Pcsearch) PcSearchIndex() error {
 func (p *Pcsearch) PcSearchIndex() error {
 	defer util.Catch()
 	defer util.Catch()
 	var shareid = p.GetString("id")
 	var shareid = p.GetString("id")
+	p.T["logid"] = config.Seoconfig["jysslby"].(string)
 	if len(shareid) == 0 {
 	if len(shareid) == 0 {
 		shareid = fmt.Sprintf("%s%d", config.Seoconfig["jysslby"].(string)+fmt.Sprintf("%d", time.Now().UnixNano())[8:14], rand.Intn(9))
 		shareid = fmt.Sprintf("%s%d", config.Seoconfig["jysslby"].(string)+fmt.Sprintf("%d", time.Now().UnixNano())[8:14], rand.Intn(9))
 	}
 	}

+ 1 - 1
src/jfw/modules/entsesearch/src/search/search.go → src/jfw/jylabutil/entsearch.go

@@ -1,5 +1,5 @@
 // search
 // search
-package search
+package jylabutil
 
 
 import (
 import (
 	"fmt"
 	"fmt"

+ 7 - 2
src/web/staticres/css/dev2/biddingSearch.css

@@ -152,6 +152,7 @@
 
 
 #searchInner .searchHeader .searchHeader-container .searchInput .search-right-wx {
 #searchInner .searchHeader .searchHeader-container .searchInput .search-right-wx {
   float: right;
   float: right;
+  position: relative;
 }
 }
 
 
 #searchInner .searchHeader .searchHeader-container .searchInput .search-right-wx img {
 #searchInner .searchHeader .searchHeader-container .searchInput .search-right-wx img {
@@ -245,7 +246,7 @@
 
 
 #searchInner .searchControl .searchTender .leftTitle {
 #searchInner .searchControl .searchTender .leftTitle {
   float: left;
   float: left;
-  width: 70px;
+  width: 84px;
   text-align: right;
   text-align: right;
   color: #686868;
   color: #686868;
   padding: 4px 7px;
   padding: 4px 7px;
@@ -505,7 +506,7 @@
 #searchInner .searchControl .seaTender-inner .tabTitle li a {
 #searchInner .searchControl .seaTender-inner .tabTitle li a {
   display: inline-block;
   display: inline-block;
   width: 100%;
   width: 100%;
-  height: 100%;
+/*  height: 100%;*/
   font-size: 16px;
   font-size: 16px;
   color: #252627;
   color: #252627;
 }
 }
@@ -523,6 +524,7 @@
   height: 50px;
   height: 50px;
   line-height: 50px;
   line-height: 50px;
   background-color: transparent;
   background-color: transparent;
+  font-size:14px;
 }
 }
 
 
 #searchInner .searchControl .seaTender-inner .tabTitle .right-tabBtn button {
 #searchInner .searchControl .seaTender-inner .tabTitle .right-tabBtn button {
@@ -563,10 +565,12 @@
   /*列表*/
   /*列表*/
   background-color: #FFFFFF;
   background-color: #FFFFFF;
   margin-bottom: 30px;
   margin-bottom: 30px;
+  overflow: hidden;
 }
 }
 
 
 #searchInner .searchControl .seaTender-inner .tabContainer .lucene ul {
 #searchInner .searchControl .seaTender-inner .tabContainer .lucene ul {
   border-bottom: 1px solid #e0e0e0;
   border-bottom: 1px solid #e0e0e0;
+  display: inline-block;
 }
 }
 
 
 #searchInner .searchControl .seaTender-inner .tabContainer .lucene li {
 #searchInner .searchControl .seaTender-inner .tabContainer .lucene li {
@@ -583,6 +587,7 @@
   border-bottom: 1px solid #e0e0e0;
   border-bottom: 1px solid #e0e0e0;
   overflow: hidden;
   overflow: hidden;
   padding-bottom: 20px;
   padding-bottom: 20px;
+width:1160px;
 }
 }
 
 
 #searchInner .searchControl .seaTender-inner .tabContainer .lucene li .luce-left {
 #searchInner .searchControl .seaTender-inner .tabContainer .lucene li .luce-left {

+ 31 - 0
src/web/staticres/css/dev2/biddingSearch1.css

@@ -0,0 +1,31 @@
+.popQR{
+	position:absolute;
+	border: 1px solid #ccc;
+    width: 200px;
+    right: 0px;
+    height: 290px;
+	background-color: #fff;
+    top: 0px;
+	z-index: 99;
+	box-shadow: 0 0 10px rgba(0,0,0, .24);
+	cursor: pointer;
+}
+.promptheader{
+	font-size: 16px;
+    color: #2cb7ca;
+    font-weight: bold;
+    padding-left: 10px;
+    text-align: left;
+    border-bottom: 1px solid #f4f4f9;
+    line-height: 40px;
+}
+#keyImg{
+	width: 190px !important;
+    height: 190px !important;
+    vertical-align: middle;
+}
+.promptbottom{
+	padding:10px;
+	line-height:22px;
+	text-align:center;
+}

+ 22 - 5
src/web/templates/pc/supsearch.html

@@ -1,15 +1,16 @@
 <html>
 <html>
 <head>
 <head>
-<title>剑鱼博客_剑鱼招标订阅,全行业招标信息智能推送领导者</title>
+<title>{{Msg "seo" "qfw.swordfishsl.title"}}</title>
 <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
 <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
-<meta name="Keywords" content="剑鱼功能,剑鱼更新,招标动态,招标资讯,招投标热点,剑鱼博客"/>
-<meta name="Description" content="剑鱼博客栏目为用户及时发布最新的剑鱼功能更新、剑鱼操作指南和招投标行业相关的各类动态资讯。来剑鱼博客,变身剑鱼使用能手!"/>
+<meta name="Keywords" content="{{Msg "seo" "qfw.swordfishsl.key"}}"/>
+<meta name="Description" content="{{Msg "seo" "qfw.swordfishsl.description"}}"/>
 <meta name="renderer" content="webkit">
 <meta name="renderer" content="webkit">
 <meta content="telephone=no" name="format-detection"/>
 <meta content="telephone=no" name="format-detection"/>
 {{include "/common/pnc.html"}}
 {{include "/common/pnc.html"}}
 <link href="/css/pc.css?v={{Msg "seo" "version"}}" rel="stylesheet">
 <link href="/css/pc.css?v={{Msg "seo" "version"}}" rel="stylesheet">
 <link href="/css/dev2/reset_pc.css?v={{Msg "seo" "version"}}" rel="stylesheet">
 <link href="/css/dev2/reset_pc.css?v={{Msg "seo" "version"}}" rel="stylesheet">
 <link href="/css/dev2/biddingSearch.css?v={{Msg "seo" "version"}}" rel="stylesheet">
 <link href="/css/dev2/biddingSearch.css?v={{Msg "seo" "version"}}" rel="stylesheet">
+<link href="/css/dev2/biddingSearch1.css?v={{Msg "seo" "version"}}" rel="stylesheet">
 <script src="/js/jquery.cookie.js"></script>
 <script src="/js/jquery.cookie.js"></script>
 <script src="/js/biddingSearch.js?v={{Msg "seo" "version"}}"></script>
 <script src="/js/biddingSearch.js?v={{Msg "seo" "version"}}"></script>
 <style type="text/css">
 <style type="text/css">
@@ -86,12 +87,23 @@
 	-webkit-animation-fill-mode:forwards;
 	-webkit-animation-fill-mode:forwards;
 	   -moz-animation-fill-mode:forwards;
 	   -moz-animation-fill-mode:forwards;
 	     -o-animation-fill-mode:forwards;
 	     -o-animation-fill-mode:forwards;
-	        animation-fill-mode:forwards
+	        animation-fill-mode:forwards;
 }
 }
 .navigation{
 .navigation{
 	display:block;
 	display:block;
 }
 }
+a{
+	text-decoration: none !important;
+}
 </style>
 </style>
+<script>
+$(function(){
+	$(".searchname").on("input propertychange",function(){
+		var inputval = $("#searchinput").val();
+		
+  	});
+})
+</script>
 </head>
 </head>
 <body>
 <body>
 {{include "/common/pchead.html"}}
 {{include "/common/pchead.html"}}
@@ -107,7 +119,7 @@
 			<!--搜索-->
 			<!--搜索-->
 			<div class="searchInput clearfix">
 			<div class="searchInput clearfix">
 				<form action="" method="" class="clearfix">
 				<form action="" method="" class="clearfix">
-					<input  autocomplete="off" type="search" name="" id="search" value="" placeholder="高速公路" />
+					<input class="searchname" autocomplete="off" type="search" name="" id="searchinput" value="" name="keywords" placeholder="高速公路" />
 
 
 					<input type="submit" value="搜索" />
 					<input type="submit" value="搜索" />
 					<div class="searchSlideText">
 					<div class="searchSlideText">
@@ -138,6 +150,11 @@
 				<!--二维码-->
 				<!--二维码-->
 				<div class="search-right-wx">
 				<div class="search-right-wx">
 					<img src="/images/biddingSearch/sea-right-wx.png" />
 					<img src="/images/biddingSearch/sea-right-wx.png" />
+					<div class="popQR" style="display:none;">
+						<div class="promptheader">扫描订阅关键词</div>
+						<div><img  id="keyImg" src="/front/share/{{.T.shareid}}"/></div>
+						<div class="promptbottom">微信扫一扫<br>随时随地掌握招标信息</div>
+					</div>
 				</div>
 				</div>
 			</div>
 			</div>
 		</div>
 		</div>