浏览代码

wip:页面跳转新窗口打开

wangkaiyue 2 年之前
父节点
当前提交
0ca1ad42bf
共有 2 个文件被更改,包括 2 次插入3 次删除
  1. 1 2
      src/jfw/front/tags.go
  2. 1 1
      src/web/templates/pc/tags/template/industry-tags.html

+ 1 - 2
src/jfw/front/tags.go

@@ -214,7 +214,7 @@ func (this *Tags) Index(types, name string) {
 	this.T["areaList"] = this.GetArea(areaHref)
 
 	//行业标签获取
-	this.T["industryList"] = this.GetIndustry(industryHref)
+	this.T["industryList"] = this.GetIndustry(industryHref) //需要根据地区获取不同的标的物
 	//标的物标签获取
 
 	//字母表获取
@@ -444,7 +444,6 @@ func (this *Tags) GetIndustry(industryHref string) interface{} {
 		redis.Put("seoCache", rediskey, m, cacheTime)
 		return m
 	}
-	return nil
 }
 
 // 判断字符串是否再数组str内

+ 1 - 1
src/web/templates/pc/tags/template/industry-tags.html

@@ -7,7 +7,7 @@
                 <div class="tags-label">{{$kk}}</div>
                 <div class="tags-card-list clearfix">
                     {{range $kkk,$vvv := $vv}}
-                    <a class="tags-card-item inline fl" href="{{$vvv.url}}">{{$vvv.name}}</a>
+                    <a class="tags-card-item inline fl" href="{{$vvv.url}}" target="_blank">{{$vvv.name}}</a>
                     {{end}}
                     <a class="tags-card-item inline fr more-button show-more-button" style="display: none" href="javascript:;">更多 ></a>
                     <a class="tags-card-item inline fr more-button hide-more-button" style="display: none" href="javascript:;">收起</a>