Selaa lähdekoodia

经典版首页判断网上办事大厅跳转

临城职教中职
ndbs 2 vuotta sitten
vanhempi
commit
a15af4d9fe
2 muutettua tiedostoa jossa 23 lisäystä ja 7 poistoa
  1. +8
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/HomeController.cs
  2. +15
    -6
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDefault.cshtml

+ 8
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/HomeController.cs Näytä tiedosto

@@ -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":


+ 15
- 6
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDefault.cshtml Näytä tiedosto

@@ -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;
}
</style>
<script>
function request(d) { for (var c = location.search.slice(1).split("&"), a = 0; a < c.length; a++) { var b = c[a].split("="); if (b[0] == d) if ("undefined" == unescape(b[1])) break; else return unescape(b[1]) } return "" };
@@ -58,8 +59,8 @@
<li><a href="javascript:void(0);" id="btn_studentleavezc"><i class="fa fa-tag"></i>中层请假归档 @ViewBag.UnfileLeaveZC 条</a></li>
<li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;共 @ViewBag.UnreadNum 条</li>
</ul>
<div style="display: inline-block; line-height: 18px; position: relative; top: -3px;" title="网上办事大厅">
<a href="/SSOSystem/DragModelOne" class="down downsso"><img src="~/Content/images/wsbsdt.png" /></a>
<div id="wsbsdt" style="display: none; line-height: 18px; position: relative; top: -3px;" title="网上办事大厅">
<a href="/SSOSystem/DragModelOne" class="down downsso"><img src="~/Content/images/wsbsdt.png" /></a>
</div>
</div>

@@ -109,6 +110,14 @@
var Ip = "@ViewBag.Ip";
var ACIp = "@ViewBag.ACIp";
var ACIp2 = "@ViewBag.ACIp2";
var wsbsdt = @ViewBag.wsbsdt;
if (wsbsdt == "1") {
document.getElementById("wsbsdt").style.display = "none";//隐藏
} else if (wsbsdt=="0") {
document.getElementById("wsbsdt").style.display = "inline-block";

}
</script>
@Html.AppendJsFile("/Views/Home/AdminDefault/index.js")
@Html.AppendJsFile("/Views/Login/ACLogon.js")

Ladataan…
Peruuta
Tallenna