From ac94163eddc3a22122f6d4a0bfacba9cd3504903 Mon Sep 17 00:00:00 2001 From: ndbs Date: Thu, 16 Mar 2023 11:52:43 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E8=B7=B3=E8=BD=AC=E7=BD=91?= =?UTF-8?q?=E4=B8=8A=E5=8A=9E=E4=BA=8B=E5=A4=A7=E5=8E=85=20=E5=8F=AA?= =?UTF-8?q?=E5=85=81=E8=AE=B8=E6=95=99=E5=B8=88=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/HomeController.cs | 11 ++++++++++- .../Views/Home/AdminDefault.cshtml | 8 +++++++- 2 files changed, 17 insertions(+), 2 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 90e33cd1b..e71d20ee8 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/HomeController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/HomeController.cs @@ -69,7 +69,7 @@ namespace Learun.Application.Web.Controllers public ActionResult SSOApplication() { var userinfo = LoginUserInfo.Get(); - ViewBag.FunctionList = perm_FunctionIBLL.GetListByUserId(userinfo.userId).Where(m=>m.FIsH5==false); + ViewBag.FunctionList = perm_FunctionIBLL.GetListByUserId(userinfo.userId).Where(m => m.FIsH5 == false); return View(); } /// @@ -510,6 +510,15 @@ namespace Learun.Application.Web.Controllers 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 bdd225e8e..1a6a90dfb 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 @@ -61,7 +61,7 @@
  • 备课任务 0 条
  • *@
  •           共 @ViewBag.UnreadNum 条
  • -
    +
    @@ -112,6 +112,12 @@ var Ip = "@ViewBag.Ip"; var ACIp = "@ViewBag.ACIp"; var ACIp2 = "@ViewBag.ACIp2"; + var wsbsdt = @ViewBag.wsbsdt; + if (wsbsdt == "0") { + document.getElementById("wsbsdt").style.display = "none";//隐藏 + } else if (wsbsdt=="1") { + document.getElementById("wsbsdt").style.display = "inline-block"; + } @Html.AppendJsFile("/Views/Home/AdminDefault/index.js") @Html.AppendJsFile("/Views/Login/ACLogon.js")