You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

132 lines
5.2 KiB
HTML

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<extend name="Public/bases" />
<block name="css">
<link href="__CSS__/user.css" rel="stylesheet" >
</block>
<block name="body" >
<body class="user">
<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="{:U('User/userintegralguide')}" class="hbtn addbtn ">获取方法</a>
</div>
</header>
<div class="occupy"></div>
<section class="trunker">
<section class="container">
<div class="banner user-integral-banner">
<div class="integral-top">
<i class="iconfont icon-money-pile"></i>
<span>积分总额&nbsp;&nbsp;{$total}</span>
<p></p>
</div>
</div>
<ul class="t-tab ui-t-tab jstab clearfix">
<li><a href="{:U('User/userintegral',array('type'=>1))}" class="btn <if condition='I("type",1) == 1'>active</if>">获取记录</a></li>
<li><a href="{:U('User/userintegral',array('type'=>2))}" class="btn <if condition='I("type",1) == 2'>active</if>">使用记录</a></li>
</ul>
<div class="t-list3 jslist user-integral-list">
<ul class="t-tabpan active" id="ajaxContainer" currentpage="1">
<if condition="I('type',1) == 1">
<volist name="data" id="vo">
<li>
<div class="item">
<p class="main">
<span class="number getrecord">+{$vo.point}</span>
<a href="javascipt:" class="name">{$vo.name}</a>
</p>
<p class="addtion"><span class="time">{:set_show_time($vo['create_time'])}</span></p>
</div>
</li>
</volist>
<else/>
<volist name='data["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">{:set_show_time($vo['create_time'])}</span>
</p>
</div>
</li>
</volist>
</if>
</ul>
</div>
</section>
</section>
<div class="loading ms-none hidden" id="moreBtn"><a href="javascript:" class="link"></a></div>
<div class="popmsg pop-dialog"></div>
<div class="space"></div>
<script src="__JS__/ajaxload.js"></script>
<script src="__JS__/pop.lwx.min.js"></script>
<script>
$(function() {
$('.jstab .btn').click(function() {
});
var pmsg = $('.popmsg').pop();
var popmsg = $('.loading').pop();
<?php if(!$data){?>
pmsg.msg('暂无数据');
<?php }?>
var ac = $('#ajaxContainer');
ajaxload('{:U("ajaxUserIntegral",array("type"=>I("type",1)))}',{},function(data) {
if (data.status == 1) {
ac.attr('currentpage',data.page);
var html = '',d = data.lists;
switch("{:I('type',1)}"){
case "1":
for (var i in d) {
var item = d[i];
html += '<li>'+
' <div class="item">'+
' <p class="main">'+
' <span class="number getrecord">+'+item.point+'</span>'+
' <a href="javascipt:" class="name">'+item.name+'</a>'+
' </p>'+
' <p class="addtion"><span class="time">'+item.create_time+'</span></p>'+
' </div>'+
'</li>';
}
break;
case "2":
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.url+'" 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>';
}
break;
}
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>