<?php
/**
 * 公益收益
 * $Id: proceeds_list.inc,v 1.1 2020/01/03 11:18:46  Exp $
 * @author lixq
 * @access public
 * @package manager.templates
 */

?>
<style type="text/css">
	.p-table,.p-table tr td{
	  border: 1px solid #dcdfe6;
    border-collapse: collapse;
    text-align: center;
    height:30px;
	}
</style>
<div id="classSetting">
	<div class="list_title">
		公益收益
	</div>
  <br />
  <table class="p-table" width="99%">
  	<tr>
  		<td width="25%">公益视频数量</td>
  		<td width="25%">观看人数</td>
  		<td width="25%">公益收益</td>
  		<td width="25%">利率</td>
  	</tr>
  	<tr>
  		<td><?=$proceeds_count["total"]?></td>
  		<td><?=$proceeds_count["view_total"]?></td>
  		<td><?=$proceeds["money_total"]?></td>
  		<td><?=$course_rate?></td>
  	</tr>
  </table>
  <div class="result_list">
  	<el-table :data="tableData" border>
  		<el-table-column  prop="title" label="视频名称" width=""></el-table-column>
  		<el-table-column  prop="type" label="视频种类" width=""></el-table-column>
  		<el-table-column  prop="name" label="用户名称" width=""></el-table-column>
  		<el-table-column  prop="money" label="线上缴费" width=""></el-table-column>
  		<el-table-column  prop="registration_date" label="观看时间" width=""></el-table-column>
  	</el-table>
  </div>
</div>
<?
if ($count> 0) {
?>
<!--page begin-->
<?
require_once("page_common.inc");
?>
<!--page end-->
<?
}
?>
<script type="text/javascript">
	var list=[];
	<?
	foreach ($uer_media_list as $tmp) {
	?>
		var data={
			title:'<?=$tmp["title"]?>',
			money:'<?=$tmp["money"]?>',
			registration_date:'<?=$tmp["registration_date"]?>',
			name:'<?=$tmp["name"]?>',
			type:'公益视频'
		};
		list.push(data);
	<?
	}
	?>

	new Vue({
		el:'#classSetting',
		data:{
			tableData: list,
		}
	})
</script>