map.cshtml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. 
  2. @model NavigationModel
  3. @section style{
  4. <link rel="stylesheet" href="@ConfigHelper.GetCDNPrefix()/assets/css/map.css">
  5. <style>
  6. @@media(min-width:768px) {
  7. .m-header {
  8. height: 84px;
  9. display: block !important;
  10. }
  11. }
  12. </style>
  13. }
  14. <div class="container">
  15. <h2 class="title">网站地图</h2>
  16. @foreach (var item in Model.Children)
  17. {
  18. <div class="con">
  19. <h4><a href="@(string.IsNullOrWhiteSpace(item.Url)?"javascript:void(0);":item.Url)" target="_blank">@item.Name</a></h4>
  20. @if (item.Children.Count > 0)
  21. {
  22. <div class="row">
  23. @foreach (var child in item.Children)
  24. {
  25. <div class="col-sm-4">
  26. <a href="@(string.IsNullOrWhiteSpace(child.Url)?"javascript:void(0);":child.Url)">@child.Name</a>
  27. </div>
  28. }
  29. </div>
  30. }
  31. </div>
  32. }
  33. </div>
  34. <div class="foot-h"></div>