增加一个前台测试页面,登陆后没有后台管理权限时显示此页面

This commit is contained in:
Argo-Lenovo 2016-11-01 15:57:41 +08:00
parent db0ae287d0
commit b302e7a1be
8 changed files with 46 additions and 7 deletions

View File

@ -113,6 +113,7 @@
<Content Include="Content\css\font-awesome.min.css" />
<Content Include="Content\css\site-responsive.css" />
<Content Include="Content\fonts\fontawesome-webfont.svg" />
<Content Include="Content\html\dummy.html" />
<Content Include="Content\images\arrow-up.png" />
<Content Include="Content\images\avatar1_small.jpg" />
<Content Include="Content\images\error.png" />
@ -152,6 +153,7 @@
<Content Include="Content\js\Longbow.Common.js" />
<Content Include="Content\js\messages_zh.js" />
<Content Include="Content\js\messages_zh.min.js" />
<Content Include="Scripts\Content.js" />
<Content Include="Scripts\Dicts.js" />
<Content Include="Scripts\Groups.js" />
<Content Include="Scripts\icon.js" />
@ -169,9 +171,7 @@
<None Include="Scripts\_references.js" />
<Content Include="Content\js\framework.js" />
<Content Include="Views\Shared\Readme.txt" />
<Content Include="Web.config">
<SubType>Designer</SubType>
</Content>
<Content Include="Web.config" />
<Content Include="Views\Shared\_Layout.cshtml" />
<Content Include="Views\Home\Index.cshtml" />
</ItemGroup>
@ -193,6 +193,7 @@
<Compile Include="Global.asax.cs">
<DependentUpon>Global.asax</DependentUpon>
</Compile>
<Compile Include="Models\ContentModel.cs" />
<Compile Include="Models\QueryDictOption.cs" />
<Compile Include="Models\QueryGroupOption.cs" />
<Compile Include="Models\QueryMenuOption.cs" />
@ -232,6 +233,7 @@
<Content Include="Views\Shared\IconView.cshtml" />
<Content Include="Views\Shared\UserConfig.cshtml" />
<Content Include="Views\Shared\GroupConfig.cshtml" />
<Content Include="Views\Shared\Content.cshtml" />
<None Include="Web.Debug.config">
<DependentUpon>Web.config</DependentUpon>
</None>

View File

@ -624,3 +624,9 @@ ul.breadcrumb {
ul.breadcrumb > li > a > i {
padding-right: 6px;
}
iframe {
width: 100%;
border: none;
height: 500px;
}

View File

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="/Content/css/bootstrap.css" rel="stylesheet">
<link href="/Content/css/bootstrap-theme.css" rel="stylesheet">
<title></title>
</head>
<body>
<div style="height: 1000px; background-color: aqua">我就是一个测试页面</div>
<div>Bottom</div>
</body>
</html>

View File

@ -17,8 +17,9 @@ namespace Bootstrap.Admin.Controllers
/// <returns></returns>
public ActionResult Index()
{
var v = new HeaderBarModel();
var v = new ContentModel();
v.ShowMenu = "hide";
v.Url = "/Content/html/dummy.html";
return View(v);
}
/// <summary>

View File

@ -0,0 +1,8 @@

namespace Bootstrap.Admin.Models
{
public class ContentModel : HeaderBarModel
{
public string Url { get; set; }
}
}

View File

@ -0,0 +1 @@


View File

@ -1,9 +1,12 @@
@model Bootstrap.Admin.Models.HeaderBarModel
@model ContentModel
@{
ViewBag.Title = "Rules";
Layout = "~/Views/Shared/_Normal.cshtml";
}
@section javascript {
<script src="~/Scripts/Content.js"></script>
}
@section header {
@Html.Partial("Header", Model)
}
<div style="height: 1000px;"><h4>欢迎使用本系统</h4></div>
@Html.Partial("Content", Model)

View File

@ -0,0 +1,3 @@
@model ContentModel
<h4>欢迎使用本系统</h4>
<iframe id="fraContent" src="@Model.Url"></iframe>