You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
47
hyhproject/wechat2/view/default/users/cashdraws/cashdraws.js
Executable file
47
hyhproject/wechat2/view/default/users/cashdraws/cashdraws.js
Executable file
@ -0,0 +1,47 @@
|
||||
jQuery.noConflict();
|
||||
// 获取提现记录
|
||||
function getCashDraws(){
|
||||
$('#Load').show();
|
||||
loading = true;
|
||||
var param = {};
|
||||
param.pagesize = 10;
|
||||
param.page = Number( $('#currPage').val() ) + 1;
|
||||
$.post(WST.U('wechat/cashdraws/pageQuery'), param, function(data){
|
||||
var json = WST.toJson(data.data);
|
||||
var html = '';
|
||||
if(json && json.Rows && json.Rows.length>0){
|
||||
var gettpl = document.getElementById('scoreList').innerHTML;
|
||||
laytpl(gettpl).render(json.Rows, function(html){
|
||||
$('#score-list').append(html);
|
||||
});
|
||||
|
||||
$('#currPage').val(json.CurrentPage);
|
||||
$('#totalPage').val(json.TotalPage);
|
||||
}else{
|
||||
html += '<div class="wst-prompt-icon"><img src="'+ window.conf.WECHAT +'/img/nothing-relevant.png"></div>';
|
||||
html += '<div class="wst-prompt-info">';
|
||||
html += '<p>暂无相关信息</p>';
|
||||
html += '</div>';
|
||||
$('#score-list').html(html);
|
||||
}
|
||||
loading = false;
|
||||
$('#Load').hide();
|
||||
echo.init();//图片懒加载
|
||||
});
|
||||
}
|
||||
var currPage = totalPage = 0;
|
||||
var loading = false;
|
||||
$(document).ready(function(){
|
||||
getCashDraws();
|
||||
WST.initFooter('user');
|
||||
$(window).scroll(function(){
|
||||
if (loading) return;
|
||||
if ((5 + $(window).scrollTop()) >= ($(document).height() - screen.height)) {
|
||||
currPage = Number( $('#currPage').val() );
|
||||
totalPage = Number( $('#totalPage').val() );
|
||||
if( totalPage > 0 && currPage < totalPage ){
|
||||
getCashDraws();
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
52
hyhproject/wechat2/view/default/users/cashdraws/list.html
Executable file
52
hyhproject/wechat2/view/default/users/cashdraws/list.html
Executable file
@ -0,0 +1,52 @@
|
||||
{extend name="default/base" /}
|
||||
{block name="title"}提现记录 - {__block__}{/block}
|
||||
{block name="css"}
|
||||
<link rel="stylesheet" href="__WECHAT__/css/cashdraws.css?v={$v}">
|
||||
{/block}
|
||||
{block name="header"}
|
||||
<header style="background:#ffffff;" class="ui-header ui-header-positive ui-border-b wst-header">
|
||||
<i class="ui-icon-return" onclick="history.back()"></i><h1>提现记录</h1>
|
||||
</header>
|
||||
{/block}
|
||||
{block name="main"}
|
||||
|
||||
<script type="text/html" id="scoreList">
|
||||
<ul class="ui-row score-detail">
|
||||
{{# for(var i=0;i<d.length;i++){ }}
|
||||
<li class="ui-col ui-col-75">
|
||||
<p>{{d[i].accUser}}</p>
|
||||
<p>{{d[i].accTargetName}}{{d[i].accAreaName}}</p>
|
||||
<span class="score-time">{{d[i].createTime}}</span>
|
||||
</li>
|
||||
<li class="ui-col ui-col-25 score-text">
|
||||
{{#if(d[i].cashSatus==1){}}
|
||||
<span style="color:green;">已通过</span>
|
||||
{{#}else if(d[i].cashSatus==-1){}}
|
||||
失败
|
||||
{{#}else{}}
|
||||
<span style="color: #59595c;">待处理</span>
|
||||
{{#}}}
|
||||
<br />
|
||||
- {{d[i].money}}
|
||||
</li>
|
||||
{{#if(d[i].cashSatus==-1){}}
|
||||
<li class="ui-col">提现失败原因:{{d[i].cashRemarks}}</li>
|
||||
{{#}}}
|
||||
<div class="wst-clear"></div>
|
||||
<div class="score-line"></div>
|
||||
{{# } }}
|
||||
</ul>
|
||||
</script>
|
||||
|
||||
<input type="hidden" name="" value="" id="currPage" autocomplete="off">
|
||||
<input type="hidden" name="" value="" id="totalPage" autocomplete="off">
|
||||
<section class="ui-container">
|
||||
<div id="score-list"></div>
|
||||
</section>
|
||||
|
||||
|
||||
{/block}
|
||||
{block name="js"}
|
||||
<script type='text/javascript' src='__WECHAT__/js/jquery.min.js'></script>
|
||||
<script type='text/javascript' src='__WECHAT__/users/cashdraws/cashdraws.js?v={$v}'></script>
|
||||
{/block}
|
Reference in New Issue
Block a user