Explorar o código

增加页面判断

wangchuanjin %!s(int64=9) %!d(string=hai) anos
pai
achega
e29223805f
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      core/src/web/templates/yellowpage/enterpriseinfo.html

+ 2 - 2
core/src/web/templates/yellowpage/enterpriseinfo.html

@@ -150,8 +150,8 @@
 								</div>
 								<br><img src="/images/entcommunity/triangle.png">
 							</span>
-							<div><span>注册号</span><span>{{if .T.res.RegNo}}{{.T.res.RegNo}}{{end}}</span></div>
-							<div><span>行业</span><span>{{if .T.res.IndustryPhyName}}{{.T.res.IndustryPhyName}}{{end}}</span></div>
+							{{if .T.res.RegNo}}<div><span>注册号</span><span>{{.T.res.RegNo}}</span></div>{{end}}
+							{{if .T.res.IndustryPhyName}}<div><span>行业</span><span>{{.T.res.IndustryPhyName}}</span></div>{{end}}
 						</div>
 						<!--成立日期-->
 						<div class="entinfo-estdate">