73 lines
3.1 KiB
HTML
Executable File
73 lines
3.1 KiB
HTML
Executable File
{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__/shops/shops.js?v={$v}" type="text/javascript"></script>
|
|
{/block}
|
|
{block name="main"}
|
|
<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='结束日期'/>
|
|
<select name="nonTime" id="nonTime" class="query j-ipt" >
|
|
<option value="">请选择未登录天数</option>
|
|
<option value="20">20天未登录</option>
|
|
<option value="30">30天未登录</option>
|
|
<option value="40">40天未登录</option>
|
|
<option value="50">50天未登录</option>
|
|
</select>
|
|
<button class="btn btn-primary" onclick='javascript:loadGrid(0)'><i class='fa fa-search'></i>查询</button>
|
|
<button class="btn btn-primary btn-fixtop f-right" style="margin-left: 10px;" onclick='javascript:toExports()'><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(){
|
|
var laydate = layui.laydate;
|
|
laydate.render({
|
|
elem: '#startDate'
|
|
});
|
|
laydate.render({
|
|
elem: '#endDate'
|
|
});
|
|
})
|
|
function initDetailGrid(){
|
|
var h = WST.pageHeight();
|
|
var cols = [
|
|
{title:'店铺名称', name:'shopName',width:100 },
|
|
{title:'公司名称', name:'shopCompany',width:100 },
|
|
{title:'注册时间', name:'applyTime',width:100 },
|
|
{title:'联系人姓名', name:'shopkeeper',width:60 },
|
|
{title:'联系人电话', name:'telephone',width:60 },
|
|
{title:'未登录天数', name:'nonTime',width:30,align:'center' },
|
|
{title:'登录频次', name:'loginNum',width:30,align:'center' },
|
|
{title:'商品数量', name:'goodsNum',width:30,align:'center' },
|
|
{title:'未付款订单', name:'nonpayOrder',width:10,align:'center' },
|
|
{title:'交易成功', name:'successOrder',width:10,align:'center' },
|
|
{title:'已取消订单', name:'cancelOrder',width:10,align:'center' },
|
|
{title:'已发货订单', name:'deliveredOrder',width:30,align:'center' },
|
|
];
|
|
|
|
mmg = $('.mmg').mmGrid({height: (h-85),indexCol: true, cols: cols,method:'POST',nowrap:true,
|
|
url: WST.U('admin/shops/detailByPage'), fullWidthRows: true, autoLoad: true,
|
|
plugins: [
|
|
$('#pg').mmPaginator({})
|
|
]
|
|
});
|
|
}
|
|
function toExports(){
|
|
var params = {};
|
|
params = WST.getParams('.j-ipt');
|
|
var box = WST.confirm({content:"您确定要导出订单吗?",yes:function(){
|
|
layer.close(box);
|
|
location.href=WST.U('admin/shops/toExports',params);
|
|
}});
|
|
}
|
|
$(function(){initDetailGrid();})
|
|
</script>
|
|
{/block} |