|
@@ -98,7 +98,15 @@
|
|
|
<div id="header">
|
|
|
|
|
|
<div class="col-xs-12 index-header" style="text-align:center;">
|
|
|
- <img src="{{if .T.res.s_avatar}}{{Msg "seo" "cdn"}}{{.T.res.s_avatar}}{{else}}null{{end}}" onerror="this.src='{{Msg "seo" "cdn"}}/images/ent-logo.png'" height=85 width=85>
|
|
|
+ <script type="text/javascript">
|
|
|
+ var src = {{.T.res.s_avatar}};
|
|
|
+ if(src == ""){
|
|
|
+ src = null;
|
|
|
+ }else if(!src.startWith("http://")){
|
|
|
+ src = {{Msg "seo" "cdn"}}+src;
|
|
|
+ }
|
|
|
+ document.write('<img src="'+src+'" onerror="this.src=\'{{Msg "seo" "cdn"}}/images/ent-logo.png\'" height="85" width="85">');
|
|
|
+ </script>
|
|
|
<div class="col-xs-12 title">
|
|
|
{{if .T.res.EntName}}{{.T.res.EntName}}{{end}}
|
|
|
</div >
|