%%E4^E4A^E4A8D477%%gifts.html.php 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <?php /* Smarty version 2.6.17, created on 2018-05-29 14:59:04
  2. compiled from gifts.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/prizelist.css" />
  10. <!--公用标题居中显示-->
  11. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  12. $this->_smarty_include(array('smarty_include_tpl_file' => "common_header.html", 'smarty_include_vars' => array()));
  13. $this->_tpl_vars = $_smarty_tpl_vars;
  14. unset($_smarty_tpl_vars);
  15. ?>
  16. <section class="prizelist">
  17. <?php if ($this->_tpl_vars['data']): ?>
  18. <h2>您参与活动获得的奖品</h2>
  19. <?php else: ?>
  20. <h2>您还没有获得奖品</h2>
  21. <?php endif; ?>
  22. <?php if ($this->_tpl_vars['data']): ?>
  23. <div class="gifts_list">
  24. <?php $_from = $this->_tpl_vars['newData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  25. foreach ($_from as $this->_tpl_vars['v']):
  26. ?>
  27. <dl>
  28. <dt><a href="<?php echo $this->_tpl_vars['v']['url']; ?>
  29. "><img src="<?php if ($this->_tpl_vars['v']['events_type'] == 6 && $this->_tpl_vars['v']['prize_type'] == 2): ?><?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
  30. <?php echo $this->_tpl_vars['v']['prize_img_url']; ?>
  31. <?php else: ?><?php echo $this->_tpl_vars['v']['prize_img_url']; ?>
  32. <?php endif; ?>"></a></dt>
  33. <dd><p><?php echo $this->_tpl_vars['v']['prize_name']; ?>
  34. </p>
  35. <?php if ($this->_tpl_vars['v']['feedback'] == 4): ?>
  36. <a class="red" href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
  37. /?c=Express&lottery_data_id=<?php echo $this->_tpl_vars['v']['lottery_data_id']; ?>
  38. ">填写收货地址</a>
  39. <?php elseif ($this->_tpl_vars['v']['feedback'] == 3): ?>
  40. <?php if ($this->_tpl_vars['v']['events_type'] == 6): ?>
  41. <a href="<?php echo $this->_tpl_vars['v']['virtual_data']; ?>
  42. ">查看二维码</a>
  43. <?php else: ?>
  44. <a href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
  45. /?c=FeedBack&lottery_data_id=<?php echo $this->_tpl_vars['v']['lottery_data_id']; ?>
  46. ">查看或修改评价</a>
  47. <?php endif; ?>
  48. <?php elseif ($this->_tpl_vars['v']['feedback'] == 2): ?>
  49. <a href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
  50. /?c=FeedBack&lottery_data_id=<?php echo $this->_tpl_vars['v']['lottery_data_id']; ?>
  51. ">发表试用评价</a>
  52. <?php elseif ($this->_tpl_vars['v']['feedback'] == 5): ?>
  53. <span class="disable">已过期</span>
  54. <?php elseif ($this->_tpl_vars['v']['prize_type'] == 2): ?>
  55. <?php if ($this->_tpl_vars['v']['events_type'] == 6): ?>
  56. <a href="<?php echo $this->_tpl_vars['v']['virtual_data']; ?>
  57. ">查看二维码</a>
  58. <?php else: ?>
  59. <span>券:<?php echo $this->_tpl_vars['v']['virtual_data']; ?>
  60. </span>
  61. <?php endif; ?>
  62. <?php elseif ($this->_tpl_vars['v']['prize_express'] == 1): ?>
  63. <?php if ($this->_tpl_vars['thisTime'] < $this->_tpl_vars['v']['end_time_receive_prizes'] && $this->_tpl_vars['v']['events_delivery'] == 1 && ! $this->_tpl_vars['v']['express']): ?>
  64. <a class="red" href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
  65. /?c=Express&lottery_data_id=<?php echo $this->_tpl_vars['v']['lottery_data_id']; ?>
  66. ">填写收货地址</a>
  67. <?php else: ?>
  68. <?php if ($this->_tpl_vars['thisTime'] > $this->_tpl_vars['v']['end_time_receive_prizes'] && $this->_tpl_vars['v']['express'] && $this->_tpl_vars['v']['events_delivery'] == 2): ?>
  69. <span>已发货</span>
  70. <?php endif; ?>
  71. <?php if ($this->_tpl_vars['thisTime'] > $this->_tpl_vars['v']['end_time_receive_prizes'] && ! $this->_tpl_vars['v']['express'] && $this->_tpl_vars['v']['events_delivery'] == 2): ?>
  72. <span class="disable">已过期</span>
  73. <?php endif; ?>
  74. <?php endif; ?>
  75. <?php endif; ?>
  76. </dd>
  77. </dl>
  78. <?php endforeach; endif; unset($_from); ?>
  79. <div class="clear"></div>
  80. <div class="loading">
  81. <img
  82. id="loadPage"
  83. src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
  84. /public/static/img/loading.gif"
  85. data-ks-lazyload="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
  86. /public/static/img/loading.gif"
  87. data-request-url="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
  88. /?c=Member&a=ajax"
  89. data-page="2"
  90. data-totals="<?php echo $this->_tpl_vars['totals']; ?>
  91. "
  92. style="width:0px;"
  93. />
  94. <div class="loader-inner ball-pulse">
  95. <div></div><div></div><div></div><div></div><div></div><div></div>
  96. </div>
  97. </div>
  98. </div>
  99. <?php endif; ?>
  100. </section>
  101. <?php if ($this->_tpl_vars['data']): ?>
  102. <script>
  103. KISSY.use('node, io, gallery/datalazyload/2.0/index', function (S, Node, IO, Datalazyload) {
  104. var lock = false;
  105. new Datalazyload({
  106. load: function(el){
  107. if (lock) return false;
  108. lock = true;
  109. var requesrUrl = $(el).data('request-url');
  110. var page = Number($(el).data('page'));
  111. var totals = Number($(el).data('totals'));
  112. if (!requesrUrl) {
  113. return false;
  114. }
  115. if (page > totals) {
  116. $('.loading').hide();
  117. return false;
  118. }
  119. IO.get(
  120. requesrUrl
  121. , {page: page}
  122. , function (data) {
  123. if (data.ok) {
  124. var next_page = page + 1;
  125. $('#loadPage').data('page', next_page);
  126. $(".gifts_list").append(data.msg);
  127. lock = false;
  128. //new Datalazyload();
  129. if (next_page > totals) {
  130. $('.up_icon').hide();
  131. }
  132. }
  133. }
  134. , 'json'
  135. );
  136. }
  137. });
  138. });
  139. //有产品列表时添加整体body背景色
  140. $(body).addClass("bg_white");
  141. </script>
  142. <?php endif; ?>
  143. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  144. $this->_smarty_include(array('smarty_include_tpl_file' => "bottom.html", 'smarty_include_vars' => array()));
  145. $this->_tpl_vars = $_smarty_tpl_vars;
  146. unset($_smarty_tpl_vars);
  147. ?>