|
@@ -366,7 +366,7 @@ func (p *Pcsearch) SearchPower(module string) {
|
|
|
Key: "mobileTag",
|
|
|
Label: "融创",
|
|
|
Type: "multiple",
|
|
|
- DefaultVal: []string{"all"},
|
|
|
+ DefaultVal: append(mobileTagItemsValOptionsAll, "all"), //默认选择全部
|
|
|
Options: mobileTagItemsValOptions,
|
|
|
})
|
|
|
}
|
|
@@ -473,8 +473,6 @@ func (p *Pcsearch) PcSearchIndex(module string) error {
|
|
|
territorialization = territorialization
|
|
|
default:
|
|
|
territorialization = ""
|
|
|
- //超级搜索页面 移动定制搜索标签
|
|
|
- mobileTag = p.GetSlice("mobileTag[]")
|
|
|
}
|
|
|
if territorialization == "" {
|
|
|
territorialization = p.GetString("property")
|
|
@@ -553,13 +551,20 @@ func (p *Pcsearch) PcSearchIndex(module string) error {
|
|
|
}
|
|
|
b_word, a_word, s_word = jy.InterceptSearchKW(keywords, keywordsLimit, len(industry) == 0)
|
|
|
}
|
|
|
- if len(mobileTag) > 0 { //当无该权限,把此字段置空
|
|
|
- if !jy.HasBidFieldPower(config.Middleground, p.Session(), MobileTagSearchFunctionCode) {
|
|
|
- mobileTag = []string{}
|
|
|
- } else if mobileTag[0] == "all" {
|
|
|
+ if strings.Index(p.Refer(), "/page_workDesktop/work-bench") > -1 {
|
|
|
+ //超级搜索页面 移动定制搜索标签(仅工作台内展示)
|
|
|
+ mobileTag = p.GetSlice("mobileTag[]")
|
|
|
+ if len(mobileTag) > 0 { //当无该权限,把此字段置空
|
|
|
+ if !jy.HasBidFieldPower(config.Middleground, p.Session(), MobileTagSearchFunctionCode) {
|
|
|
+ mobileTag = []string{}
|
|
|
+ } else if mobileTag[0] == "all" {
|
|
|
+ mobileTag = mobileTagItemsValOptionsAll
|
|
|
+ }
|
|
|
+ } else { //默认查询标签
|
|
|
mobileTag = mobileTagItemsValOptionsAll
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
//医疗领域化信息 用户前提是大会员 超级订阅,才有领域化功能的权限
|
|
|
if territorialization != "" && territorialization != "BIProperty" {
|
|
|
isSearch = false
|