%%77^774^774BE9C9%%index.html.php 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. <?php /* Smarty version 2.6.17, created on 2018-05-29 15:50:50
  2. compiled from index.html */ ?>
  3. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  4. $this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
  5. $this->_tpl_vars = $_smarty_tpl_vars;
  6. unset($_smarty_tpl_vars);
  7. ?>
  8. <link rel="stylesheet" type="text/css" href="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
  9. /haili/css/index.css" />
  10. <style>
  11. .vogue_top_list img {
  12. background: #fff url("<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
  13. /public/static/img/m-load.gif") no-repeat scroll 50% center / 20px 20px;
  14. }
  15. </style>
  16. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  17. $this->_smarty_include(array('smarty_include_tpl_file' => "common_header.html", 'smarty_include_vars' => array()));
  18. $this->_tpl_vars = $_smarty_tpl_vars;
  19. unset($_smarty_tpl_vars);
  20. ?>
  21. <?php if ($this->_tpl_vars['focusData']): ?>
  22. <!--焦点图-->
  23. <section class="slider">
  24. <section class="swiper-container">
  25. <div class="swiper-wrapper">
  26. <?php $_from = $this->_tpl_vars['focusData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  27. foreach ($_from as $this->_tpl_vars['v']):
  28. ?>
  29. <div class="swiper-slide">
  30. <a href="<?php echo $this->_tpl_vars['v']['url']; ?>
  31. "><img src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
  32. /public/static/img/bg_alpha.png" data-ks-lazyload="<?php echo $this->_tpl_vars['v']['img_url']; ?>
  33. "></a>
  34. </div>
  35. <?php endforeach; endif; unset($_from); ?>
  36. </div>
  37. </section>
  38. <div class="swiper-pagination"></div>
  39. </section>
  40. <?php endif; ?>
  41. <?php if ($this->_tpl_vars['categoryData']): ?>
  42. <!--分类-->
  43. <section class="avatarlist">
  44. <ul>
  45. <?php $_from = $this->_tpl_vars['categoryData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  46. foreach ($_from as $this->_tpl_vars['v']):
  47. ?>
  48. <li><a href="<?php echo $this->_tpl_vars['domain']; ?>
  49. /cate/<?php echo $this->_tpl_vars['v']['id']; ?>
  50. /<?php echo $this->_tpl_vars['url']; ?>
  51. "><img src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
  52. /public/static/img/bg_alpha.png" data-ks-lazyload="<?php echo $this->_tpl_vars['v']['icon']; ?>
  53. "><span><?php echo $this->_tpl_vars['v']['name']; ?>
  54. </span></a></li>
  55. <?php endforeach; endif; unset($_from); ?>
  56. </ul>
  57. </section>
  58. <?php endif; ?>
  59. <?php if ($this->_tpl_vars['userEventsData']): ?>
  60. <section class="userlist">
  61. <h2>获得福利</h2>
  62. <ul>
  63. <?php $_from = $this->_tpl_vars['userEventsData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  64. foreach ($_from as $this->_tpl_vars['v']):
  65. ?>
  66. <li><img src="<?php echo $this->_tpl_vars['v']['user']['headimgurl']; ?>
  67. "><span><?php echo $this->_tpl_vars['v']['user']['mobile']; ?>
  68. 的用户 <?php echo $this->_tpl_vars['v']['user']['cdate']; ?>
  69. 获得 <?php echo $this->_tpl_vars['v']['user']['events']; ?>
  70. <?php echo $this->_tpl_vars['v']['user']['ext']; ?>
  71. 。</span></li>
  72. <?php endforeach; endif; unset($_from); ?>
  73. </ul>
  74. </section>
  75. <?php endif; ?>
  76. <?php if ($this->_tpl_vars['eventsData']): ?>
  77. <section class="cardlist">
  78. <h2>热门活动</h2>
  79. <?php $_from = $this->_tpl_vars['eventsData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  80. foreach ($_from as $this->_tpl_vars['events']):
  81. ?>
  82. <dl>
  83. <dt><a href="<?php echo $this->_tpl_vars['events']['url']; ?>
  84. "><img src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
  85. /public/static/img/bg_alpha.png" data-ks-lazyload="<?php echo $this->_tpl_vars['events']['img_url']; ?>
  86. "></a></dt>
  87. <dd><h5><?php echo $this->_tpl_vars['events']['events_name']; ?>
  88. </h5></dd>
  89. <dd>
  90. <?php if ($this->_tpl_vars['events']['rday'] >= 1): ?>
  91. <span class="time">
  92. <em class="icon-time"></em>剩余<?php echo $this->_tpl_vars['events']['rday']; ?>
  93. 天</span>
  94. <?php elseif ($this->_tpl_vars['events']['type'] != 9): ?>
  95. <span class="time">已结束</span>
  96. <?php endif; ?>
  97. <?php if ($this->_tpl_vars['events']['type'] == 9): ?>
  98. <span>阅读 <?php echo $this->_tpl_vars['events']['click_num']; ?>
  99. </span>
  100. <span>点赞 <?php echo $this->_tpl_vars['events']['likes']; ?>
  101. </span>
  102. <?php else: ?>
  103. <span>参与<?php echo $this->_tpl_vars['events']['user_total']; ?>
  104. 人</span>
  105. <?php endif; ?>
  106. </dd>
  107. </dl>
  108. <?php endforeach; endif; unset($_from); ?>
  109. </section>
  110. <?php endif; ?>
  111. <script>
  112. KISSY.use('node, io, gallery/datalazyload/2.0/index', function (S, Node, IO, Datalazyload) {
  113. var $ = S.all;
  114. var lock = false;
  115. new Datalazyload({
  116. load: function(el){
  117. if (lock) return false;
  118. lock = true;
  119. var requesrUrl = $(el).attr('data-request-url');
  120. var page = Number($(el).attr('data-page'));
  121. var totals = Number($(el).attr('data-totals'));
  122. if (!requesrUrl) {
  123. lock = false;
  124. return false;
  125. }
  126. if (page > totals) {
  127. $('.loading').hide();
  128. return false;
  129. }
  130. IO.get(
  131. requesrUrl
  132. , {page: page}
  133. , function (data) {
  134. if (data.ok) {
  135. var next_page = page + 1;
  136. $('#loadPage').attr('data-page', next_page);
  137. var new_dl = $(data.msg);
  138. $(".vogue_top_list").append(new_dl);
  139. new Datalazyload();
  140. lock = false;
  141. if (next_page > totals) {
  142. $('.loading').hide();
  143. }
  144. }
  145. }
  146. , 'json'
  147. );
  148. }
  149. });
  150. });
  151. //判断当前页图片加载完成loading消失
  152. /* $(".vogue_top_list").find("img").load(function(){
  153. $(this).parent().css("background","none");
  154. }); */
  155. </script>
  156. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  157. $this->_smarty_include(array('smarty_include_tpl_file' => "bottom.html", 'smarty_include_vars' => array()));
  158. $this->_tpl_vars = $_smarty_tpl_vars;
  159. unset($_smarty_tpl_vars);
  160. ?>
  161. <script type="text/javascript" src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
  162. /haili/js/index.js"></script>