123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459 |
- <!DOCTYPE html>
- <html lang="zh-cn">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
- <meta name="format-detection" content="email=no" />
- <meta name="format-detection" content="telephone=no" />
- <title>提成明细</title>
- <link rel="stylesheet" href="../../css/reset.css">
- <style>
- html{font-size:10px}
- html,body{
- height: 100%;
- }
- .flex-wrap{
- display: -webkit-box;
- display: -webkit-flex;
- display: flex;
- }
- .flex-con{
- -webkit-box-flex: 1;
- -webkit-flex: 1;
- flex: 1;
- }
- body{
- display: -webkit-box;
- display: -webkit-flex;
- display: flex;
- -webkit-box-orient: vertical;
- -webkit-flex-flow: column;
- flex-flow: column;
- }
- header{
- width: 100%;
- height: 4rem;
- line-height: 4rem;
- background-color: #252736;
- position: fixed;
- top: 0;
- left: 0;
- z-index: 999;
- }
- header h2{
- width: 100%;
- height: 100%;
- font-size: 1.8rem;
- color: #fff;
- font-weight: lighter;
- text-align: center;
- position: relative;
- }
- header i{
- display: inline-block;
- width: 4.3rem;
- height: 4.3rem;
- background: url("../../img/index/backBtn.png") no-repeat 30%/60%;
- position: absolute;
- left: 0;
- bottom: 0;
- }
- header a{
- display: inline-block;
- font-size: 1.2rem;
- color: #fff;
- position: absolute;
- right: 1.2rem;
- top: 0;
- }
- main{
- background-color: #f7f7f7;
- padding-top: 8rem;
- padding-bottom: 5rem;
- overflow: auto;
- }
- .selDate{
- width: 100%;
- height: 4rem;
- line-height: 4rem;
- text-align: center;
- background-color: #fff;
- border-bottom: 1px solid #efefef;
- padding: 0 2rem;
- position: fixed;
- top: 4rem;
- left: 0;
- z-index: 999;
- }
- .detailList li{
- height: 5rem;
- font-size: 1.5rem;
- background-color: #fff;
- padding: 0 .6rem;
- border-bottom: 1px solid #f7f7f7;
- display: -webkit-box;
- display: -webkit-flex;
- display: flex;
- }
- .detailList li>div{
- height: 100%;
- }
- .subordinate{
- white-space: nowrap;
- -webkit-box-flex: 1;
- -webkit-flex: 1;
- flex: 1;
- }
- .subordinate span{
- display: inline-block;
- }
- .sUser{
- font-size: 1.1rem;
- padding: .5rem .6rem .5rem 0;
- }
- .sData{
- font-size: 1rem;
- }
- select{
- margin-right: .2rem;
- }
- .content{
- width: 8rem;
- line-height: 5rem;
- text-align: center;
- color: #ff5001;
- font-weight: 900;
- margin-left: 1rem;
- white-space: nowrap;
- }
- .timeBox>p{
- height: 5rem;
- line-height: 5rem;
- color: #8e8e8e;
- text-align: center;
- font-size: 1.5rem;
- border-bottom: 2px solid #3ecdf1;
- }
- #time>input{
- border: none;
- outline: none;
- }
- #search{
- padding: .5rem 1rem;
- color: #fff;
- background-color: #3d90db;
- border-radius: .2rem;
- margin-top: 1rem;
- }
- .btnDiv>div{
- width: 50%;
- height: 4rem;
- line-height: 4rem;
- text-align: center;
- font-size: 1.4rem;
- border-top: 1px solid #efefef;
- }
- .waitDiv{
- width: 1rem;
- height: 1rem;
- background: url("../../img/order/waiting.gif") round;
- position: absolute;
- left: calc(50% - .5rem);
- top: calc(50% - .5rem);
- display: none;
- }
- .mainPB{
- width: 100%;
- height: 9rem;
- }
- .detailList ul.hid{
- display: none;
- }
- .remindDiv{
- height: 3rem;
- line-height: 3rem;
- text-align: center;
- font-size: 1.2rem;
- color: #fff;
- padding: 0 1rem;
- border-radius: 2rem;
- background-color: rgba(0,0,0,0.7);
- position: fixed;
- bottom: 20%;
- left: 50%;
- -webkit-transform: translateX(-50%);
- transform: translateX(-50%);
- opacity: 0;
- -webkit-transition: .5s;
- transition: .5s;
- z-index: -99;
- }
- .remindDiv.active{
- opacity: 1;
- z-index: 99;
- }
- footer{
- width: 100%;
- height: 5rem;
- color: rgba(0,0,0,0.7);
- background-color: #fff;
- position: fixed;
- left: 0;
- bottom: 0;
- }
- .footNav>li{
- font-size: 1rem;
- text-align: center;
- padding-top: .7rem;
- -webkit-box-flex: 1;
- -webkit-flex: 1;
- flex: 1;
- }
- .footNav>li.active{
- color: #609f25;
- }
- .footNav>li i{
- display: inline-block;
- width: 2rem;
- height: 2rem;
- background-size: 100%;
- margin-bottom: .1rem;
- }
- .footNav>li:nth-of-type(1) i{
- background: url("../../img/index/home.png") round;
- }
- .footNav>li:nth-of-type(2) i{
- background: url("../../img/index/shop.png") round;
- }
- .footNav>li:nth-of-type(3) i{
- background: url("../../img/index/car.png") round;
- }
- .footNav>li:nth-of-type(4) i{
- background: url("../../img/index/order.png") round;
- }
- .footNav>li:nth-of-type(5) i{
- background: url("../../img/index/my2.png") round;
- }
- .footNav>li:nth-of-type(3){
- position: relative;
- }
- .shopCarTag{
- width: 1.8rem;
- height: 1.8rem;
- line-height: 1.8rem;
- text-align: center;
- white-space: nowrap;
- background: url("../../img/index/shopYuan.png") round;
- color: #fff;
- font-size: 1rem;
- border-radius: 50%;
- position: absolute;
- top: 0;
- right: .6rem;
- display: none;
- }
- @media screen and (min-width:321px) and (max-width:375px){html{font-size:11px}}
- @media screen and (min-width:376px) and (max-width:414px){html{font-size:12px}}
- @media screen and (min-width:415px) and (max-width:639px){html{font-size:13px}}
- @media screen and (min-width:640px) and (max-width:719px){html{font-size:18px}}
- @media screen and (min-width:720px) and (max-width:749px){html{font-size:19px}}
- @media screen and (min-width:750px) and (max-width:799px){html{font-size:20px}}
- @media screen and (min-width:800px){html{font-size:21px}}
- </style>
- </head>
- <body>
- <header>
- <h2><i id="backBtn" onclick="toBack()"></i>提成明细<a href="../my.html">我的</a></h2>
- </header>
- <main class="flex-con">
- <div class="selDate clearFix">
- <span id="time" class="left">选择日期:
- <select id="timeY">
- <option value="2017">2017</option>
- </select>
- <select id="timeM">
- <option value="01">01</option>
- <option value="02">02</option>
- <option value="03">03</option>
- <option value="04">04</option>
- <option value="05">05</option>
- <option value="06">06</option>
- <option value="07">07</option>
- <option value="08">08</option>
- <option value="09">09</option>
- <option value="10">10</option>
- <option value="11">11</option>
- <option value="12">12</option>
- </select>
- </span>
- <button id="search" class="right">搜索</button>
- </div>
- <div class="detailList">
- <ul class="hid">
- <li>
- <div class="subordinate">
- <p class="sUser clearFix"><span class="SUName left">昵称:{{name}}</span><span class="SUPhone right">电话:{{phone}}</span></p>
- <p class="sData"><span class="SUNZFB">支付宝:{{ZFB}}</span></p>
- </div>
- <div class="content">+{{money}}</div>
- </li>
- </ul>
- </div>
- <div class="waitDiv"></div>
- <div class="mainPB"></div>
- <div class="remindDiv"></div>
- </main>
- <footer>
- <nav>
- <ul class="footNav flex-wrap">
- <li>
- <i></i>
- <p>首页</p>
- </li>
- <li>
- <i></i>
- <p>商城</p>
- </li>
- <li>
- <i></i>
- <p>购物车</p>
- <div class="shopCarTag">0</div>
- </li>
- <li>
- <i></i>
- <p>订单</p>
- </li>
- <li class="active">
- <i></i>
- <p>我的</p>
- </li>
- </ul>
- </nav>
- </footer>
- <script src="../../js/publicData.js"></script>
- <script src="../../js/modules.js"></script>
- <script>
- window.onload=function () {
- var aFooterLi=document.getElementsByClassName("footNav")[0].getElementsByTagName("li"),
- detailList=document.getElementsByClassName("detailList")[0],
- waitDiv=document.getElementsByClassName("waitDiv")[0],
- shopCarTag=document.getElementsByClassName("shopCarTag")[0],
- remindDiv=document.getElementsByClassName("remindDiv")[0],
- clBtn=document.getElementsByClassName("clBtn")[0],
- suBtn=document.getElementsByClassName("suBtn")[0],
- selDate=document.getElementById("selDate"),
- timeY=document.getElementById("timeY"),
- timeM=document.getElementById("timeM"),
- oTimeBtn=document.getElementById("search");
- var pageList=["index.html","shopPage.html","shopCar.html","order.html","my.html"],
- liModel=detailList.getElementsByTagName("ul")[0].innerHTML,oRemindTime;
- if(is_weixin()){
- var mainPB=document.getElementsByClassName("mainPB")[0];
- mainPB.style.display="none";
- }
- Ajax("get",pageUrl+"/Api/Index/shopCar","",function (data) {
- if(data.status=="999"){
- window.location.href="../login.html";
- }
- if(data.data&&!data.data.length) return;
- shopCarTag.innerText=data.data.length;
- shopCarTag.style.display="block";
- sessionStorage.setItem("carNum",data.data.length||0);
- })
- var nowTime=new Date();
- var nowYear=nowTime.getFullYear()-0;
- var nowMonth=nowTime.getMonth();
- var str="",num=0;
- if(location.search.slice(1).split("=")[1]){
- var monNum=location.search.slice(1).split("=")[1].slice(4)-0;
- timeM.getElementsByTagName("option")[monNum-1].setAttribute("selected","selected");
- getData(location.search.slice(1).split("=")[1]);
- }else {
- timeM.getElementsByTagName("option")[nowMonth-1].setAttribute("selected","selected");
- }
- for(var year=0;year<=5;year++){
- num=nowYear-year;
- if(num==nowTime.getFullYear()){
- str+="<option value='"+num+"' selected>"+num+"</option>";
- }else {
- str+="<option value='"+num+"'>"+num+"</option>";
- }
- }
- timeY.innerHTML=str;
- oTimeBtn.onclick=function () {
- var time=[];
- if(!timeY.value||!timeM.value){
- remindMes('请选择日期');
- return;
- }
- time[0]=timeY.value;
- time[1]=timeM.value;
- if(time[1].length==1){
- time[1]="0"+time[1];
- }
- getData(time[0]+time[1])
- }
- function getData(val) {
- waitDiv.style.display="block";
- Ajax("get",pageUrl+"/Fencheng/vipfc","month="+val,function (data) {
- if(data.status==999) window.location.href="../login.html";
- var data=data.data;
- detailList.innerHTML="";
- var str="<ul>";
- if(data.length){
- for(var i in data){
- str+=liModel.replace("{{name}}",data[i].nickname).replace("{{phone}}",data[i].mobile).replace("{{ZFB}}",data[i].txcard)
- .replace("{{money}}",data[i].total);
- }
- str+="</ul>";
- waitDiv.style.display="none";
- detailList.innerHTML=str;
- }else {
- waitDiv.style.display="none";
- remindMes("无该月数据")
- }
- })
- }
- for(var i=0,len=aFooterLi.length;i<len;i++){
- !function (i) {
- aFooterLi[i].onclick=function () {
- var url=location.href;
- if(url.indexOf("?")!=-1){
- if(pageList[i]==url.slice(url.lastIndexOf("/")+1,url.indexOf("?"))) return;
- }else {
- if(pageList[i]==url.slice(url.lastIndexOf("/")+1)) return;
- }
- if(!i){
- location.href="../../index.html";
- }else {
- location.href="../"+pageList[i];
- }
- }
- }(i)
- }
- function remindMes(val) {
- if(oRemindTime) clearTimeout(oRemindTime);
- remindDiv.innerText=val;
- addCls(remindDiv,'active');
- oRemindTime=setTimeout(function () {
- removeCls(remindDiv,'active');
- oRemindTime=undefined;
- },2000)
- }
- }
- function is_weixin(){
- var ua = navigator.userAgent;
- if(/(MicroMessenger)/i.test(ua)) {
- return true;
- } else {
- return false;
- }
- }
- function toBack() {
- window.history.back();
- }
- </script>
- </body>
- </html>
|