diff --git a/controllers/BlogController.go b/controllers/BlogController.go index 0a65ac8..de2cd58 100644 --- a/controllers/BlogController.go +++ b/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) diff --git a/controllers/PageController.go b/controllers/PageController.go index cdb55be..ec703f1 100644 --- a/controllers/PageController.go +++ b/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" } diff --git a/static/img/2.png b/static/img/2.png deleted file mode 100644 index 3376619..0000000 Binary files a/static/img/2.png and /dev/null differ diff --git a/static/img/redalipay.png b/static/img/redalipay.png new file mode 100644 index 0000000..b6f6e86 Binary files /dev/null and b/static/img/redalipay.png differ diff --git a/views/T.nav.tpl b/views/T.nav.tpl index df57621..d701bb4 100644 --- a/views/T.nav.tpl +++ b/views/T.nav.tpl @@ -11,16 +11,16 @@ 首页
  • - 博客 + 博客
  • 笔记
  • - 地图 + 地图
  • - 关于我们 + 关于我们
  • {{/*