|
@@ -2,7 +2,7 @@
|
|
<head>
|
|
<head>
|
|
<title>我的积分</title>
|
|
<title>我的积分</title>
|
|
{{include "/common/inc.html"}}
|
|
{{include "/common/inc.html"}}
|
|
-<script src="/js/qfwtable.js"></script>
|
|
|
|
|
|
+<script charset="utf-8" src="/js/paging.js"></script>
|
|
<style>
|
|
<style>
|
|
.credit-explain {
|
|
.credit-explain {
|
|
background-color: #FCF8E3;
|
|
background-color: #FCF8E3;
|
|
@@ -289,25 +289,35 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="tab-content hide" id="list_1">
|
|
<div class="tab-content hide" id="list_1">
|
|
- <div class="tab-pane" >
|
|
|
|
- 222
|
|
|
|
|
|
+ <div class="creditinfo">
|
|
|
|
+ <table class="table a-table" id="credittable">
|
|
|
|
+ <tr id="tableTitle" style="text-align:center;">
|
|
|
|
+ <td width="10%"><b>编号</b></td>
|
|
|
|
+ <td width="25%" align="center"><b>日期</b></td>
|
|
|
|
+ <td width="35%" align="center"><b>操作</b></td>
|
|
|
|
+ <td width="15%" align="center"><b>积分</b></td>
|
|
|
|
+ <td width="15%" align="center"><b>账户余额</b></td>
|
|
|
|
+ </tr>
|
|
|
|
+ <tr>
|
|
|
|
+ <td colspan="5" class="text-center" id="creditPaging"></td>
|
|
|
|
+ </tr>
|
|
|
|
+ </table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
<!-- 底部 -->
|
|
<!-- 底部 -->
|
|
{{include "/common/bottom.html"}}
|
|
{{include "/common/bottom.html"}}
|
|
|
|
+
|
|
<script type="text/javascript">
|
|
<script type="text/javascript">
|
|
$(function(){
|
|
$(function(){
|
|
$("#c_0,#c_1").click(function(){
|
|
$("#c_0,#c_1").click(function(){
|
|
var _v=$(this).attr("value")
|
|
var _v=$(this).attr("value")
|
|
checkContent("list_"+_v)
|
|
checkContent("list_"+_v)
|
|
})
|
|
})
|
|
-
|
|
|
|
- var AAll="{{.T.AAll}}"
|
|
|
|
|
|
+ var AAll="{{.T.AAll}}"//一次性任务完成,位置切换
|
|
if (AAll==true){
|
|
if (AAll==true){
|
|
rcrw=$("#rcrw").html();
|
|
rcrw=$("#rcrw").html();
|
|
csrw=$("#csrw").html();
|
|
csrw=$("#csrw").html();
|
|
@@ -315,6 +325,30 @@ $(function(){
|
|
$("#csrw").html(rcrw);
|
|
$("#csrw").html(rcrw);
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
+
|
|
|
|
+var pag;
|
|
|
|
+$(function(){
|
|
|
|
+ pag=new Paging("creditPaging","/member/credit/creditList",null,10,function(r){
|
|
|
|
+ var html = '';
|
|
|
|
+ var classattr="rowone";
|
|
|
|
+ for(var i in r){
|
|
|
|
+ if((r[i].index%2)>0){
|
|
|
|
+ classattr="rowone"
|
|
|
|
+ }else{
|
|
|
|
+ classattr="rowtwo"
|
|
|
|
+ }
|
|
|
|
+ html += '<tr class="'+classattr+'" data-id="'+r[i]._id+'" class="a-border-b">'
|
|
|
|
+ +'<td width="10%" align="center">'+r[i].index+'</td>'
|
|
|
|
+ +'<td width="25%" align="center">'+r[i].l_date+'</td>'
|
|
|
|
+ +'<td width="35%" align="center">'+r[i].s_operation+'</td>'
|
|
|
|
+ +'<td width="15%" align="center">'+r[i].i_score+'</td>'
|
|
|
|
+ +'<td width="15%" align="center">'+r[i].i_scorenow+'</td>';
|
|
|
|
+ }
|
|
|
|
+ $("#credittable #tableTitle").nextAll("[data-id]").remove();
|
|
|
|
+ $("#credittable #tableTitle").after(html);
|
|
|
|
+ });
|
|
|
|
+});
|
|
|
|
+
|
|
function checkContent(id){
|
|
function checkContent(id){
|
|
$(".tab-content").each(function(){
|
|
$(".tab-content").each(function(){
|
|
if($(this).attr("id")!=id){
|
|
if($(this).attr("id")!=id){
|