<!DOCTYPE html>
<html>
  <head>
 	<base href="#springUrl('/assets/adminlte/')"/>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>工作台</title>
 	  <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Bootstrap 3.3.5 -->
    <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="plugins/font-awesome/css/font-awesome.min.css">
       <!-- DataTables -->
    <link rel="stylesheet" href="plugins/datatables/dataTables.bootstrap.css">
    
        <!-- Ionicons -->
  <!--   <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css"> -->
    <!-- Theme style -->
    <link rel="stylesheet" href="dist/css/AdminLTE.min.css">
    <!-- AdminLTE Skins. Choose a skin from the css/skins
         folder instead of downloading all of them to reduce the load. -->
    <link rel="stylesheet" href="dist/css/skins/_all-skins.min.css">
    <!-- iCheck -->
    <link rel="stylesheet" href="plugins/iCheck/flat/blue.css">
    <!-- Morris chart -->
    <link rel="stylesheet" href="plugins/morris/morris.css">
    <!-- jvectormap -->
    <link rel="stylesheet" href="plugins/jvectormap/jquery-jvectormap-1.2.2.css">
    <!-- bootstrap wysihtml5 - text editor -->
    <link rel="stylesheet" href="plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body class="hold-transition skin-blue sidebar-mini">
  
  
 <div class="wrapper">
    <div class="content-wrapper"  style="margin-left:0;">
    
     <section class="content-header">
          <h1>
             	公众号管理
            <small>公众号信息</small>
          </h1>
          <ol class="breadcrumb">
          </ol>
        </section>

        <!-- Main content -->
        <section class="content">
        
        
             <div class="row">
        		          #foreach($member in $list)
       	
       	  	<div class="col-lg-3 col-xs-6">
              <!-- small box -->
              
               		 #if($!member.types ==  'purchase')  
                  	
                  	 	<div class="small-box bg-aqua">
		                <div class="inner">
		                  <h3>$member.num</h3>
		                  <p>订单</p>
		                </div>
		                <div class="icon">
		                  <i class="ion ion-bag"></i>
		                </div>
		                
		              <!-- 	#if($shiro.hasPermission("mp:purchasebill:view"))
               			<a href="#springUrl('/a/purchaseBill/purchaselist')" class="small-box-footer">查看详情<i class="fa fa-arrow-circle-right"></i></a> 
               	  		 #end   -->
		                
		              
		             
		              </div>
                  	 #elseif($!member.types ==  'booking')
                  	 
                  	 	<div class="small-box bg-green">
		                <div class="inner">
		                  <h3>$member.num</h3>
		                  <p>预定单</p>
		                </div>
		                <div class="icon">
		                  <i class="ion ion-stats-bars"></i>
		                </div>
		               <!--  <a href="#" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a> -->
		               
		         <!--        #if($shiro.hasPermission("mp:booking:view"))
               			<a href="#springUrl('/a/booking/bookinglist')" class="small-box-footer">查看详情<i class="fa fa-arrow-circle-right"></i></a> 
               	  		 #end   -->
		               
		              </div>
                  	 #elseif($!member.types ==  'goods')
                  	 
                  	 		 	<div class="small-box bg-yellow">
		                <div class="inner">
		                  <h3>$member.num</h3>
		                  <p>商品数</p>
		                </div>
		                <div class="icon">
		                  <i class="ion ion-pie-graph"></i>
		                </div>
		               <!--  <a href="#" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a> -->
		               
		               <!--  #if($shiro.hasPermission("mp:newproducts:view"))
               			<a href="#springUrl('/a/recommend/recommendlist')" class="small-box-footer">查看详情<i class="fa fa-arrow-circle-right"></i></a> 
               	  		 #end   -->
		               
		              </div>
                  	 
                  	 #elseif($!member.types ==  'member')
              		 
              		 	 	<div class="small-box bg-red">
		                <div class="inner">
		                  <h3>$member.num</h3>
		                  <p>累计关注数</p>
		                </div>
		                <div class="icon">
		                  <i class="ion ion-person-add"></i>
		                </div>
		            <!--   <a  class="small-box-footer"> <i class="fa"></i></a> -->
		               
		              </div>
              		
              	 #end
              
          
            </div>
       	
       #end 
             </div><!-- /.row -->
        
       
  
              <div class="box box-solid bg-teal-gradient">
                <div class="box-header">
                  <i class="fa fa-th"></i>
                  <h3 class="box-title">订单、预定单统计</h3>
                  <div class="box-tools pull-right">
                    <button class="btn bg-teal btn-sm" data-widget="collapse"><i class="fa fa-minus"></i></button>
                    <button class="btn bg-teal btn-sm" data-widget="remove"><i class="fa fa-times"></i></button>
                  </div>
                </div>
                <div class="box-body border-radius-none">
                  <div class="chart" id="line-chart" style="height: 250px;"></div>
                </div>
                 <!-- 
                      <div class="box-footer no-border">
                  <div class="row">
                    <div class="col-xs-4 text-center" style="border-right: 1px solid #f4f4f4">
                      <input type="text" class="knob" data-readonly="true" value="20" data-width="60" data-height="60" data-fgColor="#39CCCC">
                      <div class="knob-label">Mail-Orders</div>
                    </div>./col
                    <div class="col-xs-4 text-center" style="border-right: 1px solid #f4f4f4">
                      <input type="text" class="knob" data-readonly="true" value="50" data-width="60" data-height="60" data-fgColor="#39CCCC">
                      <div class="knob-label">Online</div>
                    </div>./col
                    <div class="col-xs-4 text-center">
                      <input type="text" class="knob" data-readonly="true" value="30" data-width="60" data-height="60" data-fgColor="#39CCCC">
                      <div class="knob-label">In-Store</div>
                    </div>./col
                  </div>/.row
                </div>/.box-footer-->
                
              </div> 
        </section><!-- /.content -->
      </div><!-- /.content-wrapper -->  
   	
 

      <!-- Add the sidebar's background. This div must be placed
           immediately after the control sidebar -->
      <div class="control-sidebar-bg"></div>
    </div><!-- ./wrapper -->
  	<!-- jQuery 2.1.4 -->
    <script src="plugins/jQuery/jQuery-2.1.4.min.js"></script>
    <!-- Bootstrap 3.3.5 -->
    <script src="bootstrap/js/bootstrap.min.js"></script>
    <!-- Morris.js charts -->
    <script src="plugins/raphael/2.1.0/raphael-min.js"></script>
    <script src="plugins/morris/morris.min.js"></script>
    <!-- jQuery Knob Chart -->
    <script src="plugins/knob/jquery.knob.js"></script>
    <!-- SlimScroll -->
    <script src="plugins/slimScroll/jquery.slimscroll.min.js"></script>
    <!-- FastClick -->
    <script src="plugins/fastclick/fastclick.min.js"></script>
    <!-- AdminLTE App -->
    <script src="dist/js/app.min.js"></script>
 
 	   <script>
 	   //根据数据 
 	     
 	   
 	     $.getJSON("#springUrl('/page/user/percentage')", function(returnobj) {
	               if (returnobj.errorNo == '0') 
	               {
	            	   
	   	   var line = new Morris.Line({
	            		    element: 'line-chart',
	            		    resize: true,
	            		    data: 
	            		    	returnobj.aaData,
	            		    xkey: 'createtime',
	            		    xLabels:'day',
	            		    ykeys: ['nums','nums2'],
	            		    labels: ['订单数','预定单'],
	            		    lineColors: ['#efefef','rgb(248, 232, 137)'],
	            		    lineWidth: 2,
	            		    hideHover: 'auto',
	            		    gridTextColor: "#fff",
	            		    gridStrokeWidth: 0.4,
	            		    pointSize: 4,
	            		    pointStrokeColors: ["#efefef"],
	            		    gridLineColor: "#efefef",
	            		    gridTextFamily: "Open Sans",
	            		    gridTextSize: 10
	            		  }); 
	            		  
	            /* 		  
	            	   new Morris.Line({
	            		   // ID of the element in which to draw the chart.
	            		   element: 'line-chart',
	            		   // Chart data records -- each entry in this array corresponds to a point on
	            		   // the chart.
	            		   data: [
	            		     { year: '2008', value: 20 },
	            		     { year: '2009', value: 10 },
	            		     { year: '2010', value: 5 },
	            		     { year: '2011', value: 5 },
	            		     { year: '2012', value: 20 }
	            		   ],
	            		   // The name of the data record attribute that contains x-values.
	            		   xkey: 'year',
	            		   // A list of names of data record attributes that contain y-values.
	            		   ykeys: ['value'],
	            		   // Labels for the ykeys -- will be displayed when you hover over the
	            		   // chart.
	            		   labels: ['Value']
	            		 }); */
	            		  
	               }
	            });
 	   
 	   
 	   //AJAX获取数据 
/*  	   $.getJSON("#springUrl('/page/user/percentage')", function(returnobj) {
	               if (returnobj.errorNo == '0') 
	               {
	            	   $("#cumlated").html(returnobj.aaData[6].cumlateUser);
	            	   var line = new Morris.Line({
	            		    element: 'line-chart',
	            		    resize: true,
	            		    data: 
	            		    	returnobj.aaData,
	            		    xkey: 'refDate',
	            		   xLabels:'day',
	            		    ykeys: ['cumlateUser','newUser','cancelUser'],
	            		    labels: ['关注数','新增数','取消关注'],
	            		    lineColors: ['#efefef','rgb(68, 181, 73)','#d73925'],
	            		    lineWidth: 2,
	            		    hideHover: 'auto',
	            		    gridTextColor: "#fff",
	            		    gridStrokeWidth: 0.4,
	            		    pointSize: 4,
	            		    pointStrokeColors: ["#efefef"],
	            		    gridLineColor: "#efefef",
	            		    gridTextFamily: "Open Sans",
	            		    gridTextSize: 10
	            		  });
	               }
	            }); */
 	   
 	  /* jQueryKnob */
  	 // $(".knob").knob();
 	
      </script>
  </body>
</html>
