ss 1 year ago
parent
commit
7ad6bc9011

+ 1 - 1
application/admin/controller/Index.php

@@ -157,7 +157,7 @@ class Index extends Auth
             ->where('org_id',$this->orgId)
             ->where('del',0)
             ->where('user_id',$this->userId)
-            ->field('id,title,create_time')
+            ->field('id,title,create_time,content')
             ->order('id desc')
             ->limit(2)
             ->select();

+ 7 - 0
application/admin/controller/NoticeCommon.php

@@ -101,6 +101,13 @@ class NoticeCommon extends Auth
 
         return $this->fetch();
     }
+    //通知详情
+    public function noticeDetail($id=0){
+        $info = db('notice')->where('id',$id)->find();
+        $this->assign('info',$info);
+
+        return $this->fetch();
+    }
 
 
 }

+ 18 - 0
application/admin/view/notice_common/notice_detail.html

@@ -0,0 +1,18 @@
+{extend name="common/common2" /}
+{block name="main"}
+<div class="row">
+    <div class="col-sm-12">
+        <div class="ibox float-e-margins">
+            <div class="ibox-content">
+                <h3 class="text-center"> {$info['title']}</h3>
+                <div class="text-center text-muted">{$info['create_time']}</div>
+                <div style="padding: 15px 0;">
+                    {$info['content']}
+                </div>
+
+            </div>
+
+        </div>
+    </div>
+</div>
+{/block}