Browse Source

初始化公告代码

tags/v1.22.1.1^2
wangjr 4 years ago
parent
commit
64214d4493
3 changed files with 28 additions and 0 deletions
  1. +25
    -0
      templates/base/head.tmpl
  2. +2
    -0
      templates/base/head_navbar.tmpl
  3. +1
    -0
      templates/base/head_pro.tmpl

+ 25
- 0
templates/base/head.tmpl View File

@@ -200,9 +200,34 @@ var _hmt = _hmt || [];
<div class="ui top secondary stackable main menu following bar dark">
{{template "base/head_navbar" .}}
</div><!-- end bar -->
{{.title}}
<!-- {{if .notice}}
<div class="notic_content" id ="notic_content" >
【更新公告】接口登记反馈
<i class="icon icon-octicon x_icon" onclick="closeNoice()">{{svg "octicon-x" 16}}</i>
</div>
{{end}} -->
{{end}}
{{/*
</div>
</body>
</html>
*/}}
<style>
.notic_content{
height: 50px;
vertical-align: middle;
text-align: center;
line-height: 50px;
background: #E5F4F4
}
.x_icon{
float: right;
margin-right: 15px !important;
}
</style>
<script>
function closeNoice(){
$("#notic_content").css('display','none');
}
</script>

+ 2
- 0
templates/base/head_navbar.tmpl View File

@@ -221,4 +221,6 @@
</div><!-- end anonymous right menu -->

{{end}}

</div>


+ 1
- 0
templates/base/head_pro.tmpl View File

@@ -200,6 +200,7 @@ var _hmt = _hmt || [];
<div class="ui top secondary stackable main menu following bar dark">
{{template "base/head_navbar_pro" .}}
</div><!-- end bar -->

{{end}}
{{/*
</div>


Loading…
Cancel
Save