Ver código fonte

wip:三级页提交

wangkaiyue 1 ano atrás
pai
commit
98a4abbfd8
1 arquivos alterados com 16 adições e 6 exclusões
  1. 16 6
      resource/template/pc/components/tags-bid-nav.html

+ 16 - 6
resource/template/pc/components/tags-bid-nav.html

@@ -1,13 +1,23 @@
-{{$Cfg:=GetAreaIndexCfg .areaNode.Code}}
+{{$global:=.}}
+{{$Cfg:=GetAreaIndexCfg $global.areaNode.Code}}
 <section class="tags-bid-nav">
   <ul class="bid-nav-content w">
     <li>
-      <a href="{{.areaNode.Href}}" target="_blank">{{.areaNode.Name}}招标网首页</a>
+      <a href="{{.areaNode.Href}}" target="_blank">{{$global.areaNode.Name}}招标网首页</a>
     </li>
-    {{range $hots:=$Cfg.Hots}}
-      <li>
-        <a href="{{$hots.Href}}" target="_blank">{{$hots.Name}}{{if not (Contains $hots.Name "自治州")}}招标信息{{end}}</a>
-      </li>
+    {{if eq $global.areaNode.Type 1}}
+      {{range $hots:=$Cfg.Hots}}
+        <li>
+          <a href="{{$hots.Href}}" target="_blank">{{$hots.Name}}{{if not (Contains $hots.Name "自治州")}}招标信息{{end}}</a>
+        </li>
+      {{end}}
+    {{else if eq $global.areaNode.Type 3}}
+      <!-- 直辖市展示行业-->
+      {{range $class:= GetHotClass 6}}
+        <li>
+          <a href="{{$class.Code}}" target="_blank">{{$class.Name}}招标信息</a>
+        </li>
+      {{end}}
     {{end}}
   </ul>
 </section>