_Help.cshtml 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. @using WeApp.Helpers
  2. @{
  3. string id = "help-info";
  4. }
  5. @Html.Partial("__/_AreaBox", $"操作文档#{id}")
  6. <div style="display: none" id="@id-pre">
  7. @* <div class="help-info"> *@
  8. @* <img class="" src="~/Content/V2/Help/01.png" /> *@
  9. @* <img class="" src="~/Content/V2/Help/02.png" /> *@
  10. @* <img class="" src="~/Content/V2/Help/03.png" /> *@
  11. @* <img class="" src="~/Content/V2/Help/04.png" /> *@
  12. @* <img class="" src="~/Content/V2/Help/05.png" /> *@
  13. @* </div> *@
  14. </div>
  15. @using (Html.BeginScripts())
  16. {
  17. <script id="help-info-script">
  18. var $helpInfoBody = $('#@id .box-body');
  19. $helpInfoBody.html($('#@id-pre').html());
  20. function LoadHelpImages(images) {
  21. var str = `<div class="help-info">`;
  22. images.forEach(function(v) {
  23. str += `<img class="" src="${v}" />`;
  24. });
  25. str += `</div>`;
  26. $helpInfoBody.html(str);
  27. }
  28. $(function() {
  29. OverlayScrollbar($helpInfoBody.closest('.scroll-box'));
  30. });
  31. </script>
  32. }