feat: 前台系统增加演示系统开关

This commit is contained in:
Argo Zhang 2020-03-12 10:17:20 +08:00
parent 8d516e4882
commit f65cbcb461
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
3 changed files with 9 additions and 1 deletions

View File

@ -17,8 +17,14 @@ namespace Bootstrap.Client.Models
Title = DictHelper.RetrieveWebTitle(AppId); Title = DictHelper.RetrieveWebTitle(AppId);
Footer = DictHelper.RetrieveWebFooter(AppId); Footer = DictHelper.RetrieveWebFooter(AppId);
Theme = DictHelper.RetrieveActiveTheme(); Theme = DictHelper.RetrieveActiveTheme();
IsDemo = DictHelper.RetrieveSystemModel();
} }
/// <summary>
/// 是否为演示系统
/// </summary>
public bool IsDemo { get; protected set; }
/// <summary> /// <summary>
/// 获得 应用程序标识 /// 获得 应用程序标识
/// </summary> /// </summary>

View File

@ -1,6 +1,6 @@
@model ModelBase @model ModelBase
<footer class="position-fixed"> <footer class="position-fixed">
<div><span id="websiteFooter">@Model.Footer (演示系统)</span></div> <div><span id="websiteFooter">@Model.Footer</span><span asp-condition="@Model.IsDemo">(演示系统)</span></div>
<a id="gotoTop" href="#" class="go-top" title="返回顶部" data-toggle="tooltip" data-placement="left"> <a id="gotoTop" href="#" class="go-top" title="返回顶部" data-toggle="tooltip" data-placement="left">
<i class="fa fa-angle-up"></i> <i class="fa fa-angle-up"></i>
</a> </a>

View File

@ -1,3 +1,5 @@
@using Bootstrap.Client @using Bootstrap.Client
@using Bootstrap.Client.Models @using Bootstrap.Client.Models
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@addTagHelper *, Bootstrap.Security.Mvc
@addTagHelper *, Longbow.Web