|
|
<extend name="Public/bases" />
|
|
|
<block name="css">
|
|
|
<link href="__CSS__/shop.css" rel="stylesheet" >
|
|
|
</block>
|
|
|
<block name="body" >
|
|
|
|
|
|
<body class="ex-record">
|
|
|
<header class="header">
|
|
|
<div class="">
|
|
|
<a href="{:U('User/index')}" class="hbtn back"><i class="iconfont icon-drop-left"></i></a>
|
|
|
<h1 class="caption">兑换记录</h1>
|
|
|
<a href="javascript:;" class="hbtn download funnel jsfunnel"><i class="iconfont icon-funnel"></i></a>
|
|
|
|
|
|
</div>
|
|
|
</header>
|
|
|
<div class="occupy"></div>
|
|
|
<section class="trunker">
|
|
|
<section class="container">
|
|
|
<div class="banner ex-record-banner">
|
|
|
<div class="wrap">
|
|
|
<i class="iconfont icon-money-pile"></i>
|
|
|
<span>合计消费积分:{$total}</span>
|
|
|
<p></p>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="t-list2 ex-record-list">
|
|
|
<ul class="clearfix" id="ajaxContainer" currentpage="{$page}">
|
|
|
<volist name="data" id="vo">
|
|
|
<li>
|
|
|
<div class="item">
|
|
|
<p class="main">
|
|
|
<span class="number">×{$vo.number}</span>
|
|
|
<a href="{:U('User/exchangerecorddetail',array('id'=>$vo['id']))}" class="name">{$vo.good_name}</a>
|
|
|
</p>
|
|
|
<p class="addtion">
|
|
|
<span class="number">-{$vo.pay_amount}</span>
|
|
|
<span class="time">{$vo.create_time|date='Y-m-d H:i:s',###}</span>
|
|
|
</p>
|
|
|
</div>
|
|
|
</li>
|
|
|
</volist>
|
|
|
</ul>
|
|
|
</div>
|
|
|
</section>
|
|
|
</section>
|
|
|
<div class="funnel-box jsfunnellist">
|
|
|
<div class="funnel-list">
|
|
|
<h2 class="funnel-title">设置筛选条件<a href="javascript:;" class="funnel-close">X</a></h2>
|
|
|
<ul>
|
|
|
<li><a href="{:U('User/exchangerecord')}" class="funnel-item <if condition="I('type',1) == 1">on</if>">全部<i class="iconfont icon-yes"></i></a></li>
|
|
|
<li><a href="{:U('User/exchangerecord',array('type'=>2))}" class="funnel-item <if condition="I('type',1) == 2">on</if>">商品<i class="iconfont icon-yes"></i></a></li>
|
|
|
<li><a href="{:U('User/exchangerecord',array('type'=>3))}" class="funnel-item <if condition="I('type',1) == 3">on</if>">平台币<i class="iconfont icon-yes"></i></a></li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="popmsg pop-dialog"></div>
|
|
|
<div class="space"></div>
|
|
|
<div class="loading ms-none hidden" id="moreBtn"><a href="javascript:" class="link"></a></div>
|
|
|
<script src="__JS__/ajaxload.js"></script>
|
|
|
<script src="__JS__/pop.lwx.min.js"></script>
|
|
|
<script>
|
|
|
$(function() {
|
|
|
$('.jsfunnel').click(function() {
|
|
|
var that = $('.jsfunnellist');
|
|
|
that.stop(true).fadeIn(600).find('.funnel-close').on('click',function() {
|
|
|
that.fadeOut(600);
|
|
|
});
|
|
|
});
|
|
|
|
|
|
var pmsg = $('.popmsg').pop();
|
|
|
var popmsg = $('.loading').pop();
|
|
|
<?php if(!$data){?>
|
|
|
pmsg.msg('暂无数据');
|
|
|
<?php }?>
|
|
|
var ac = $('#ajaxContainer');
|
|
|
var type = "{:I('type')}";
|
|
|
ajaxload('{:U("ajaxExchangeRecord")}',{type:type},function(data) {
|
|
|
if (data.status == 1) {
|
|
|
ac.attr('currentpage',data.page);
|
|
|
var html = '',d = data.lists;
|
|
|
for (var i in d) {
|
|
|
var item = d[i];
|
|
|
html += '<li>'+
|
|
|
' <div class="item">'+
|
|
|
' <p class="main">'+
|
|
|
' <span class="number">×'+item.number+'</span>'+
|
|
|
' <a href='+item.durl+' class="name">'+item.good_name+'</a>'+
|
|
|
' </p>'+
|
|
|
' <p class="addtion">'+
|
|
|
' <span class="number">-'+item.pay_amount+'</span>'+
|
|
|
' <span class="time">'+item.create_time+'</span>'+
|
|
|
' </p>'+
|
|
|
' </div>'+
|
|
|
'</li>';
|
|
|
}
|
|
|
ac.append(html);
|
|
|
$('.loading').addClass('ms-none');
|
|
|
$('#moreBtn').removeClass('ms-none');loads = false;
|
|
|
} else {
|
|
|
$('.loading').removeClass("hidden").addClass('ms-none');
|
|
|
popmsg.msg('已经到底了~');
|
|
|
}
|
|
|
})
|
|
|
});
|
|
|
</script>
|
|
|
</body>
|
|
|
</block>
|
|
|
<block name="footer"></block> |