<?php /* Smarty version 2.6.17, created on 2018-05-28 15:02:00 compiled from index.html */ ?> <?php $_smarty_tpl_vars = $this->_tpl_vars; $this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array())); $this->_tpl_vars = $_smarty_tpl_vars; unset($_smarty_tpl_vars); ?> <link rel="stylesheet" type="text/css" href="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?> /haili/css/index.css" /> <style> .vogue_top_list img { background: #fff url("<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?> /public/static/img/m-load.gif") no-repeat scroll 50% center / 20px 20px; } </style> <?php $_smarty_tpl_vars = $this->_tpl_vars; $this->_smarty_include(array('smarty_include_tpl_file' => "common_header.html", 'smarty_include_vars' => array())); $this->_tpl_vars = $_smarty_tpl_vars; unset($_smarty_tpl_vars); ?> <?php if ($this->_tpl_vars['focusData']): ?> <!--焦点图--> <section class="slider"> <section class="swiper-container"> <div class="swiper-wrapper"> <?php $_from = $this->_tpl_vars['focusData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)): foreach ($_from as $this->_tpl_vars['v']): ?> <div class="swiper-slide"> <a href="<?php echo $this->_tpl_vars['v']['url']; ?> "><img src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?> /public/static/img/bg_alpha.png" data-ks-lazyload="<?php echo $this->_tpl_vars['v']['img_url']; ?> "></a> </div> <?php endforeach; endif; unset($_from); ?> </div> </section> <div class="swiper-pagination"></div> </section> <?php endif; ?> <?php if ($this->_tpl_vars['categoryData']): ?> <!--分类--> <section class="avatarlist"> <ul> <?php $_from = $this->_tpl_vars['categoryData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)): foreach ($_from as $this->_tpl_vars['v']): ?> <li><a href="<?php echo $this->_tpl_vars['domain']; ?> /cate/<?php echo $this->_tpl_vars['v']['id']; ?> /<?php echo $this->_tpl_vars['url']; ?> "><img src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?> /public/static/img/bg_alpha.png" data-ks-lazyload="<?php echo $this->_tpl_vars['v']['icon']; ?> "><span><?php echo $this->_tpl_vars['v']['name']; ?> </span></a></li> <?php endforeach; endif; unset($_from); ?> </ul> </section> <?php endif; ?> <?php if ($this->_tpl_vars['userEventsData']): ?> <section class="userlist"> <h2>获得福利</h2> <ul> <?php $_from = $this->_tpl_vars['userEventsData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)): foreach ($_from as $this->_tpl_vars['v']): ?> <li><img src="<?php echo $this->_tpl_vars['v']['user']['headimgurl']; ?> "><span><?php echo $this->_tpl_vars['v']['user']['mobile']; ?> 的用户 <?php echo $this->_tpl_vars['v']['user']['cdate']; ?> 获得 <?php echo $this->_tpl_vars['v']['user']['events']; ?> 活动奖品。</span></li> <?php endforeach; endif; unset($_from); ?> </ul> </section> <?php endif; ?> <?php if ($this->_tpl_vars['eventsData']): ?> <section class="cardlist"> <h2>热门活动</h2> <?php $_from = $this->_tpl_vars['eventsData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)): foreach ($_from as $this->_tpl_vars['events']): ?> <dl> <dt><a href="<?php echo $this->_tpl_vars['events']['url']; ?> "><img src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?> /public/static/img/bg_alpha.png" data-ks-lazyload="<?php echo $this->_tpl_vars['events']['img_url']; ?> "></a></dt> <dd><h5><?php echo $this->_tpl_vars['events']['events_name']; ?> </h5></dd> <dd><span class="time"> <?php if ($this->_tpl_vars['events']['rday'] >= 1): ?> <em class="icon-time"></em>剩余<?php echo $this->_tpl_vars['events']['rday']; ?> 天</span> <?php else: ?> 已结束 <?php endif; ?> <span>参与<?php echo $this->_tpl_vars['events']['user_total']; ?> 人</span> </dd> </dl> <?php endforeach; endif; unset($_from); ?> </section> <?php endif; ?> <script> KISSY.use('node, io, gallery/datalazyload/2.0/index', function (S, Node, IO, Datalazyload) { var $ = S.all; var lock = false; new Datalazyload({ load: function(el){ if (lock) return false; lock = true; var requesrUrl = $(el).attr('data-request-url'); var page = Number($(el).attr('data-page')); var totals = Number($(el).attr('data-totals')); if (!requesrUrl) { lock = false; return false; } if (page > totals) { $('.loading').hide(); return false; } IO.get( requesrUrl , {page: page} , function (data) { if (data.ok) { var next_page = page + 1; $('#loadPage').attr('data-page', next_page); var new_dl = $(data.msg); $(".vogue_top_list").append(new_dl); new Datalazyload(); lock = false; if (next_page > totals) { $('.loading').hide(); } } } , 'json' ); } }); }); //判断当前页图片加载完成loading消失 /* $(".vogue_top_list").find("img").load(function(){ $(this).parent().css("background","none"); }); */ </script> <?php $_smarty_tpl_vars = $this->_tpl_vars; $this->_smarty_include(array('smarty_include_tpl_file' => "bottom.html", 'smarty_include_vars' => array())); $this->_tpl_vars = $_smarty_tpl_vars; unset($_smarty_tpl_vars); ?> <script type="text/javascript" src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?> /haili/js/index.js"></script>