This commit is contained in:
你的名字
2025-07-14 10:22:40 +08:00
commit 0483b4b364
1388 changed files with 219353 additions and 0 deletions

View File

@ -0,0 +1,95 @@
<form onsubmit="return false;" action="{:request()->url()}" data-auto="true" method="post" class='layui-form layui-card' autocomplete="off">
<div class="layui-card-body">
<input type="hidden" name="id" required value="{$vo.id|default=''}" readonly class="layui-input">
<input type="hidden" name="buytimes" required value="{$vo.buytime|default=''}" readonly class="layui-input">
<div class="layui-row margin-bottom-15">
<label class="layui-col-xs2 think-form-label">会员ID</label>
<label class="layui-col-xs10">
<input name="uid" required value="{$vo.uid|default=''}" readonly class="layui-input">
</label>
</div>
<div class="layui-row margin-bottom-15">
<label class="layui-col-xs2 think-form-label">订单编号</label>
<label class="layui-col-xs10">
<input name="orderno" required value="{$vo.orderno|default=''}" readonly class="layui-input">
</label>
</div>
<div class="layui-row margin-bottom-15">
<label class="layui-col-xs2 think-form-label">入仓时间</label>
<label class="layui-col-xs10">
<input name="buytime" required value="{:date('Y-m-d H:i:s',$vo.buytime)}" class="layui-input">
</label>
</div>
<div class="layui-row margin-bottom-15">
<label class="layui-col-xs2 think-form-label">平仓时间:</label>
<label class="layui-col-xs10">
<input name="selltime" value="{:date('Y-m-d H:i:s',$vo.selltime)}" class="layui-input">
</label>
</div>
<div class="layui-row margin-bottom-15">
<label class="layui-col-xs2 think-form-label">产品名称:</label>
<label class="layui-col-xs10">
<select name="pid" class="layui-select" required lay-search >
{volist name="goods" id="r"}
{if isset($vo.type) and $vo.type eq $cate.id}
<option selected value="{$r.id}" >{$r.title|default=''}</option>
{else}
<option value="{$r.id}">{$r.title|default=''}</option>
{/if}
{/volist}
</select>
</label>
</div>
<div class="layui-row margin-bottom-15">
<label class="layui-col-xs2 think-form-label">涨跌方向:</label>
<label class="layui-col-xs10">
<select name="ostyle" class="layui-select" >
{foreach ['1'=>'买跌','0'=>'买涨'] as $k=>$v}
<!--{eq name='$vo.ostyle' value='$k.""'}-->
<option selected value="{$k}">{$v}</option>
<!--{else}-->
<option value="{$k}">{$v}</option>
<!--{/eq}-->
{/foreach}
</select>
</label>
</div>
<div class="layui-row margin-bottom-15">
<label class="layui-col-xs2 think-form-label">入仓价格:</label>
<label class="layui-col-xs10">
<input name="buyprice" value="{$vo.buyprice}" class="layui-input">
</label>
</div>
<div class="layui-row margin-bottom-15">
<label class="layui-col-xs2 think-form-label">平仓价格:</label>
<label class="layui-col-xs10">
<input name="sellprice" value="{$vo.sellprice}" class="layui-input">
</label>
</div>
<div class="layui-row margin-bottom-15">
<label class="layui-col-xs2 think-form-label">本单盈亏:</label>
<label class="layui-col-xs10">
<input name="ploss" value="{$vo.ploss}" class="layui-input">
</label>
</div>
</div>
<div class="hr-line-dashed"></div>
<div class="layui-form-item text-center">
{notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
<button class="layui-btn" type='submit'>保存数据</button>
<button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗?" data-close>取消编辑</button>
</div>
</form>
{block name='script'}
<script>
window.form.render();
</script>
{/block}

View File

@ -0,0 +1,71 @@
{extend name='akszadmin@main'}
{block name="content"}
<div class="layui-card-body think-box-shadow padding-left-40">
<div class="layui-form-item layui-row layui-col-space15">
<label class="layui-col-xs2 control-label text-right">会员ID</label>
<div class="layui-col-xs6">
<p class="control-label">{$vo.uid|default=''}</p>
</div>
</div>
<div class="layui-form-item layui-row layui-col-space15">
<label class="layui-col-xs2 control-label text-right">订单编号:</label>
<div class="layui-col-xs6">
<p class="control-label">{$vo.orderno|default=''}</p>
</div>
</div>
<div class="layui-form-item layui-row layui-col-space15">
<label class="layui-col-xs2 control-label text-right">产品:</label>
<div class="layui-col-xs6">
<p class="control-label">{$vo.ptitle|default=''}</p>
</div>
</div>
<div class="layui-form-item layui-row layui-col-space15">
<label class="layui-col-xs2 control-label text-right">订单状态:</label>
<div class="layui-col-xs6">
<p class="control-label">{if $vo.ostaus == 1}平仓{else/}建仓{/if}</p>
</div>
</div>
<div class="layui-form-item layui-row layui-col-space15">
<label class="layui-col-xs2 control-label text-right">入仓价格:</label>
<div class="layui-col-xs6">
<p class="control-label">{$vo.buyprice}</p>
</div>
</div>
<div class="layui-form-item layui-row layui-col-space15">
<label class="layui-col-xs2 control-label text-right">平仓价格:</label>
<div class="layui-col-xs6">
<p class="control-label">{$vo.sellprice}</p>
</div>
</div>
<div class="layui-form-item layui-row layui-col-space15">
<label class="layui-col-xs2 control-label text-right">入仓金额:</label>
<div class="layui-col-xs6">
<p class="control-label">{$vo.fee}</p>
</div>
</div>
<div class="layui-form-item layui-row layui-col-space15">
<label class="layui-col-xs2 control-label text-right">入仓时间:</label>
<div class="layui-col-xs6">
<p class="control-label">{:date('Y-m-d H:i:s',$vo.buytime)}</p>
</div>
</div>
<div class="layui-form-item layui-row layui-col-space15">
<label class="layui-col-xs2 control-label text-right">平仓时间:</label>
<div class="layui-col-xs6">
<p class="control-label">{:date('Y-m-d H:i:s',$vo.selltime)}</p>
</div>
</div>
<div class="layui-form-item layui-row layui-col-space15">
<label class="layui-col-xs2 control-label text-right">本单盈亏:</label>
<div class="layui-col-xs6">
<p class="control-label">{$vo.ploss}</p>
</div>
</div>
</div>
{/block}

View File

@ -0,0 +1,170 @@
{extend name='akszadmin@main'}
{block name="content"}
<style>
.layui-table td, .layui-table th{
padding: 9px 0;
}
.color_red {
color:red;
}
.color_green{
color:green
}
</style>
<div class="think-box-shadow">
{include file='order/index_search'}
<table class="layui-table margin-top-10" lay-skin="line">
{notempty name='list'}
<thead>
<tr>
<th class='text-center nowrap'>订单编号</th>
<th class='text-center nowrap'>会员ID</th>
<th class="text-center nowrap">用户名</th>
<th class="text-center nowrap">订单时间</th>
<th class="text-center nowrap">产品信息</th>
<th class="text-center nowrap">状态</th>
<th class="text-center nowrap">方向</th>
<th class="text-center nowrap">时间/点数</th>
<th class="text-center nowrap">建仓点位</th>
<th class="text-center nowrap">平仓点位</th>
<th class="text-center nowrap">委托余额</th>
<th class="text-center nowrap">无效委托余额</th>
<th class="text-center nowrap">有效委托余额</th>
<th class="text-center nowrap">实际盈亏</th>
<th class="text-center nowrap">买后余额</th>
<th class="text-center nowrap">单控操作</th>
<th class="text-center nowrap">详情</th>
</tr>
</thead>
{/notempty}
<tbody>
{foreach $list as $key=>$vo}
<tr>
<td class='text-center nowrap'>
{$vo.id|default='--'}
</td>
<td class='text-center nowrap'>
{$vo.uid|default='--'}
</td>
<td class='text-center nowrap'>
{$vo.phone|default='--'}
</td>
<td class='text-center nowrap'>
<a data-dbclick class="layui-btn layui-btn-sm" data-title="编辑下单时间" data-modal='{:url(ADMIN_MODULE."/order/edits")}?id={$vo.id}'>{:date('Y-m-d H:i:s',$vo.buytime)}</a>
</td>
<td class='text-center nowrap'>
{$vo.ptitle|default='--'}
</td>
<td class='text-center nowrap'>
{if $vo.ostaus==1}平仓{else/}建仓{/if}
</td>
{if $vo.ostyle == 0}
<td class="color_red text-center nowrap">买涨</td>
{elseif $vo.ostyle == 1/}
<td class="color_green text-center nowrap">买跌</td>
{/if}
<td class='text-center nowrap'>
{$vo.endprofit|default='--'}{if $vo.eid==1}点{else/}秒{/if}
</td>
<td class='text-center nowrap'>
{$vo.buyprice|default='--'}
</td>
<td class='text-center nowrap'>
<input type="text" oid="{$vo.id}" value="{$vo.sellprice}" class="select_gaipingcang layui-input" style="width: 100px;">
</td>
<td class="color_red text-center nowrap">
¥{$vo.fee}
</td>
{if $vo.ploss == 0}
<td class="color_red text-center nowrap">
¥{$vo.fee}
</td>
{else /}
<td class="color_red text-center nowrap">
¥0
</td>
{/if}
{if $vo.ploss != 0}
<td class="color_red text-center nowrap">
¥{$vo.fee}
</td>
{else /}
<td class="color_red text-center nowrap">
¥0
</td>
{/if}
<td {if $vo.ploss > 0} class="color_red text-center nowrap" {else /} class="color_green text-center nowrap" {/if}>
¥{$vo.ploss}
</td>
<td class="color_red text-center nowrap">
¥{$vo.commission}
</td>
<td class="color_red text-center nowrap">
{if $vo.ostaus!=1}
<select name="ostyle" id="" class="selectpicker select_change show-tick form-control">
<option {if $vo.kong_type == 0 } selected="selected" {/if} value="{$vo.id}_0">默认</option>
<option {if $vo.kong_type == 1 } selected="selected" {/if} value="{$vo.id}_1"></option>
<option {if $vo.kong_type == 2 } selected="selected" {/if} value="{$vo.id}_2"></option>
<option {if $vo.kong_type == 3 } selected="selected" {/if} value="{$vo.id}_3">全盈</option>
<option {if $vo.kong_type == 4 } selected="selected" {/if} value="{$vo.id}_4">全亏</option>
</select>
{else/}已平仓{/if}
</td>
<td class='text-center nowrap'>
<a data-dbclick class="layui-btn layui-btn-sm" data-title="查看详情" data-modal='{:url(ADMIN_MODULE."/order/edit")}?id={$vo.id}'>查 看</a>
{if $vo.ostaus==1}
<a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要删除该订单吗?" data-action="{:url(ADMIN_MODULE.'/order/remove')}" data-value="id#{$vo.id}">删 除</a>
{/if}
</td>
</tr>
{/foreach}
</tbody>
</table>
{empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div>
{/block}
{block name='script'}
<script>
$(".select_gaipingcang").change(function(){
var oid = $(this).attr("oid");
var sellprice = $(this).val();
var postdata = 'id='+oid+"&sellprice="+sellprice;
var posturl = "{:url(ADMIN_MODULE.'/order/gaipingcang')}";
$.post(posturl,postdata,function(res){
if(res.code == 1){
layer.msg(res.info);
}
})
})
$(".select_change").change(function(){
var kong_id = $(this).val();
if(kong_id){
var kong_arr = kong_id.split('_');
}
var oid = kong_arr[0];
var kong_type = kong_arr[1];
var postdata = 'id='+oid+"&kong_type="+kong_type;
var posturl = "{:url(ADMIN_MODULE.'/order/dankong')}";
$.post(posturl,postdata,function(res){
if(res.code == 1){
layer.msg(res.info);
}
})
})
{if $Think.get.type==1}
setInterval('shuaxin()', 5000);
{/if}
function shuaxin(){
history.go(0)
}
</script>
{/block}
</style>

View File

@ -0,0 +1,29 @@
<fieldset>
<legend>条件搜索</legend>
<form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get" autocomplete="off">
<div class="layui-form-item layui-inline">
<label class="layui-form-label">用户名</label>
<div class="layui-input-inline">
<input name="u_phone" value="{$Think.get.u_phone|default=''}" placeholder="请输入用户名" class="layui-input">
</div>
</div>
<div class="layui-form-item layui-inline">
<label class="layui-form-label">下单日期</label>
<div class="layui-input-inline">
<input data-date-range name="i_time" value="{$Think.get.i_time|default=''}" placeholder="请选择下单日期" class="layui-input">
</div>
</div>
<div class="layui-form-item layui-inline">
<button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
</div>
<div class="layui-form-item layui-inline">
{if $type==1}
<a data-dbclick data-open='{:url(ADMIN_MODULE."/order/index")}?type=0' style="margin-left:15px;"> 停止刷新</a>
{else}
<a data-dbclick data-open='{:url(ADMIN_MODULE."/order/index")}?type=1' style="margin-left:15px;">自动刷新</a>
{/if}
</div>
</form>
<script>form.render()</script>
</fieldset>