index.lbi 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <style>
  2. body{
  3. background-color: #efefef;
  4. }
  5. .inline.hidden-xs {
  6. display: inline !important;
  7. }
  8. .chosen_wrap{
  9. }
  10. .img_list{
  11. margin-bottom: 10px;
  12. cursor: pointer;
  13. }
  14. .title_cover{
  15. height: 30px;
  16. background-color: rgba(138,137,137,0.5);
  17. position: absolute;
  18. bottom: 0px;
  19. width: 100%;
  20. color: #fff;
  21. line-height: 30px;
  22. font-size: 14px;
  23. padding-left: 10px;
  24. }
  25. .more{
  26. margin-top: 10px;
  27. text-align: right;
  28. display: block;
  29. }
  30. .of_hide{
  31. display: block;
  32. overflow: hidden;
  33. text-overflow: ellipsis;
  34. }
  35. .padding0{
  36. padding: 0;
  37. }
  38. .cards .card .card-content span{
  39. width: 100%;
  40. height: 20px;
  41. }
  42. .content_nav{
  43. /*margin-top: 18px;*/
  44. }
  45. .content_nav .col-md-2 div{
  46. height: 60px;
  47. line-height: 60px;
  48. text-align: center;
  49. font-size: 23px;
  50. border-radius: 8px;
  51. cursor: pointer;
  52. color:#fff;
  53. }
  54. .content_nav .col-xs-4{
  55. margin-top: 10px;
  56. }
  57. .kf_block{
  58. background-color: #EA644A;
  59. }
  60. .gj_block{
  61. background-color: #F1A325;
  62. }
  63. .ly_block{
  64. background-color: #38B03F;
  65. }
  66. .jz_block{
  67. background-color: #03B8CF;
  68. }
  69. .jy_block{
  70. background-color: #BD7B46;
  71. }
  72. .xw_block{
  73. background-color: #8666B8;
  74. }
  75. </style>
  76. <script>
  77. $(function(){
  78. $("#top_frame").load(function() {
  79. console.log($(this).contents().find("body").height());
  80. $(this).height($(window).height()*0.7);
  81. })
  82. })
  83. </script>
  84. <div class="container">
  85. <div class="row">
  86. <div class="col-md-3">
  87. <h2 class="text-muted">精选全景<small style="margin-left:10px;">优质的全景作品赏析</small></h2>
  88. </div>
  89. </div>
  90. <div class="row chosen_wrap">
  91. <div class="col-md-5" style="height:380px;">
  92. <div id="myNiceCarousel" class="carousel slide" data-ride="carousel">
  93. <!-- 轮播项目 -->
  94. <div class="carousel-inner">
  95. {for $i=0; $i<3; $i++}
  96. <div class="item {if $i==0}active{/if}">
  97. <a target="_blank" href="/tour/{$recommend[$i]['view_uuid']}">
  98. <img src="{$recommend[$i]['thumb_path']}" class="img-responsive" style="width: 100%;max-height: 420px;">
  99. </a>
  100. <div class="carousel-caption">
  101. <h3>{$recommend[$i]['name']}</h3>
  102. </div>
  103. </div>
  104. {/for}
  105. </div>
  106. <!-- 项目切换按钮 -->
  107. <a class="left carousel-control" href="#myNiceCarousel" data-slide="prev">
  108. <span class="icon icon-chevron-left"></span>
  109. </a>
  110. <a class="right carousel-control" href="#myNiceCarousel" data-slide="next">
  111. <span class="icon icon-chevron-right"></span>
  112. </a>
  113. </div>
  114. </div>
  115. <div class="col-md-7">
  116. <div class="row chosen_wrap">
  117. {for $i=3; $i<9; $i++}
  118. <div class="col-md-4 col-sm-4 col-xs-6 img_list">
  119. <a href="/tour/{$recommend[$i]['view_uuid']}" target="_blank">
  120. <img src="{$recommend[$i]['thumb_path']}" class="img-responsive">
  121. </a>
  122. <div style="position:relative">
  123. <div class="title_cover of_hide">{$recommend[$i]['name']}</div>
  124. </div>
  125. </div>
  126. {/for}
  127. </div>
  128. </div>
  129. </div>
  130. <div class="row">
  131. <div class="col-xs-12">
  132. <h2 class="text-muted">推荐全景<small style="margin-left:10px;">为您推荐的优质作品</small><a href="/pictures"><small class="text-muted pull-right more">更多>></small></a></h2>
  133. </div>
  134. </div>
  135. <!--一个卡片列表行-->
  136. <div class="row">
  137. <div class="cards" style="margin:0;">
  138. <!--卡片列表循环-->
  139. {for $i=8; $i<20; $i++}
  140. <div class="col-md-3 col-sm-3 col-xs-6 col-lg-3">
  141. <div class="card" href="###">
  142. <a target="_blank" href="/tour/{$recommend[$i]['view_uuid']}"><img src="{$recommend[$i]['thumb_path']}" alt="{$recommend[$i]['name']}"></a>
  143. <div class="card-heading">
  144. <div class="col-md-9 col-xs-8 of_hide padding0">
  145. <strong class="text-primary">{$recommend[$i]['name']}</strong>
  146. </div>
  147. <div class="col-md-3 col-xs-4 of_hide padding0">
  148. <div class="pull-right text-danger"><i class="icon-heart-empty"></i> {$recommend[$i]['browsing_num']}</div>
  149. </div>
  150. </div>
  151. <div class="card-content text-muted">
  152. <span class="of_hide">{$recommend[$i]['profile']}</span>
  153. </div>
  154. </div>
  155. </div>
  156. {/for}
  157. <!--卡片列表循环结束-->
  158. </div>
  159. </div>
  160. <!--一个卡片列表行结束-->
  161. </div>