| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168 | <?php /* Smarty version 2.6.17, created on 2018-05-29 14:59:04         compiled from gifts.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/prizelist.css" /><!--公用标题居中显示--><?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); ?><section class="prizelist">    <?php if ($this->_tpl_vars['data']): ?>    <h2>您参与活动获得的奖品</h2>    <?php else: ?>    <h2>您还没有获得奖品</h2>    <?php endif; ?>    <?php if ($this->_tpl_vars['data']): ?>    <div class="gifts_list">    <?php $_from = $this->_tpl_vars['newData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):    foreach ($_from as $this->_tpl_vars['v']):?>    <dl>        <dt><a href="<?php echo $this->_tpl_vars['v']['url']; ?>"><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']; ?><?php echo $this->_tpl_vars['v']['prize_img_url']; ?><?php else: ?><?php echo $this->_tpl_vars['v']['prize_img_url']; ?><?php endif; ?>"></a></dt>        <dd><p><?php echo $this->_tpl_vars['v']['prize_name']; ?></p>        <?php if ($this->_tpl_vars['v']['feedback'] == 4): ?>        <a  class="red" href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>/?c=Express&lottery_data_id=<?php echo $this->_tpl_vars['v']['lottery_data_id']; ?>">填写收货地址</a>        <?php elseif ($this->_tpl_vars['v']['feedback'] == 3): ?>            <?php if ($this->_tpl_vars['v']['events_type'] == 6): ?>            <a href="<?php echo $this->_tpl_vars['v']['virtual_data']; ?>">查看二维码</a>            <?php else: ?>            <a href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>/?c=FeedBack&lottery_data_id=<?php echo $this->_tpl_vars['v']['lottery_data_id']; ?>">查看或修改评价</a>            <?php endif; ?>        <?php elseif ($this->_tpl_vars['v']['feedback'] == 2): ?>        <a href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>/?c=FeedBack&lottery_data_id=<?php echo $this->_tpl_vars['v']['lottery_data_id']; ?>">发表试用评价</a>        <?php elseif ($this->_tpl_vars['v']['feedback'] == 5): ?>        <span class="disable">已过期</span>        <?php elseif ($this->_tpl_vars['v']['prize_type'] == 2): ?>            <?php if ($this->_tpl_vars['v']['events_type'] == 6): ?>            <a href="<?php echo $this->_tpl_vars['v']['virtual_data']; ?>">查看二维码</a>            <?php else: ?>            <span>券:<?php echo $this->_tpl_vars['v']['virtual_data']; ?></span>            <?php endif; ?>        <?php elseif ($this->_tpl_vars['v']['prize_express'] == 1): ?>            <?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']): ?>            <a  class="red" href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>/?c=Express&lottery_data_id=<?php echo $this->_tpl_vars['v']['lottery_data_id']; ?>">填写收货地址</a>            <?php else: ?>                <?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): ?>                <span>已发货</span>                <?php endif; ?>                <?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): ?>                <span class="disable">已过期</span>                <?php endif; ?>            <?php endif; ?>         <?php endif; ?>        </dd>    </dl>    <?php endforeach; endif; unset($_from); ?>    <div class="clear"></div>    <div class="loading">        <img            id="loadPage"            src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>/public/static/img/loading.gif"            data-ks-lazyload="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>/public/static/img/loading.gif"            data-request-url="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>/?c=Member&a=ajax"            data-page="2"            data-totals="<?php echo $this->_tpl_vars['totals']; ?>"            style="width:0px;"        />                <div class="loader-inner ball-pulse">            <div></div><div></div><div></div><div></div><div></div><div></div>        </div>            </div>    </div>    <?php endif; ?></section><?php if ($this->_tpl_vars['data']): ?><script>KISSY.use('node, io, gallery/datalazyload/2.0/index', function (S, Node, IO, Datalazyload) {	var lock = false;	new Datalazyload({		load: function(el){			if (lock) return false;			lock = true;						var requesrUrl = $(el).data('request-url');			var page = Number($(el).data('page'));			var totals = Number($(el).data('totals'));			if (!requesrUrl) {				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').data('page', next_page);						$(".gifts_list").append(data.msg);						lock = false;						//new Datalazyload();						if (next_page > totals) {							$('.up_icon').hide();						}					}				}				, 'json'			);		}	});});//有产品列表时添加整体body背景色$(body).addClass("bg_white");</script><?php endif; ?><?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); ?>
 |