Index.cshtml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. @using WeApp.Authorization
  2. @model List<WeApp.BaseInfo.SysHelp>
  3. @{
  4. ViewBag.ActiveMenu = PermissionNames.PagesUserHelpInfo;
  5. ViewBag.Title = "系统帮助说明";
  6. }
  7. @section css
  8. {
  9. <style>
  10. .i_category {
  11. z-index: 2;
  12. position: fixed !important;
  13. right: 10px;
  14. top: 20vh;
  15. width: 200px;
  16. }
  17. .help .nav-item {
  18. float: left;
  19. width: 100%;
  20. border-top: 1px solid #f4f4f4;
  21. margin-left: 0px !important;
  22. }
  23. .help .nav-item:last-of-type {
  24. border-bottom: 1px solid #f4f4f4;
  25. }
  26. .help .nav-item a {
  27. text-align: left;
  28. border-radius: 0;
  29. border-left: 3px solid transparent;
  30. background-color: transparent !important;
  31. }
  32. .help .nav-item a.active {
  33. color: #583d9c !important;
  34. font-weight: 600 !important;
  35. border-left: 3px solid #583d9c !important;
  36. }
  37. .quote {
  38. display: block;
  39. margin-bottom: 10px;
  40. padding: 15px;
  41. line-height: 22px;
  42. font-size: 16px;
  43. font-weight: 600;
  44. color: #583d9c;
  45. border-left: 5px solid #583d9c;
  46. border-radius: 0 2px 2px 0;
  47. background-color: #f2f2f2;
  48. cursor: pointer;
  49. }
  50. .quote:not(:first-of-type) {
  51. margin-top: 20px;
  52. }
  53. </style>
  54. }
  55. <div class="content-header">
  56. </div>
  57. <div class="content help">
  58. <div class="i_category">
  59. <!--begin::Portlet-->
  60. <div class="m-portlet">
  61. <div class="m-portlet__head" style="justify-content: center;height: 40px;line-height: 40px;background: #575962;border-radius: 4px 4px 0 0;">
  62. <a>
  63. <h3 class="m-portlet__head-text" style="display: inline-block;font-size: 20px;margin: 0;line-height: 40px;color: #eee; font-weight: 600;justify-content: center;">
  64. 文档目录
  65. </h3>
  66. </a>
  67. </div>
  68. <div class="m-portlet__body" style="padding: 0;border-radius: 0 0 4px 4px">
  69. <ul class="nav nav-pills nav-fill help" role="tablist">
  70. @{
  71. foreach (var help in Model)
  72. {
  73. <li class="nav-item"><a class="nav-link " href="#syshelp_@help.Id"> @help.HelpTitle</a></li>
  74. }
  75. }
  76. </ul>
  77. </div>
  78. </div>
  79. <!--end::Portlet-->
  80. </div>
  81. <div class="col-md-12">
  82. <!--begin::Portlet-->
  83. <div class="m-portlet" style="padding:10px; border-radius: 8px; background:#f5f5f5;margin-bottom: 0;">
  84. @*<div class="m-portlet__head" style="justify-content: center;height: 40px;line-height: 40px;background: #575962;border-radius: 4px 4px 0 0;">
  85. <a>
  86. <h3 class="m-portlet__head-text" style="display: inline-block;font-size: 20px;margin: 0;line-height: 40px;color: #eee; font-weight: 600;justify-content: center;">
  87. 文档目录
  88. </h3>
  89. </a>
  90. </div>*@
  91. <div class="m-portlet__body" style="height: calc(100vh - 170px); overflow: auto;padding: 5px;">
  92. @{
  93. foreach (var h in Model)
  94. {
  95. <div id="syshelp_@h.Id" class="quote no-select">
  96. @Html.Raw(h.HelpTitle)
  97. </div>
  98. <div style="padding-left: 20px;">
  99. @Html.Raw(h.HelpContent)
  100. </div>
  101. }
  102. }
  103. </div>
  104. </div>
  105. <!--end::Portlet-->
  106. </div>
  107. </div>
  108. @section scripts
  109. {
  110. <script>
  111. $(function() {
  112. $(".help .nav-item a").on("click",
  113. function() {
  114. var $other = $(this).parent().siblings();
  115. $other.find('a').removeClass("active");
  116. $(this).addClass("active");
  117. });
  118. });
  119. </script>
  120. }