初始化

This commit is contained in:
liut
2021-10-12 11:06:24 +08:00
commit ff0b4d5b12
1270 changed files with 405680 additions and 0 deletions
+122
View File
@@ -0,0 +1,122 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="__STATIC__/js/jquery.js"></script>
<script src="__STATIC__/js/highcharts.js"></script>
<link href="__STATIC__/css/bootstrap.min.css" rel="stylesheet">
<link href="__STATIC__/css/bootstrap-table.min.css" rel="stylesheet">
<link href="__STATIC__/css/bootstrap-table-fixed-columns.css" rel="stylesheet">
</head>
<body>
<div class="wrap">
<div class="panel-body" id="container" style="width: 95%; height: 400px; margin: 0 auto">
</div>
<table class="table table-hover table-bordered margin-top-10">
<thead>
<tr>
<th>浏览</th>
<th>下载</th>
<th>总订单</th>
<th>成功订单</th>
<th>注册</th>
<th>金额</th>
<th>分成</th>
<th>日期</th>
<th>星期</th>
<th>几天前</th>
</tr>
</thead>
<tbody>
{volist name="profit" id="vo"}
<tr>
<td><span class="label label-success">{$vo.count_view}</span></td>
<td><span class="label label-success">{$vo.count_down}</span></td>
<td><span class="label label-success">{$vo.count_order}</span></td>
<td><span class="label label-success">{$vo.count_order_yes}</span></td>
<td><span class="label label-success">{$vo.count_reg}</span></td>
<td><span class="label label-success">{$vo.count_money}</span></td>
<td><span class="label label-success">{$vo.count_profit}</span></td>
<td>{$vo.create_time|date="Y-m-d"}</td>
<td>{:getWeekDay($vo.create_time)}</td>
<td>{:getTimeLastDay($vo.create_time)}天前</td>
</tr>
{/volist}
</tbody>
</table>
</div>
</body>
<script>
$(function () {
$('#container').highcharts({
title: {
text: '',
x: -20 //center
},
plotOptions: {
line: {
lineWidth: 3
},
tooltip: {
hideDelay: 200
}
},
subtitle: {
text: '',
x: -20
},
xAxis: {
categories: [
{$time_type|raw}
]
},
yAxis: {
title: {
text: ''
},
plotLines: [{
value: 0,
width: 1
}]
},
tooltip: {
valueSuffix: ' 个',
crosshairs: true,
shared: true
},
legend: {
layout: 'vertical',
align: 'right',
verticalAlign: 'middle',
borderWidth: 0
},
series: [
{
name: '注册',
color: 'rgba(0,242,59,246)', marker: { radius: 6 }, data: [
{$series_reg|raw}
]
},
{
name: '成功订单',
color: 'rgba(0,15,182,59)', marker: { radius: 6 }, data: [
{$series_order|raw}
]
},
{
name: '金额',
color: 'rgba(0,92,219,192)', marker: { radius: 6 }, data: [
{$series_money|raw}
]
},
]
});
});
</script>
</html>
+153
View File
@@ -0,0 +1,153 @@
{extend name="layout/user" /}
{block name="main"}
<link href="__STATIC__/font-awesome/css/font-awesome.min.css?page=index" rel="stylesheet" type="text/css">
<link href="__STATIC__/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css">
<script src="__STATIC__/js/bootstrap-datetimepicker.js"></script>
<style>
@media (max-width:890px) {
.tabbable tbody tr td:nth-child(2){
display: inline-block;
width: 34px;
overflow: hidden;
height: 86px;
}
}
</style>
<div class="all-box">
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li {eq name="url_path" value="share/index"}class="active"{/eq}><a href="{:url('share/index')}">今日收益</a></li>
<li {eq name="url_path" value="share/record"}class="active"{/eq}><a href="{:url('share/record')}">财务记录</a></li>
<li {eq name="url_path" value="share/withdraw"}class="active"{/eq}><a href="{:url('share/withdraw')}">提现记录</a></li>
</ul>
<fieldset>
<div class="tabbable">
<div class="tab-content">
<div class="tab-pane active">
<form class="well form-inline margin-top-20" method="get" action="{:url('share/index')}">
时间:
<input type="text" class="form-control input-group date form_date" data-date=""
data-date-format="" data-link-field="dtp_input2" data-link-format="yyyy-mm-dd"
name="time" value="{$time}" style="width: 140px;" autocomplete="off">
<input type="submit" class="btn btn-primary" value="搜索">&nbsp;
<a onclick="shiming()"
style="color: #333;text-decoration: none;">实名认证</a>&nbsp;&nbsp;|&nbsp;
<a onclick="tixianadd()" style="color: #333;text-decoration: none;">申请提现</a>
</form>
<table class="table table-hover table-bordered">
<thead>
<tr>
<th>ID</th>
<th>所属文件</th>
<th>浏览</th>
<th>下载</th>
<th>注册</th>
<th>总订单</th>
<th>成功订单</th>
<th>金额</th>
<th>收益</th>
<th class="hidden-xs">更新时间</th>
<th>操作</th>
</tr>
</thead>
<tbody>
{volist name="list" id="vo"}
<tr>
<td>{$vo.id}</td>
<td>{:getFileName($vo.file_id)}</td>
<td>{$vo.count_view}</td>
<td>{$vo.count_down}</td>
<td>{$vo.count_reg}</td>
<td>{$vo.count_order}</td>
<td>{$vo.count_order_yes}</td>
<td>{$vo.count_money}</td>
<td >{$vo.count_profit}</td>
<td class="hidden-xs">{$vo.create_time|date="Y-m-d H:i"}</td>
<td>
<a href="#" onclick="zoushitu('{$vo.file_id} ({:getFileName($vo.file_id)})','{$vo.file_id}')">走势图</a>
</td>
</tr>
{/volist}
</tbody>
</table>
<div class="pag">
{$list|raw}
</div>
</div>
</div>
</div>
</fieldset>
</div>
</div>
<script type="text/javascript">
$('.form_date').datetimepicker({
language: 'zh-CN',
weekStart: 1,
todayBtn: 1,
autoclose: 1,
todayHighlight: 1,
startView: 2,
minView: 2,
forceParse: 0
});
function zoushitu(name = "", post_id = "") {
layer.open({
type: 2,
title: '30天走势图 ' + name,
area: ['98%', '90%'],
shadeClose: true,
fixed: true, //不固定
content: '/share/echarts?id=' + post_id,
});
}
</script>
<script>
function tixianadd() {
if (window.screen.width < 768) {
var w = '95%';
}
else {
var w = '450px';
}
layer.open({
type: 2,
shadeClose: true,
title: "申请提现",
area: [w, '380px'], // 宽高
content: "/user/withdraw",
end: function () {
//location.reload();
},
});
}
function shiming() {
if (window.screen.width < 768) {
var w = '95%';
}
else {
var w = '480px';
}
layer.open({
type: 2,
shadeClose: true,
title: "实名认证",
area: [w, '300px'], // 宽高
content: "/user/auth",
end: function () {
//location.reload();
},
});
}
</script>
{/block}
+69
View File
@@ -0,0 +1,69 @@
{extend name="layout/user" /}
{block name="main"}
<link href="__STATIC__/font-awesome/css/font-awesome.min.css?page=index" rel="stylesheet" type="text/css">
<link href="__STATIC__/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css">
<script src="__STATIC__/js/bootstrap-datetimepicker.js"></script>
<div class="all-box">
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li {eq name="url_path" value="share/index"}class="active"{/eq}><a href="{:url('share/index')}">今日收益</a></li>
<li {eq name="url_path" value="share/record"}class="active"{/eq}><a href="{:url('share/record')}">财务记录</a></li>
<li {eq name="url_path" value="share/withdraw"}class="active"{/eq}><a href="{:url('share/withdraw')}">提现记录</a></li>
</ul>
<fieldset>
<div class="tabbable">
<div class="tab-content">
<div class="tab-pane active">
<form class="well form-inline margin-top-20">
累计收益:0 </form>
<table class="table table-hover table-bordered">
<thead>
<tr>
<th>ID</th>
<th>原因</th>
<th>来源</th>
<th>变更金额</th>
<th>变更前</th>
<th>变更后</th>
<th>时间</th>
</tr>
</thead>
<tbody>
{volist name="list" id="vo"}
<tr>
<td>{$vo.id}</td>
<td>{$vo.remark}</td>
<td>{$vo.source}</td>
<td>
{eq name="$vo.type" value="0"}
<b style="color: #47a21a;font-weight: bold"> + {$vo.money}</b>
{else/}
<b style="color: #f70606;font-weight: bold"> - {$vo.money}</b>
{/eq}
</td>
<td>{$vo.before_money}</td>
<td>{$vo.after_money}</td>
<td>{$vo.create_time|date="Y-m-d H:i"}</td>
</tr>
{/volist}
</tbody>
</table>
<div class="pag">
{$list|raw}
</div>
</div>
</div>
</div>
</fieldset>
</div>
</div>
{/block}
+121
View File
@@ -0,0 +1,121 @@
{extend name="layout/user" /}
{block name="main"}
<link href="__STATIC__/font-awesome/css/font-awesome.min.css?page=index" rel="stylesheet" type="text/css">
<link href="__STATIC__/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css">
<script src="__STATIC__/js/bootstrap-datetimepicker.js"></script>
<style>
@media (max-width:890px) {
.tabbable tbody tr td:nth-child(3){
display: inline-block;
width: 88px;
overflow: hidden;
height: 86px;
}
}
</style>
<div class="all-box">
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li {eq name="url_path" value="share/index"}class="active"{/eq}><a href="{:url('share/index')}">今日收益</a></li>
<li {eq name="url_path" value="share/record"}class="active"{/eq}><a href="{:url('share/record')}">财务记录</a></li>
<li {eq name="url_path" value="share/withdraw"}class="active"{/eq}><a href="{:url('share/withdraw')}">提现记录</a></li>
</ul>
<fieldset>
<div class="tabbable">
<div class="tab-content">
<div class="tab-pane active">
<form class="well form-inline margin-top-20">
<a onclick="tixianadd()" style="color: #333;"><b>账户余额:{$amount}</b></a>
&nbsp;|&nbsp;&nbsp;累计提现:{$money} 元
&nbsp;|&nbsp;&nbsp;<a onclick="shiming()"
style="color: #333;text-decoration: none;">实名认证</a>
&nbsp;|&nbsp;&nbsp;<a onclick="tixianadd()"
style="color: #333;text-decoration: none;">申请提现</a>
</form>
<table class="table table-hover table-bordered">
<thead>
<tr>
<th>ID</th>
<th>提现金额</th>
<th>支付宝账号</th>
<th>支付宝姓名</th>
<th>状态</th>
<th>提现时间</th>
</tr>
</thead>
<tbody>
{volist name="list" id="vo"}
<tr>
<td>{$vo.id}</td>
<td>{$vo.money} ¥</td>
<td>{$vo.alipay_account}</td>
<td>{$vo.alipay_name}</td>
<td>
{eq name="$vo.status" value="0"}<span class="label label-info">等待处理</span>{/eq}
{eq name="$vo.status" value="1"}<span class="label label-success">提现成功</span>{/eq}
{eq name="$vo.status" value="2"}<span class="label label-danger">资金退回</span>{/eq}
</td>
<td>{$vo.create_time|date="Y-m-d H:i"}</td>
</tr>
{/volist}
</tbody>
</table>
<div class="pg">
{$list|raw}
</div>
</div>
</div>
</div>
</fieldset>
</div>
</div>
<script>
function tixianadd() {
if (window.screen.width < 768) {
var w = '95%';
}
else {
var w = '450px';
}
layer.open({
type: 2,
shadeClose: true,
title: "申请提现",
area: [w, '380px'], // 宽高
content: "/user/withdraw",
end: function () {
//location.reload();
},
});
}
function shiming() {
if (window.screen.width < 768) {
var w = '95%';
}
else {
var w = '480px';
}
layer.open({
type: 2,
shadeClose: true,
title: "实名认证",
area: [w, '300px'], // 宽高
content: "/user/auth",
end: function () {
//location.reload();
},
});
}
</script>
{/block}