Init Repo

This commit is contained in:
root
2019-09-06 23:53:10 +08:00
commit f0ef89dfbb
7905 changed files with 914138 additions and 0 deletions

View File

@ -0,0 +1,70 @@
{extend name="default/shops/base" /}
{block name="title"}资金流水-卖家中心{__block__}{/block}
{block name="content"}
<div class='money-head'>
<div class='shop-logo'><img height='100' width='100' src='__IMGURL__/{:session("WST_USER.shopImg")}'></div>
<div class='shop-info'>
<div class='shopName'>{:session('WST_USER.shopName')}</div>
<div class='shopMoney'>
可用资金:<font color='red'>¥{$object['shopMoney']}</font>
冻结资金:<font color='red'>¥{$object['lockMoney']}</font>
</div>
<div class="money-rows">
<div class='shopMoney wst-lfloat'>
应缴质保金:<font color='red'>¥{$object['deposit']['payDeposit']}</font>
店铺质保金:<font color='red'>¥{$object['deposit']['cashDeposit']}</font>
质保金:{if $object['deposit']['isFinish'] ==1} <font color='red'>已交齐</font>{else /}<font color='green'>未交齐</font>{/if}
</div>
</div>
</div>
</div>
<div class='wst-user-content'>
<div id='tab' class="wst-tab-box">
<ul class="wst-tab-nav">
<li>资金流水</li>
<li>资金收入</li>
<li>资金支出</li>
<li>质保金流水</li>
</ul>
<table class='wst-list' style="font-size:13px;">
<thead>
<tr>
<th width='150'>来源/用途</th>
<th width='100'>金额</th>
<th width='130'>日期</th>
<th width='100'>外部流水号</th>
<th width='*'>备注</th>
</tr>
</thead>
<script id="tblist" type="text/html">
{{# for(var i = 0; i < d.length; i++){ }}
<tr>
<td>{{d[i].dataSrc}}</td>
<td>
{{# if(d[i].moneyType==1){ }}
<span class="money-add">+ ¥{{ d[i].money }}</span>
{{# }else{ }}
<span class='money-reduce'> - ¥{{ d[i].money }}</span>
{{# } }}
</td>
<td>{{ d[i].createTime }}</td>
<td>{{ WST.blank(d[i].tradeNo,'-')}}</td>
<td style='line-height:23px'>{{ d[i].remark }}</td>
</tr>
{{# } }}
</script>
<tbody id="page-list"></tbody>
<tfoot>
<tr>
<td colspan='5' align="center" style='padding:5px 0px 5px 0px'>
<div id="pager"></div>
</td>
</tr>
</tfoot>
</table>
</div>
</div>
{/block}
{block name="js"}
<script type='text/javascript' src='__STYLE__/shops/logmoneys/logmoneys.js?v={$v}'></script>
{/block}

View File

@ -0,0 +1,77 @@
$(function () {
$('#tab').TabPanel({tab:0,callback:function(tab){
switch(tab){
case 0:pageQuery(0,-1);break;
case 1:pageQuery(0,1);break;
case 2:pageQuery(0,0);break;
case 3:pageDeposit(0,2);break;
}
}})
});
function pageQuery(p,type){
var tips = WST.load({msg:'正在获取数据,请稍后...'});
var params = {};
params.page = p;
params.type = type;
$.post(WST.U('home/logmoneys/pageShopQuery'),params,function(data,textStatus){
layer.close(tips);
var json = WST.toJson(data);
if(json.status==1){
json = json.data;
var gettpl = document.getElementById('tblist').innerHTML;
laytpl(gettpl).render(json.Rows, function(html){
$('#page-list').html(html);
});
if(json.TotalPage>1){
laypage({
cont: 'pager',
pages:json.TotalPage,
curr: json.CurrentPage,
skin: '#e23e3d',
groups: 3,
jump: function(e, first){
if(!first){
pageQuery(e.curr,type);
}
}
});
}else{
$('#pager').empty();
}
}
});
}
//商家质保金流水
function pageDeposit(p,type){
var tips = WST.load({msg:'正在获取数据,请稍后...'});
var params = {};
params.page = p;
// params.type = type;
$.post(WST.U('home/logmoneys/pageShopDeposit'),params,function(data,textStatus){
layer.close(tips);
var json = WST.toJson(data);
if(json.status==1){
json = json.data;
var gettpl = document.getElementById('tblist').innerHTML;
laytpl(gettpl).render(json.Rows, function(html){
$('#page-list').html(html);
});
if(json.TotalPage>1){
laypage({
cont: 'pager',
pages:json.TotalPage,
curr: json.CurrentPage,
skin: '#e23e3d',
groups: 3,
jump: function(e, first){
if(!first){
pageQuery(e.curr,type);
}
}
});
}else{
$('#pager').empty();
}
}
});
}