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.

102 lines
4.4 KiB

7 years ago
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>
  6. <link href="<?php echo env('APP_URL'); ?>/css/font-awesome.min.css" type="text/css" rel="stylesheet"></head><body>
  7. <div class="classreturn loginsignup">
  8. <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>
  9. <div class="ds-in-bl tit center"><span>我的分销</span></div>
  10. </div>
  11. <script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/layer/mobile/layer.js"></script>
  12. <style>
  13. .account{text-align:center;margin-top:30px;}
  14. .account .icon{color:#FFCC00;font-size:100px;}
  15. .account .money{color:#353535;font-size:36px;}
  16. .account .tit{color:#000;font-size:18px;}
  17. .banner_tit{font-size:18px;font-weight:400;background-color:#fff;color:#f23030;height:46px;line-height:46px;padding-left:10px;padding-right:10px;border-bottom:1px solid #eee;border-top:10px solid #f1f1f1;text-align:center;}
  18. </style>
  19. <div class="floor account">
  20. <div class="icon"><i class="fa fa-diamond"></i></div>
  21. <div class="tit">累积佣金</div>
  22. <div class="money"><small></small><?php echo $user_info['commission']; ?></div>
  23. </div>
  24. <div class="floor">
  25. <div class="banner_tit mt10">我的推荐</div>
  26. <?php if($list){ ?>
  27. <ul class="goods_list_s cl">
  28. <?php foreach($list as $k=>$v){ ?>
  29. <li><span class="goods_thumb" style="width:72px;height:72px;"><img style="width:72px;height:72px;" alt="<?php echo $v['user_name']; ?>" src="<?php echo $v['head_img']; ?>"></span>
  30. <div class="goods_info"><p class="goods_tit"><?php echo $v['user_name']; ?></p>
  31. <p style="line-height:24px;">佣金:<?php echo $v['commission']; ?></p>
  32. <p style="line-height:24px;">注册时间:<?php echo date('Y-m-d',$v['add_time']); ?></p>
  33. </div></li>
  34. <?php } ?>
  35. </ul>
  36. <?php }else{ ?>
  37. <div style="text-align:center;line-height:40px;color:#999;">暂无记录</div>
  38. <?php } ?>
  39. </div>
  40. <script>
  41. $(function(){
  42. var ajaxload = false;
  43. var maxpage = false;
  44. var startpage = 1;
  45. var totalpage = <?php echo $totalpage; ?>;
  46. var tmp_url = window.location.href;
  47. msg = tmp_url.split("#");
  48. tmp_url = msg[0];
  49. $(window).scroll(function ()
  50. {
  51. var listheight = $(".goods_list_s").outerHeight();
  52. if ($(document).scrollTop() + $(window).height() >= listheight)
  53. {
  54. if(startpage >= totalpage)
  55. {
  56. //$("#submit_bt_one").html("已是最后一页,没有更多数据!");
  57. return false;
  58. }
  59. if(!ajaxload && !maxpage)
  60. {
  61. ajaxload = true;
  62. //$("#submit_bt_one").html("努力加载中...");
  63. var url = tmp_url;
  64. var nextpage = startpage+1;
  65. $.get(url,{page_ajax:1,page:nextpage},function(res)
  66. {
  67. if(res)
  68. {
  69. $(".goods_list_s").append(res);
  70. startpage++;
  71. if(startpage >= totalpage)
  72. {
  73. maxpage = true;
  74. //$("#submit_bt_one").html("已是最后一页,没有更多数据!");
  75. }
  76. else
  77. {
  78. //$("#submit_bt_one").html("点击加载更多");
  79. }
  80. ajaxload = false;
  81. }
  82. else
  83. {
  84. //$("#submit_bt_one").html("请求失败,请稍候再试!");
  85. ajaxload = false;
  86. }
  87. },'json');
  88. }
  89. }
  90. });
  91. });
  92. </script>
  93. @include('weixin.common.footer')
  94. </body></html>