123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- <!DOCTYPE html>
- <html>
- <meta charset="UTF-8">
- <meta content="yes" name="apple-mobile-web-app-capable">
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,minimum-scale=1.0,user-scalable=0" />
- <title>我的收益</title>
- <link rel="stylesheet" type="text/css" href="../public/public_css.css"/>
- <style type="text/css">
- body{min-height:100vh;height:100vh;box-sizing:border-box;-webkit-overflow-scrolling:touch;background: #F4F4F4;}
- em{font-style: normal;}
- .top{width: 100%;height: 2.06rem;background: url(images/bg.png);background-size: 100%;position: fixed;top: 0;left: 0rem;}
- .header{height:0.5rem;font-size:0.18rem;color:#FFFFFF;line-height:0.5rem; text-align: center;}
- .top p{padding-top: 0.8rem;padding-left: 0.15rem;color: #FFFFFF;font-size: 0.13rem;}
- .top #earnings{font-size: 0.18rem;letter-spacing:0.005rem;vertical-align: middle;}
- .tab{width:3.45rem;height:4.85rem;margin: auto;background:#FFFFFF;border-radius:0.12rem;position: fixed;top: 1.8rem;left: 0.15rem; overflow: hidden;overflow-y: scroll;}
- .tab .tab_top{width: 3.45rem; position: fixed;background:#ffffff;}
- .tab_menu {height: 0.45rem;}
- .tab_menu div:nth-child(1){left: 0;}
- .tab_menu div:nth-child(2){left: 50%;}
- .tab_menu div{position: fixed;float:left;width: 50%;height: 0.47rem;line-height: 0.47rem;text-align: center;background: #FFF;font-size: 0.15rem;}
- .tab .des{color: #333333;font-size: 0.12rem;text-align: center;padding-bottom: 0.13rem;border-bottom:0.005rem solid #DADADA ;margin: 0 0.2rem;}
- .selected,.hover{color: #EF3B3B;}
- .tab_con{width: 100%;height: 4.86rem;background: #F4F4F4; padding-top: 0.6rem;}
- .item{width: 100%;height: 4.86rem;padding:0 0.09rem;padding-top: 0.15rem;background: #FFF;overflow-y: scroll;}
- .item li{height: 0.5rem;border-bottom: 0.005rem solid #DADADA;box-sizing: border-box;color: #333333;}
- .item li .left {width: 70%;float: left;}
- .item li .name{font-size: 0.12rem; padding-top: 0.1rem;padding-bottom: 0.06rem;}
- .item li .userName{ display: inline-block;padding-left: 0.16rem;padding-right: 0.1rem;width: 1.17rem;white-space: nowrap;box-sizing: border-box;overflow: hidden;text-overflow: ellipsis;vertical-align: middle;}
- .item li .userName,.item li .userState{font-size: 0.13rem;}
- .item li .create{font-size: 0.1rem;color: #666666;}
- .item li .bonus{display:block;float:right;font-size: 0.13rem;margin-top: 0.13rem;}
- .item li .money{font-size: 0.15rem; color: #EF3B3B ;}
- </style>
- <script type="text/javascript">
- document.documentElement.style.fontSize = 100 * (document.documentElement.clientWidth/375) + "px";
- window.onresize = function(){
- document.documentElement.style.fontSize = 100 * (document.documentElement.clientWidth/375) + "px";
- }
- </script>
- </head>
- <body>
- <div class="top">
- <div class="header">拉新拿奖</div>
- <p>我的收益:¥<span id="earnings">1666</span></p>
- </div>
- <div class="tab">
- <div class="tab_top">
- <div class="tab_menu">
- <div class="selected">淘宝收益</div>
- <div>支付宝收益</div>
- </div>
- <p class="des">6月份收益8月25号发放</p>
- </div>
-
- <div class="tab_con">
- <div class="tab_tb">
- <ul class="item">
- <li><div class="left"><p class="name">会员名<span class="userName">小AAAAA</span><span class="userState">首购下单</span></p><p class="create">创建时间 <span class="time">2018.07.20-14:00</span></p></div><p class="bonus">奖金<span class="money">24</span>元</p></li>
- <li><div class="left"><p class="name">会员名<span class="userName">小AABBBB</span><span class="userState">完成绑卡</span></p><p class="create">创建时间 <span class="time">2018.07.20-14:00</span></p></div><p class="bonus">奖金<span class="money">24</span>元</p></li>
- <li><div class="left"><p class="name">会员名<span class="userName">嗯嗯</span><span class="userState">完成复购</span></p><p class="create">创建时间 <span class="time">2018.07.20-14:00</span></p></div><p class="bonus">奖金<span class="money">24</span>元</p></li>
- <li><div class="left"><p class="name">会员名<span class="userName">大哥请留步再走啊</span><span class="userState">首购下单</span></p><p class="create">创建时间 <span class="time">2018.07.20-14:00</span></p></div><p class="bonus">奖金<span class="money">24</span>元</p></li>
- <li><div class="left"><p class="name">会员名<span class="userName">我要做个早日暴富的人</span><span class="userState">首购下单</span></p><p class="create">创建时间 <span class="time">2018.07.20-14:00</span></p></div><p class="bonus">奖金<span class="money">24</span>元</p></li>
- <li><div class="left"><p class="name">会员名<span class="userName">我要早日暴富</span><span class="userState">首购下单</span></p><p class="create">创建时间 <span class="time">2018.07.20-14:00</span></p></div><p class="bonus">奖金<span class="money">24</span>元</p></li>
- <li><div class="left"><p class="name">会员名<span class="userName">我要早日暴富</span><span class="userState">首购下单</span></p><p class="create">创建时间 <span class="time">2018.07.20-14:00</span></p></div><p class="bonus">奖金<span class="money">24</span>元</p></li>
- <li><div class="left"><p class="name">会员名<span class="userName">我要早日暴富</span><span class="userState">首购下单</span></p><p class="create">创建时间 <span class="time">2018.07.20-14:00</span></p></div><p class="bonus">奖金<span class="money">24</span>元</p></li>
- <li><div class="left"><p class="name">会员名<span class="userName">我要早日暴富</span><span class="userState">首购下单</span></p><p class="create">创建时间 <span class="time">2018.07.20-14:00</span></p></div><p class="bonus">奖金<span class="money">24</span>元</p></li>
- <li><div class="left"><p class="name">会员名<span class="userName">我要早日暴富</span><span class="userState">首购下单</span></p><p class="create">创建时间 <span class="time">2018.07.20-14:00</span></p></div><p class="bonus">奖金<span class="money">24</span>元</p></li>
- <li><div class="left"><p class="name">会员名<span class="userName">我要早日暴富</span><span class="userState">首购下单</span></p><p class="create">创建时间 <span class="time">2018.07.20-14:00</span></p></div><p class="bonus">奖金<span class="money">24</span>元</p></li>
- </ul>
- </div>
- <div class="tab_zfb hide" style="display: none;">
- <ul class="item">
- <li><div class="left"><p class="name">会员名<span class="userName">小AAAAA</span><span class="userState">首购下单</span></p><p class="create">创建时间 <span class="time">2018.07.20-14:00</span></p></div><p class="bonus">奖金<span class="money">24</span>元</p></li>
- <li><div class="left"><p class="name">会员名<span class="userName">小AABBBB</span><span class="userState">完成绑卡</span></p><p class="create">创建时间 <span class="time">2018.07.20-14:00</span></p></div><p class="bonus">奖金<span class="money">24</span>元</p></li>
- <li><div class="left"><p class="name">会员名<span class="userName">我要早日暴富</span><span class="userState">完成复购</span></p><p class="create">创建时间 <span class="time">2018.07.20-14:00</span></p></div><p class="bonus">奖金<span class="money">24</span>元</p></li>
- <li><div class="left"><p class="name">会员名<span class="userName">我要早日暴富</span><span class="userState">首购下单</span></p><p class="create">创建时间 <span class="time">2018.07.20-14:00</span></p></div><p class="bonus">奖金<span class="money">24</span>元</p></li>
- <li><div class="left"><p class="name">会员名<span class="userName">我要早日暴富</span><span class="userState">首购下单</span></p><p class="create">创建时间 <span class="time">2018.07.20-14:00</span></p></div><p class="bonus">奖金<span class="money">24</span>元</p></li>
- <li><div class="left"><p class="name">会员名<span class="userName">我要早日暴富</span><span class="userState">首购下单</span></p><p class="create">创建时间 <span class="time">2018.07.20-14:00</span></p></div><p class="bonus">奖金<span class="money">24</span>元</p></li>
-
- </ul>
- </div>
- </div>
- </div>
- </body>
- </html>
- <script type="text/javascript" src="../public/jquery-2.1.0.js"></script>
- <script type="text/javascript">
-
- $().ready(function(){
- $('.item').scroll(function(){
- var scrollT = $(this)[0].scrollTop;
- var scrollH = $(this)[0].scrollHeight;
- var viewH =$(this).height();
- // console.log(scrollT,scrollH,viewH);
- if(scrollT + viewH >= scrollH -18){
- console.log(scrollT+viewH,scrollH);
- alert('到底啦')
- }
- })
- })
-
-
- $(function () {
- var $div_list = $("div.tab_menu div");
- $div_list.click(function () { //定义了tan_menu对应的单击事件,也就是类别的单击事件。
- $(this).addClass("selected")
- .siblings().removeClass("selected");
- var index = $div_list.index(this);
- $("div.tab_con>div").eq(index).show()
- .siblings().hide();
- }).hover(function () { //定义了鼠标滑过特效
- $(this).addClass("hover");
- }, function () {
- $(this).removeClass("hover");
- });
- });
-
-
- </script>
|