From 66072eb6c69dd28de18f3d57791a1e4e69513c82 Mon Sep 17 00:00:00 2001 From: dabai <dabai@yazhai.co> Date: Wed, 21 Oct 2020 14:56:19 +0800 Subject: [PATCH] 邀请有奖 提现 更新 --- footseen/Nesting/fireflyRmb/canFireFly.html | 135 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------------------------------ footseen/Nesting/fireflyRmb/css/firefly.css | 113 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ footseen/Nesting/fireflyRmb/img/down.png | Bin 0 -> 303 bytes footseen/Nesting/fireflyRmb/img/up.png | Bin 0 -> 305 bytes footseen/Nesting/fireflyRmb/img/yumao3.png | Bin 0 -> 910 bytes footseen/Nesting/fireflyRmb/index.html | 332 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------------------------------------------------------------------------------------------------- footseen/Nesting/fireflyRmb/list/activityIncome.html | 139 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ footseen/Nesting/fireflyRmb/list/css/index.css | 209 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ footseen/Nesting/fireflyRmb/list/guardIncome.html | 139 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ footseen/Nesting/fireflyRmb/list/imIncome.html | 146 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ footseen/Nesting/fireflyRmb/list/inviteIncome.html | 139 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ footseen/Nesting/fireflyRmb/list/js/common.js | 224 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ footseen/Nesting/fireflyRmb/list/js/iosSelect.js | 1710 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ footseen/Nesting/fireflyRmb/list/otherIncome.html | 139 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ footseen/Nesting/fireflyRmb/list/roomIncome.html | 145 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ footseen/Nesting/fireflyRmb/list/videoIncome.html | 159 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ footseen/Nesting/newShare/index.html | 2 +- footseen/Nesting/withdraw/css/index.css | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- footseen/Nesting/withdraw/img/icon.png | Bin 0 -> 910 bytes footseen/Nesting/withdraw/index.html | 492 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------ share.html | 2 +- share2.html | 2 +- 22 files changed, 4069 insertions(+), 219 deletions(-) create mode 100644 footseen/Nesting/fireflyRmb/css/firefly.css create mode 100644 footseen/Nesting/fireflyRmb/img/down.png create mode 100644 footseen/Nesting/fireflyRmb/img/up.png create mode 100644 footseen/Nesting/fireflyRmb/img/yumao3.png create mode 100644 footseen/Nesting/fireflyRmb/list/activityIncome.html create mode 100644 footseen/Nesting/fireflyRmb/list/css/index.css create mode 100644 footseen/Nesting/fireflyRmb/list/guardIncome.html create mode 100644 footseen/Nesting/fireflyRmb/list/imIncome.html create mode 100644 footseen/Nesting/fireflyRmb/list/inviteIncome.html create mode 100644 footseen/Nesting/fireflyRmb/list/js/common.js create mode 100644 footseen/Nesting/fireflyRmb/list/js/iosSelect.js create mode 100644 footseen/Nesting/fireflyRmb/list/otherIncome.html create mode 100644 footseen/Nesting/fireflyRmb/list/roomIncome.html create mode 100644 footseen/Nesting/fireflyRmb/list/videoIncome.html create mode 100644 footseen/Nesting/withdraw/img/icon.png diff --git a/footseen/Nesting/fireflyRmb/canFireFly.html b/footseen/Nesting/fireflyRmb/canFireFly.html index ecbe29c..1639f9f 100644 --- a/footseen/Nesting/fireflyRmb/canFireFly.html +++ b/footseen/Nesting/fireflyRmb/canFireFly.html @@ -11,7 +11,7 @@ <title></title> <link rel="stylesheet" href="css/reset.css"> <link rel="stylesheet" href="layer-v3.1.0/layer.css"> - <link rel="stylesheet" href="css/index.css?v=201911061522"> + <link rel="stylesheet" href="css/index.css?v=202010211438"> <link rel="stylesheet" href="../../css/background.css"> <script type="text/javascript" src="js/fsize.js"></script> <style type="text/css"> @@ -23,24 +23,42 @@ padding-top: 0.333rem; } .canFireFly .header{ - background: url(img/header3.png) no-repeat; - background-size: 100% 100%; - width: 9.066rem; - height: 2.8rem; + background: #F1E8FF; + border-radius: 0.32rem; + -webkit-border-radius: 0.32rem; + -moz-border-radius: 0.32rem; + -ms-border-radius: 0.32rem; + width: 8.8rem; + height: 3.866rem; + position: relative; + margin: 0 auto; padding-top: 0; + } .canFireFly .header .txt{ - text-align: left; - text-indent: 0.853rem; + width: 100%; + text-align: center; font-size: 0.373rem; - color:#FFF; + color:#333; + margin-top: 0; + } + .canFireFly .header .txt span{ + background: url(img/yumao3.png) no-repeat; + background-size: 100% 100%; + width: 0.306rem; + height: 0.373rem; + display: inline-block; + margin-right: 0.08rem; + vertical-align: middle; + margin-top: -.05rem; } .canFireFly .header .fire-num{ - text-align: left; - text-indent: 0.853rem; - font-size: 0.8rem; - font-weight: bold; - margin-top: 0.133rem; + font-size: 1.2rem; + color: #925EEB; + text-align: center; + width: 100%; + font-weight: bold; + margin-top: 0.2rem; } .headerBox{ position: absolute; @@ -59,9 +77,11 @@ } .canFireFly .list .item{ background-color: #FFF; - padding-left: 0.666rem; - padding-right: 1rem; - border-bottom: none; + padding: 0; + margin: 0 auto; + width: 8.8rem; + border-bottom: 1px solid #EBEBEB; + } .canFireFly .list .item .left span{ color:#666; @@ -70,15 +90,22 @@ color:#925EEB; } .canFireFly .list .item .right img.filefly{ - width: 0.533rem; - height: 0.533rem; + width: 0.306rem; + height: 0.373rem; vertical-align: middle; - margin-right: -.1rem; - margin-top: .5rem; + margin-right: 0.066rem; + margin-top: .55rem; + + } + .canFireFly .list .item .right{ + font-size: 0; } .canFireFly .list .item .right .can-jt{ - right: -.75rem; - top: .46rem; + position: relative; + right: 0; + top: 0; + vertical-align: middle; + margin-top: .45rem; } </style> </head> @@ -88,75 +115,53 @@ <div class="header"> <div class="headerBox"> <p class="txt"></p> - <p class="fire-num"><img src="img/yumao1.png"/>0</p> + <p class="fire-num">0</p> </div> - <!--<a href="cashHelp.html"><img class="w-icon" src="img/w-icon2.png" alt=""></a>--> </div> </div> - <!--<div class="type shift-icon-line"></div>--> <ul class="list"> <li class="item"> <div class="left"> - <!--<img class="icon" src="img/can-icon1.png" alt="">--> <span class="txt"></span> </div> <div class="right"> <img class="filefly" src="img/yumao2.png" alt=""> <span class="score line0-num">0</span> - <!-- <span class="rmb bicon">¥</span> - <span class="xtb bicon">NT$</span> - <span class="my bicon">$</span> - <span class="mb bicon">RM</span> --> </div> <div class="clearfix"></div> </li> <li class="item"> <a href="activeRecord.html"> <div class="left"> - <!--<img class="icon" src="img/can-icon4.png" alt="">--> <span class="txt"></span> </div> <div class="right"> <img class="filefly" src="img/yumao2.png" alt=""> <span class="score line1-num">0</span> - <!-- <span class="rmb bicon">¥</span> - <span class="xtb bicon">NT$</span> - <span class="my bicon">$</span> - <span class="mb bicon">RM</span> --> - <img class="can-jt" src="img/right2.png" alt=""> + <img class="can-jt" src="img/right.png" alt=""> </div> <div class="clearfix"></div> </a> </li> <li class="item" style="display: none;"> <div class="left"> - <!--<img class="icon" src="img/can-icon66.png" alt="">--> <span class="txt"></span> </div> <div class="right"> <img class="filefly" src="img/yumao2.png" alt=""> <span class="score line6-num">0</span> - <!-- <span class="rmb bicon">¥</span> - <span class="xtb bicon">NT$</span> - <span class="my bicon">$</span> - <span class="mb bicon">RM</span> --> </div> <div class="clearfix"></div> </li> <li class="item gold-box" style="display: none;"> <a href="glod.html"> <div class="left"> - <!--<img class="icon" src="img/can-icon3.png" alt="">--> <span class="txt"></span> </div> <div class="right"> <img class="filefly" src="img/yumao2.png" alt=""> <span class="score line2-num">0</span> - <!-- <span class="rmb bicon">¥</span> - <span class="xtb bicon">NT$</span> - <span class="my bicon">$</span> - <span class="mb bicon">RM</span> --> - <img class="can-jt" src="img/right2.png" alt=""> + <img class="can-jt" src="img/right.png" alt=""> </div> <div class="clearfix"></div> </a> @@ -164,17 +169,12 @@ <li class="item Agent-box1" style="display: none;"> <a href="agentTips.html"> <div class="left"> - <!--<img class="icon" src="img/can-icon7.png?v=123" alt="">--> <span class="txt"></span> </div> <div class="right"> <img class="filefly" src="img/yumao2.png" alt=""> <span class="score line3-num">0</span> - <!-- <span class="rmb bicon">¥</span> - <span class="xtb bicon">NT$</span> - <span class="my bicon">$</span> - <span class="mb bicon">RM</span> --> - <img class="can-jt" src="img/right2.png" alt=""> + <img class="can-jt" src="img/right.png" alt=""> </div> <div class="clearfix"></div> </a> @@ -182,56 +182,35 @@ <li class="item Agent-box2" style="display: none;"> <a href="shareInvitation.html"> <div class="left"> - <!-- <img class="icon" src="img/can-icon8.png?v=123" alt="">--> <span class="txt"></span> </div> <div class="right"> <img class="filefly" src="img/yumao2.png" alt=""> <span class="score line4-num">0</span> - <!-- <span class="rmb bicon">¥</span> - <span class="xtb bicon">NT$</span> - <span class="my bicon">$</span> - <span class="mb bicon">RM</span> --> - <img class="can-jt" src="img/right2.png" alt=""> + <img class="can-jt" src="img/right.png" alt=""> </div> <div class="clearfix"></div> </a> </li> <li class="item Agent-box3"> <div class="left"> - <!--<img class="icon" src="img/can-icon9.png" alt="">--> <span class="txt"></span> </div> <div class="right"> <img class="filefly" src="img/yumao2.png" alt=""> <span class="score line5-num">0</span> - <!-- <span class="rmb bicon">¥</span> - <span class="xtb bicon">NT$</span> - <span class="my bicon">$</span> - <span class="mb bicon">RM</span> --> </div> <div class="clearfix"></div> </li> </ul> - <!--<div class="get-btn"></div>--> - <!--<p class="notice L-Cn">當前展示可提現螢火均為稅後可提現螢火,計算方式=全部螢火收入*97%(個人所得稅3%)</p>--> - <!--<p class="notice L-En">Current available FIREs showed are available FIREs after tax,Calculataion results =Total Fires *97%(3% tax has deducted)</p>--> - <!--<ul class="pop"> - <li class="pop-type" title=""><span class="btype0"></span><img class="selected" src="img/selected.png" alt=""></li> - <li class="pop-type" title=""><span class="btype1"></span><img class="selected" src="img/selected.png" alt=""></li> - <li class="pop-type" title=""><span class="btype2"></span><img class="selected" src="img/selected.png" alt=""></li> - <li class="pop-type" title=""><span class="btype3"></span><img class="selected" src="img/selected.png" alt=""></li> - <li class="pop-type" title=""><span class="btype4"></span><img class="selected" src="img/selected.png" alt=""></li> - </ul> - <div class="black-bg"></div>--> </div> </body> <script type="text/javascript" src="js/jquery-3.2.1.min.js"></script> <script type="text/javascript" src="layer-v3.1.0/layer/layer.js"></script> -<script src="../../lib/langchange.js?v=201911141144"></script> +<script src="../../lib/langchange.js?v=202010211440"></script> <script type="text/javascript"> $("title").text(langList[langType].canTitle); - $('.header .txt').text(langList[langType].canTitle); + $('.header .txt').html('<span></span>'+langList[langType].canTitle); $('.type.shift-icon-line').html(langList[langType].canCurrency + '<span class="white">'+langList[langType].canFires+'</span><img class="shift-icon" src="img/shift-icon2.png" alt="">'); $('.list .item').eq(0).find('.txt').text(langList[langType].canGift); $('.list .item').eq(1).find('.txt').text(langList[langType].canActivity); @@ -293,7 +272,7 @@ $(".cashfirefly").show(); } - $(".fire-num").html('<img src="img/yumao1.png"/>'+res.havebonds); //设置默认萤火数目 + $(".fire-num").html(res.havebonds); //设置默认萤火数目 $(".line0-num").html(res.normal); $(".line1-num").html(res.activity); diff --git a/footseen/Nesting/fireflyRmb/css/firefly.css b/footseen/Nesting/fireflyRmb/css/firefly.css new file mode 100644 index 0000000..18d735c --- /dev/null +++ b/footseen/Nesting/fireflyRmb/css/firefly.css @@ -0,0 +1,113 @@ +body { + background: #FFF; +} +.main{ + background: #FFF; + width: 10rem; + position: relative; + font-size: 0; + margin: 0 auto; +} +.mHeader{ + padding-top: 0.666rem; + width: 10rem; + margin: 0 auto; +} +.mHeadBg{ + background-color: #FFF1F7; + border-radius: 0.32rem; + -webkit-border-radius: 0.32rem; + -moz-border-radius: 0.32rem; + -ms-border-radius: 0.32rem; + width: 8.8rem; + height: 3.866rem; + position: relative; + margin: 0 auto; +} +.mTopBoxTitle{ + position: absolute; + left: 0; + top: 0.96rem; + width: 100%; + font-size: 0.373rem; + color:#343434; + width: 100%; + text-align: center; + +} +.mTopBoxTitle span{ + background: url(../img/yumao3.png) no-repeat; + background-size: 100% 100%; + width: 0.306rem; + height: 0.373rem; + display: inline-block; + margin-right: 0.08rem; + vertical-align: middle; + margin-top: -.05rem; +} +.mTopBoxNum{ + font-size: 1.2rem; + color: #925EEB; + position: absolute; + left: 0; + top: 1.786rem; + text-align: center; + width: 100%; + font-weight: bold; +} + +.mTips{ + font-size:0.293rem; + color:#666; + width: 8.546rem; + position: absolute; + left: 50%; + bottom: 0.266rem; + transform: translate(-50%,0); + -webkit-transform: translate(-50%,0); + +} +.mList{ + width: 10rem; + font-size: 0; + margin: 0.266rem auto 0; +} +.mDetail{ + position: relative; + width: 8.8rem; + height: 1.466rem; + margin: 0 auto; + font-size: 0; + border-bottom: 1px solid #EBEBEB; +} +.mDetailName{ + width: 4rem; + position: absolute; + left: 0; + top: 0; + height: 1.466rem; + line-height: 1.466rem; + font-size: 0.4rem; + color:#333; +} +.mDetailNum{ + position: absolute; + right:0; + top: 0; + height: 1.466rem; + line-height: 1.466rem; + width: 4.5rem; + color:#925EEB; + text-align: right; + font-size: 0.4rem; +} +.mDetailImg1{ + width: 0.35rem; + vertical-align: middle; + margin-top: -.05rem; +} +.mDetailImg2{ + width: 0.533rem; + height: 0.533rem; + vertical-align: middle; +} diff --git a/footseen/Nesting/fireflyRmb/img/down.png b/footseen/Nesting/fireflyRmb/img/down.png new file mode 100644 index 0000000..a44b81f Binary files /dev/null and b/footseen/Nesting/fireflyRmb/img/down.png differ diff --git a/footseen/Nesting/fireflyRmb/img/up.png b/footseen/Nesting/fireflyRmb/img/up.png new file mode 100644 index 0000000..ef6db7e Binary files /dev/null and b/footseen/Nesting/fireflyRmb/img/up.png differ diff --git a/footseen/Nesting/fireflyRmb/img/yumao3.png b/footseen/Nesting/fireflyRmb/img/yumao3.png new file mode 100644 index 0000000..4227c78 Binary files /dev/null and b/footseen/Nesting/fireflyRmb/img/yumao3.png differ diff --git a/footseen/Nesting/fireflyRmb/index.html b/footseen/Nesting/fireflyRmb/index.html index 3253b0c..57e1639 100644 --- a/footseen/Nesting/fireflyRmb/index.html +++ b/footseen/Nesting/fireflyRmb/index.html @@ -1,122 +1,218 @@ <!DOCTYPE html> <html lang="en"> -<head> - <meta charset="UTF-8"> - <meta charset="utf-8" /> - <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/> - <meta name="apple-mobile-web-app-capable" content="yes"> - <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> - <meta content="telephone=no" name="format-detection"> - <meta name="wap-font-scale" content="no"> - <title></title> - <link rel="stylesheet" href="css/reset.css"> - <link rel="stylesheet" href="css/index.css"> - <script type="text/javascript" src="js/fsize.js"></script> - <style type="text/css"> - body,.addup .list .item{ - background: #FFF; - } - .addup .list .item .left span{ - color:#333; - } - .addup .list .item .right span{ - color:#925EEB; - } - .addup .list .item .right img.filefly{ - margin-top: .48rem; - } - </style> -</head> -<body> - <div class="addup"> - <ul class="list"> - <li class="item"> - <div class="left"> - <img class="icon" src="img/live.png" alt=""> - <span class="txt"></span> - </div> - <div class="right"> - <img class="filefly" src="img/yumao2.png" alt=""> - <span class="score zb-score">0</span> - </div> - <div class="clearfix"></div> - </li> - <li class="item"> - <div class="left"> - <img class="icon" src="img/xin.png" alt=""> - <span class="txt"></span> - </div> - <div class="right"> - <img class="filefly" src="img/yumao2.png" alt=""> - <span class="score db-score">0</span> - </div> - <div class="clearfix"></div> - </li> - <li class="item"> - <div class="left"> - <img class="icon" src="img/lt.png" alt=""> - <span class="txt"></span> - </div> - <div class="right"> - <img class="filefly" src="img/yumao2.png" alt=""> - <span class="score lt-score">0</span> - </div> - <div class="clearfix"></div> - </li> - </ul> - </div> -</body> -<script type="text/javascript" src="js/jquery-3.2.1.min.js"></script> -<script src="../../lib/langchange.js?v=201909121041"></script> -<script type="text/javascript"> - if(langType == 2){ - $('.item').css('direction','rtl') - } - $('title').text(langList[langType].rmbTitle); - $('.list .item').eq(0).find('.txt').text(langList[langType].rmbLive); - $('.list .item').eq(1).find('.txt').text(langList[langType].rmbVchat); - $('.list .item').eq(2).find('.txt').text(langList[langType].rmbIm); - var bbb = location.href; - var data = url_get_params(bbb) - sessionStorage.bbb = data.uid; //u - //sessionStorage.lang=data.lang; //lage - sessionStorage.kkk=data.method; //t - if(data.method==undefined){ - sessionStorage.kkk=data.token; - } - function url_get_params(url_path) { - var url = url_path; - var theRequest = new Object(); - if (url.indexOf("?") != -1) { - var str = url.substr(url.indexOf("?") + 1); - strs = str.split("&"); - for (var i = 0; i < strs.length; i++) { - theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]); - } - } - return theRequest; - } - $.ajax({ - url: $ip + '/user/getaddupfirefly.html', - type: 'POST', - dataType: 'json', - data: { - uid: sessionStorage.bbb, - token: sessionStorage.kkk, - lang: '1', - cid: 'h5_gw', - os: 'h5', - type: 1 - }, - success: function (res) { - console.log(res); - $(".zb-score").text(res.livebonds); - $(".db-score").text(res.videobonds); - $(".lt-score").text(res.chatbonds); - }, - error: function () { - } - }); -</script> + <head> + <meta charset="UTF-8"> + <meta charset="utf-8" /> + <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" /> + <meta name="apple-mobile-web-app-capable" content="yes"> + <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> + <meta content="telephone=no" name="format-detection"> + <meta name="wap-font-scale" content="no"> + <title></title> + <link rel="stylesheet" href="layer-v3.1.0/layer.css"> + <link rel="stylesheet" href="css/reset.css"> + <link rel="stylesheet" href="css/firefly.css"> + <script type="text/javascript" src="js/fsize.js"></script> + + </head> + + <body> + <div class="main"> + <div class="mHeader"> + <div class="mHeadBg"> + <p class="mTopBoxTitle"></p> + <p class="mTopBoxNum ellipsis"></p> + </div> + </div> + </div> + + <div class="mList"> + <div class="mDetail"> + <div class="mDetailName"></div> + <div class="mDetailNum"><img src="img/yumao3.png" class="mDetailImg1" /> + <font>0</font><img class="mDetailImg2" src="img/can-jt.png" /></div> + </div> + <div class="mDetail"> + <div class="mDetailName"></div> + <div class="mDetailNum"><img src="img/yumao3.png" class="mDetailImg1" /> + <font>0</font><img class="mDetailImg2" src="img/can-jt.png" /></div> + </div> + <div class="mDetail"> + <div class="mDetailName"></div> + <div class="mDetailNum"><img src="img/yumao3.png" class="mDetailImg1" /> + <font>0</font><img class="mDetailImg2" src="img/can-jt.png" /></div> + </div> + <div class="mDetail"> + <div class="mDetailName"></div> + <div class="mDetailNum"><img src="img/yumao3.png" class="mDetailImg1" /> + <font>0</font><img class="mDetailImg2" src="img/can-jt.png" /></div> + </div> + <div class="mDetail"> + <div class="mDetailName"></div> + <div class="mDetailNum"><img src="img/yumao3.png" class="mDetailImg1" /> + <font>0</font><img class="mDetailImg2" src="img/can-jt.png" /></div> + </div> + <div class="mDetail"> + <div class="mDetailName"></div> + <div class="mDetailNum"><img src="img/yumao3.png" class="mDetailImg1" /> + <font>0</font><img class="mDetailImg2" src="img/can-jt.png" /></div> + </div> + <div class="mDetail"> + <div class="mDetailName"></div> + <div class="mDetailNum"><img src="img/yumao3.png" class="mDetailImg1" /> + <font>0</font><img class="mDetailImg2" src="img/can-jt.png" /></div> + </div> + </div> + </div> + <p class="mTips"></p> + </body> + <script type="text/javascript" src="js/jquery-3.2.1.min.js"></script> + <script type="text/javascript" src="layer-v3.1.0/layer/layer.js"></script> + <script src="../../lib/langchange.js?v=202010211438"></script> + <script type="text/javascript"> + if(langType == 2){ + langType = 1; + } + var $url = 'https://www.footseen.com/footseen'; + $('title').html(langList[langType].rmbTitle); + $('.mTopBoxTitle').html('<span></span>'+langList[langType].rmbTitle); + $('.mDetail').eq(0).find('.mDetailName').html(langList[langType].income1); + $('.mDetail').eq(1).find('.mDetailName').html(langList[langType].income2); + $('.mDetail').eq(2).find('.mDetailName').html(langList[langType].income3); + $('.mDetail').eq(3).find('.mDetailName').html(langList[langType].income4); + $('.mDetail').eq(5).find('.mDetailName').html(langList[langType].income5); + $('.mDetail').eq(6).find('.mDetailName').html(langList[langType].income6); + $('.mDetail').eq(4).find('.mDetailName').html(langList[langType].income26); + + $('.mTips').html(langList[langType].income23); + + $('.mDetail').on('click', function() { + goDetail($(this).index()); + }) + var bbb = location.href; + var data = url_get_params(bbb); + + $.ajax({ + url: $ip + '/user/getUserBondsGrandTotal.html', + type: 'POST', + dataType: "JSON", + data: { + uid: data.uid, + token: data.token, + lang: data.lang, + cid: 'h5_gw', + os: 'h5', + }, + success: function(res) { + if(res.code == 1) { + + $('.mTopBoxNum').eq(0).html(res.bonds); + $('.mDetail').eq(0).find('.mDetailNum font').html(res.live); + $('.mDetail').eq(1).find('.mDetailNum font').html(res.activity); + $('.mDetail').eq(2).find('.mDetailNum font').html(res.invite); + $('.mDetail').eq(3).find('.mDetailNum font').html(res.video); + $('.mDetail').eq(5).find('.mDetailNum font').html(res.guard); + $('.mDetail').eq(6).find('.mDetailNum font').html(res.other); + $('.mDetail').eq(4).find('.mDetailNum font').html(res.im); + } else { + layer.msg(res.msg); + } + } + }) + + function url_get_params(url_path) { + var url = url_path; + var theRequest = new Object(); + if(url.indexOf("?") != -1) { + var str = url.substr(url.indexOf("?") + 1); + strs = str.split("&"); + for(var i = 0; i < strs.length; i++) { + theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]); + } + } + return theRequest; + } + + function goDetail(select) { + var obj = { + "cid": 15, + "reqCode": new Date().getTime(), + "data": { + "msg": '跳转新页面', + "urls": [{ + "url": $url + '/Nesting/fireflyRmb/list/roomIncome.html', + "title": langList[langType].income1, + "rightBtnImageURL": '', + "rightBtnClickURL": '' + }, + { + "url": $url + '/Nesting/fireflyRmb/list/activityIncome.html', + "title": langList[langType].income2, + "rightBtnImageURL": '', + "rightBtnClickURL": '' + }, + { + "url": $url + '/Nesting/fireflyRmb/list/inviteIncome.html', + "title": langList[langType].income3, + "rightBtnImageURL": '', + "rightBtnClickURL": '' + }, + { + "url": $url + '/Nesting/fireflyRmb/list/videoIncome.html', + "title": langList[langType].income4, + "rightBtnImageURL": '', + "rightBtnClickURL": '' + }, + { + "url": $url + '/Nesting/fireflyRmb/list/imIncome.html', + "title": langList[langType].income26, + "rightBtnImageURL": '', + "rightBtnClickURL": '' + }, + { + "url": $url + '/Nesting/fireflyRmb/list/guardIncome.html', + "title": langList[langType].income5, + "rightBtnImageURL": '', + "rightBtnClickURL": '' + }, + { + "url": $url + '/Nesting/fireflyRmb/list/otherIncome.html', + "title": langList[langType].income6, + "rightBtnImageURL": '', + "rightBtnClickURL": '' + }, + ], + "select": select, + "titleColor": "#858585", + "titleSelectedColor": "#E53985", + "titleBackground": '#FFFFFF', + } + } + var obj2 = JSON.stringify(obj); + appCollaboration(obj2); + } + + function appCollaboration(msg) { + var sUserAgent = navigator.userAgent.toLowerCase(); + var bIsIpad = sUserAgent.match(/ipad/i) == "ipad"; + var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os"; + var bIsMidp = sUserAgent.match(/midp/i) == "midp"; + var bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4"; + var bIsUc = sUserAgent.match(/ucweb/i) == "ucweb"; + var bIsAndroid = sUserAgent.match(/android/i) == "android"; + var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce"; + var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile"; + if(!(bIsIpad || bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM)) {} else if(bIsAndroid) { + window.yazhai.appCollaboration(msg); + } else if(bIsIphoneOs || bIsIpad) { + window.webkit.messageHandlers.appCollaboration.postMessage(msg); + } + } + //客户端回调结果 + function appCallback(msg) { + console.log(msg); + } + </script> + </html> \ No newline at end of file diff --git a/footseen/Nesting/fireflyRmb/list/activityIncome.html b/footseen/Nesting/fireflyRmb/list/activityIncome.html new file mode 100644 index 0000000..afcc68f --- /dev/null +++ b/footseen/Nesting/fireflyRmb/list/activityIncome.html @@ -0,0 +1,139 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <meta charset="utf-8" /> + <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/> + <meta name="apple-mobile-web-app-capable" content="yes"> + <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> + <meta content="telephone=no" name="format-detection"> + <meta name="wap-font-scale" content="no"> + <title>活動收益</title> + <link rel="stylesheet" href="../layer-v3.1.0/layer.css"> + <link rel="stylesheet" href="../../../css/iosSelect.css?v=202010211440"> + <link rel="stylesheet" href="../css/reset.css"> + <link rel="stylesheet" href="css/index.css?v=202010211440"> + <script type="text/javascript" src="../js/fsize.js"></script> + <style type="text/css"> + .mDetailInfo{ + left: .44rem; + } + </style> + </head> + <body> + <div class="main"> + <div class="mHead"> + <span class="mHeadTitle ellipsis"></span> + <span class="mHeadChange" data-type="2"><font></font><font></font></span> + </div> + <div class="mChange hide"> + <p data-type="1"></p> + <p data-type="2"></p> + <p data-type="3"></p> + <p data-type="4"></p> + <p data-type="5"></p> + <p data-type=""></p> + </div> + <div class="mList"></div> + </div> + </body> + <script type="text/javascript" src="../js/jquery-3.2.1.min.js"></script> + <script type="text/javascript" src="../layer-v3.1.0/layer/layer.js"></script> + <script src="../../../lib/langchange.js?v=202010211440"></script> + <script type="text/javascript" src="js/common.js?v=202010211440"></script> + <script src="js/iosSelect.js"></script> + <script type="text/javascript"> + $('title').html(langList[langType].income2); + $('.mHeadTitle').html(langList[langType].income2+':'+'<font></font>'); + $(window).bind("scroll", function () { + if($(document).scrollTop() + $(window).height() > $(document).height() - 1 && next){ + if(more == true){ + if($('.mHeadChange').attr('data-type')==''){ + getData(mPage,$('.mHeadChange font:eq(0)').html()); + } else { + getData(mPage); + } + } + } + }) + + getData(mPage); + getUserIncomeTotal(2); + function getUserIncomeTotal(datatype,time){ + $.ajax({ + url:$ip+'/user/getUserIncomeTotal.html', + data:{ + page:1, + pageSize:50, + type:4, + date:time, + dataType:datatype, + }, + success:function(res){ + if(res.code == 1){ + $('.mHeadTitle font').html(res.total); + } else { + layer.msg(res.msg); + } + } + }) + } + function getData(page,time,type){ + $.ajax({ + url:$ip+'/user/getUserIncome.html', + data:{ + page:page, + pageSize:50, + type:4, + date:time, + dataType:$('.mHeadChange').attr('data-type'), + }, + success:function(res){ + if(res.code == 1){ + if(type){ + $('.mList').empty(); + more = true; + next = false; + mPage = 1; + } + var log = res.data; + var str = ''; + if(log.length>0){ + for(var i=0;i<log.length;i++){ + str += '<div class="mDetail">'; + str += ' <div class="mDetailInfo">'; + str += ' <p class="ellipsis">'+log[i].remark+'</p>'; + str += ' <p class="ellipsis">'+getTime(log[i].logtime.time)+'</p>'; + str += ' </div>'; + str += ' <div class="mDetailInfo2">'; + if(log[i].value>=0){ + str += ' <p class="ellipsis"><img src="../img/yumao3.png" />+'+log[i].value+'</p>'; + } else { + str += ' <p class="ellipsis"><img src="../img/yumao3.png" />'+log[i].value+'</p>'; + } + str += ' </div>'; + str += '</div>'; + } + } else { + if(mPage == 1){ + str += '<div class="notData">'; + str += '<img src="../img/no-record.png"/>'; + str += '<p>'+langList[langType].income14+'</p>'; + str += '</div>'; + } + } + $('.mList').append(str); + mPage++; + next = true; + if(res.data[49]==undefined){ + more = false; + } + } else { + layer.msg(res.msg); + } + } + }) + } + + </script> +</html> diff --git a/footseen/Nesting/fireflyRmb/list/css/index.css b/footseen/Nesting/fireflyRmb/list/css/index.css new file mode 100644 index 0000000..64a5036 --- /dev/null +++ b/footseen/Nesting/fireflyRmb/list/css/index.css @@ -0,0 +1,209 @@ +body{ + background: #FFF; +} +.hide{ + display: none; +} +.ellipsis{ + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} +.main{ + background: #FFF; + margin: 0 auto; + width: 10rem; + font-size: 0; + position: relative; + padding-top: .346rem; +} +.mHead{ + background: #FFF1F7; + width: 9.36rem; + height: 2.053rem; + position: relative; + border-radius: 0.213rem; + -webkit-border-radius: 0.213rem; + -moz-border-radius: 0.213rem; + margin: 0 auto 0; +} +.mHeadTitle{ + position: absolute; + left: 0.453rem; + top: 0; + height: 2.053rem; + line-height: 2.053rem; + font-size: 0.4rem; + color:#333; + width: 5.5rem; +} +.mHeadTitle font{ + color:#925EEB; +} +.mHeadChange{ + position: absolute; + right: 0.48rem; + top: 50%; + transform: translate(0,-50%); + -webkit-transform: translate(0,-50%); + font-size: 0.4rem; + color:#333; +} +.mHeadChange img{ + width: 0.253rem; + height: 0.133rem; + margin-left: 0.266rem; + vertical-align: middle; + margin-top: -.05rem; +} +.mHeadChange font:nth-child(2){ + background: url(../../img/down.png) no-repeat; + background-size: 100% 100%; + width: .253rem; + height: .133rem; + position: relative; + display: inline-block; + margin-left: 0.266rem; + vertical-align: middle; + margin-top: -.05rem; +} +.mHeadChange.check font:nth-child(2){ + background: url(../../img/up.png) no-repeat; + background-size: 100% 100%; +} +.mChange{ + position: absolute; + right: 0.306rem; + top: 2rem; + background: #FFF; + border-radius: 0.213rem; + -webkit-border-radius: 0.213rem; + -moz-border-radius: 0.213rem; + z-index: 10; + width: 2.853rem; + padding: 0.266rem 0; + font-size: 0; + +box-shadow: 0px 0.146rem 0.173rem 0px rgba(5, 5, 5, 0.03); +} +.mChange p{ + width:100%; + text-align: center; + font-size: 0.426rem; + color:#333; + line-height: 1.497rem; + height: 1.497rem; +} +.mList{ + position: relative; + width: 10rem; + margin: 0 auto; + font-size: 0; +} +.mDetail{ + width: 9.36rem; + height: 2.4rem; + background: #F7F7F7; + border-radius: 0.213rem; + -webkit-border-radius: 0.213rem; + -moz-border-radius: 0.213rem; + margin: 0.266rem auto 0; + position: relative; +} +.mDetailImg{ + position: absolute; + left: 0.44rem; + top: 50%; + transform: translate(0,-50%); + -webkit-transform: translate(0,-50%); + width: 1.066rem; + height: 1.066rem; + border-radius: 50%; + -webkit-border-radius: 50%; + -moz-border-radius: 50%; + object-fit: cover; +} +.mDetailInfo{ + position: absolute; + left: 1.813rem; + top: 50%; + transform: translate(0,-50%); + -webkit-transform: translate(0,-50%); + width: 4rem; + font-size: 0; +} +.mDetailInfo p{ + font-size: 0.346rem; + color:#333; + margin-top: 0.126rem; +} +.mDetailInfo p:nth-child(1){ + margin-top: 0; +} +.mDetailInfo2{ + position: absolute; + right: 0.48rem; + top: 50%; + transform: translate(0,-50%); + -webkit-transform: translate(0,-50%); + width: 2.7rem; + text-align: right; +} +.mDetailInfo2 p{ + font-size: 0.346rem; + color:#925EEB; + margin-top: 0.126rem; +} +.mDetailInfo2 p:nth-child(1){ + margin-top: 0; +} +.mDetailInfo2 p img{ + width: 0.306rem; + height: 0.373rem; + vertical-align: middle; + + margin-right: 0.106rem; +} +.mDetailInfo2 p.visibility{ + visibility: hidden; +} +.notData{ + width: 100%; + text-align: center; + padding-top: 2rem; +} +.notData img{ + width: 2.666rem; +} +.notData p{ + width: 100%; + font-size: .45rem; + margin-top: .5rem; + color:#333; +} +.ios-select-widget-box #iosSelectTitle{ + display: inherit; + position: relative; + z-index: 1; +} +.ios-select-widget-box header.iosselect-header a{ + position: relative; + z-index: 10; + color:#007AFF; +} +.ios-select-widget-box.olay > div, .ios-select-widget-box header.iosselect-header, .ios-select-widget-box ul li{ + background-color: #FFF; +} +.ios-select-widget-box header.iosselect-header a.sure, .ios-select-widget-box header.iosselect-header a.close{ + color: #E53985; +} +.ios-select-widget-box #iosSelectTitle{ + color: #999; +} +.ios-select-widget-box ul li{ + color: #C4C4C4; +} +.ios-select-widget-box ul li.at{ + color: #333; + font-size: 20px; +} diff --git a/footseen/Nesting/fireflyRmb/list/guardIncome.html b/footseen/Nesting/fireflyRmb/list/guardIncome.html new file mode 100644 index 0000000..dab57dd --- /dev/null +++ b/footseen/Nesting/fireflyRmb/list/guardIncome.html @@ -0,0 +1,139 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <meta charset="utf-8" /> + <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/> + <meta name="apple-mobile-web-app-capable" content="yes"> + <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> + <meta content="telephone=no" name="format-detection"> + <meta name="wap-font-scale" content="no"> + <title></title> + <link rel="stylesheet" href="../layer-v3.1.0/layer.css"> + <link rel="stylesheet" href="../../../css/iosSelect.css?v=202010211440"> + <link rel="stylesheet" href="../css/reset.css"> + <link rel="stylesheet" href="css/index.css?v=202010211440"> + <script type="text/javascript" src="../js/fsize.js"></script> + + </head> + <body> + <div class="main"> + <div class="mHead"> + <span class="mHeadTitle ellipsis"></span> + <span class="mHeadChange" data-type="2"><font></font><font></font></span> + </div> + <div class="mChange hide"> + <p data-type="1"></p> + <p data-type="2"></p> + <p data-type="3"></p> + <p data-type="4"></p> + <p data-type="5"></p> + <p data-type=""></p> + </div> + <div class="mList"></div> + </div> + </body> + <script type="text/javascript" src="../js/jquery-3.2.1.min.js"></script> + <script type="text/javascript" src="../layer-v3.1.0/layer/layer.js"></script> + <script src="../../../lib/langchange.js?v=202010211440"></script> + <script type="text/javascript" src="js/common.js?v=202010211440"></script> + <script src="js/iosSelect.js"></script> + <script type="text/javascript"> + $('title').html(langList[langType].income5); + $('.mHeadTitle').html(langList[langType].income5+':'+'<font></font>'); + $(window).bind("scroll", function () { + if($(document).scrollTop() + $(window).height() > $(document).height() - 1 && next){ + if(more == true){ + if($('.mHeadChange').attr('data-type')==''){ + getData(mPage,$('.mHeadChange font:eq(0)').html()); + } else { + getData(mPage); + } + } + } + }) + + getData(mPage); + getUserIncomeTotal(2); + function getUserIncomeTotal(datatype,time){ + $.ajax({ + url:$ip+'/user/getUserIncomeTotal.html', + data:{ + page:1, + pageSize:50, + type:5, + date:time, + dataType:datatype, + }, + success:function(res){ + if(res.code == 1){ + $('.mHeadTitle font').html(res.total); + } else { + layer.msg(res.msg); + } + } + }) + } + function getData(page,time,type){ + $.ajax({ + url:$ip+'/user/getUserIncome.html', + data:{ + page:page, + pageSize:50, + type:5, + date:time, + dataType:$('.mHeadChange').attr('data-type'), + }, + success:function(res){ + if(res.code == 1){ + if(type){ + $('.mList').empty(); + more = true; + next = false; + mPage = 1; + } + var log = res.data; + var str = ''; + if(log.length>0){ + for(var i=0;i<log.length;i++){ + str += '<div class="mDetail">'; + if(log[i].avatar == '/user/boy.png' || log[i].avatar == 'user/giftl.png'){ + str += ' <img class="mDetailImg" src="https://app.ixiulive.com/static/images/head2.png?x-oss-process=image/resize,w_80" />'; + } else { + str += ' <img class="mDetailImg" src="'+cdn+log[i].avatar+'?x-oss-process=image/resize,w_80" />'; + } + str += ' <div class="mDetailInfo">'; + str += ' <p class="ellipsis">'+log[i].remark+'</p>'; + str += ' <p class="ellipsis">'+getTime(log[i].logtime.time)+'</p>'; + str += ' </div>'; + str += ' <div class="mDetailInfo2">'; + if(log[i].value>=0){ + str += ' <p class="ellipsis"><img src="../img/yumao3.png" />+'+log[i].value+'</p>'; + } else { + str += ' <p class="ellipsis"><img src="../img/yumao3.png" />'+log[i].value+'</p>'; + } + str += ' </div>'; + str += '</div>'; + } + } else { + if(mPage == 1){ + str += '<div class="notData">'; + str += '<img src="../img/no-record.png"/>'; + str += '<p>'+langList[langType].income14+'</p>'; + str += '</div>'; + } + } + $('.mList').append(str); + mPage++; + next = true; + if(res.data[49]==undefined){ + more = false; + } + } else { + layer.msg(res.msg); + } + } + }) + } + </script> +</html> diff --git a/footseen/Nesting/fireflyRmb/list/imIncome.html b/footseen/Nesting/fireflyRmb/list/imIncome.html new file mode 100644 index 0000000..e1884f7 --- /dev/null +++ b/footseen/Nesting/fireflyRmb/list/imIncome.html @@ -0,0 +1,146 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <meta charset="utf-8" /> + <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/> + <meta name="apple-mobile-web-app-capable" content="yes"> + <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> + <meta content="telephone=no" name="format-detection"> + <meta name="wap-font-scale" content="no"> + <title></title> + <link rel="stylesheet" href="../layer-v3.1.0/layer.css"> + <link rel="stylesheet" href="../../../css/iosSelect.css?v=202010211440"> + <link rel="stylesheet" href="../css/reset.css"> + <link rel="stylesheet" href="css/index.css?v=202010211440"> + <script type="text/javascript" src="../js/fsize.js"></script> + + </head> + <body> + <div class="main"> + <div class="mHead"> + <span class="mHeadTitle ellipsis"></span> + <span class="mHeadChange" data-type="2"><font></font><font></font></span> + </div> + <div class="mChange hide"> + <p data-type="1"></p> + <p data-type="2"></p> + <p data-type="3"></p> + <p data-type="4"></p> + <p data-type="5"></p> + <p data-type=""></p> + </div> + <div class="mList"></div> + </div> + </body> + <script type="text/javascript" src="../js/jquery-3.2.1.min.js"></script> + <script type="text/javascript" src="../layer-v3.1.0/layer/layer.js"></script> + <script src="../../../lib/langchange.js?v=202010211440"></script> + <script type="text/javascript" src="js/common.js?v=202010211440"></script> + <script src="js/iosSelect.js"></script> + <script type="text/javascript"> + $('title').html(langList[langType].income26); + $('.mHeadTitle').html(langList[langType].income26+':'+'<font></font>'); + $(window).bind("scroll", function () { + if($(document).scrollTop() + $(window).height() > $(document).height() - 1 && next){ + if(more == true){ + if($('.mHeadChange').attr('data-type')==''){ + getData(mPage,$('.mHeadChange font:eq(0)').html()); + } else { + getData(mPage); + } + } + } + }) + + getData(mPage); + getUserIncomeTotal(2); + function getUserIncomeTotal(datatype,time){ + $.ajax({ + url:$ip+'/user/getUserIncomeTotal.html', + data:{ + page:1, + pageSize:50, + type:7, + date:time, + dataType:datatype, + }, + success:function(res){ + if(res.code == 1){ + $('.mHeadTitle font').html(res.total); + } else { + layer.msg(res.msg); + } + } + }) + } + function getData(page,time,type){ + $.ajax({ + url:$ip+'/user/getUserIncome.html', + data:{ + page:page, + pageSize:50, + type:7, + date:time, + dataType:$('.mHeadChange').attr('data-type'), + }, + success:function(res){ + if(res.code == 1){ + if(type){ + $('.mList').empty(); + more = true; + next = false; + mPage = 1; + } + var log = res.data; + var str = ''; + if(log.length>0){ + for(var i=0;i<log.length;i++){ + str += '<div class="mDetail">'; + if(log[i].avatar == '/user/boy.png' || log[i].avatar == 'user/giftl.png'){ + str += ' <img class="mDetailImg" src="https://app.ixiulive.com/static/images/head2.png?x-oss-process=image/resize,w_80" />'; + } else { + str += ' <img class="mDetailImg" src="'+cdn+log[i].avatar+'?x-oss-process=image/resize,w_80" />'; + } + str += ' <div class="mDetailInfo">'; + str += ' <p class="ellipsis">'+log[i].nickname+'</p>'; + if(log[i].number!=undefined){ + str += ' <p class="ellipsis">'+log[i].remark+'X'+log[i].number+'</p>'; + } else { + str += ' <p class="ellipsis">'+log[i].remark+'</p>'; + } + str += ' <p class="ellipsis">'+getTime(log[i].logtime.time)+'</p>'; + str += ' </div>'; + str += ' <div class="mDetailInfo2">'; + if(log[i].value>=0){ + str += ' <p class="ellipsis"><img src="../img/yumao3.png" />+'+log[i].value+'</p>'; + } else { + + str += ' <p class="ellipsis"><img src="../img/yumao3.png" />'+log[i].value+'</p>'; + } + str += ' </div>'; + str += '</div>'; + } + } else { + if(mPage == 1){ + str += '<div class="notData">'; + str += '<img src="../img/no-record.png"/>'; + str += '<p>'+langList[langType].income14+'</p>'; + str += '</div>'; + } + } + $('.mList').append(str); + mPage++; + next = true; + if(res.data[49]==undefined){ + more = false; + } + } else { + layer.msg(res.msg); + } + } + }) + } + + </script> +</html> diff --git a/footseen/Nesting/fireflyRmb/list/inviteIncome.html b/footseen/Nesting/fireflyRmb/list/inviteIncome.html new file mode 100644 index 0000000..882665f --- /dev/null +++ b/footseen/Nesting/fireflyRmb/list/inviteIncome.html @@ -0,0 +1,139 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <meta charset="utf-8" /> + <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/> + <meta name="apple-mobile-web-app-capable" content="yes"> + <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> + <meta content="telephone=no" name="format-detection"> + <meta name="wap-font-scale" content="no"> + <title></title> + <link rel="stylesheet" href="../layer-v3.1.0/layer.css"> + <link rel="stylesheet" href="../../../css/iosSelect.css?v=202010211440"> + <link rel="stylesheet" href="../css/reset.css"> + <link rel="stylesheet" href="css/index.css?v=202010211440"> + <script type="text/javascript" src="../js/fsize.js"></script> + + </head> + <body> + <div class="main"> + <div class="mHead"> + <span class="mHeadTitle ellipsis"></span> + <span class="mHeadChange" data-type="2"><font></font><font></font></span> + </div> + <div class="mChange hide"> + <p data-type="1"></p> + <p data-type="2"></p> + <p data-type="3"></p> + <p data-type="4"></p> + <p data-type="5"></p> + <p data-type=""></p> + </div> + <div class="mList"></div> + </div> + </body> + <script type="text/javascript" src="../js/jquery-3.2.1.min.js"></script> + <script type="text/javascript" src="../layer-v3.1.0/layer/layer.js"></script> + <script src="../../../lib/langchange.js?v=202010211440"></script> + <script type="text/javascript" src="js/common.js?v=202010211440"></script> + <script src="js/iosSelect.js"></script> + <script type="text/javascript"> + $('title').html(langList[langType].income3); + $('.mHeadTitle').html(langList[langType].income3+':'+'<font></font>'); + $(window).bind("scroll", function () { + if($(document).scrollTop() + $(window).height() > $(document).height() - 1 && next){ + if(more == true){ + if($('.mHeadChange').attr('data-type')==''){ + getData(mPage,$('.mHeadChange font:eq(0)').html()); + } else { + getData(mPage); + } + } + } + }) + + getData(mPage); + getUserIncomeTotal(2); + function getUserIncomeTotal(datatype,time){ + $.ajax({ + url:$ip+'/user/getUserIncomeTotal.html', + data:{ + page:1, + pageSize:50, + type:3, + date:time, + dataType:datatype, + }, + success:function(res){ + if(res.code == 1){ + $('.mHeadTitle font').html(res.total); + } else { + layer.msg(res.msg); + } + } + }) + } + function getData(page,time,type){ + $.ajax({ + url:$ip+'/user/getUserIncome.html', + data:{ + page:page, + pageSize:50, + type:3, + date:time, + dataType:$('.mHeadChange').attr('data-type'), + }, + success:function(res){ + if(res.code == 1){ + if(type){ + $('.mList').empty(); + more = true; + next = false; + mPage = 1; + } + var log = res.data; + var str = ''; + if(log.length>0){ + for(var i=0;i<log.length;i++){ + str += '<div class="mDetail">'; + if(log[i].avatar == '/user/boy.png' || log[i].avatar == 'user/giftl.png'){ + str += ' <img class="mDetailImg" src="https://app.ixiulive.com/static/images/head2.png?x-oss-process=image/resize,w_80" />'; + } else { + str += ' <img class="mDetailImg" src="'+cdn+log[i].avatar+'?x-oss-process=image/resize,w_80" />'; + } + str += ' <div class="mDetailInfo">'; + str += ' <p class="ellipsis">'+log[i].remark+'</p>'; + str += ' <p class="ellipsis">'+getTime(log[i].logtime.time)+'</p>'; + str += ' </div>'; + str += ' <div class="mDetailInfo2">'; + if(log[i].value>=0){ + str += ' <p class="ellipsis"><img src="../img/yumao3.png" />+'+log[i].value+'</p>'; + } else { + str += ' <p class="ellipsis"><img src="../img/yumao3.png" />'+log[i].value+'</p>'; + } + str += ' </div>'; + str += '</div>'; + } + } else { + if(mPage == 1){ + str += '<div class="notData">'; + str += '<img src="../img/no-record.png"/>'; + str += '<p>'+langList[langType].income14+'</p>'; + str += '</div>'; + } + } + $('.mList').append(str); + mPage++; + next = true; + if(res.data[49]==undefined){ + more = false; + } + } else { + layer.msg(res.msg); + } + } + }) + } + </script> +</html> diff --git a/footseen/Nesting/fireflyRmb/list/js/common.js b/footseen/Nesting/fireflyRmb/list/js/common.js new file mode 100644 index 0000000..83f25b8 --- /dev/null +++ b/footseen/Nesting/fireflyRmb/list/js/common.js @@ -0,0 +1,224 @@ +var monthList = ['','January','February','March','April','May','June','July','August','September','October','November','December'] + +$('.mHeadChange').on('click',function(e){ + if($(this).hasClass('check')){ + $(this).removeClass('check'); + $('.mChange').addClass('hide'); + } else { + $(this).addClass('check'); + $('.mChange').removeClass('hide'); + } + e.stopPropagation(); +}) + +$('.mChange p').on('click',function(){ + if($(this).index()+1 != $('.mChange p').length){ + $('.mHeadChange font:eq(0)').html($(this).html()); + $('.mHeadChange').attr('data-type',$(this).attr('data-type')); + more = true; + next = false; + mPage = 1; + getData(mPage,'',true); + getUserIncomeTotal($(this).attr('data-type')); + } + $('.mHeadChange').removeClass('check'); + $('.mChange').addClass('hide'); +}) + +$(document).on('click',function(e){ + $('.mHeadChange').removeClass('check'); + $('.mChange').addClass('hide'); + e.stopPropagation(); +}) + +if(sessionStorage.lang == 7){ + sessionStorage.lang = 1; +} +if(langType == 2){ + langType = 1; +} +$('.mHeadChange font').eq(0).html(langList[langType].income8); +$('.mChange p').eq(0).html(langList[langType].income7); +$('.mChange p').eq(1).html(langList[langType].income8); +$('.mChange p').eq(2).html(langList[langType].income9); +$('.mChange p').eq(3).html(langList[langType].income10); +$('.mChange p').eq(4).html(langList[langType].income11); +$('.mChange p').eq(5).html(langList[langType].income12); +$.ajaxSetup({ + global: false, + type: 'post', + dataType: "JSON", + data: { + os: 'WEB', + cid: 'web_gw', + lang: sessionStorage.lang, + uid: getRequest().uid, + token: getRequest().token + } + }) + + var more = true; + var next = false; + var mPage = 1; + var selectDateDom = $('.mChange p:last-child'); + var showDateDom = $('.mChange p:last-child'); + // 初始化时间 + var timezone = 8; + var offset_GMT = new Date().getTimezoneOffset(); + var nowDate = new Date().getTime(); + var now = new Date(nowDate + offset_GMT * 60 * 1000 + timezone * 60 * 60 * 1000); + + var nowYear = now.getFullYear(); + var nowMonth = now.getMonth()+1; + var nowDate = now.getDate(); + showDateDom.attr('data-year', add0(nowYear)); + showDateDom.attr('data-month', add0(nowMonth)); + showDateDom.attr('data-date', add0(nowDate)); + // 数据初始化 + function formatYear (nowYear) { + var arr = []; + for(var i = nowYear; i >= 2019; i--){ + if(langType == 0){ + arr.push({ + id: i + '', + value: i + '年' + }); + } else { + arr.push({ + id: i + '', + value: i + }); + } + } + return arr.reverse(); + } + + function formatMonth (nowMonth) { + var arr = []; + for (var i = 1; i <= nowMonth; i++) { + if(langType == 0){ + arr.push({ + id: add0(i) + '', + value: add0(i) + '月' + }); + } else { + arr.push({ + id: add0(i) + '', + value: monthList[i] + }); + } + } + return arr; + } + function formatDate (count) { + var arr = []; + for (var i = 1; i <= count; i++) { + if(langType==0){ + arr.push({ + id: add0(i) + '', + value: add0(i) + '日' + }); + } else { + arr.push({ + id: add0(i) + '', + value: add0(i) + }); + } + } + return arr; + } + var yearData = function(callback) { + callback(formatYear(nowYear)) + } + var monthData = function (year, callback) { + if(year == formatYear(nowYear)[formatYear(nowYear).length-1].id){ + callback(formatMonth(nowMonth)); + } else { + callback(formatMonth(12)); + } + }; + var dateData = function (year, month, callback) { + if (/^(01|03|05|07|08|10|12)$/.test(month)) { + if(month == nowMonth && year == formatYear(nowYear)[formatYear(nowYear).length-1].id){ + callback(formatDate(nowDate)); + } else { + callback(formatDate(31)); + } + } + else if (/^(04|06|09|11)$/.test(month)) { + if(month == nowMonth && year == formatYear(nowYear)[formatYear(nowYear).length-1].id){ + callback(formatDate(nowDate)); + } else { + callback(formatDate(30)); + } + } + else if (/^02$/.test(month)) { + if (year % 4 === 0 && year % 100 !==0 || year % 400 === 0) { + if(month == nowMonth && year == formatYear(nowYear)[formatYear(nowYear).length-1].id){ + callback(formatDate(nowDate)); + } else { + callback(formatDate(29)); + } + } + else { + if(month == nowMonth && year == formatYear(nowYear)[formatYear(nowYear).length-1].id){ + callback(formatDate(nowDate)); + } else { + callback(formatDate(28)); + } + } + } + else { + throw new Error('month is illegal'); + } + }; + selectDateDom.bind('click', function () { + var oneLevelId = showDateDom.attr('data-year'); + var twoLevelId = showDateDom.attr('data-month'); + var threeLevelId = showDateDom.attr('data-date'); + console.log(monthData); + var iosSelect = new IosSelect(3, + [yearData, monthData, dateData], + { + title: langList[langType].income13, + itemHeight: 35, + oneLevelId: oneLevelId, + twoLevelId: twoLevelId, + threeLevelId: threeLevelId, + callback: function (selectOneObj, selectTwoObj, selectThreeObj) { + showDateDom.attr('data-year', add0(selectOneObj.id)); + showDateDom.attr('data-month', add0(selectTwoObj.id)); + showDateDom.attr('data-date', add0(selectThreeObj.id)); + var str = selectOneObj.id+'-'+selectTwoObj.id + '-'+selectThreeObj.id; + $('.mHeadChange font:eq(0)').html(str); + $('.mHeadChange').attr('data-type',''); + more = true; + next = false; + mPage = 1; + getData(mPage,str,true); + getUserIncomeTotal(mPage,str) + } + }); + }); + + +function add0(data){ + + return data>=10?data:'0'+data; + } + +function getTime(time){ + var timezone = 8; + var offset_GMT = new Date(time).getTimezoneOffset(); + var nowDate = new Date(time).getTime(); + var data = new Date(nowDate + offset_GMT * 60 * 1000 + timezone * 60 * 60 * 1000); + + var year = data.getFullYear(); + var month = data.getMonth()+1; + var day = data.getDate(); + var hour = data.getHours(); + var minute = data.getMinutes(); + var sec = data.getSeconds(); + + return add0(year)+'.'+add0(month)+'.'+add0(day)+' '+add0(hour)+':'+add0(minute)+':'+add0(sec); + } \ No newline at end of file diff --git a/footseen/Nesting/fireflyRmb/list/js/iosSelect.js b/footseen/Nesting/fireflyRmb/list/js/iosSelect.js new file mode 100644 index 0000000..0176dfd --- /dev/null +++ b/footseen/Nesting/fireflyRmb/list/js/iosSelect.js @@ -0,0 +1,1710 @@ +/** + * IosSelect + * @param {number} level 选择的层级 1 2 3 4 5 6 最多支持6层 + * @param {...Array} data [oneLevelData[, twoLevelData[, threeLevelData[, fourLevelData[, fiveLevelData[, sixLevelData]]]]]] 可以用数组,也可以用方法 + * @param {Object} options + * @param {string=} options.container 组件插入到该元素下 可选 + * @param {Function} options.callback 选择完毕后的回调函数 + * @param {Function} options.fallback 选择取消后的回调函数 + * @param {string=} options.title 选择框title + * @param {number=} options.itemHeight 每一项的高度,默认 35 + * @param {number=} options.itemShowCount 组件展示的项数,默认 7,可选3,5,7,9,不过不是3,5,7,9则展示7项 + * @param {number=} options.headerHeight 组件标题栏高度 默认 44 + * @param {css=} options.cssUnit px或者rem 默认是px + * @param {string=} options.addClassName 组件额外类名 用于自定义样式 + * @param {...Array=} options.relation 数组 [oneTwoRelation, twoThreeRelation, threeFourRelation, fourFiveRelation] 默认值:[0, 0, 0, 0, 0, 0] + * @param {number=} options.relation.oneTwoRelation 第一列和第二列是否通过parentId关联 + * @param {number=} options.relation.twoThreeRelation 第二列和第三列是否通过parentId关联 + * @param {number=} options.relation.threeFourRelation 第三列和第四列是否通过parentId关联 + * @param {number=} options.relation.fourFiveRelation 第四列和第五列是否通过parentId关联 + * @param {number=} options.relation.fiveSixRelation 第五列和第六列是否通过parentId关联 + * @param {string=} options.oneLevelId 第一级选中id + * @param {string=} options.twoLevelId 第二级选中id + * @param {string=} options.threeLevelId 第三级选中id + * @param {string=} options.fourLevelId 第四级选中id + * @param {string=} options.fiveLevelId 第五级选中id + * @param {string=} options.sixLevelId 第六级选中id + * @param {boolean=} options.showLoading 如果你的数据是异步加载的,可以使用该参数设置为true,下拉菜单会有加载中的效果 + * @param {boolean=} options.showAnimate 是否需要入场动画和退场动画,如需自定义动画效果,请修改css + */ +(function() { + /* modify by zhoushengmufc,based on iScroll v5.2.0 */ + var rAF = window.requestAnimationFrame || + window.webkitRequestAnimationFrame || + window.mozRequestAnimationFrame || + window.oRequestAnimationFrame || + window.msRequestAnimationFrame || + function (callback) { window.setTimeout(callback, 1000 / 60); }; + + var utils = (function () { + var me = {}; + + var _elementStyle = document.createElement('div').style; + var _vendor = (function () { + var vendors = ['t', 'webkitT', 'MozT', 'msT', 'OT'], + transform, + i = 0, + l = vendors.length; + + for ( ; i < l; i++ ) { + transform = vendors[i] + 'ransform'; + if ( transform in _elementStyle ) return vendors[i].substr(0, vendors[i].length-1); + } + + return false; + })(); + + function _prefixStyle (style) { + if ( _vendor === false ) return false; + if ( _vendor === '' ) return style; + return _vendor + style.charAt(0).toUpperCase() + style.substr(1); + } + + me.getTime = Date.now || function getTime () { return new Date().getTime(); }; + + me.extend = function (target, obj) { + for ( var i in obj ) { + target[i] = obj[i]; + } + }; + + me.addEvent = function (el, type, fn, capture) { + el.addEventListener(type, fn, !!capture); + }; + + me.removeEvent = function (el, type, fn, capture) { + el.removeEventListener(type, fn, !!capture); + }; + + me.prefixPointerEvent = function (pointerEvent) { + return window.MSPointerEvent ? + 'MSPointer' + pointerEvent.charAt(7).toUpperCase() + pointerEvent.substr(8): + pointerEvent; + }; + + me.momentum = function (current, start, time, lowerMargin, wrapperSize, deceleration) { + var distance = current - start, + speed = Math.abs(distance) / time, + destination, + duration; + + deceleration = deceleration === undefined ? 0.0006 : deceleration; + + destination = current + ( speed * speed ) / ( 2 * deceleration ) * ( distance < 0 ? -1 : 1 ); + duration = speed / deceleration; + + if ( destination < lowerMargin ) { + destination = wrapperSize ? lowerMargin - ( wrapperSize / 2.5 * ( speed / 8 ) ) : lowerMargin; + distance = Math.abs(destination - current); + duration = distance / speed; + } else if ( destination > 0 ) { + destination = wrapperSize ? wrapperSize / 2.5 * ( speed / 8 ) : 0; + distance = Math.abs(current) + destination; + duration = distance / speed; + } + + return { + destination: Math.round(destination), + duration: duration + }; + }; + + var _transform = _prefixStyle('transform'); + + me.extend(me, { + hasTransform: _transform !== false, + hasPerspective: _prefixStyle('perspective') in _elementStyle, + hasTouch: 'ontouchstart' in window, + hasPointer: !!(window.PointerEvent || window.MSPointerEvent), // IE10 is prefixed + hasTransition: _prefixStyle('transition') in _elementStyle + }); + + /* + This should find all Android browsers lower than build 535.19 (both stock browser and webview) + - galaxy S2 is ok + - 2.3.6 : `AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1` + - 4.0.4 : `AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30` + - galaxy S3 is badAndroid (stock brower, webview) + `AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30` + - galaxy S4 is badAndroid (stock brower, webview) + `AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30` + - galaxy S5 is OK + `AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Mobile Safari/537.36 (Chrome/)` + - galaxy S6 is OK + `AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Mobile Safari/537.36 (Chrome/)` + */ + me.isBadAndroid = (function() { + var appVersion = window.navigator.appVersion; + // Android browser is not a chrome browser. + if (/Android/.test(appVersion) && !(/Chrome\/\d/.test(appVersion))) { + var safariVersion = appVersion.match(/Safari\/(\d+.\d)/); + if(safariVersion && typeof safariVersion === "object" && safariVersion.length >= 2) { + return parseFloat(safariVersion[1]) < 535.19; + } else { + return true; + } + } else { + return false; + } + })(); + + me.extend(me.style = {}, { + transform: _transform, + transitionTimingFunction: _prefixStyle('transitionTimingFunction'), + transitionDuration: _prefixStyle('transitionDuration'), + transitionDelay: _prefixStyle('transitionDelay'), + transformOrigin: _prefixStyle('transformOrigin') + }); + + me.hasClass = function (e, c) { + var re = new RegExp("(^|\\s)" + c + "(\\s|$)"); + return re.test(e.className); + }; + + me.addClass = function (e, c) { + if ( me.hasClass(e, c) ) { + return; + } + + var newclass = e.className.split(' '); + newclass.push(c); + e.className = newclass.join(' '); + }; + + me.removeClass = function (e, c) { + if ( !me.hasClass(e, c) ) { + return; + } + + var re = new RegExp("(^|\\s)" + c + "(\\s|$)", 'g'); + e.className = e.className.replace(re, ' '); + }; + + me.offset = function (el) { + var left = -el.offsetLeft, + top = -el.offsetTop; + + // jshint -W084 + while (el = el.offsetParent) { + left -= el.offsetLeft; + top -= el.offsetTop; + } + // jshint +W084 + + return { + left: left, + top: top + }; + }; + + me.preventDefaultException = function (el, exceptions) { + for ( var i in exceptions ) { + if ( exceptions[i].test(el[i]) ) { + return true; + } + } + + return false; + }; + + me.extend(me.eventType = {}, { + touchstart: 1, + touchmove: 1, + touchend: 1, + + mousedown: 2, + mousemove: 2, + mouseup: 2, + + pointerdown: 3, + pointermove: 3, + pointerup: 3, + + MSPointerDown: 3, + MSPointerMove: 3, + MSPointerUp: 3 + }); + + me.extend(me.ease = {}, { + quadratic: { + style: 'cubic-bezier(0.25, 0.46, 0.45, 0.94)', + fn: function (k) { + return k * ( 2 - k ); + } + }, + circular: { + style: 'cubic-bezier(0.1, 0.57, 0.1, 1)', // Not properly "circular" but this looks better, it should be (0.075, 0.82, 0.165, 1) + fn: function (k) { + return Math.sqrt( 1 - ( --k * k ) ); + } + }, + back: { + style: 'cubic-bezier(0.175, 0.885, 0.32, 1.275)', + fn: function (k) { + var b = 4; + return ( k = k - 1 ) * k * ( ( b + 1 ) * k + b ) + 1; + } + }, + bounce: { + style: '', + fn: function (k) { + if ( ( k /= 1 ) < ( 1 / 2.75 ) ) { + return 7.5625 * k * k; + } else if ( k < ( 2 / 2.75 ) ) { + return 7.5625 * ( k -= ( 1.5 / 2.75 ) ) * k + 0.75; + } else if ( k < ( 2.5 / 2.75 ) ) { + return 7.5625 * ( k -= ( 2.25 / 2.75 ) ) * k + 0.9375; + } else { + return 7.5625 * ( k -= ( 2.625 / 2.75 ) ) * k + 0.984375; + } + } + }, + elastic: { + style: '', + fn: function (k) { + var f = 0.22, + e = 0.4; + + if ( k === 0 ) { return 0; } + if ( k == 1 ) { return 1; } + + return ( e * Math.pow( 2, - 10 * k ) * Math.sin( ( k - f / 4 ) * ( 2 * Math.PI ) / f ) + 1 ); + } + } + }); + + me.tap = function (e, eventName) { + var ev = document.createEvent('Event'); + ev.initEvent(eventName, true, true); + ev.pageX = e.pageX; + ev.pageY = e.pageY; + e.target.dispatchEvent(ev); + }; + + me.click = function (e) { + var target = e.target, + ev; + + if ( !(/(SELECT|INPUT|TEXTAREA)/i).test(target.tagName) ) { + // https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent + // initMouseEvent is deprecated. + ev = document.createEvent(window.MouseEvent ? 'MouseEvents' : 'Event'); + ev.initEvent('click', true, true); + ev.view = e.view || window; + ev.detail = 1; + ev.screenX = target.screenX || 0; + ev.screenY = target.screenY || 0; + ev.clientX = target.clientX || 0; + ev.clientY = target.clientY || 0; + ev.ctrlKey = !!e.ctrlKey; + ev.altKey = !!e.altKey; + ev.shiftKey = !!e.shiftKey; + ev.metaKey = !!e.metaKey; + ev.button = 0; + ev.relatedTarget = null; + ev._constructed = true; + target.dispatchEvent(ev); + } + }; + + return me; + })(); + function IScrollForIosSelect (el, options) { + this.wrapper = typeof el == 'string' ? document.querySelector(el) : el; + this.scroller = this.wrapper.children[0]; + this.scrollerStyle = this.scroller.style; // cache style for better performance + + this.options = { + disablePointer: true, + disableTouch: !utils.hasTouch, + disableMouse: utils.hasTouch, + startX: 0, + startY: 0, + scrollY: true, + directionLockThreshold: 5, + momentum: true, + + bounce: true, + bounceTime: 600, + bounceEasing: '', + + preventDefault: true, + preventDefaultException: { tagName: /^(INPUT|TEXTAREA|BUTTON|SELECT)$/ }, + + HWCompositing: true, + useTransition: true, + useTransform: true, + bindToWrapper: typeof window.onmousedown === "undefined" + }; + + for ( var i in options ) { + this.options[i] = options[i]; + } + + // Normalize options + this.translateZ = this.options.HWCompositing && utils.hasPerspective ? ' translateZ(0)' : ''; + + this.options.useTransition = utils.hasTransition && this.options.useTransition; + this.options.useTransform = utils.hasTransform && this.options.useTransform; + + this.options.eventPassthrough = this.options.eventPassthrough === true ? 'vertical' : this.options.eventPassthrough; + this.options.preventDefault = !this.options.eventPassthrough && this.options.preventDefault; + + // If you want eventPassthrough I have to lock one of the axes + this.options.scrollY = this.options.eventPassthrough == 'vertical' ? false : this.options.scrollY; + this.options.scrollX = this.options.eventPassthrough == 'horizontal' ? false : this.options.scrollX; + + // With eventPassthrough we also need lockDirection mechanism + this.options.freeScroll = this.options.freeScroll && !this.options.eventPassthrough; + this.options.directionLockThreshold = this.options.eventPassthrough ? 0 : this.options.directionLockThreshold; + + this.options.bounceEasing = typeof this.options.bounceEasing == 'string' ? utils.ease[this.options.bounceEasing] || utils.ease.circular : this.options.bounceEasing; + + this.options.resizePolling = this.options.resizePolling === undefined ? 60 : this.options.resizePolling; + + if ( this.options.tap === true ) { + this.options.tap = 'tap'; + } + + // https://github.com/cubiq/iscrollForIosSelect/issues/1029 + if (!this.options.useTransition && !this.options.useTransform) { + if(!(/relative|absolute/i).test(this.scrollerStyle.position)) { + this.scrollerStyle.position = "relative"; + } + } + + if ( this.options.shrinkScrollbars == 'scale' ) { + this.options.useTransition = false; + } + + this.options.invertWheelDirection = this.options.invertWheelDirection ? -1 : 1; + + if ( this.options.probeType == 3 ) { + this.options.useTransition = false; } + this.x = 0; + this.y = 0; + this.directionX = 0; + this.directionY = 0; + this._events = {}; + this._init(); + this.refresh(); + + this.scrollTo(this.options.startX, this.options.startY); + this.enable(); + } + + IScrollForIosSelect.prototype = { + version: '1.0.0', + + _init: function () { + this._initEvents(); + }, + + destroy: function () { + this._initEvents(true); + clearTimeout(this.resizeTimeout); + this.resizeTimeout = null; + this._execEvent('destroy'); + }, + + _transitionEnd: function (e) { + if ( e.target != this.scroller || !this.isInTransition ) { + return; + } + + this._transitionTime(); + if ( !this.resetPosition(this.options.bounceTime) ) { + this.isInTransition = false; + this._execEvent('scrollEnd'); + } + }, + + _start: function (e) { + // React to left mouse button only + if ( utils.eventType[e.type] != 1 ) { + // for button property + // http://unixpapa.com/js/mouse.html + var button; + if (!e.which) { + /* IE case */ + button = (e.button < 2) ? 0 : + ((e.button == 4) ? 1 : 2); + } else { + /* All others */ + button = e.button; + } + if ( button !== 0 ) { + return; + } + } + + if ( !this.enabled || (this.initiated && utils.eventType[e.type] !== this.initiated) ) { + return; + } + + if ( this.options.preventDefault && !utils.isBadAndroid && !utils.preventDefaultException(e.target, this.options.preventDefaultException) ) { + e.preventDefault(); + } + + var point = e.touches ? e.touches[0] : e, + pos; + + this.initiated = utils.eventType[e.type]; + this.moved = false; + this.distX = 0; + this.distY = 0; + this.directionX = 0; + this.directionY = 0; + this.directionLocked = 0; + + this.startTime = utils.getTime(); + + if ( this.options.useTransition && this.isInTransition ) { + this._transitionTime(); + this.isInTransition = false; + pos = this.getComputedPosition(); + this._translate(Math.round(pos.x), Math.round(pos.y)); + this._execEvent('scrollEnd'); + } else if ( !this.options.useTransition && this.isAnimating ) { + this.isAnimating = false; + this._execEvent('scrollEnd'); + } + + this.startX = this.x; + this.startY = this.y; + this.absStartX = this.x; + this.absStartY = this.y; + this.pointX = point.pageX; + this.pointY = point.pageY; + + this._execEvent('beforeScrollStart'); + }, + + _move: function (e) { + if ( !this.enabled || utils.eventType[e.type] !== this.initiated ) { + return; + } + + if ( this.options.preventDefault ) { // increases performance on Android? TODO: check! + // e.preventDefault(); + } + + var point = e.touches ? e.touches[0] : e, + deltaX = point.pageX - this.pointX, + deltaY = point.pageY - this.pointY, + timestamp = utils.getTime(), + newX, newY, + absDistX, absDistY; + + this.pointX = point.pageX; + this.pointY = point.pageY; + + this.distX += deltaX; + this.distY += deltaY; + absDistX = Math.abs(this.distX); + absDistY = Math.abs(this.distY); + + // We need to move at least 10 pixels for the scrolling to initiate + if ( timestamp - this.endTime > 300 && (absDistX < 10 && absDistY < 10) ) { + return; + } + + // If you are scrolling in one direction lock the other + if ( !this.directionLocked && !this.options.freeScroll ) { + if ( absDistX > absDistY + this.options.directionLockThreshold ) { + this.directionLocked = 'h'; // lock horizontally + } else if ( absDistY >= absDistX + this.options.directionLockThreshold ) { + this.directionLocked = 'v'; // lock vertically + } else { + this.directionLocked = 'n'; // no lock + } + } + + if ( this.directionLocked == 'h' ) { + if ( this.options.eventPassthrough == 'vertical' ) { + e.preventDefault(); + } else if ( this.options.eventPassthrough == 'horizontal' ) { + this.initiated = false; + return; + } + + deltaY = 0; + } else if ( this.directionLocked == 'v' ) { + if ( this.options.eventPassthrough == 'horizontal' ) { + e.preventDefault(); + } else if ( this.options.eventPassthrough == 'vertical' ) { + this.initiated = false; + return; + } + + deltaX = 0; + } + + deltaX = this.hasHorizontalScroll ? deltaX : 0; + deltaY = this.hasVerticalScroll ? deltaY : 0; + + newX = this.x + deltaX; + newY = this.y + deltaY; + + // Slow down if outside of the boundaries + if ( newX > 0 || newX < this.maxScrollX ) { + newX = this.options.bounce ? this.x + deltaX / 3 : newX > 0 ? 0 : this.maxScrollX; + } + if ( newY > 0 || newY < this.maxScrollY ) { + newY = this.options.bounce ? this.y + deltaY / 3 : newY > 0 ? 0 : this.maxScrollY; + } + + this.directionX = deltaX > 0 ? -1 : deltaX < 0 ? 1 : 0; + this.directionY = deltaY > 0 ? -1 : deltaY < 0 ? 1 : 0; + + if ( !this.moved ) { + this._execEvent('scrollStart'); + } + + this.moved = true; + + this._translate(newX, newY); + if ( timestamp - this.startTime > 300 ) { + this.startTime = timestamp; + this.startX = this.x; + this.startY = this.y; + + if ( this.options.probeType == 1 ) { + this._execEvent('scroll'); + } + } + + if ( this.options.probeType > 1 ) { + this._execEvent('scroll'); + } + + }, + + _end: function (e) { + if ( !this.enabled || utils.eventType[e.type] !== this.initiated ) { + return; + } + + if ( this.options.preventDefault && !utils.preventDefaultException(e.target, this.options.preventDefaultException) ) { + e.preventDefault(); + } + + var point = e.changedTouches ? e.changedTouches[0] : e, + momentumX, + momentumY, + duration = utils.getTime() - this.startTime, + newX = Math.round(this.x), + newY = Math.round(this.y), + distanceX = Math.abs(newX - this.startX), + distanceY = Math.abs(newY - this.startY), + time = 0, + easing = ''; + + this.isInTransition = 0; + this.initiated = 0; + this.endTime = utils.getTime(); + + // reset if we are outside of the boundaries + if ( this.resetPosition(this.options.bounceTime) ) { + return; + } + + this.scrollTo(newX, newY); // ensures that the last position is rounded + + // we scrolled less than 10 pixels + if ( !this.moved ) { + if ( this.options.tap ) { + utils.tap(e, this.options.tap); + } + + if ( this.options.click ) { + utils.click(e); + } + + this._execEvent('scrollCancel'); + return; + } + + if ( this._events.flick && duration < 200 && distanceX < 100 && distanceY < 100 ) { + this._execEvent('flick'); + return; + } + + // start momentum animation if needed + if ( this.options.momentum && duration < 300 ) { + momentumX = this.hasHorizontalScroll ? utils.momentum(this.x, this.startX, duration, this.maxScrollX, this.options.bounce ? this.wrapperWidth : 0, this.options.deceleration) : { destination: newX, duration: 0 }; + momentumY = this.hasVerticalScroll ? utils.momentum(this.y, this.startY, duration, this.maxScrollY, this.options.bounce ? this.wrapperHeight : 0, this.options.deceleration) : { destination: newY, duration: 0 }; + newX = momentumX.destination; + newY = momentumY.destination; + time = Math.max(momentumX.duration, momentumY.duration); + this.isInTransition = 1; + } + + + if ( this.options.snap ) { + var snap = this._nearestSnap(newX, newY); + this.currentPage = snap; + time = this.options.snapSpeed || Math.max( + Math.max( + Math.min(Math.abs(newX - snap.x), 1000), + Math.min(Math.abs(newY - snap.y), 1000) + ), 300); + newX = snap.x; + newY = snap.y; + + this.directionX = 0; + this.directionY = 0; + easing = this.options.bounceEasing; + } + + + if ( newX != this.x || newY != this.y ) { + // change easing function when scroller goes out of the boundaries + if ( newX > 0 || newX < this.maxScrollX || newY > 0 || newY < this.maxScrollY ) { + easing = utils.ease.quadratic; + } + + this.scrollTo(newX, newY, time, easing); + return; + } + + this._execEvent('scrollEnd'); + }, + + _resize: function () { + var that = this; + + clearTimeout(this.resizeTimeout); + + this.resizeTimeout = setTimeout(function () { + that.refresh(); + }, this.options.resizePolling); + }, + + resetPosition: function (time) { + var x = this.x, + y = this.y; + + time = time || 0; + + if ( !this.hasHorizontalScroll || this.x > 0 ) { + x = 0; + } else if ( this.x < this.maxScrollX ) { + x = this.maxScrollX; + } + + if ( !this.hasVerticalScroll || this.y > 0 ) { + y = 0; + } else if ( this.y < this.maxScrollY ) { + y = this.maxScrollY; + } + + if ( x == this.x && y == this.y ) { + return false; + } + + this.scrollTo(x, y, time, this.options.bounceEasing); + + return true; + }, + + disable: function () { + this.enabled = false; + }, + + enable: function () { + this.enabled = true; + }, + + refresh: function () { + var rf = this.wrapper.offsetHeight; // Force reflow + + this.wrapperWidth = this.wrapper.clientWidth; + this.wrapperHeight = this.wrapper.clientHeight; + + + this.scrollerWidth = this.scroller.offsetWidth; + this.scrollerHeight = this.scroller.offsetHeight; + + this.maxScrollX = this.wrapperWidth - this.scrollerWidth; + this.maxScrollY = this.wrapperHeight - this.scrollerHeight; + + + this.hasHorizontalScroll = this.options.scrollX && this.maxScrollX < 0; + this.hasVerticalScroll = this.options.scrollY && this.maxScrollY < 0; + + if ( !this.hasHorizontalScroll ) { + this.maxScrollX = 0; + this.scrollerWidth = this.wrapperWidth; + } + + if ( !this.hasVerticalScroll ) { + this.maxScrollY = 0; + this.scrollerHeight = this.wrapperHeight; + } + + this.endTime = 0; + this.directionX = 0; + this.directionY = 0; + + this.wrapperOffset = utils.offset(this.wrapper); + + this._execEvent('refresh'); + + this.resetPosition(); + + + }, + + on: function (type, fn) { + if ( !this._events[type] ) { + this._events[type] = []; + } + + this._events[type].push(fn); + }, + + off: function (type, fn) { + if ( !this._events[type] ) { + return; + } + + var index = this._events[type].indexOf(fn); + + if ( index > -1 ) { + this._events[type].splice(index, 1); + } + }, + + _execEvent: function (type) { + if ( !this._events[type] ) { + return; + } + + var i = 0, + l = this._events[type].length; + + if ( !l ) { + return; + } + + for ( ; i < l; i++ ) { + this._events[type][i].apply(this, [].slice.call(arguments, 1)); + } + }, + + scrollTo: function (x, y, time, easing) { + easing = easing || utils.ease.circular; + + this.isInTransition = this.options.useTransition && time > 0; + var transitionType = this.options.useTransition && easing.style; + if ( !time || transitionType ) { + if(transitionType) { + this._transitionTimingFunction(easing.style); + this._transitionTime(time); + } + this._translate(x, y); + } else { + this._animate(x, y, time, easing.fn); + } + }, + + scrollToElement: function (el, time, offsetX, offsetY, easing) { + el = el.nodeType ? el : this.scroller.querySelector(el); + + if ( !el ) { + return; + } + + var pos = utils.offset(el); + + pos.left -= this.wrapperOffset.left; + pos.top -= this.wrapperOffset.top; + + // if offsetX/Y are true we center the element to the screen + if ( offsetX === true ) { + offsetX = Math.round(el.offsetWidth / 2 - this.wrapper.offsetWidth / 2); + } + if ( offsetY === true ) { + offsetY = Math.round(el.offsetHeight / 2 - this.wrapper.offsetHeight / 2); + } + + pos.left -= offsetX || 0; + pos.top -= offsetY || 0; + + pos.left = pos.left > 0 ? 0 : pos.left < this.maxScrollX ? this.maxScrollX : pos.left; + pos.top = pos.top > 0 ? 0 : pos.top < this.maxScrollY ? this.maxScrollY : pos.top; + + time = time === undefined || time === null || time === 'auto' ? Math.max(Math.abs(this.x-pos.left), Math.abs(this.y-pos.top)) : time; + + this.scrollTo(pos.left, pos.top, time, easing); + }, + + _transitionTime: function (time) { + if (!this.options.useTransition) { + return; + } + time = time || 0; + var durationProp = utils.style.transitionDuration; + if(!durationProp) { + return; + } + + this.scrollerStyle[durationProp] = time + 'ms'; + + if ( !time && utils.isBadAndroid ) { + this.scrollerStyle[durationProp] = '0.0001ms'; + // remove 0.0001ms + var self = this; + rAF(function() { + if(self.scrollerStyle[durationProp] === '0.0001ms') { + self.scrollerStyle[durationProp] = '0s'; + } + }); + } + + + + }, + + _transitionTimingFunction: function (easing) { + this.scrollerStyle[utils.style.transitionTimingFunction] = easing; + + + + }, + + _translate: function (x, y) { + if ( this.options.useTransform ) { + + + this.scrollerStyle[utils.style.transform] = 'translate(' + x + 'px,' + y + 'px)' + this.translateZ; + + + } else { + x = Math.round(x); + y = Math.round(y); + this.scrollerStyle.left = x + 'px'; + this.scrollerStyle.top = y + 'px'; + } + + this.x = x; + this.y = y; + + + + }, + + _initEvents: function (remove) { + var eventType = remove ? utils.removeEvent : utils.addEvent, + target = this.options.bindToWrapper ? this.wrapper : window; + + eventType(window, 'orientationchange', this); + eventType(window, 'resize', this); + + if ( this.options.click ) { + eventType(this.wrapper, 'click', this, true); + } + + if ( !this.options.disableMouse ) { + eventType(this.wrapper, 'mousedown', this); + eventType(target, 'mousemove', this); + eventType(target, 'mousecancel', this); + eventType(target, 'mouseup', this); + } + + if ( utils.hasPointer && !this.options.disablePointer ) { + eventType(this.wrapper, utils.prefixPointerEvent('pointerdown'), this); + eventType(target, utils.prefixPointerEvent('pointermove'), this); + eventType(target, utils.prefixPointerEvent('pointercancel'), this); + eventType(target, utils.prefixPointerEvent('pointerup'), this); + } + + if ( utils.hasTouch && !this.options.disableTouch ) { + eventType(this.wrapper, 'touchstart', this); + eventType(target, 'touchmove', this); + eventType(target, 'touchcancel', this); + eventType(target, 'touchend', this); + } + + eventType(this.scroller, 'transitionend', this); + eventType(this.scroller, 'webkitTransitionEnd', this); + eventType(this.scroller, 'oTransitionEnd', this); + eventType(this.scroller, 'MSTransitionEnd', this); + }, + + getComputedPosition: function () { + var matrix = window.getComputedStyle(this.scroller, null), + x, y; + + if ( this.options.useTransform ) { + matrix = matrix[utils.style.transform].split(')')[0].split(', '); + x = +(matrix[12] || matrix[4]); + y = +(matrix[13] || matrix[5]); + } else { + x = +matrix.left.replace(/[^-\d.]/g, ''); + y = +matrix.top.replace(/[^-\d.]/g, ''); + } + + return { x: x, y: y }; + }, + + _animate: function (destX, destY, duration, easingFn) { + var that = this, + startX = this.x, + startY = this.y, + startTime = utils.getTime(), + destTime = startTime + duration; + + function step () { + var now = utils.getTime(), + newX, newY, + easing; + + if ( now >= destTime ) { + that.isAnimating = false; + that._translate(destX, destY); + + if ( !that.resetPosition(that.options.bounceTime) ) { + that._execEvent('scrollEnd'); + } + + return; + } + + now = ( now - startTime ) / duration; + easing = easingFn(now); + newX = ( destX - startX ) * easing + startX; + newY = ( destY - startY ) * easing + startY; + that._translate(newX, newY); + + if ( that.isAnimating ) { + rAF(step); + } + + if ( that.options.probeType == 3 ) { + that._execEvent('scroll'); + } + } + + this.isAnimating = true; + step(); + }, + + handleEvent: function (e) { + switch ( e.type ) { + case 'touchstart': + case 'pointerdown': + case 'MSPointerDown': + case 'mousedown': + this._start(e); + break; + case 'touchmove': + case 'pointermove': + case 'MSPointerMove': + case 'mousemove': + this._move(e); + break; + case 'touchend': + case 'pointerup': + case 'MSPointerUp': + case 'mouseup': + case 'touchcancel': + case 'pointercancel': + case 'MSPointerCancel': + case 'mousecancel': + this._end(e); + break; + case 'orientationchange': + case 'resize': + this._resize(); + break; + case 'transitionend': + case 'webkitTransitionEnd': + case 'oTransitionEnd': + case 'MSTransitionEnd': + this._transitionEnd(e); + break; + case 'click': + if ( this.enabled && !e._constructed ) { + e.preventDefault(); + e.stopPropagation(); + } + break; + } + } + }; + IScrollForIosSelect.utils = utils; + + var iosSelectUtil = { + isArray: function (arg1) { + return Object.prototype.toString.call(arg1) === '[object Array]'; + }, + isFunction: function (arg1) { + return typeof arg1 === 'function'; + }, + attrToData: function (dom, index) { + var obj = {}; + for (var p in dom.dataset) { + obj[p] = dom.dataset[p]; + } + obj['dom'] = dom; + obj['atindex'] = index; + return obj; + }, + attrToHtml: function (obj) { + var html = ''; + for (var p in obj) { + html += 'data-' + p + '="' + obj[p] + '"'; + } + return html; + } + }; + /*function preventEventFun(e) { + e.preventDefault(); + }*/ + // Layer + function Layer(html, opts) { + if (!(this instanceof Layer)) { + return new Layer(html, opts); + } + this.html = html; + this.opts = opts; + var el = document.createElement('div'); + el.className = 'olay'; + var layer_el = document.createElement('div'); + layer_el.className = 'layer'; + this.el = el; + this.layer_el = layer_el; + this.init(); + } + Layer.prototype = { + init: function () { + this.layer_el.innerHTML = this.html; + if (this.opts.container && document.querySelector(this.opts.container)) { + document.querySelector(this.opts.container).appendChild(this.el); + } + else { + document.body.appendChild(this.el); + } + this.el.appendChild(this.layer_el); + this.el.style.height = Math.max(document.documentElement.getBoundingClientRect().height, window.innerHeight); + if (this.opts.className) { + this.el.className += ' ' + this.opts.className; + } + this.bindEvent(); + }, + bindEvent: function () { + var sureDom = this.el.querySelectorAll('.sure'); + var closeDom = this.el.querySelectorAll('.close'); + var self = this; + this.el.addEventListener('click', function(e) { + self.close(); + self.opts.fallback && self.opts.fallback(); + }); + this.layer_el.addEventListener('click', function(e) { + e.stopPropagation(); + }); + Array.prototype.slice.call(sureDom).forEach(function (item, index) { + item.addEventListener('click', function () { + self.close(); + }); + }); + Array.prototype.slice.call(closeDom).forEach(function (item, index) { + item.addEventListener('click', function () { + self.close(); + self.opts.fallback && self.opts.fallback(); + }); + }); + }, + close: function () { + var self=this; + if (self.el) { + if (self.opts.showAnimate) { + self.el.className += ' fadeOutDown'; + setTimeout(function(){ + self.removeDom(); + }, 500); + } + else { + self.removeDom(); + } + } + }, + removeDom: function (){ + this.el.parentNode.removeChild(this.el); + this.el = null; + if (document.documentElement.classList.contains('ios-select-body-class')) { + document.documentElement.classList.remove('ios-select-body-class'); + /*document.body.removeEventListener('touchmove', preventEventFun, { + passive: false + });*/ + } + } + } + function IosSelect(level, data, options) { + if (!iosSelectUtil.isArray(data) || data.length === 0) { + throw new TypeError('the data must be a non-empty array!'); + return; + } + if ([1, 2, 3, 4, 5, 6].indexOf(level) == -1) { + throw new RangeError('the level parameter must be one of 1,2,3,4,5,6!'); + return; + } + this.data = data; + this.level = level || 1; + this.options = options; + this.typeBox = 'one-level-box'; + if (this.level === 1) { + this.typeBox = 'one-level-box'; + } + else if (this.level === 2) { + this.typeBox = 'two-level-box'; + } + else if (this.level === 3) { + this.typeBox = 'three-level-box'; + } + else if (this.level === 4) { + this.typeBox = 'four-level-box'; + } + else if (this.level === 5) { + this.typeBox = 'five-level-box'; + } + else if (this.level === 6) { + this.typeBox = 'six-level-box'; + } + this.callback = options.callback; + this.fallback = options.fallback; + this.title = options.title || ''; + this.options.itemHeight = options.itemHeight || 35; + this.options.itemShowCount = [3, 5, 7, 9].indexOf(options.itemShowCount) !== -1? options.itemShowCount: 7; + this.options.coverArea1Top = Math.floor(this.options.itemShowCount / 2); + this.options.coverArea2Top = Math.ceil(this.options.itemShowCount / 2); + this.options.headerHeight = options.headerHeight || 44; + this.options.relation = iosSelectUtil.isArray(this.options.relation)? this.options.relation: []; + this.options.oneTwoRelation = this.options.relation[0]; + this.options.twoThreeRelation = this.options.relation[1]; + this.options.threeFourRelation = this.options.relation[2]; + this.options.fourFiveRelation = this.options.relation[3]; + this.options.fiveSixRelation = this.options.relation[4]; + if (this.options.cssUnit !== 'px' && this.options.cssUnit !== 'rem') { + this.options.cssUnit = 'px'; + } + var self = this; + // 选中元素的信息 + this.selectOneObj = { + id: self.options.oneLevelId + }; + this.selectTwoObj = { + id: self.options.twoLevelId + }; + this.selectThreeObj = { + id: self.options.threeLevelId + }; + this.selectFourObj = { + id: self.options.fourLevelId + }; + this.selectFiveObj = { + id: self.options.fiveLevelId + }; + this.selectSixObj = { + id: self.options.sixLevelId + }; + this.setBase(); + this.init(); + }; + + IosSelect.prototype = { + init: function () { + this.initLayer(); + this.setLevelData(1, this.options.oneLevelId, this.options.twoLevelId, this.options.threeLevelId, this.options.fourLevelId, this.options.fiveLevelId, this.options.sixLevelId); + }, + initLayer: function () { + var self = this; + var sureText = this.options.sureText ||langList[langType].income24; + var closeText = this.options.closeText || langList[langType].income25; + var headerHeightCss = this.options.headerHeight + this.options.cssUnit; + var all_html = [ + '<header style="height: ' + headerHeightCss + '; line-height: ' + headerHeightCss + '" class="iosselect-header">', + '<a style="height: ' + headerHeightCss + '; line-height: ' + headerHeightCss + '" href="javascript:void(0)" class="close">' + closeText + '</a>', + '<a style="height: ' + headerHeightCss + '; line-height: ' + headerHeightCss + '" href="javascript:void(0)" class="sure">' + sureText + '</a>', + '<h2 id="iosSelectTitle"></h2>', + '</header>', + '<section class="iosselect-box">', + '<div class="one-level-contain" id="oneLevelContain">', + '<ul class="select-one-level">', + '</ul>', + '</div>', + '<div class="two-level-contain" id="twoLevelContain">', + '<ul class="select-two-level">', + '</ul>', + '</div>', + '<div class="three-level-contain" id="threeLevelContain">', + '<ul class="select-three-level">', + '</ul>', + '</div>', + '<div class="four-level-contain" id="fourLevelContain">', + '<ul class="select-four-level">', + '</ul>', + '</div>', + '<div class="five-level-contain" id="fiveLevelContain">', + '<ul class="select-five-level">', + '</ul>', + '</div>', + '<div class="six-level-contain" id="sixLevelContain">', + '<ul class="select-six-level">', + '</ul>', + '</div>', + '</section>', + '<hr class="cover-area1"/>', + '<hr class="cover-area2"/>', + '<div class="ios-select-loading-box" id="iosSelectLoadingBox">', + '<div class="ios-select-loading"></div>', + '</div>' + ].join('\r\n'); + this.iosSelectLayer = new Layer(all_html, { + className: 'ios-select-widget-box ' + this.typeBox + (this.options.addClassName? ' ' + this.options.addClassName: '') + (this.options.showAnimate? ' fadeInUp': ''), + container: this.options.container || '', + showAnimate: this.options.showAnimate + }); + + this.iosSelectTitleDom = this.iosSelectLayer.el.querySelector('#iosSelectTitle'); + this.iosSelectLoadingBoxDom = this.iosSelectLayer.el.querySelector('#iosSelectLoadingBox'); + this.iosSelectTitleDom.innerHTML = this.title; + if (this.options.headerHeight && this.options.itemHeight) { + this.coverArea1Dom = this.iosSelectLayer.el.querySelector('.cover-area1'); + this.coverArea1Dom.style.top = this.options.headerHeight + this.options.itemHeight * this.options.coverArea1Top + this.options.cssUnit; + this.coverArea2Dom = this.iosSelectLayer.el.querySelector('.cover-area2'); + this.coverArea2Dom.style.top = this.options.headerHeight + this.options.itemHeight * this.options.coverArea2Top + this.options.cssUnit; + } + + this.oneLevelContainDom = this.iosSelectLayer.el.querySelector('#oneLevelContain'); + this.twoLevelContainDom = this.iosSelectLayer.el.querySelector('#twoLevelContain'); + this.threeLevelContainDom = this.iosSelectLayer.el.querySelector('#threeLevelContain'); + this.fourLevelContainDom = this.iosSelectLayer.el.querySelector('#fourLevelContain'); + this.fiveLevelContainDom = this.iosSelectLayer.el.querySelector('#fiveLevelContain'); + this.sixLevelContainDom = this.iosSelectLayer.el.querySelector('#sixLevelContain'); + + this.oneLevelUlContainDom = this.iosSelectLayer.el.querySelector('.select-one-level'); + this.twoLevelUlContainDom = this.iosSelectLayer.el.querySelector('.select-two-level'); + this.threeLevelUlContainDom = this.iosSelectLayer.el.querySelector('.select-three-level'); + this.fourLevelUlContainDom = this.iosSelectLayer.el.querySelector('.select-four-level'); + this.fiveLevelUlContainDom = this.iosSelectLayer.el.querySelector('.select-five-level'); + this.sixLevelUlContainDom = this.iosSelectLayer.el.querySelector('.select-six-level'); + + this.iosSelectLayer.el.querySelector('.layer').style.height = this.options.itemHeight * this.options.itemShowCount + this.options.headerHeight + this.options.cssUnit; + + this.oneLevelContainDom.style.height = this.options.itemHeight * this.options.itemShowCount + this.options.cssUnit; + document.documentElement.classList.add('ios-select-body-class'); + /*document.body.addEventListener('touchmove', preventEventFun, { + passive: false + });*/ + + this.scrollOne = new IScrollForIosSelect('#oneLevelContain', { + probeType: 3, + bounce: false + }); + this.setScorllEvent(this.scrollOne, 1); + + if (this.level >= 2) { + this.twoLevelContainDom.style.height = this.options.itemHeight * this.options.itemShowCount + this.options.cssUnit; + this.scrollTwo = new IScrollForIosSelect('#twoLevelContain', { + probeType: 3, + bounce: false + }); + this.setScorllEvent(this.scrollTwo, 2); + } + if (this.level >= 3) { + this.threeLevelContainDom.style.height = this.options.itemHeight * this.options.itemShowCount + this.options.cssUnit; + this.scrollThree = new IScrollForIosSelect('#threeLevelContain', { + probeType: 3, + bounce: false + }); + this.setScorllEvent(this.scrollThree, 3); + } + if (this.level >= 4) { + this.fourLevelContainDom.style.height = this.options.itemHeight * this.options.itemShowCount + this.options.cssUnit; + this.scrollFour = new IScrollForIosSelect('#fourLevelContain', { + probeType: 3, + bounce: false + }); + this.setScorllEvent(this.scrollFour, 4); + } + if (this.level >= 5) { + this.fiveLevelContainDom.style.height = this.options.itemHeight * this.options.itemShowCount + this.options.cssUnit; + this.scrollFive = new IScrollForIosSelect('#fiveLevelContain', { + probeType: 3, + bounce: false + }); + this.setScorllEvent(this.scrollFive, 5); + } + if (this.level >= 6) { + this.sixLevelContainDom.style.height = this.options.itemHeight * this.options.itemShowCount + this.options.cssUnit; + this.scrollSix = new IScrollForIosSelect('#sixLevelContain', { + probeType: 3, + bounce: false + }); + this.setScorllEvent(this.scrollSix, 6); + } + + // 取消 确认 事件 + this.closeBtnDom = this.iosSelectLayer.el.querySelector('.close'); + this.closeBtnDom.addEventListener('click', function (e) { + self.fallback && self.fallback(); + }); + + this.selectBtnDom = this.iosSelectLayer.el.querySelector('.sure'); + this.selectBtnDom.addEventListener('click', function (e) { + self.callback && self.callback(self.selectOneObj, self.selectTwoObj, self.selectThreeObj, self.selectFourObj, self.selectFiveObj, self.selectSixObj); + }); + }, + mapKeyByIndex: function (index) { + var self = this; + var map = { + index: 1, + levelContain: self.oneLevelContainDom, + relation: self.options.oneTwoRelation + }; + if (index === 2) { + map = { + index: 2, + levelContain: self.twoLevelContainDom, + relation: self.options.twoThreeRelation + }; + } + else if (index === 3) { + map = { + index: 3, + levelContain: self.threeLevelContainDom, + relation: self.options.threeFourRelation + }; + } + else if (index === 4) { + map = { + index: 4, + levelContain: self.fourLevelContainDom, + relation: self.options.fourFiveRelation + }; + } + else if (index === 5) { + map = { + index: 5, + levelContain: self.fiveLevelContainDom, + relation: self.options.fiveSixRelation + }; + } + else if (index === 6) { + map = { + index: 6, + levelContain: self.sixLevelContainDom, + relation: 0 + }; + } + return map; + }, + setScorllEvent: function (scrollInstance, index) { + var self = this; + var mapKey = self.mapKeyByIndex(index); + scrollInstance.on('scrollStart', function () { + self.toggleClassList(mapKey.levelContain); + }); + scrollInstance.on('scroll', function () { + if (isNaN(this.y)) { + return; + } + var pa = Math.abs(this.y / self.baseSize) / self.options.itemHeight; + var plast = 1; + plast = Math.round(pa) + 1; + self.toggleClassList(mapKey.levelContain); + self.changeClassName(mapKey.levelContain, plast); + }); + scrollInstance.on('scrollEnd', function () { + var pa = Math.abs(this.y / self.baseSize) / self.options.itemHeight; + var plast = 1; + var to = 0; + if (Math.ceil(pa) === Math.round(pa)) { + to = Math.ceil(pa) * self.options.itemHeight * self.baseSize; + plast = Math.ceil(pa) + 1; + } else { + to = Math.floor(pa) * self.options.itemHeight * self.baseSize; + plast = Math.floor(pa) + 1; + } + scrollInstance.scrollTo(0, -to, 0); + + self.toggleClassList(mapKey.levelContain); + + var pdom = self.changeClassName(mapKey.levelContain, plast); + var obj = iosSelectUtil.attrToData(pdom, plast); + self.setSelectObj(index, obj); + + if (self.level > index) { + if ((mapKey.relation === 1 && iosSelectUtil.isArray(self.data[index])) || iosSelectUtil.isFunction(self.data[index])) { + self.setLevelData(index + 1, self.selectOneObj.id, self.selectTwoObj.id, self.selectThreeObj.id, self.selectFourObj.id, self.selectFiveObj.id, self.selectSixObj.id); + } + } + }); + scrollInstance.on('scrollCancel', function () { + var pa = Math.abs(this.y / self.baseSize) / self.options.itemHeight; + var plast = 1; + var to = 0; + if (Math.ceil(pa) === Math.round(pa)) { + to = Math.ceil(pa) * self.options.itemHeight * self.baseSize; + plast = Math.ceil(pa) + 1; + } else { + to = Math.floor(pa) * self.options.itemHeight * self.baseSize; + plast = Math.floor(pa) + 1; + } + scrollInstance.scrollTo(0, -to, 0); + + self.toggleClassList(mapKey.levelContain); + + var pdom = self.changeClassName(mapKey.levelContain, plast); + var obj = iosSelectUtil.attrToData(pdom, plast); + self.setSelectObj(index, obj); + + if (self.level > index) { + if ((mapKey.relation === 1 && iosSelectUtil.isArray(self.data[index])) || iosSelectUtil.isFunction(self.data[index])) { + self.setLevelData(index + 1, self.selectOneObj.id, self.selectTwoObj.id, self.selectThreeObj.id, self.selectFourObj.id, self.selectFiveObj.id, self.selectSixObj.id); + } + + } + }); + }, + loadingShow: function () { + this.options.showLoading && (this.iosSelectLoadingBoxDom.style.display = 'block'); + }, + loadingHide: function () { + this.iosSelectLoadingBoxDom.style.display = 'none'; + }, + mapRenderByIndex: function (index) { + var self = this; + var map = { + index: 1, + relation: 0, + levelUlContainDom: self.oneLevelUlContainDom, + scrollInstance: self.scrollOne, + levelContainDom: self.oneLevelContainDom + }; + if (index === 2) { + map = { + index: 2, + relation: self.options.oneTwoRelation, + levelUlContainDom: self.twoLevelUlContainDom, + scrollInstance: self.scrollTwo, + levelContainDom: self.twoLevelContainDom + }; + } + else if (index === 3) { + map = { + index: 3, + relation: self.options.twoThreeRelation, + levelUlContainDom: self.threeLevelUlContainDom, + scrollInstance: self.scrollThree, + levelContainDom: self.threeLevelContainDom + }; + } + else if (index === 4) { + map = { + index: 4, + relation: self.options.threeFourRelation, + levelUlContainDom: self.fourLevelUlContainDom, + scrollInstance: self.scrollFour, + levelContainDom: self.fourLevelContainDom + }; + } + else if (index === 5) { + map = { + index: 5, + relation: self.options.fourFiveRelation, + levelUlContainDom: self.fiveLevelUlContainDom, + scrollInstance: self.scrollFive, + levelContainDom: self.fiveLevelContainDom + }; + } + else if (index === 6) { + map = { + index: 6, + relation: self.options.fiveSixRelation, + levelUlContainDom: self.sixLevelUlContainDom, + scrollInstance: self.scrollSix, + levelContainDom: self.sixLevelContainDom + }; + } + return map; + }, + getLevelData: function (index, oneLevelId, twoLevelId, threeLevelId, fourLevelId, fiveLevelId) { + var levelData = []; + var renderMap = this.mapRenderByIndex(index); + if (index === 1) { + levelData = this.data[0]; + } + else if (renderMap.relation === 1) { + var pid = arguments[index - 1]; + this.data[index - 1].forEach(function (v, i, o) { + if (v['parentId'] == pid) { + levelData.push(v); + } + }); + } + else { + levelData = this.data[index - 1]; + } + return levelData; + }, + setLevelData: function (index, oneLevelId, twoLevelId, threeLevelId, fourLevelId, fiveLevelId, sixLevelId) { + if (iosSelectUtil.isArray(this.data[index - 1])) { + var levelData = this.getLevelData(index, oneLevelId, twoLevelId, threeLevelId, fourLevelId); + this.renderLevel(index, oneLevelId, twoLevelId, threeLevelId, fourLevelId, fiveLevelId, sixLevelId, levelData); + } + else if (iosSelectUtil.isFunction(this.data[index - 1])) { + this.loadingShow(); + this.data[index - 1].apply(this, [oneLevelId, twoLevelId, threeLevelId, fourLevelId, fiveLevelId].slice(0, index - 1).concat(function (levelData) { + this.loadingHide(); + this.renderLevel(index, oneLevelId, twoLevelId, threeLevelId, fourLevelId, fiveLevelId, sixLevelId, levelData); + }.bind(this))); + } + else { + throw new Error('data format error'); + } + }, + renderLevel: function (index, oneLevelId, twoLevelId, threeLevelId, fourLevelId, fiveLevelId, sixLevelId, levelData) { + var plast = 0; + var curLevelId = arguments[index]; + var hasAtId = levelData.some(function (v, i, o) { + return v.id == curLevelId; + }); + if (!hasAtId) { + curLevelId = levelData[0]['id']; + } + var tmpHtml = ''; + var itemHeightStyle = this.options.itemHeight + this.options.cssUnit; + tmpHtml += this.getWhiteItem(); + levelData.forEach(function (v, i, o) { + if (v.id == curLevelId) { + tmpHtml += '<li style="height: ' + itemHeightStyle + '; line-height: ' + itemHeightStyle +';"' + iosSelectUtil.attrToHtml(v) + ' class="at">' + v.value + '</li>'; + plast = i + 1; + } + else { + tmpHtml += '<li style="height: ' + itemHeightStyle + '; line-height: ' + itemHeightStyle +';"' + iosSelectUtil.attrToHtml(v) + '>' + v.value + '</li>'; + } + }); + tmpHtml += this.getWhiteItem(); + var renderMap = this.mapRenderByIndex(index); + renderMap.levelUlContainDom.innerHTML = tmpHtml; + renderMap.scrollInstance.refresh(); + renderMap.scrollInstance.scrollToElement(':nth-child(' + plast + ')', 0); + var pdom = this.changeClassName(renderMap.levelContainDom, plast); + var obj = iosSelectUtil.attrToData(pdom, plast + Math.ceil(this.options.itemShowCount / 2)); + this.setSelectObj(index, obj); + if (this.level > index) { + this.setLevelData(index + 1, this.selectOneObj.id, this.selectTwoObj.id, this.selectThreeObj.id, this.selectFourObj.id, this.selectFiveObj.id, this.selectSixObj.id); + } + }, + setSelectObj: function (index, obj) { + if (index === 1) { + this.selectOneObj = obj; + } + else if (index === 2) { + this.selectTwoObj = obj; + } + else if (index === 3) { + this.selectThreeObj = obj; + } + else if (index === 4) { + this.selectFourObj = obj; + } + else if (index === 5) { + this.selectFiveObj = obj; + } + else if (index === 6) { + this.selectSixObj = obj; + } + }, + getWhiteItem: function () { + var whiteItemHtml = ''; + var itemHeightStyle = this.options.itemHeight + this.options.cssUnit; + var itemLi = '<li style="height: ' + itemHeightStyle + '; line-height: ' + itemHeightStyle + '"></li>'; + whiteItemHtml += itemLi; + if (this.options.itemShowCount > 3) { + whiteItemHtml += itemLi; + } + if (this.options.itemShowCount > 5) { + whiteItemHtml += itemLi; + } + if (this.options.itemShowCount > 7) { + whiteItemHtml += itemLi; + } + return whiteItemHtml; + }, + changeClassName: function (levelContainDom, plast) { + var pdom; + if (this.options.itemShowCount === 3) { + pdom = levelContainDom.querySelector('li:nth-child(' + (plast + 1) + ')'); + pdom.classList.add('at'); + } + else if (this.options.itemShowCount === 5) { + pdom = levelContainDom.querySelector('li:nth-child(' + (plast + 2) + ')'); + pdom.classList.add('at'); + levelContainDom.querySelector('li:nth-child(' + (plast + 1) + ')').classList.add('side1'); + levelContainDom.querySelector('li:nth-child(' + (plast + 3) + ')').classList.add('side1'); + } + else if (this.options.itemShowCount === 7) { + pdom = levelContainDom.querySelector('li:nth-child(' + (plast + 3) + ')'); + pdom.classList.add('at'); + levelContainDom.querySelector('li:nth-child(' + (plast + 2) + ')').classList.add('side1'); + levelContainDom.querySelector('li:nth-child(' + (plast + 1) + ')').classList.add('side2'); + levelContainDom.querySelector('li:nth-child(' + (plast + 4) + ')').classList.add('side1'); + levelContainDom.querySelector('li:nth-child(' + (plast + 5) + ')').classList.add('side2'); + } + else if (this.options.itemShowCount === 9) { + pdom = levelContainDom.querySelector('li:nth-child(' + (plast + 4) + ')'); + pdom.classList.add('at'); + levelContainDom.querySelector('li:nth-child(' + (plast + 3) + ')').classList.add('side1'); + levelContainDom.querySelector('li:nth-child(' + (plast + 2) + ')').classList.add('side2'); + levelContainDom.querySelector('li:nth-child(' + (plast + 5) + ')').classList.add('side1'); + levelContainDom.querySelector('li:nth-child(' + (plast + 6) + ')').classList.add('side2'); + } + return pdom; + }, + setBase: function () { + if (this.options.cssUnit === 'rem') { + var dltDom = document.documentElement; + var dltStyle = window.getComputedStyle(dltDom, null); + var dltFontSize = dltStyle.fontSize; + try { + this.baseSize = /\d+(?:\.\d+)?/.exec(dltFontSize)[0]; + } + catch(e) { + this.baseSize = 1; + } + } + else { + this.baseSize = 1; + } + }, + toggleClassList: function (dom) { + Array.prototype.slice.call(dom.querySelectorAll('li')).forEach(function (v) { + if (v.classList.contains('at')) { + v.classList.remove('at'); + } + else if (v.classList.contains('side1')) { + v.classList.remove('side1'); + } + else if (v.classList.contains('side2')) { + v.classList.remove('side2'); + } + }) + } + } + if (typeof module != 'undefined' && module.exports) { + module.exports = IosSelect; + } + else if (typeof define == 'function' && define.amd) { + define(function () { + return IosSelect; + }); + } + else { + window.IosSelect = IosSelect; + } +})(); \ No newline at end of file diff --git a/footseen/Nesting/fireflyRmb/list/otherIncome.html b/footseen/Nesting/fireflyRmb/list/otherIncome.html new file mode 100644 index 0000000..3379988 --- /dev/null +++ b/footseen/Nesting/fireflyRmb/list/otherIncome.html @@ -0,0 +1,139 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <meta charset="utf-8" /> + <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/> + <meta name="apple-mobile-web-app-capable" content="yes"> + <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> + <meta content="telephone=no" name="format-detection"> + <meta name="wap-font-scale" content="no"> + <title></title> + <link rel="stylesheet" href="../layer-v3.1.0/layer.css"> + <link rel="stylesheet" href="../../../css/iosSelect.css?v=202010211440"> + <link rel="stylesheet" href="../css/reset.css"> + <link rel="stylesheet" href="css/index.css?v=202010211440"> + <script type="text/javascript" src="../js/fsize.js"></script> + + </head> + <body> + <div class="main"> + <div class="mHead"> + <span class="mHeadTitle ellipsis"></span> + <span class="mHeadChange" data-type="2"><font></font><font></font></span> + </div> + <div class="mChange hide"> + <p data-type="1"></p> + <p data-type="2"></p> + <p data-type="3"></p> + <p data-type="4"></p> + <p data-type="5"></p> + <p data-type=""></p> + </div> + <div class="mList"></div> + </div> + </body> + <script type="text/javascript" src="../js/jquery-3.2.1.min.js"></script> + <script type="text/javascript" src="../layer-v3.1.0/layer/layer.js"></script> + <script src="../../../lib/langchange.js?v=202010211440"></script> + <script type="text/javascript" src="js/common.js?v=202010211440"></script> + <script src="js/iosSelect.js"></script> + <script type="text/javascript"> + $('title').html(langList[langType].income6); + $('.mHeadTitle').html(langList[langType].income6+':'+'<font></font>'); + $(window).bind("scroll", function () { + if($(document).scrollTop() + $(window).height() > $(document).height() - 1 && next){ + if(more == true){ + if($('.mHeadChange').attr('data-type')==''){ + getData(mPage,$('.mHeadChange font:eq(0)').html()); + } else { + getData(mPage); + } + } + } + }) + + getData(mPage); + getUserIncomeTotal(2); + function getUserIncomeTotal(datatype,time){ + $.ajax({ + url:$ip+'/user/getUserIncomeTotal.html', + data:{ + page:1, + pageSize:50, + type:6, + date:time, + dataType:datatype, + }, + success:function(res){ + if(res.code == 1){ + $('.mHeadTitle font').html(res.total); + } else { + layer.msg(res.msg); + } + } + }) + } + function getData(page,time,type){ + $.ajax({ + url:$ip+'/user/getUserIncome.html', + data:{ + page:page, + pageSize:50, + type:6, + date:time, + dataType:$('.mHeadChange').attr('data-type'), + }, + success:function(res){ + if(res.code == 1){ + if(type){ + $('.mList').empty(); + more = true; + next = false; + mPage = 1; + } + var log = res.data; + var str = ''; + if(log.length>0){ + for(var i=0;i<log.length;i++){ + str += '<div class="mDetail">'; + if(log[i].avatar == '/user/boy.png' || log[i].avatar == 'user/giftl.png'){ + str += ' <img class="mDetailImg" src="https://app.ixiulive.com/static/images/head2.png?x-oss-process=image/resize,w_80" />'; + } else { + str += ' <img class="mDetailImg" src="'+cdn+log[i].avatar+'?x-oss-process=image/resize,w_80" />'; + } + str += ' <div class="mDetailInfo">'; + str += ' <p class="ellipsis">'+log[i].remark+'</p>'; + str += ' <p class="ellipsis">'+getTime(log[i].logtime.time)+'</p>'; + str += ' </div>'; + str += ' <div class="mDetailInfo2">'; + if(log[i].value>=0){ + str += ' <p class="ellipsis"><img src="../img/yumao3.png" />+'+log[i].value+'</p>'; + } else { + str += ' <p class="ellipsis"><img src="../img/yumao3.png" />'+log[i].value+'</p>'; + } + str += ' </div>'; + str += '</div>'; + } + } else { + if(mPage == 1){ + str += '<div class="notData">'; + str += '<img src="../img/no-record.png"/>'; + str += '<p>'+langList[langType].income14+'</p>'; + str += '</div>'; + } + } + $('.mList').append(str); + mPage++; + next = true; + if(res.data[49]==undefined){ + more = false; + } + } else { + layer.msg(res.msg); + } + } + }) + } + </script> +</html> diff --git a/footseen/Nesting/fireflyRmb/list/roomIncome.html b/footseen/Nesting/fireflyRmb/list/roomIncome.html new file mode 100644 index 0000000..a40281c --- /dev/null +++ b/footseen/Nesting/fireflyRmb/list/roomIncome.html @@ -0,0 +1,145 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <meta charset="utf-8" /> + <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/> + <meta name="apple-mobile-web-app-capable" content="yes"> + <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> + <meta content="telephone=no" name="format-detection"> + <meta name="wap-font-scale" content="no"> + <title></title> + <link rel="stylesheet" href="../layer-v3.1.0/layer.css"> + <link rel="stylesheet" href="../../../css/iosSelect.css?v=202010211440"> + <link rel="stylesheet" href="../css/reset.css"> + <link rel="stylesheet" href="css/index.css?v=202010211440"> + <script type="text/javascript" src="../js/fsize.js"></script> + + </head> + <body> + <div class="main"> + <div class="mHead"> + <span class="mHeadTitle ellipsis"></span> + <span class="mHeadChange" data-type="2"><font></font><font></font></span> + </div> + <div class="mChange hide"> + <p data-type="1"></p> + <p data-type="2"></p> + <p data-type="3"></p> + <p data-type="4"></p> + <p data-type="5"></p> + <p data-type=""></p> + </div> + <div class="mList"></div> + </div> + </body> + <script type="text/javascript" src="../js/jquery-3.2.1.min.js"></script> + <script type="text/javascript" src="../layer-v3.1.0/layer/layer.js"></script> + <script src="../../../lib/langchange.js?v=202010211440"></script> + <script type="text/javascript" src="js/common.js?v=202010211440"></script> + <script src="js/iosSelect.js"></script> + <script type="text/javascript"> + $('title').html(langList[langType].income1); + $('.mHeadTitle').html(langList[langType].income1+':'+'<font></font>'); + $(window).bind("scroll", function () { + if($(document).scrollTop() + $(window).height() > $(document).height() - 1 && next){ + if(more == true){ + if($('.mHeadChange').attr('data-type')==''){ + getData(mPage,$('.mHeadChange font:eq(0)').html()); + } else { + getData(mPage); + } + } + } + }) + + getData(mPage); + getUserIncomeTotal(2); + function getUserIncomeTotal(datatype,time){ + $.ajax({ + url:$ip+'/user/getUserIncomeTotal.html', + data:{ + page:1, + pageSize:50, + type:1, + date:time, + dataType:datatype, + }, + success:function(res){ + if(res.code == 1){ + $('.mHeadTitle font').html(res.total); + } else { + layer.msg(res.msg); + } + } + }) + } + function getData(page,time,type){ + $.ajax({ + url:$ip+'/user/getUserIncome.html', + data:{ + page:page, + pageSize:50, + type:1, + date:time, + dataType:$('.mHeadChange').attr('data-type'), + }, + success:function(res){ + if(res.code == 1){ + if(type){ + $('.mList').empty(); + more = true; + next = false; + mPage = 1; + } + var log = res.data; + var str = ''; + if(log.length>0){ + for(var i=0;i<log.length;i++){ + str += '<div class="mDetail">'; + if(log[i].avatar == '/user/boy.png' || log[i].avatar == 'user/giftl.png'){ + str += ' <img class="mDetailImg" src="https://app.ixiulive.com/static/images/head2.png?x-oss-process=image/resize,w_80" />'; + } else { + str += ' <img class="mDetailImg" src="'+cdn+log[i].avatar+'?x-oss-process=image/resize,w_80" />'; + } + str += ' <div class="mDetailInfo">'; + str += ' <p class="ellipsis">'+log[i].nickname+'</p>'; + if(log[i].number!=undefined){ + str += ' <p class="ellipsis">'+log[i].remark+'X'+log[i].number+'</p>'; + } else { + str += ' <p class="ellipsis">'+log[i].remark+'</p>'; + } + str += ' <p class="ellipsis">'+getTime(log[i].logtime.time)+'</p>'; + str += ' </div>'; + str += ' <div class="mDetailInfo2">'; + if(log[i].value>=0){ + str += ' <p class="ellipsis"><img src="../img/yumao3.png" />+'+log[i].value+'</p>'; + } else { + + str += ' <p class="ellipsis"><img src="../img/yumao3.png" />'+log[i].value+'</p>'; + } + str += ' </div>'; + str += '</div>'; + } + } else { + if(mPage == 1){ + str += '<div class="notData">'; + str += '<img src="../img/no-record.png"/>'; + str += '<p>'+langList[langType].income14+'</p>'; + str += '</div>'; + } + } + $('.mList').append(str); + mPage++; + next = true; + if(res.data[49]==undefined){ + more = false; + } + } else { + layer.msg(res.msg); + } + } + }) + } + </script> +</html> diff --git a/footseen/Nesting/fireflyRmb/list/videoIncome.html b/footseen/Nesting/fireflyRmb/list/videoIncome.html new file mode 100644 index 0000000..465b962 --- /dev/null +++ b/footseen/Nesting/fireflyRmb/list/videoIncome.html @@ -0,0 +1,159 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <meta charset="utf-8" /> + <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/> + <meta name="apple-mobile-web-app-capable" content="yes"> + <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> + <meta content="telephone=no" name="format-detection"> + <meta name="wap-font-scale" content="no"> + <title></title> + <link rel="stylesheet" href="../../../css/iosSelect.css?v=202010211440"> + <link rel="stylesheet" href="../layer-v3.1.0/layer.css"> + <link rel="stylesheet" href="../css/reset.css"> + <link rel="stylesheet" href="css/index.css?v=202010211440"> + <script type="text/javascript" src="../js/fsize.js"></script> + <style type="text/css"> + .mDetailInfo2 p:nth-child(3){ + color:#333; + } + </style> + </head> + <body> + <div class="main"> + <div class="mHead"> + <span class="mHeadTitle ellipsis"></span> + <span class="mHeadChange" data-type="2"><font></font><font></font></span> + </div> + <div class="mChange hide"> + <p data-type="1"></p> + <p data-type="2"></p> + <p data-type="3"></p> + <p data-type="4"></p> + <p data-type="5"></p> + <p data-type=""></p> + </div> + <div class="mList"></div> + </div> + </body> + <script type="text/javascript" src="../js/jquery-3.2.1.min.js"></script> + <script type="text/javascript" src="../layer-v3.1.0/layer/layer.js"></script> + <script src="../../../lib/langchange.js?v=202010211440"></script> + <script type="text/javascript" src="js/common.js?v=202010211440"></script> + <script src="js/iosSelect.js"></script> + <script type="text/javascript"> + $('title').html(langList[langType].income4); + $('.mHeadTitle').html(langList[langType].income4+':'+'<font></font>'); + $(window).bind("scroll", function () { + if($(document).scrollTop() + $(window).height() > $(document).height() - 1 && next){ + if(more == true){ + if($('.mHeadChange').attr('data-type')==''){ + getData(mPage,$('.mHeadChange font:eq(0)').html()); + } else { + getData(mPage); + } + } + } + }) + + getData(mPage); + getUserIncomeTotal(2); + function getUserIncomeTotal(datatype,time){ + $.ajax({ + url:$ip+'/user/getUserIncomeTotal.html', + data:{ + page:1, + pageSize:50, + type:2, + date:time, + dataType:datatype, + }, + success:function(res){ + if(res.code == 1){ + $('.mHeadTitle font').html(res.total); + } else { + layer.msg(res.msg); + } + } + }) + } + function getData(page,time,type){ + $.ajax({ + url:$ip+'/user/getUserIncome.html', + data:{ + page:page, + pageSize:50, + type:2, + date:time, + dataType:$('.mHeadChange').attr('data-type'), + }, + success:function(res){ + if(res.code == 1){ + if(type){ + $('.mList').empty(); + more = true; + next = false; + mPage = 1; + } + var log = res.data; + var str = ''; + if(log.length>0){ + for(var i=0;i<log.length;i++){ + str += '<div class="mDetail">'; + if(log[i].face == '/user/boy.png' || log[i].face == 'user/giftl.png'){ + str += ' <img class="mDetailImg" src="https://app.ixiulive.com/static/images/head2.png?x-oss-process=image/resize,w_80" />'; + } else { + str += ' <img class="mDetailImg" src="'+cdn+log[i].face+'?x-oss-process=image/resize,w_80" />'; + } + str += ' <div class="mDetailInfo">'; + str += ' <p class="ellipsis">'+langList[langType].income15+'</p>'; + str += ' <p class="ellipsis">'+langList[langType].income16+'</p>'; + str += ' <p class="ellipsis">'+getTime(log[i].createtime.time)+'</p>'; + str += ' </div>'; + str += ' <div class="mDetailInfo2">'; + str += ' <p class="ellipsis"><img src="../img/yumao3.png" />'+log[i].bonds+'</p>'; + str += ' <p class="ellipsis"><img src="../img/yumao3.png" />'+log[i].giftbonds+'</p>'; + str += ' <p class="ellipsis">'+langList[langType].income17+' '+getTime2(log[i].times)+'</p>'; + str += ' </div>'; + str += '</div>'; + } + } else { + if(mPage == 1){ + str += '<div class="notData">'; + str += '<img src="../img/no-record.png"/>'; + str += '<p>'+langList[langType].income14+'</p>'; + str += '</div>'; + } + } + $('.mList').append(str); + mPage++; + next = true; + if(res.data[49]==undefined){ + more = false; + } + } else { + layer.msg(res.msg); + } + } + }) + } + function getTime2(data){ + var time = data/1000; + var second = Math.floor(time % 60);//秒 + var minute = Math.floor((time/60)%60) //分 + var str = ''; + if(second!=0&&minute!=0){ + str = minute + langList[langType].income18 + second + langList[langType].income19; + } + if(second==0){ + str = minute + langList[langType].income18; + } + if(minute==0){ + str = second + langList[langType].income19; + } + + return str; + } + </script> +</html> diff --git a/footseen/Nesting/newShare/index.html b/footseen/Nesting/newShare/index.html index 56b5f7d..f14a782 100644 --- a/footseen/Nesting/newShare/index.html +++ b/footseen/Nesting/newShare/index.html @@ -59,7 +59,7 @@ if(langType!=0){ $('body').addClass('L_En') } - //var $url = 'http://ceshi.yabolive.tv/footseen'; + var $url = 'https://www.footseen.com/footseen'; $('title').html(langList[langType].share11); diff --git a/footseen/Nesting/withdraw/css/index.css b/footseen/Nesting/withdraw/css/index.css index 25efc24..978b735 100644 --- a/footseen/Nesting/withdraw/css/index.css +++ b/footseen/Nesting/withdraw/css/index.css @@ -20,7 +20,7 @@ body{ margin: 0 auto; padding-top: .266rem; } -.mTop{ +/*.mTop{ background: url(../img/bg.png) no-repeat; background-size: 9.226rem 7.76rem; width: 9.226rem; @@ -80,7 +80,7 @@ body{ font-size: 0.293rem; color:#999; margin-top: 0.48rem; -} +}*/ .mButton{ position: relative; width: 100%; @@ -242,3 +242,60 @@ body{ font-size: 0.346rem; color:#000; } + +.mBox{ + background-color: #FFF1F7; + border-radius: 0.32rem; + -webkit-border-radius: 0.32rem; + -moz-border-radius: 0.32rem; + -ms-border-radius: 0.32rem; + width: 8.8rem; + height: 3.866rem; + position: relative; + margin: 0 auto; +} +.mTopBoxTitle{ + position: absolute; + left: 0; + top: 0.96rem; + width: 100%; + font-size: 0.373rem; + color:#343434; + width: 100%; + text-align: center; + +} +.mTopBoxTitle span{ + background: url(../img/icon.png) no-repeat; + background-size: 100% 100%; + width: 0.306rem; + height: 0.373rem; + display: inline-block; + margin-right: 0.08rem; + vertical-align: middle; + margin-top: -.05rem; +} +.mTopBoxNum{ + font-size: 1.2rem; + color: #925EEB; + position: absolute; + left: 0; + top: 1.786rem; + text-align: center; + width: 100%; + font-weight: bold; +} +.mTopBoxNum span{ + background: url(../img/next.png?v=202010151904) no-repeat; + background-size: 100% 100%; + width: 0.186rem; + height: 0.32rem; + display: inline-block; + vertical-align: middle; + margin-top: -.2rem; + margin-left: 0.373rem; +} +.mBox2{ + background-color:#F1E8FF; + margin-top: 0.493rem; +} diff --git a/footseen/Nesting/withdraw/img/icon.png b/footseen/Nesting/withdraw/img/icon.png new file mode 100644 index 0000000..4227c78 Binary files /dev/null and b/footseen/Nesting/withdraw/img/icon.png differ diff --git a/footseen/Nesting/withdraw/index.html b/footseen/Nesting/withdraw/index.html index 96146ac..8ab254a 100644 --- a/footseen/Nesting/withdraw/index.html +++ b/footseen/Nesting/withdraw/index.html @@ -10,31 +10,487 @@ <meta name="wap-font-scale" content="no"> <title></title> <link rel="stylesheet" href="https://app.ixiulive.com/static/css/reset.css"> - <link rel="stylesheet" href="css/index.css?v=202004071813" /> + <link rel="stylesheet" href="../../layer-v3.1.0/layer/theme/default/layer.css"> + <link rel="stylesheet" href="css/index.css?v=202010211442" /> <script type="text/javascript" src="../../lib/fsize.js"></script> - <style type="text/css"> - .main{ - text-align: center; - } - .noPay{ - width:9.24rem; - height: 5.68rem; - position: relative; - } - - </style> + </head> <body> -<div class="main"></div> + <div class="main"> + <div class="mBox mBox1"> + <p class="mTopBoxTitle"></p> + <p class="mTopBoxNum ellipsis"></p> + </div> + <div class="mBox mBox2"> + <p class="mTopBoxTitle"></p> + <p class="mTopBoxNum ellipsis"></p> + </div> + + <div class="mButton"> + <div class="mBtn1 hide"></div> + <div class="mBtn2 hide"></div> + </div> + <p class="mBotton hide"></p> + </div> + <!--聯繫運營進行提現彈窗--> + <div class="mask mask1 hide"> + <div class="mask1Title"> + <p></p> + <p>LINE:aq787</p> + </div> + <div class="mask1Btn"></div> + </div> + <!--綁定手機號彈窗---> + <div class="mask mask2 hide"> + <p class="mask2Title"></p> + <div class="mask2Info"> + <p></p> + <p></p> + </div> + <div class="maskBtn mask2Btn"> + <span></span> + <span></span> + </div> + </div> + <!--提現申請確定彈窗--> + <div class="mask mask3 hide"> + <div class="mask3Title"></div> + <div class="maskBtn mask3Btn"> + <span></span> + <span></span> + </div> + </div> + <!--提現申請成功彈窗--> + <div class="mask mask4 hide"> + <div class="mask4Title"> + <p></p> + <p></p> + </div> + <div class="mask4Btn"></div> + </div> + </body> <script src="../../lib/jquery-3.1.1.min.js"></script> -<script src="../../lib/langchange.js?v=202004071813"></script> +<script src="../../layer-v3.1.0/layer/layer.js"></script> +<script src="../../lib/langchange.js?v=202010211442"></script> <script> $('title').html(langList[langType].draw1); - if(langType == 0){ - $('.main').html('<img src="img/no_cn.png" class="noPay"/>'); - } else { - $('.main').html('<img src="img/no_en.png" class="noPay"/>'); + $('.mBox1 .mTopBoxTitle').html('<span></span>'+langList[langType].draw2); + $('.mBox2 .mTopBoxTitle').html('<span></span>'+langList[langType].draw3); + + $('.mBtn1').html(langList[langType].draw4); + $('.mBtn2').html(langList[langType].draw5); + $('.mBotton').html(langList[langType].draw6); + + $('.mask1Title p').eq(0).html(langList[langType].draw7); + $('.mask1Btn').html(langList[langType].draw8); + $('.mask2Title').html(langList[langType].draw9); + $('.mask2Info p').eq(0).html(langList[langType].draw10); + $('.mask2Info p').eq(1).html(langList[langType].draw11); + $('.mask2Btn span:eq(0),.mask3Btn span:eq(0)').html(langList[langType].draw12); + $('.mask2Btn span:eq(1),.mask3Btn span:eq(1)').html(langList[langType].draw8); + $('.mask4Title p').eq(0).html(langList[langType].draw13); + $('.mask4Title p').eq(1).html(langList[langType].draw14); + $('.mask4Btn').html(langList[langType].draw15) + + + var $url = "https://www.footseen.com"; + //右上角记录图标 + + try{ + var obj2 = { + "cid": 9, + "reqCode": new Date().getTime(), + "data": { + "msg": '是否分享或帮助', + "shareType": 0, + "helpType": 0, + "drawType":1, + "iconUrl":'https://app.ixiulive.com/static/images/tximg.png', + "toUrl":$url+'/footseen/Nesting/withdraw/fireflyRmb/takeOut.html' + } + } + var obj = JSON.stringify(obj2); + appCollaboration(obj); + + } + catch(err){ + console.log(err) + } + +var priceObj = { + 1:{ + name:langList[langType].draw17, + unit:'¥' + }, + 2:{ + name:langList[langType].draw18, + unit:'$' } +} +var flag1= true; +var flag2 = true; + var data = getRequest() + if(sessionStorage.bbb==undefined || sessionStorage.bbb=="undefined"){ + sessionStorage.bbb = data.uid; + sessionStorage.lang = data.lang; + sessionStorage.kkk = data.token; + } + + + inituserbindway(); + + function inituserbindway(){ + $.ajax({ + url:$ip+'/withdraw/inituserbindway.html', + type:'post', + data: { + os: "WEB", + cid: "web_gw", + lang: sessionStorage.lang, + uid: sessionStorage.bbb, + token: sessionStorage.kkk + }, + dataType: "JSON", + success:function(res){ + if(res.code == 1){ + + + $('.mBox1 .mTopBoxNum').html(res.bonds+'<span></span>'); + $('.mBox2 .mTopBoxNum').html(res.havebonds+'<span></span>'); + getbindway(res); + + + sessionStorage.currency = res.currency; + + + } else { + layer.msg(res.msg); + } + } + }) + } + + //获取绑定设置的提现方式 + function getbindway(info){ + $.ajax({ + url:$ip+'/withdraw/checkuserbindway.html', + type:'post', + data: { + os: "WEB", + cid: "web_gw", + lang: sessionStorage.lang, + uid: sessionStorage.bbb, + token: sessionStorage.kkk + }, + dataType: "JSON", + success:function(res){ + $('.mBtn1').unbind('click'); + var sFlag = true; + + var arr = [-555,-70016,-70017,-80000]; + + for(var i=0;i<arr.length;i++){ + if(res.code == arr[i]){ + sFlag = false; + } + } + console.log(sFlag); + //溫馨提示:paypal提現最低金額20$,14000羽毛=20美金。 這句話先隱藏一周 + if(sFlag){ + $('.mBtn1,.mBtn2').removeClass('hide'); + //$('.mBtn1,.mBtn2,.mBotton').removeClass('hide'); + } else { + $('.mBtn1,.mBtn2').addClass('hide'); + //$('.mBtn1,.mBtn2,.mBotton').addClass('hide'); + } + if(res.code == 1){ + + if(info.bindcode == 102){ + $('.mBtn1').on('click',function(){ + layer.msg(langList[langType].draw19) + }) + } else if(info.bindcode == 4) { + //支付宝提现 + $('.mBtn1').on('click',function(){ + if(!flag1)return; + flag1 = false; + var html = ''; + var card = info.cardaddr; + var cardNum = info.cardaddr; + var str = ''; + if(sessionStorage.lang!=2){ + str += '<p class="ellipsis">'+langList[langType].draw20+'<span> '+info.cashmount+' </span>'+priceObj[info.currency].name+' '+langList[langType].draw21+'</p>'; + } else { + str += '<p class="ellipsis">'+langList[langType].draw20+'<span>'+info.cashmount+'</span>'+priceObj[info.currency].name+langList[langType].draw21+'</p>'; + } + if(card.length>7){ + for(var i=0;i<card.length-7;i++){ + html+='*'; + } + cardNum = card.substring(0,3)+html+card.substring(card.length-4); + } + + str += '<p class="ellipsis"><span>'+langList[langType].draw22+':'+cardNum+'</span>'+langList[langType].draw23+'</p>'; + $('.mask3Title').html(str); + //支付寶提現提交 + $('.mask3Btn span:eq(1)').unbind('click'); + $('.mask3Btn span:eq(1)').on('click',function(){ + withDrad(info.cashmount); + }) + layer.open({ + type: 1, + title: false, + shadeClose: true, + shade: .4, + area: ['7.2rem', ''], + closeBtn: 0, + content: $('.mask3'), + end: function() { + flag1 = true; + } + }) + + }) + } else if(info.bindcode == 2){ + //银行卡提现 + $('.mBtn1').on('click',function(){ + if(!flag1)return; + flag1 = false; + var html = ''; + var card = info.cardaddr; + var cardNum = info.cardaddr; + var str = ''; + if(sessionStorage.lang!=2){ + str += '<p class="ellipsis">'+langList[langType].draw20+'<span> '+info.cashmount+' </span>'+priceObj[info.currency].name+' '+langList[langType].draw21+'</p>'; + } else { + str += '<p class="ellipsis">'+langList[langType].draw20+'<span>'+info.cashmount+'</span>'+priceObj[info.currency].name+langList[langType].draw21+'</p>'; + } + if(info.cardaddr.length>7){ + for(var i=0;i<card.length-7;i++){ + html+='*'; + } + cardNum = card.substring(0,4)+html+card.substring(card.length-3); + } + str += '<p class="ellipsis"><span>'+info.cardfrom+':'+cardNum+'</span>'+langList[langType].draw23+'</p>'; + $('.mask3Title').html(str); + //支付寶提現提交 + $('.mask3Btn span:eq(1)').unbind('click'); + $('.mask3Btn span:eq(1)').on('click',function(){ + withDrad(info.cashmount); + }) + layer.open({ + type: 1, + title: false, + shadeClose: true, + shade: .4, + area: ['7.2rem', ''], + closeBtn: 0, + content: $('.mask3'), + end: function() { + flag1 = true; + } + }) + + }) + } else if(info.bindcode == 3){ + //绑定了paypal + $('.mBtn1').on('click',function(){ + var obj = { + "cid":12, + "reqCode": new Date().getTime(), + "data": { + "msg":'跳转集合功能', + "jumptype":3, + "url":$url+'/footseen/Nesting/withdraw/fireflyRmb/payPalTrue.html'+location.search, + } + } + var obj2 = JSON.stringify(obj); + appCollaboration(obj2); + }) + } else if(info.bindcode == 103){ + //没有绑定提现方式 + $('.mBtn1').on('click',function(){ + var obj = { + "cid":12, + "reqCode": new Date().getTime(), + "data": { + "msg":'跳转集合功能', + "jumptype":3, + "url":$url+'/footseen/Nesting/withdraw/drawMethod.html'+location.search, + } + } + var obj2 = JSON.stringify(obj); + appCollaboration(obj2); + }) + } + } else if(res.code == -70004){ + //未绑定手机号 + $('.mBtn1').on('click',function(){ + layer.open({ + type: 1, + title: false, + shadeClose: true, + shade: .4, + area: ['7.2rem', ''], + closeBtn: 0, + content: $('.mask2'), + end: function() { + } + }) + }) + } else if(res.code == -70016 || res.code == -70017){ + //-70016 您的提現請聯繫平台運營處理 -70017 請聯繫您的公會長處理提現事宜,如有疑問請聯繫客服 + $('.mBtn1').on('click',function(){ + layer.open({ + type: 1, + title: false, + shadeClose: true, + shade: .4, + area: ['7.2rem', ''], + closeBtn: 0, + content: $('.mask1'), + end: function() { + } + }) + }) + } else if(res.code == -70009){ + $('.mBtn1').on('click',function(){ + if(sessionStorage.currency == 1){ + layer.msg(langList[langType].draw62); + } else if(sessionStorage.currency == 2){ + layer.msg(langList[langType].draw63); + } + }) + } else { + $('.mBtn1').on('click',function(){ + layer.msg(res.msg); + }) + } + } + }) + } + + //关闭弹窗 + $('.mask1Btn,.mask2Btn span:eq(0),.mask5Btn,.mask3Btn span:eq(0),.mask4Btn').on('click',function(){ + layer.closeAll(); + }) + + //跳转到绑定手机页面 + $('.mask2Btn span:eq(1)').on('click',function(){ + var obj2 = { + "cid": 7, + "reqCode": new Date().getTime(), + "data": { + msg: '点击跳转绑定手机页面', + } + } + var obj = JSON.stringify(obj2); + appCollaboration(obj); + }) + + //打开兑换宝石页面 + $('.mBtn2').on('click',function(){ + var obj2 = { + "cid": 6, + "reqCode": new Date().getTime(), + "data":{ + "msg":'打开兑换寶石' + } + } + var obj = JSON.stringify(obj2); + appCollaboration(obj); + }) + function appCollaboration(msg) { + var sUserAgent = navigator.userAgent.toLowerCase(); + var bIsIpad = sUserAgent.match(/ipad/i) == "ipad"; + var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os"; + var bIsMidp = sUserAgent.match(/midp/i) == "midp"; + var bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4"; + var bIsUc = sUserAgent.match(/ucweb/i) == "ucweb"; + var bIsAndroid = sUserAgent.match(/android/i) == "android"; + var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce"; + var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile"; + if (!(bIsIpad || bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM)) { + } + else if (bIsAndroid) { + window.yazhai.appCollaboration(msg); + } else if (bIsIphoneOs || bIsIpad) { + window.webkit.messageHandlers.appCollaboration.postMessage(msg); + } + } + + //確定提現 + function withDrad(amount){ + if(!flag2)return; + flag2 = false; + layer.closeAll(); + $.ajax({ + url:$ip+'/withdraw/applyE.html', + type:'post', + data: { + os: "WEB", + cid: "h5_footseen", + lang: sessionStorage.lang, + uid: sessionStorage.bbb, + token: sessionStorage.kkk, + amount:amount, + }, + dataType: "JSON", + success:function(res){ + if(res.code == 1){ + flag2 = true; + layer.open({ + type: 1, + title: false, + shadeClose: true, + shade: .4, + area: ['7.2rem', ''], + closeBtn: 0, + content: $('.mask4'), + end: function() { + flag2 = true; + inituserbindway(); + } + }) + } else { + layer.msg(res.msg); + flag2 = true; + } + } + }) + } + + + //前往累计羽毛页面 + $('.mBox1 .mTopBoxNum').on('click',function(){ + var obj = { + "cid":12, + "reqCode": new Date().getTime(), + "data": { + "msg":'跳转集合功能', + "jumptype":3, + "url":$url+'/footseen/Nesting/fireflyRmb/index.html'+location.search, + } + } + var obj2 = JSON.stringify(obj); + appCollaboration(obj2); + }) + //前往可提现羽毛页面 + $('.mBox2 .mTopBoxNum').on('click',function(){ + var obj = { + "cid":12, + "reqCode": new Date().getTime(), + "data": { + "msg":'跳转集合功能', + "jumptype":3, + "url":$url+'/footseen/Nesting/fireflyRmb/canFireFly.html'+location.search, + } + } + var obj2 = JSON.stringify(obj); + appCollaboration(obj2) + }) + + </script> </html> diff --git a/share.html b/share.html index f84d557..5495562 100644 --- a/share.html +++ b/share.html @@ -140,7 +140,7 @@ </body> <script src="https://www.footseen.com/js/jquery-3.1.1.min.js"></script> <script src="https://www.footseen.com/js/swiper.min.js"></script> - <script type="text/javascript" src="https://www.footseen.com/js/langAndorid.js?v=202010211044" ></script> + <script type="text/javascript" src="https://www.footseen.com/js/langAndorid.js?v=202010211450" ></script> <script src='https://www.footseen.com/layer-v3.1.0/layer/layer.js'></script> <script type="text/javascript"> diff --git a/share2.html b/share2.html index 6d2a2a2..90e9b87 100644 --- a/share2.html +++ b/share2.html @@ -90,7 +90,7 @@ </body> <script src="https://www.footseen.com/js/jquery-3.1.1.min.js"></script> <script src="https://www.footseen.com/js/swiper.min.js"></script> -<script type="text/javascript" src="https://www.footseen.com/js/langIos.js?v=202010211044" ></script> +<script type="text/javascript" src="https://www.footseen.com/js/langIos.js?v=202010211450" ></script> <script src='https://www.footseen.com/layer-v3.1.0/layer/layer.js'></script> <script type="text/javascript"> -- libgit2 0.25.0