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,94 @@
var mmg;
$(function(){
var laydate = layui.laydate;
laydate.render({
elem: '#startDate'
});
laydate.render({
elem: '#endDate'
});
})
function initGrid(){
var h = WST.pageHeight();
var cols = [
{title:'ECT交易ID', name:'ectId', width: 100,sortable: true},
{title:'会员名称', name:'loginName' ,width:100,sortable: true},
{title:'ECT获取方式', name:'dataSrc' ,width:60,sortable: true,renderer:function(val,item,rowIndex){
if(item['dataSrc']=="1"){
return '注册';
}else if(item['dataSrc']=="2"){
return "推荐";
}else if(item['dataSrc']=="3"){
return "交易";
}else if(item['dataSrc']=="4"){
return "提现";
}else if(item['dataSrc']=="5"){
return "联盟积分转换";
}else if(item['dataSrc']=="6"){
return "成为商家";
}else if(item['dataSrc']=="7"){
return "推荐成为商家";
}else if(item['dataSrc']=="8"){
return "成为线上商城商家";
}else if(item['dataSrc']=="9"){
return "推荐成为线上商城商家";
}else if(item['dataSrc']=="10"){
return "";
}else if(item['dataSrc']=="11"){
return "购物";
}else if(item['dataSrc']=="12"){
return "结算";
}else if(item['dataSrc']=="13"){
return "退款";
}else if(item['dataSrc']=="14"){
return "充值";
}else {
return "";
}
}},
{title:'备注', name:'dataRemarks' ,width:40,sortable: true},
{title:'ECT变动数量', name:'ectNum' ,width:40,sortable: true, renderer:function(val,item,rowIndex){
return '¥'+val;
}},
{title:'创建时间', name:'createTime' ,width:40,sortable: true,renderer:function(val,item,rowIndex){
var today=new Date(parseInt(item['createTime'])*1000);
var y=today.getFullYear();
var m=today.getMonth()+1;
var d=today.getDate();
var h=today.getHours();
var i=today.getMinutes();
var s=today.getSeconds();
return (y+"-"+m+"-"+d+" "+h+""+i+""+s);
}}
];
mmg = $('.mmg').mmGrid({height: h-173,indexCol: true,indexColWidth:50, cols: cols,method:'POST',nowrap:true,
url: WST.U('admin/ectdeal/pageQuery'), fullWidthRows: true, autoLoad: true,remoteSort: true,sortName:'createTime',sortStatus:'desc',
remoteSort:true ,
sortName: 'ectNo',
sortStatus: 'desc',
plugins: [
$('#pg').mmPaginator({})
]
});
$('#headTip').WSTTips({width:90,height:35,callback:function(v){
var diff = v?173:128;
mmg.resize({height:h-diff})
}});
mmg.on('loadSuccess',function(e,data){
if(data.items[0].sumEct!=undefined){
$('#sunNum').text(data.items[0].sumEct);
}
if(data.items[0].sumCashEct!=undefined){
$('#sumCashEct').text(data.items[0].sumCashEct);
}
if(data.items[0].sumCashChong!=undefined){
$('#sumCashChong').text(data.items[0].sumCashChong);
}
})
}
function loadGrid(){
var p = WST.getParams('.j-ipt');
p.page = 1;
mmg.load(p);
}

View File

@ -0,0 +1,43 @@
{extend name="base" /}
{block name="css"}
<link rel="stylesheet" type="text/css" href="__ADMIN__/js/mmgrid/mmGrid.css?v={$v}" />
{/block}
{block name="js"}
<script src="__ADMIN__/js/mmgrid/mmGrid.js?v={$v}" type="text/javascript"></script>
<script src="__ADMIN__/ectdeal/ectdeal.js?v={$v}" type="text/javascript"></script>
{/block}
{block name="main"}
<div id='alertTips' class='alert alert-success alert-tips fade in'>
<div id='headTip' class='head'><i class='fa fa-lightbulb-o'></i>操作说明</div>
<ul class='body'>
<li>本功能主要用于查看会员以及商户获取ECT途径</li>
</ul>
</div>
<div class="wst-toolbar">
<input type="text" id="startDate" name="startDate" class="laydate-icon j-ipt" maxLength="20" value='' placeholder='开始日期'/>
<input type="text" id="endDate" name="endDate" class="laydate-icon j-ipt" maxLength="20" value='' placeholder='结束日期'/>
<input type="text" name="loginName" placeholder='会员名称' id="loginName" class='j-ipt' value="{$Request.param.loginName}"/>
<button class="btn btn-primary" id="search" onclick='javascript:loadGrid(0)'><i class="fa fa-search"></i>查询</button>
<span style="font-size: 14px;margin-left: 50px;">ect结算总金额: <span id="sunNum"></span></span>
<span style="font-size: 14px;margin-left: 50px;">ect提现总金额: <span id="sumCashEct"></span></span>
<span style="font-size: 14px;margin-left: 50px;">ect充值总金额: <span id="sumCashChong"></span></span>
<button class="btn btn-primary f-right btn-fixtop" onclick='javascript:history.back()'><i class="fa fa-sign-in"></i>返回</button>
<!-- <button class="btn btn-primary f-right btn-fixtop" onclick='javascript:toExport(0)'><i class="fa fa-sign-in"></i>导出</button> -->
<div style='clear:both'></div>
</div>
<div class='wst-grid'>
<div id="mmg" class="mmg"></div>
<div id="pg" style="text-align: right;"></div>
</div>
<script>
$(function(){
initGrid();
if($('#loginName').val()!=''){
$('#search').click();
}
})
</script>
{/block}