From 91162301d61f61a896832e4b48cc8873db98f64a Mon Sep 17 00:00:00 2001 From: "DESKTOP-CLI22EN\\HogenWang" Date: Fri, 23 Nov 2018 00:53:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0view?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- COMCMS.Web/Views/Article/Index.cshtml | 81 ++++++++++++++++++++++++++- 1 file changed, 78 insertions(+), 3 deletions(-) diff --git a/COMCMS.Web/Views/Article/Index.cshtml b/COMCMS.Web/Views/Article/Index.cshtml index 15ac2f2..22f7cd0 100644 --- a/COMCMS.Web/Views/Article/Index.cshtml +++ b/COMCMS.Web/Views/Article/Index.cshtml @@ -1,7 +1,82 @@ - +@model COMCMS.Core.ArticleCategory @{ - ViewData["Title"] = "Index"; + ViewBag.title = Model.KindName; + ViewBag.keywords = Model.Keyword; + ViewBag.description = Model.Description; + //获取同级分类 + IList sameList = ArticleCategory.FindAll(ArticleCategory._.PId == Model.PId, ArticleCategory._.Rank.Asc(), null, 0, 0); } + +
+
+
    + @foreach (var k in sameList) + { +
  • @k.KindName
  • + } +
-

Index

+ +
+
+ +