2019-09-06 23:53:10 +08:00

145 lines
3.2 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__/platform/platform.js?v={$v}" type="text/javascript"></script>
{/block}
{block name="main"}
<div class="l-loading" style="display: block" id="wst-loading"></div>
<select name="dataType" id="dataType" class="query j-ipt">
<option value="0">请选择券种类型</option>
<option value="1">预获产品券</option>
<option value="2">预获优惠券</option>
<option value="3">已获产品券</option>
<option value="4">己获优惠券</option>
<option value="5">旺旺券</option>
</select>
<input type="checkbox" id="" name="startDate" class="laydate-icon j-ipt" maxLength="20" value='' placeholder='开始日期'/>
<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='结束日期'/>
<button class="btn btn-primary" id="search" onclick='load()'><i class="fa fa-search"></i>查询</button>
<form id="payForm" autocomplete="off">
<table class='wst-form wst-box-top'>
<tr>
<th width='150'>合计:</th>
<td>
<span><font color='red' id="num">0</font></span>
</td>
</tr>
<!-- <td colspan='2' align='center' class='wst-bottombar'>
<button type="button" class="btn" onclick="javascript:history.go(-1)"><i class="fa fa-angle-double-left"></i>返回</button>
</td>
-->
</table>
</form>
<div class="wst-toolbar">
<!-- <input type="text" name="goodsName" placeholder='商品名称' id="goodsName" class='j-ipt'/>
<input type="text" name="shopName" placeholder='店铺名称' id="shopName" class='j-ipt'/>
<input type="text" name="loginName" placeholder='用户名称' id="loginName" class='j-ipt'/>
<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:toExport()'><i class="fa fa-sign-in"></i>导出</button> -->
<div style='clear:both'></div>
</div>
<!-- <div class='wst-grid'>
<div id="mmg" class="mmg layui-form"></div>
<div id="pg" style="text-align: right;"></div>
</div> -->
<script>
function load(){
var dataType=document.getElementById('dataType').value;
if(0 == dataType){
alert('请选择券种类型');return;
}
var start=document.getElementById('startDate').value;
var end=document.getElementById('endDate').value;
$('#search').attr('disabled','disabled');
$.ajax({
url:"{:url('platform/viewData')}",
type:"post",
data:{dataType:dataType,end:end,start:start},
dataType:"json",
success:function(data){
if (data.status==1) {
$('#num').text(data.data.num) ;
}
$('#search').removeAttr('disabled');
}
})
// $.post("{:url('platform/index')}",{
// end:end,start:start
// },function(data){
// if (data.status==1) {
// alert(data)
// }
// })
}
</script>
{/block}