123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="Cache-Control" content="no-cache,no-store,no-siteapp,must-revalidate">
- <meta http-equiv="pragma" content="no-cache">
- <meta http-equiv="expires" content="0">
- <meta name="author" content="">
- <meta name="description" content=""/>
- <meta name="keywords" content="扫码支付,线上投币,运营数据,物联网"/>
- <meta name="format-detection" content="telephone=no,email=no">
- <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
- <title>提现记录</title>
- <link rel="stylesheet" href="https://cdn.washpayer.com/components/lib/mui.min.css">
- <link rel="stylesheet" href="/components/custom/css/common.css">
- <link rel="stylesheet" href="/app/css/xyf.common.min.css">
- </head>
- <body>
- <header class="page-head">
- <p class="padding-10">累计提现:<em id="withdrawalCount">0</em>次,<em id="withdraw">0.00</em>元</p>
- </header>
- <div id="pullrefresh" class="mui-scroll-wrapper wallet-bd">
- <div class="mui-scroll">
- <ul class="mui-table-view"></ul>
- </div>
- </div>
- <script src="https://cdn.washpayer.com/components/lib/jquery.min.js" ></script>
- <script src="https://cdn.washpayer.com/components/lib/mui.min.js" ></script>
- <script src="/components/custom/js/common.js"></script>
- <script src="/app/js/xyf.common.js"></script>
- <script>
- mui.init({
- pullRefresh: {
- container: '#pullrefresh',
- up: {
- contentrefresh: '正在加载...',
- contentnomore: '没有更多数据了...',
- callback: pullupRefresh
- }
- }
- });
- /* 上拉加载具体业务实现*/
- var pageIndex = 0;
- var total = 0;
- function pullupRefresh() {
- pageIndex++;
- var url = "/dealer/withdrawalsHistoryList";
- var data = {"pageIndex": pageIndex, "pageSize": 10};
- sendRequest(url,"GET",data,function(res){
- if (res.result == 1) {
- if (pageIndex == 1) {
- total = res.para.total;
- if (total == 0) {
- $('#pullrefresh').addClass('mui-hidden');
- $('.page-head').addClass('mui-hidden');
- $("body").append('<div class="nomore"></div>');
- }
- $("#withdrawalCount").text(total);//累计提现次数
- $("#withdraw").text((res.para.withdrawalTotal||0));
- }
- var length = res.para.dataList.length;
- mui('#pullrefresh').pullRefresh().endPullupToRefresh((pageIndex * 10 >= total));//参数为true代表没有更多数据了。
- var table = document.body.querySelector('.mui-table-view');
- for (var i = 0; i < length; i++) {
- var obj = res.para.dataList[i];
- var li = document.createElement('li');
- var colorStyle = "";
- if (obj.statusText == "已提交申请") {
- colorStyle = "c-lgreen ";
- } else if (obj.statusText == "提现成功") {
- colorStyle = "c-green";
- } else if (obj.statusText == "处理中") {
- colorStyle = "c-lgreen";
- } else if (obj.statusText == "提现失败") {
- colorStyle = "font-b-4";
- } else if (obj.statusText == "提现单关闭") {
- colorStyle = "font-b-4";
- }
- li.className = 'mui-table-view-cell';
- li.innerHTML = '<a href="wallet-transactions-details.html?paymentId=' + obj.paymentId + '">' +
- '<div class="mui-clearfix"><span>' + obj.bankName +
- '</span><span class="font-18 font-b-10 mui-pull-right"><em class="font-12">¥</em>' + obj.amount + '</span>' +
- '</div>' +
- '<div class="font-13 margin-t-5"><span class="font-b-6">' + obj.withdrawalsDate +
- '</span><span class="mui-pull-right ' + colorStyle +
- '">' + obj.statusText + (obj.refunded ? '(已退还)' : '') + '</span>' +
- '</div>' +
- '</a>';
- table.appendChild(li);
- }
- mui('body').on('tap','a',function(){
- var href = this.getAttribute('href').trim();
- if(href != ''){
- goPage(href);
- }
- });
- } else {
- mui.toast(res.description);
- }
- });
- }
- if (mui.os.plus) {
- mui.plusReady(function () {
- setTimeout(function () {
- mui('#pullrefresh').pullRefresh().pullupLoading();
- }, 1000);
- });
- } else {
- mui.ready(function () {
- mui('#pullrefresh').pullRefresh().pullupLoading();
- });
- }
- mui('body').on('tap','a',function(){
- var href = this.getAttribute('href').trim();
- if(href != ''){
- goPage(href);
- }
- });
- </script>
- </body>
- </html>
|