浏览代码

增加支付宝红包二维码

layui
mail_yanpeng@163.com 6 年前
父节点
当前提交
99e08d8e15
  1. 1
      controllers/BlogController.go
  2. 4
      controllers/PageController.go
  3. 二进制
      static/img/2.png
  4. 二进制
      static/img/redalipay.png
  5. 8
      views/T.nav.tpl
  6. 4
      views/blog.html
  7. 4
      views/index.html
  8. 4
      views/login.html
  9. 4
      views/map.html
  10. 9
      views/us.html
  11. 4
      views/user.html

1
controllers/BlogController.go

@ -114,7 +114,6 @@ func (this *BlogController) Get() {
this.Data["UserId"] = this.GetSession("userid")
this.Data["HeadImg"] = this.GetSession("headimg")
this.Data["NickName"] = this.GetSession("nickname")
this.Data["UserId"] = this.GetSession("userid")
this.Data["IsLogin"] = this.GetSession("nickname") != nil
this.TplName = "blog.html"
service.CountBrows(blog.UserId)

4
controllers/PageController.go

@ -56,6 +56,10 @@ func (this *PageController) IframeNote() {
// @router /us
func (this *PageController) UsPage() {
this.Data["IsUs"] = true
this.Data["UserId"] = this.GetSession("userid")
this.Data["HeadImg"] = this.GetSession("headimg")
this.Data["NickName"] = this.GetSession("nickname")
this.Data["IsLogin"] = this.GetSession("nickname") != nil
this.TplName = "us.html"
}

二进制
static/img/2.png

二进制文件未显示。

之前

宽度:  |  高度:  |  大小: 321 KiB

二进制
static/img/redalipay.png

二进制文件未显示。

之后

宽度:  |  高度:  |  大小: 60 KiB

8
views/T.nav.tpl

@ -11,16 +11,16 @@
<a href="/">首页 </a>
</li>
<li {{if .IsBlog}} class="active" {{end}}>
<a href="/blogs" target="_blank">博客 </a>
<a href="/blogs">博客 </a>
</li>
<li>
<a href="/note" target="_blank">笔记</a>
</li>
<li {{if .IsMap}} class="active" {{end}}>
<a href="/map" target="_blank">地图</a>
<a href="/map">地图</a>
</li>
<li {{if .IsUs}} class="active" {{end}}>
<a href="/us" target="_blank">关于我们</a>
<a href="/us">关于我们</a>
</li>
</ul>
{{/*<form class="navbar-form navbar-left" role="search">*/}}
@ -44,7 +44,7 @@
<ul class="dropdown-menu" role="menu">
<li><a href="/me/blog">个人中心</a></li>
<li><a href="/note" target="_blank">我的笔记</a></li>
<li><a href="/u/{{.UserId}}" target="_blank">我的首页</a></li>
<li><a href="/u/{{.UserId}}">我的首页</a></li>
<li class="divider"></li>
<li><a href="/logout">安全退出</a></li>
</ul>

4
views/blog.html

@ -148,7 +148,7 @@
s.parentNode.insertBefore(bp, s);
/*360收录*/
var qihuo = document.createElement('script');
/* var qihuo = document.createElement('script');
if (curProtocol === 'https') {
qihuo.src = 'https://jspassport.ssl.qhimg.com/11.0.1.js?d33b14200fa89b7ecd3780341cd234c';
}
@ -157,7 +157,7 @@
}
qihuo.id = "sozz"
var s = document.getElementsByTagName("script")[1];
s.parentNode.insertBefore(qihuo, s);
s.parentNode.insertBefore(qihuo, s);*/
})
function recomm(pid, flag) {
layer.prompt({title: '请输入评论内容', value: name, formType: 2}, function (val, index) {

4
views/index.html

@ -62,7 +62,7 @@
s.parentNode.insertBefore(bp, s);
/*360收录*/
var qihuo = document.createElement('script');
/* var qihuo = document.createElement('script');
if (curProtocol === 'https') {
qihuo.src = 'https://jspassport.ssl.qhimg.com/11.0.1.js?d33b14200fa89b7ecd3780341cd234c';
}
@ -71,7 +71,7 @@
}
qihuo.id = "sozz"
var s = document.getElementsByTagName("script")[1];
s.parentNode.insertBefore(qihuo, s);
s.parentNode.insertBefore(qihuo, s);*/
})
</script>
</html>

4
views/login.html

@ -78,7 +78,7 @@
s.parentNode.insertBefore(bp, s);
/*360收录*/
var qihuo = document.createElement('script');
/* var qihuo = document.createElement('script');
if (curProtocol === 'https') {
qihuo.src = 'https://jspassport.ssl.qhimg.com/11.0.1.js?d33b14200fa89b7ecd3780341cd234c';
}
@ -87,7 +87,7 @@
}
qihuo.id = "sozz"
var s = document.getElementsByTagName("script")[1];
s.parentNode.insertBefore(qihuo, s);
s.parentNode.insertBefore(qihuo, s);*/
})
</script>
</html>

4
views/map.html

@ -67,7 +67,7 @@
s.parentNode.insertBefore(bp, s);
/*360收录*/
var qihuo = document.createElement('script');
/* var qihuo = document.createElement('script');
if (curProtocol === 'https') {
qihuo.src = 'https://jspassport.ssl.qhimg.com/11.0.1.js?d33b14200fa89b7ecd3780341cd234c';
}
@ -76,7 +76,7 @@
}
qihuo.id = "sozz"
var s = document.getElementsByTagName("script")[1];
s.parentNode.insertBefore(qihuo, s);
s.parentNode.insertBefore(qihuo, s);*/
})
</script>
</html>

9
views/us.html

@ -29,8 +29,9 @@
</div>
</div>
<div style="flex: 1">
<img src="/static/img/alipay.png" alt="" width="320">
<img src="/static/img/weixin.png" alt="" width="320">
<img src="/static/img/alipay.png" alt="" width="320" height="361">
<img src="/static/img/weixin.png" alt="" width="320" height="361">
<img src="/static/img/redalipay.png" alt="" height="360">
</div>
</div>
<div style="margin: 30px 5% 0 5%">
@ -52,7 +53,7 @@
s.parentNode.insertBefore(bp, s);
/*360收录*/
var qihuo = document.createElement('script');
/* var qihuo = document.createElement('script');
if (curProtocol === 'https') {
qihuo.src = 'https://jspassport.ssl.qhimg.com/11.0.1.js?d33b14200fa89b7ecd3780341cd234c';
}
@ -61,7 +62,7 @@
}
qihuo.id = "sozz"
var s = document.getElementsByTagName("script")[1];
s.parentNode.insertBefore(qihuo, s);
s.parentNode.insertBefore(qihuo, s);*/
})
</script>
</html>

4
views/user.html

@ -78,7 +78,7 @@
s.parentNode.insertBefore(bp, s);
/*360收录*/
var qihuo = document.createElement('script');
/* var qihuo = document.createElement('script');
if (curProtocol === 'https') {
qihuo.src = 'https://jspassport.ssl.qhimg.com/11.0.1.js?d33b14200fa89b7ecd3780341cd234c';
}
@ -87,7 +87,7 @@
}
qihuo.id = "sozz"
var s = document.getElementsByTagName("script")[1];
s.parentNode.insertBefore(qihuo, s);
s.parentNode.insertBefore(qihuo, s);*/
})
</script>
</html>
正在加载...
取消
保存