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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <?php /* Smarty version 2.6.17, created on 2018-04-19 17:53:05
  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. <style>
  9. .vogue_top_list img {
  10. background: #fff url("<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
  11. /public/static/img/m-load.gif") no-repeat scroll 50% center / 20px 20px;
  12. }
  13. </style>
  14. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  15. $this->_smarty_include(array('smarty_include_tpl_file' => "common_header.html", 'smarty_include_vars' => array()));
  16. $this->_tpl_vars = $_smarty_tpl_vars;
  17. unset($_smarty_tpl_vars);
  18. ?>
  19. <div class="wrapper clear">
  20. <div class="vogue_top_list">
  21. <?php $_from = $this->_tpl_vars['eventsData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  22. foreach ($_from as $this->_tpl_vars['events']):
  23. ?>
  24. <dl>
  25. <a href="<?php echo $this->_tpl_vars['events']['url']; ?>
  26. ">
  27. <dt><img src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
  28. /public/static/img/bg_alpha.png" data-ks-lazyload="<?php echo $this->_tpl_vars['events']['img_url']; ?>
  29. "></dt>
  30. <dd>
  31. <p><?php echo $this->_tpl_vars['events']['events_name']; ?>
  32. </p>
  33. <p class="v_time">
  34. <?php if ($this->_tpl_vars['events']['rday'] >= 1): ?>
  35. <em class="time_icon"></em><span>剩余<?php echo $this->_tpl_vars['events']['rday']; ?>
  36. 天</span>
  37. <?php else: ?>
  38. 已结束
  39. <?php endif; ?>
  40. </p>
  41. </dd>
  42. </a>
  43. </dl>
  44. <?php endforeach; endif; unset($_from); ?>
  45. </div>
  46. <div class="clear"></div>
  47. <?php if ($this->_tpl_vars['totals']): ?>
  48. <div class="loading">
  49. <img
  50. id="loadPage"
  51. data-ks-lazyload="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
  52. /public/static/img/loading_new.gif"
  53. data-request-url="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
  54. /?c=index&a=ajax&plat_form_id=<?php echo $this->_tpl_vars['plat_form_id']; ?>
  55. &url=<?php echo $this->_tpl_vars['url']; ?>
  56. "
  57. data-page="2"
  58. data-totals="<?php echo $this->_tpl_vars['totals']; ?>
  59. "
  60. style="width:0px;"
  61. />
  62. <div class="loader-inner ball-pulse">
  63. <div></div><div></div><div></div><div></div><div></div><div></div>
  64. </div>
  65. </div>
  66. <?php endif; ?>
  67. <br>
  68. </div>
  69. <!--loading 样式1-->
  70. <!--<div class="loading">
  71. <div class="loader-inner line-spin-fade-loader">
  72. <div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div>
  73. </div>
  74. </div>-->
  75. <!--loading 样式2-->
  76. <!--<div class="loading">
  77. <div class="loader-inner ball-pulse">
  78. <div></div><div></div><div></div><div></div><div></div><div></div>
  79. </div>
  80. </div>-->
  81. <script>
  82. KISSY.use('node, io, gallery/datalazyload/2.0/index', function (S, Node, IO, Datalazyload) {
  83. var $ = S.all;
  84. var lock = false;
  85. new Datalazyload({
  86. load: function(el){
  87. if (lock) return false;
  88. lock = true;
  89. var requesrUrl = $(el).attr('data-request-url');
  90. var page = Number($(el).attr('data-page'));
  91. var totals = Number($(el).attr('data-totals'));
  92. if (!requesrUrl) {
  93. lock = false;
  94. return false;
  95. }
  96. if (page > totals) {
  97. $('.loading').hide();
  98. return false;
  99. }
  100. IO.get(
  101. requesrUrl
  102. , {page: page}
  103. , function (data) {
  104. if (data.ok) {
  105. var next_page = page + 1;
  106. $('#loadPage').attr('data-page', next_page);
  107. var new_dl = $(data.msg);
  108. $(".vogue_top_list").append(new_dl);
  109. //new Datalazyload();
  110. lock = false;
  111. if (next_page > totals) {
  112. $('.loading').hide();
  113. }
  114. }
  115. }
  116. , 'json'
  117. );
  118. }
  119. });
  120. });
  121. //判断当前页图片加载完成loading消失
  122. /* $(".vogue_top_list").find("img").load(function(){
  123. $(this).parent().css("background","none");
  124. }); */
  125. </script>
  126. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  127. $this->_smarty_include(array('smarty_include_tpl_file' => "bottom.html", 'smarty_include_vars' => array()));
  128. $this->_tpl_vars = $_smarty_tpl_vars;
  129. unset($_smarty_tpl_vars);
  130. ?>