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

95 lines
3.8 KiB

7 years ago
7 years ago
7 years ago
7 years ago
  1. <!DOCTYPE html><html><head><meta http-equiv="content-type" content="text/html;charset=utf-8"/>
  2. <title>余额明细</title><meta name="keywords" content="关键词"><meta name="description" content="描述"><meta content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport">
  3. <link href="<?php echo env('APP_URL'); ?>/css/weixin/style.css" type="text/css" rel="stylesheet">
  4. <script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/jquery.min.js"></script>
  5. <script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/weixin/mobile.js"></script></head><body>
  6. <div class="classreturn loginsignup">
  7. <div class="ds-in-bl return"><a href="javascript:history.back(-1);"><img src="<?php echo env('APP_URL'); ?>/images/weixin/return.png" alt="返回"></a></div>
  8. <div class="ds-in-bl tit center"><span>余额明细</span></div>
  9. </div>
  10. <script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/layer/mobile/layer.js"></script>
  11. <style>
  12. .money_list li{padding:15px;border-bottom:1px solid #ddd;}
  13. .money_list .tit{color:#000;font-size:18px;margin-bottom:5px;}
  14. .money_list .time{color:#8e8e8e;font-size:12px;}
  15. .money_list span{font-size:18px;float:right;vertical-align:middle;margin-top:12px;}
  16. .money_list span.green{color:#04ba06;}
  17. </style>
  18. <div class="floor">
  19. <?php if($list){ ?>
  20. <ul class="money_list cl">
  21. <?php foreach($list as $k=>$v){ ?>
  22. <li>
  23. <span <?php if($v['type']==0){echo 'class="green"';} ?>><?php if($v['type']==0){echo '+';}else{echo '-';} ?> <?php echo $v['money']; ?></span>
  24. <div class="info"><p class="tit"><?php echo $v['des']; ?></p>
  25. <p class="time"><?php echo date('Y-m-d H:i:s',$v['add_time']); ?></p></div>
  26. </li>
  27. <?php } ?>
  28. </ul>
  29. <?php }else{ ?>
  30. <div style="text-align:center;line-height:40px;color:#999;">暂无记录</div>
  31. <?php } ?>
  32. </div>
  33. <script>
  34. $(function(){
  35. var ajaxload = false;
  36. var maxpage = false;
  37. var startpage = 1;
  38. var totalpage = <?php echo $totalpage; ?>;
  39. var tmp_url = window.location.href;
  40. msg = tmp_url.split("#");
  41. tmp_url = msg[0];
  42. $(window).scroll(function ()
  43. {
  44. var listheight = $(".money_list").outerHeight();
  45. if ($(document).scrollTop() + $(window).height() >= listheight)
  46. {
  47. if(startpage >= totalpage)
  48. {
  49. //$("#submit_bt_one").html("已是最后一页,没有更多数据!");
  50. return false;
  51. }
  52. if(!ajaxload && !maxpage)
  53. {
  54. ajaxload = true;
  55. //$("#submit_bt_one").html("努力加载中...");
  56. var url = tmp_url;
  57. var nextpage = startpage+1;
  58. $.get(url,{page_ajax:1,page:nextpage},function(res)
  59. {
  60. if(res)
  61. {
  62. $(".money_list").append(res);
  63. startpage++;
  64. if(startpage >= totalpage)
  65. {
  66. maxpage = true;
  67. //$("#submit_bt_one").html("已是最后一页,没有更多数据!");
  68. }
  69. else
  70. {
  71. //$("#submit_bt_one").html("点击加载更多");
  72. }
  73. ajaxload = false;
  74. }
  75. else
  76. {
  77. //$("#submit_bt_one").html("请求失败,请稍候再试!");
  78. ajaxload = false;
  79. }
  80. },'json');
  81. }
  82. }
  83. });
  84. });
  85. </script>
  86. @include('weixin.common.footer')
  87. </body></html>