王传进 8 år sedan
förälder
incheckning
9bc4109c73
2 ändrade filer med 39 tillägg och 6 borttagningar
  1. 33 0
      src/jfw/front/entserach.go
  2. 6 6
      src/jfw/front/front.go

+ 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"` //历时推送记录--分页
 	aboutus           xweb.Mapper `xweb:"/front/aboutus.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**************************/
 	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 {
 	keys := []interface{}{}