123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180 |
- <?php /* Smarty version 2.6.17, created on 2018-05-29 15:50:50
- 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']; ?>
- <?php echo $this->_tpl_vars['v']['user']['ext']; ?>
- 。</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>
- <?php if ($this->_tpl_vars['events']['rday'] >= 1): ?>
- <span class="time">
- <em class="icon-time"></em>剩余<?php echo $this->_tpl_vars['events']['rday']; ?>
- 天</span>
- <?php elseif ($this->_tpl_vars['events']['type'] != 9): ?>
- <span class="time">已结束</span>
- <?php endif; ?>
- <?php if ($this->_tpl_vars['events']['type'] == 9): ?>
- <span>阅读 <?php echo $this->_tpl_vars['events']['click_num']; ?>
- </span>
- <span>点赞 <?php echo $this->_tpl_vars['events']['likes']; ?>
- </span>
- <?php else: ?>
- <span>参与<?php echo $this->_tpl_vars['events']['user_total']; ?>
- 人</span>
- <?php endif; ?>
- </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>
|