Browse Source

+替换空格

xuzhiheng 5 years ago
parent
commit
c6b7900fa7

+ 1 - 0
src/jfw/front/dataExport.go

@@ -490,6 +490,7 @@ func (d *DataExport) SuperSearchExport() error {
 			isIntercept = true
 		}
 		_, _, keywords = jy.InterceptSearchKW(keywords, isIntercept, len(industrySave) == 0)
+		keywords = strings.Replace(keywords, "+", " ", -1)
 		KeyWordSave = append(KeyWordSave, public.KeyWord{Keyword: keywords})
 	}
 	//时间

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

@@ -268,6 +268,7 @@ func (p *Pcsearch) PcSearchIndex() error {
 				secondFlag = "T"
 			}
 		}
+		s_word = strings.Replace(s_word, "+", " ", -1)
 		SaveUserSearchLog(p.Request, util.ObjToString(p.GetSession("userId")), count, "pc", "超级搜索", map[string]interface{}{
 			"search_word":        s_word,
 			"search_area":        area,

+ 1 - 0
src/jfw/front/ws_dataExport.go

@@ -360,6 +360,7 @@ func (w *WsDataExport) SearchExport() error {
 			isIntercept = true
 		}
 		_, _, keywords = jy.InterceptSearchKW(keywords, isIntercept, len(industrySave) == 0)
+		keywords = strings.Replace(keywords, "+", " ", -1)
 		KeyWordSave = append(KeyWordSave, public.KeyWord{Keyword: keywords})
 	}
 	//时间

+ 1 - 0
src/jfw/modules/app/src/app/front/ws_dataExport.go

@@ -363,6 +363,7 @@ func (w *WsDataExport) SearchExport() error {
 			isIntercept = true
 		}
 		_, _, keywords = jy.InterceptSearchKW(keywords, isIntercept, len(industrySave) == 0)
+		keywords = strings.Replace(keywords, "+", " ", -1)
 		KeyWordSave = append(KeyWordSave, public.KeyWord{Keyword: keywords})
 	}
 	//时间

+ 5 - 1
src/jfw/modules/app/src/web/templates/dataExport/dataExport.html

@@ -315,6 +315,11 @@
             }
         });
         //
+        var scrollTop = 0;
+        $(window).scroll(function(){
+			scrollTop = $(this).scrollTop();
+		});
+        //
         $('.match').click(function () {
             $('.match_way').slideDown('slow');
             var selectType = $(this).text();
@@ -813,7 +818,6 @@
         if($("#keyword").text()===""){
             sessionStorage.removeItem("keyWord")
         }
-        //
 
         //筛选条件发送
         $(".saveData").on('click', function () {