| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <!DOCTYPE html>
- <html>
- <head lang="en">
- <include file="Public/head"/> <!--公共css-->
- <link type="text/css" rel="stylesheet" href="__STATIC__/appapi/css/record.css?t=1563270253"/>
- <title>{:lang('收益明细')}</title>
- </head>
- <body>
- <div class="list">
- <ul>
- <volist name="list" id="v">
- <li>
- <div class="list_l">
- <div class="img"><img src="{$v['userinfo']['avatar']}"></div>
- <p class="name">{$v['userinfo']['user_nickname']}</p>
- <if condition="$v['uid'] gt 0">
- <p class="id">ID:{$v['userinfo']['id']}</p>
- </if>
- </div>
- <div class="list_r">
- <p class="name">{$v['action_name']}</p>
- <p class="nums">+{$v['votes']}</p>
- </div>
- </li>
- </volist>
- </ul>
- </div>
- <script>
- var uid='{$uid}';
- var token='{$token}';
- var lang='{$language}';
- var baseSize = 100;
- function setRem () {
- var scale = document.documentElement.clientWidth / 750;
- document.documentElement.style.fontSize = (baseSize * Math.min(scale, 3)) + 'px';
- }
- setRem();
- window.onresize = function () {
- setRem();
- }
- </script>
- <include file="Public/footer"/>
- <script>
- $(function(){
- function getlistmore(){
- $.ajax({
- url:'/appapi/cash/record_more?lang='+lang,
- data:{'page':page,'uid':uid,'token':token},
- type:'post',
- dataType:'json',
- success:function(data){
- if(data.nums>0){
- var nums=data.nums;
- var list=data.data;
- var html='';
- for(var i=0;i<nums;i++){
- var v=list[i];
- html+='<li>\
- <div class="list_l">\
- <div class="img"><img src="'+v['userinfo']['avatar']+'"></div>\
- <p class="name">'+v['userinfo']['user_nickname']+'</p>';
-
- if(v['userinfo']['id']){
- html+='<p class="id">ID:'+v['userinfo']['id']+'</p>';
- }
- html+='</div>\
- <div class="list_r">\
- <p class="name">'+v['action_name']+'</p>\
- <p class="nums">'+v['votes']+'</p>\
- </div>\
- </li>';
- }
-
- $(".list ul").append(html);
- }
-
- if(data.isscroll==1){
- page++;
- isscroll=true;
- }
- }
- })
- }
- var page=2;
- var isscroll=true;
-
- var scroll_list=$(".list");
- $(window).scroll(function(){
- var srollPos = $(document).scrollTop(); //滚动条距顶部距离(页面超出窗口的高度)
- var totalheight = parseFloat($(window).height()) + parseFloat(srollPos);
- if((scroll_list.height()-totalheight) <=50 && isscroll){
- isscroll=false;
- getlistmore()
- }
- });
- })
- </script>
- </body>
- </html>
|