From a15af4d9fe99104037cb8c48e692aa51a9ab23c4 Mon Sep 17 00:00:00 2001 From: ndbs Date: Thu, 9 Jun 2022 12:18:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=8F=E5=85=B8=E7=89=88=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E7=BD=91=E4=B8=8A=E5=8A=9E=E4=BA=8B=E5=A4=A7?= =?UTF-8?q?=E5=8E=85=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/HomeController.cs | 9 +++++++- .../Views/Home/AdminDefault.cshtml | 21 +++++++++++++------ 2 files changed, 23 insertions(+), 7 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/HomeController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/HomeController.cs index 60f582c58..8b2e45ba1 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/HomeController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/HomeController.cs @@ -512,7 +512,14 @@ namespace Learun.Application.Web.Controllers ViewBag.Ip = GetIP(); ViewBag.ACIp = ConfigurationManager.AppSettings["ACIp"] ?? ""; ViewBag.ACIp2 = ConfigurationManager.AppSettings["ACIp2"] ?? ""; - + if (userinfo.Description == "教师") + { + ViewBag.wsbsdt = 0; + } + else + { + ViewBag.wsbsdt = 1; + } switch (learn_UItheme) { case "1": diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDefault.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDefault.cshtml index 087caf016..2611e7989 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDefault.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDefault.cshtml @@ -11,10 +11,11 @@ justify-content: space-around; align-items: center; } - .lr-im-bell2 .point { - left: 23px; - right: auto; - } + + .lr-im-bell2 .point { + left: 23px; + right: auto; + } @Html.AppendJsFile("/Views/Home/AdminDefault/index.js") @Html.AppendJsFile("/Views/Login/ACLogon.js")