liuxiaolu 8 年 前
コミット
dbaade7f0b

+ 1 - 1
src/jfw/front/follow.go

@@ -288,7 +288,7 @@ func (m *Follow) PcEntAllNotice() error {
 	data := map[string]interface{}{}
 	if entname!="" {
 		fields := `{"projectname":1,"bidamount":1,"title":1,"publishtime":1,"subtype":1,"toptype":1,"href":1}`
-		res, ok := tools.MQFW.Find("bidding", `{"winner":"`+entname+`"}`, nil, fields, false, -1, -1)
+		res, ok := tools.MQFW.Find("bidding", `{"winner":"`+entname+`"}`, `{"publishtime":-1}`, fields, false, -1, -1)
 		if ok && len(*res) != 0 && res != nil && *res != nil {
 			for _, v := range *res {
 				v["_id"] = util.EncodeArticleId2ByCheck(util.BsonIdToSId(v["_id"]))

+ 1 - 1
src/jfw/modules/followent/src/followent/followent.go

@@ -104,7 +104,7 @@ func (f *FollowEnt) NewInfo(winnerid string) error {
 	var a_visited interface{}
 	_id := ""
 	fields := `{"projectname":1,"bidamount":1,"title":1,"publishtime":1,"subtype":1,"toptype":1,"href":1}`
-	data, ok := mongodb.Find("bidding", `{"winner":"`+winner+`"}`, nil, fields, false, -1, -1)
+	data, ok := mongodb.Find("bidding", `{"winner":"`+winner+`"}`, `{"publishtime":-1}`, fields, false, -1, -1)
 	if !ok {
 		return f.Render("_error.html")
 	}

+ 31 - 24
src/web/templates/weixin/search/mainSearch.html

@@ -18,7 +18,7 @@
 				<!--搜索-->
 				<div class="search-tontrol">
 					<div>
-						<input class="inp-search" type="text" name="searchvalue"  value="" maxlength="50" placeholder="示例:税务局 软件" />
+						<input class="inp-search" type="text" name="searchvalue"  value="" maxlength="50" placeholder="示例:税务局 软件" readonly/>
 						<input class="search-submit" type="submit" value="" />
 					</div>
 					<!--点击关闭-->
@@ -54,32 +54,39 @@
                 $(".rightHref").click(function(){
                     window.open("http://mp.weixin.qq.com/mp/homepage?__biz=MzIyNTM1NDUyNw==&hid=2&sn=379fc869080a36d9d0798a3d4fb9a63a#wechat_redirect");
                 });
+                /*
 				$(".inp-search").click(function(){
 					window.open("/jylab/superSearch");
-				});
-                //超级和中标企业搜索跳转跳转
-				$(".content ul li a:eq(0)").click(function(){
-                    if(open_supersearch){
-                        window.location.href='/jylab/superSearch';
-                    }else{
-                        window.location.href='/jylab/laboratory/cjss';
-                    }
-				});
-                $(".content ul li a:eq(1)").click(function(){
-                    if(open_entsesearch){
-                        window.location.href='/jylab/entsesearch/search';
-                    }else{
-                        window.location.href='/jylab/laboratory/zbqy';
-                    }
+				});*/
+                $(".inp-search").on("touchstart",function (e) {
+                    e.preventDefault();
                 });
-			});
-            //查询是否开通超级搜索和中标企业搜索
-            function flush_isOpenSupersearch() {
-                $.post("/jylab/supsearch/getstatus",function(result){
-                    open_supersearch=result.supstatus;
-                    open_entsesearch=result.entstatus;
+                $(".inp-search").on("touchend",function () {
+                    window.open("/jylab/superSearch");
                 });
-            }
-		</script>
+            //超级和中标企业搜索跳转跳转
+            $(".content ul li a:eq(0)").click(function(){
+                if(open_supersearch){
+                    window.location.href='/jylab/superSearch';
+                }else{
+                    window.location.href='/jylab/laboratory/cjss';
+                }
+            });
+            $(".content ul li a:eq(1)").click(function(){
+                if(open_entsesearch){
+                    window.location.href='/jylab/entsesearch/search';
+                }else{
+                    window.location.href='/jylab/laboratory/zbqy';
+                }
+            });
+        });
+        //查询是否开通超级搜索和中标企业搜索
+        function flush_isOpenSupersearch() {
+            $.post("/jylab/supsearch/getstatus",function(result){
+                open_supersearch=result.supstatus;
+                open_entsesearch=result.entstatus;
+            });
+        }
+</script>
 	</body>
 </html>