|
@@ -23,8 +23,7 @@ import (
|
|
|
|
|
|
type Pcsearch struct {
|
|
|
*xweb.Action
|
|
|
-
|
|
|
- pcSearchIndex xweb.Mapper `xweb:"/jylab/supsearch/index.html"` //搜索首页
|
|
|
+ pcSearchIndex xweb.Mapper `xweb:"/jylab/(supsearch|medical)/index.html"` //搜索首页
|
|
|
getNewBids xweb.Mapper `xweb:"/jylab/supsearch/getNewBids"` //最新招标信息
|
|
|
getstatus xweb.Mapper `xweb:"/jylab/supsearch/getstatus"` //实验室开启状态
|
|
|
proposedProject xweb.Mapper `xweb:"/jylab/supsearch/proposedProject.html"` //拟建项目
|
|
@@ -270,10 +269,21 @@ func (p *Pcsearch) GetNewBids() error {
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
-func (p *Pcsearch) PcSearchIndex() error {
|
|
|
+func (p *Pcsearch) PcSearchIndex(module string) error {
|
|
|
defer util.Catch()
|
|
|
p.T["logid"] = config.Seoconfig["jysslby"].(string)
|
|
|
- bidField := p.GetString("bid_field") // 领域类型 医疗-0101
|
|
|
+
|
|
|
+ // 领域化标识
|
|
|
+ bidField := p.GetString("bid_field")
|
|
|
+ switch module {
|
|
|
+ case "medical": // 领域类型 医疗-0101
|
|
|
+ if bidField == "" {
|
|
|
+ bidField = "0101"
|
|
|
+ }
|
|
|
+ default:
|
|
|
+ bidField = ""
|
|
|
+ }
|
|
|
+
|
|
|
keywords := p.GetString("keywords")
|
|
|
industry := strings.TrimSpace(p.GetString("industry")) //选中的行业
|
|
|
area := p.GetString("area") //地区
|
|
@@ -415,6 +425,7 @@ func (p *Pcsearch) PcSearchIndex() error {
|
|
|
p.T["sortArray"] = sortArray
|
|
|
p.T["showVipScreen"] = isPayedUser
|
|
|
p.T["bidField"] = bidField
|
|
|
+ p.T["module"] = module
|
|
|
//
|
|
|
if userId != "" {
|
|
|
//企业画像 权限
|