You've already forked qlg.tsgz.moe
							
							Init Repo
This commit is contained in:
		
							
								
								
									
										93
									
								
								hyhproject/admin/view/platform/platform.html
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										93
									
								
								hyhproject/admin/view/platform/platform.html
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,93 @@
 | 
			
		||||
{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>
 | 
			
		||||
<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" 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'>app注册数量<font color='red'>*</font>:</th>
 | 
			
		||||
        <td>
 | 
			
		||||
			<span id="appNum">{$object['appNum']}</span>
 | 
			
		||||
        </td>
 | 
			
		||||
    </tr>
 | 
			
		||||
    <tr>
 | 
			
		||||
      	<th width='150'>pc注册数量<font color='red'>*</font>:</th>
 | 
			
		||||
        <td><span id="pcNum">{$object['pcNum']}</span>
 | 
			
		||||
        </td>
 | 
			
		||||
    </tr>
 | 
			
		||||
    <tr>
 | 
			
		||||
      	<th width='150'>webapp注册数量<font color='red'>*</font>:</th>
 | 
			
		||||
        <td><span id="webappNum">{$object['webappNum']}</span>
 | 
			
		||||
        </td>
 | 
			
		||||
    </tr>
 | 
			
		||||
  	<tr>
 | 
			
		||||
      	<th width='150'>下单用户数量<font color='red'>*</font>:</th>
 | 
			
		||||
        <td><span id="validUser">{$object['validUser']}</span>
 | 
			
		||||
        </td>
 | 
			
		||||
    </tr>
 | 
			
		||||
    <tr>
 | 
			
		||||
      	<th width='150'>转换率<font color='red'>*</font>:</th>
 | 
			
		||||
        <td><span id="orderRade">{$object['orderRade']}</span>
 | 
			
		||||
        </td>
 | 
			
		||||
    </tr>
 | 
			
		||||
  <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>
 | 
			
		||||
  </tr>
 | 
			
		||||
</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 start=document.getElementById('startDate').value;
 | 
			
		||||
		var end=document.getElementById('endDate').value;
 | 
			
		||||
		$.ajax({
 | 
			
		||||
		url:"{:url('platform/index')}",
 | 
			
		||||
		type:"post",
 | 
			
		||||
		data:{end:end,start:start},
 | 
			
		||||
		dataType:"json",
 | 
			
		||||
		success:function(data){
 | 
			
		||||
			if (data.status==1) {
 | 
			
		||||
				$('#appNum').text(data.data.appNum)	
 | 
			
		||||
				$('#pcNum').text(data.data.pcNum)	
 | 
			
		||||
				$('#webappNum').text(data.data.webappNum)	
 | 
			
		||||
				$('#validUser').text(data.data.validUser)	
 | 
			
		||||
				$('#orderRade').text(data.data.orderRade)	
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	 })
 | 
			
		||||
		// $.post("{:url('platform/index')}",{
 | 
			
		||||
		// 		end:end,start:start
 | 
			
		||||
		// },function(data){
 | 
			
		||||
		// 		if (data.status==1) {
 | 
			
		||||
		// 		alert(data)	
 | 
			
		||||
		// 		}
 | 
			
		||||
		// })
 | 
			
		||||
	}
 | 
			
		||||
</script>
 | 
			
		||||
{/block}
 | 
			
		||||
							
								
								
									
										41
									
								
								hyhproject/admin/view/platform/platform.js
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										41
									
								
								hyhproject/admin/view/platform/platform.js
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,41 @@
 | 
			
		||||
var mmg;
 | 
			
		||||
$(function(){
 | 
			
		||||
    var laydate = layui.laydate;
 | 
			
		||||
    laydate.render({
 | 
			
		||||
        elem: '#startDate'
 | 
			
		||||
    });
 | 
			
		||||
    laydate.render({
 | 
			
		||||
        elem: '#endDate'
 | 
			
		||||
    });
 | 
			
		||||
})
 | 
			
		||||
function initGrid(){
 | 
			
		||||
    var h = WST.pageHeight();
 | 
			
		||||
    var cols = [
 | 
			
		||||
            {title:'app注册数量', name:'appNum' ,width:30,sortable:true},
 | 
			
		||||
            {title:'pc注册数量', name:'pcNum' ,width:30,sortable:true},
 | 
			
		||||
            {title:'webapp注册数量', name:'webNum' ,width:30,sortable:true},
 | 
			
		||||
            // {title:'商品名称', name:'goodsName', width: 120,sortable:true,renderer: function(val,item,rowIndex){
 | 
			
		||||
            //     return "<span><p>"+item['goodsName']+"</p></span>";
 | 
			
		||||
            // }}, 
 | 
			
		||||
            ];
 | 
			
		||||
 
 | 
			
		||||
    mmg = $('.mmg').mmGrid({height: (h-85),indexCol: true, indexColWidth:50, cols: cols,method:'POST',
 | 
			
		||||
        url: WST.U('admin/platform/platformByPage'), fullWidthRows: true, autoLoad: true,remoteSort: true,sortName:'goodsSn',sortStatus:'desc',
 | 
			
		||||
        plugins: [
 | 
			
		||||
            $('#pg').mmPaginator({})
 | 
			
		||||
        ]
 | 
			
		||||
    });   
 | 
			
		||||
}
 | 
			
		||||
function toExport(){
 | 
			
		||||
    var params = {};
 | 
			
		||||
    params = WST.getParams('.j-ipt');
 | 
			
		||||
    var box = WST.confirm({content:"您确定要导出订单吗?",yes:function(){
 | 
			
		||||
        layer.close(box);
 | 
			
		||||
        location.href=WST.U('admin/platform/toExport',params);
 | 
			
		||||
    }});
 | 
			
		||||
}
 | 
			
		||||
function loadGrid(){
 | 
			
		||||
	var params = WST.getParams('.j-ipt');
 | 
			
		||||
    params.page = 1;
 | 
			
		||||
	mmg.load(params);
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										145
									
								
								hyhproject/admin/view/platform/view_data.html
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										145
									
								
								hyhproject/admin/view/platform/view_data.html
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,145 @@
 | 
			
		||||
{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}
 | 
			
		||||
		Reference in New Issue
	
	Block a user