diff --git a/COMCMS.Web/Controllers/ArticleController.cs b/COMCMS.Web/Controllers/ArticleController.cs index b1684ea..ee6b1d0 100644 --- a/COMCMS.Web/Controllers/ArticleController.cs +++ b/COMCMS.Web/Controllers/ArticleController.cs @@ -29,11 +29,11 @@ namespace COMCMS.Web.Controllers if (Utils.IsInt(model.LinkURL))//如果是数字,则跳转到详情 { //Redirect($"/aritcle/{model.LinkURL}.html"); - Redirect($"/Article/Detail/{model.LinkURL}"); + return Redirect($"/Article/Detail/{model.LinkURL}"); } else { - Redirect(model.LinkURL); + return Redirect(model.LinkURL); } } @@ -121,7 +121,7 @@ namespace COMCMS.Web.Controllers if (!string.IsNullOrEmpty(entity.LinkURL)) { //return Content(entity.LinkURL); - Redirect(entity.LinkURL); + return Redirect(entity.LinkURL); } ViewBag.kind = kind; ViewBag.cfg = cfg; diff --git a/COMCMS.Web/Views/Article/Detail.cshtml b/COMCMS.Web/Views/Article/Detail.cshtml index 79b6ccf..c19b3fa 100644 --- a/COMCMS.Web/Views/Article/Detail.cshtml +++ b/COMCMS.Web/Views/Article/Detail.cshtml @@ -4,6 +4,8 @@ ViewBag.keywords = Model.Keyword; ViewBag.description = Model.Description; IList
alist = Article.FindAll(Article._.KId == Model.KId, Article._.Sequence.Asc(), null, 0, 0); + int topkid = ViewBag.kind.PId >0? ViewBag.kind.PId : ViewBag.kind.Id; + } + diff --git a/COMCMS.Web/Views/Article/Detail_About.cshtml b/COMCMS.Web/Views/Article/Detail_About.cshtml new file mode 100644 index 0000000..dab4248 --- /dev/null +++ b/COMCMS.Web/Views/Article/Detail_About.cshtml @@ -0,0 +1,48 @@ +@model COMCMS.Core.Article +@{ + ViewBag.title = Model.Title; + ViewBag.keywords = Model.Keyword; + ViewBag.description = Model.Description; + IList
alist = Article.FindAll(Article._.KId == Model.KId, Article._.Sequence.Asc(), null, 0, 0); + int topkid = ViewBag.kind.PId > 0 ? ViewBag.kind.PId : ViewBag.kind.Id; +} + + +
+
+
    + @foreach (Article a in alist) + { +
  • @a.Title
  • + } +
+ + +
+
+ +
+
+
+ @Html.Raw(Model.Content) +
+
+
+ \ No newline at end of file diff --git a/COMCMS.Web/Views/Article/Detail_Contact.cshtml b/COMCMS.Web/Views/Article/Detail_Contact.cshtml new file mode 100644 index 0000000..d9716c8 --- /dev/null +++ b/COMCMS.Web/Views/Article/Detail_Contact.cshtml @@ -0,0 +1,108 @@ +@model COMCMS.Core.Article +@{ + ViewBag.title = Model.Title; + ViewBag.keywords = Model.Keyword; + ViewBag.description = Model.Description; + IList
alist = Article.FindAll(Article._.KId == Model.KId, Article._.Sequence.Asc(), null, 0, 0); + int topkid = ViewBag.kind.PId > 0 ? ViewBag.kind.PId : ViewBag.kind.Id; + +} + + + +
+
+
    + @foreach (Article a in alist) + { +
  • @a.Title
  • + } +
+ + +
+
+ +
+
+
+
+ +
+ +
+ + +
+ +
+
+ COMCMS 内容管理系统 + COMCMS Technology Co.,Ltd +
+
+
    +
  • 电话:+86-20-88888888
  • +
  • 传真:+86-20-88888888
  • +
  • 邮箱:hogenwang@vip.qq.com
  • +
  • 地址:广东省广州市天河区天河城
  • +
+ +
+
+
+
+
+
+ + diff --git a/COMCMS.Web/Views/Article/Index.cshtml b/COMCMS.Web/Views/Article/Index.cshtml index 22f7cd0..b690a7b 100644 --- a/COMCMS.Web/Views/Article/Index.cshtml +++ b/COMCMS.Web/Views/Article/Index.cshtml @@ -5,71 +5,70 @@ ViewBag.description = Model.Description; //获取同级分类 IList sameList = ArticleCategory.FindAll(ArticleCategory._.PId == Model.PId, ArticleCategory._.Rank.Asc(), null, 0, 0); + int topkid = Model.PId > 0 ? Model.PId : Model.Id; } - +}
+ \ No newline at end of file diff --git a/COMCMS.Web/Views/Home/Index.cshtml b/COMCMS.Web/Views/Home/Index.cshtml index 3ae622e..1f42a22 100644 --- a/COMCMS.Web/Views/Home/Index.cshtml +++ b/COMCMS.Web/Views/Home/Index.cshtml @@ -673,7 +673,7 @@ prevButton: '.banner-prev', autoplay: 3000, }) - + $("#nav_0").addClass("nav-on");
diff --git a/COMCMS.Web/Views/Shared/_Layout.cshtml b/COMCMS.Web/Views/Shared/_Layout.cshtml index 4d558be..af76b23 100644 --- a/COMCMS.Web/Views/Shared/_Layout.cshtml +++ b/COMCMS.Web/Views/Shared/_Layout.cshtml @@ -28,13 +28,13 @@ @@ -215,7 +215,6 @@