From 94d6d44d3b64df3edd8c8d9430232041ef6330b8 Mon Sep 17 00:00:00 2001 From: wurong <1667629529@qq.com> Date: Sat, 4 May 2019 13:48:58 +0800 Subject: [PATCH] fix some error and add ranklist my own color --- app/web/controller/Community.php | 1 + app/web/controller/Contest.php | 1 + app/web/view/pc/community/send_support_message.html | 4 ++-- app/web/view/pc/contest/ranklist.html | 6 +++--- public/static/css/local.css | 5 +++++ 5 files changed, 12 insertions(+), 5 deletions(-) diff --git a/app/web/controller/Community.php b/app/web/controller/Community.php index 4a5f5f5..8901995 100644 --- a/app/web/controller/Community.php +++ b/app/web/controller/Community.php @@ -126,6 +126,7 @@ class Community extends Base { return; $this->assign('from', $from); $this->assign('title', $info['title']); + $this->assign('tid',$tid); $data['content']=$this->fetch("send_support_message"); $data['time']=time(); db('message')->insert($data); diff --git a/app/web/controller/Contest.php b/app/web/controller/Contest.php index 49fe27c..3d62856 100644 --- a/app/web/controller/Contest.php +++ b/app/web/controller/Contest.php @@ -327,6 +327,7 @@ class Contest extends Base { $this->show_nav($cid); $this->judge_start($cid); $this->seal_ranklist($cid); + $this->assign("user_id",$this->user_id); return $this->fetch(); } public function input_password($cid) { //私人比赛输入密码 diff --git a/app/web/view/pc/community/send_support_message.html b/app/web/view/pc/community/send_support_message.html index ed1c740..3b908d6 100644 --- a/app/web/view/pc/community/send_support_message.html +++ b/app/web/view/pc/community/send_support_message.html @@ -1,7 +1,7 @@ 系统消息:用户 - + {$from} 赞了 - + {$title}这篇文章 \ No newline at end of file diff --git a/app/web/view/pc/contest/ranklist.html b/app/web/view/pc/contest/ranklist.html index a995e00..69e4fda 100644 --- a/app/web/view/pc/contest/ranklist.html +++ b/app/web/view/pc/contest/ranklist.html @@ -38,10 +38,10 @@ {foreach name="user" item="v" key="k"}