123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- <{include file="header.html"}>
- <link rel="stylesheet" type="text/css" href="<{$web_cfg.cdn}>/haili/css/prizelist.css" />
- <!--公用标题居中显示-->
- <{include file="common_header.html"}>
- <section class="prizelist">
- <{if $data}>
- <h2>您参与活动获得的奖品</h2>
- <{else}>
- <h2>您还没有获得奖品</h2>
- <{/if}>
- <{if $data}>
- <div class="gifts_list">
- <{foreach from=$newData item=v}>
- <dl>
- <dt><a href="<{$v.url}>"><img src="<{if $v.events_type==6&&$v.prize_type==2}><{$web_cfg.cdn}><{$v.prize_img_url}><{else}><{$v.prize_img_url}><{/if}>"></a></dt>
- <dd><p><{$v.prize_name}></p>
- <{if $v.feedback == 4}>
- <a class="red" href="<{$web_cfg.domain}>/?c=Express&lottery_data_id=<{$v.lottery_data_id}>">填写收货地址</a>
- <{elseif $v.feedback == 3}>
- <{if $v.events_type==6}>
- <a href="<{$v.virtual_data}>">查看二维码</a>
- <{else}>
- <a href="<{$web_cfg.domain}>/?c=FeedBack&lottery_data_id=<{$v.lottery_data_id}>">查看或修改评价</a>
- <{/if}>
- <{elseif $v.feedback == 2}>
- <a href="<{$web_cfg.domain}>/?c=FeedBack&lottery_data_id=<{$v.lottery_data_id}>">发表试用评价</a>
- <{elseif $v.feedback == 5}>
- <span class="disable">已过期</span>
- <{/if}>
- <{if $v.prize_type==2}>
- <{if $v.events_type==6}>
- <a href="<{$v.virtual_data}>">查看二维码</a>
- <{else}>
- <span>券:<{$v.virtual_data}></span>
- <{/if}>
- <{/if}>
- <{if $v.prize_express==1}>
- <{if $thisTime < $v.end_time_receive_prizes && $v.events_delivery==1 && !$v.express}>
- <a class="red" href="<{$web_cfg.domain}>/?c=Express&lottery_data_id=<{$v.lottery_data_id}>">填写收货地址</a>
- <{else}>
- <{if $thisTime > $v.end_time_receive_prizes && $v.express && $v.events_delivery==2}>
- <span>已发货</span>
- <{/if}>
- <{if $thisTime > $v.end_time_receive_prizes && !$v.express && $v.events_delivery==2 }>
- <span class="disable">已过期</span>
- <{/if}>
- <{/if}>
- <{/if}>
- </dd>
- </dl>
- <{/foreach}>
- <div class="clear"></div>
- <div class="loading">
- <img
- id="loadPage"
- src="<{$web_cfg.cdn}>/public/static/img/loading.gif"
- data-ks-lazyload="<{$web_cfg.cdn}>/public/static/img/loading.gif"
- data-request-url="<{$web_cfg.domain}>/?c=Member&a=ajax"
- data-page="2"
- data-totals="<{$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>
- <{/if}>
- </section>
- <{if $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>
- <{/if}>
- <{include file="bottom.html"}>
|