123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506 |
- <!DOCTYPE html>
- <html lang="zh-CN" style="background:#fff;">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.0/dist/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.3.0/font/bootstrap-icons.css">
- <link rel="stylesheet" type="text/css" href="/Public/Static/css/base2.css" />
- <link rel="stylesheet" type="text/css" href="/Public/Static/css/nologed.css" />
- <link rel="stylesheet" href="/Public/Static/Icoinfont/iconfont.css">
- <script src="/Public/Static/Icoinfont/iconfont.js"></script>
- <title>{$webname}</title>
- <style>
- ::-webkit-input-placeholder {color: #b5b5b5;font-size: 12px;}
- ::-moz-placeholder {color: #b5b5b5;font-size: 12px;}
- input:focus{background:#f5f5f5;outline: 1px solid #f5f5f5;}
- a:hover,a:link,a:visited,a:active{color:#707A8A;text-decoration:none;}
- .no_header{position: fixed;z-index: 9999;padding:0px 10px;top:0px;line-height: 50px;background:#f5f5f5;}
- .contentbox{width:100%;margin-top:45px;}
- .contentbox_top{width:100%;height:50px;line-height:50px;text-align:left;padding:0px 15px;}
- .listbox{width:100%;height:100px;background:#fff;padding:5px 15px;}
- .listbox_title{width:100%;height:30px;line-height:30px;}
- .listbox_title_l{width:50%;height:30px;float:left;text-align:left;}
- .listbox_title_r{width:50%;height:30px;float:right;text-align:right;}
- .titlebox{width:29%;height:50px;line-height:50px;float:left;}
- .xztitile{color:#000;font-size:22px;font-weight:bold;}
- .notitile{color:#707A8A;font-size:20px;font-weight:500px;}
- .listbox{width:100%;background:#fff;margin-top:120px;}
- .tlistbox{width:100%;clear:both;padding:10px 0px;}
- .tlistbox_1{width:100%;border-bottom:1px solid #f5f5f5;}
- .tlistbox_2{width:100%;height:30px;}
- .tlistbox_3{width:80%;height:30px;line-height:30px;}
- .tlistbox_4{width:20%;height:30px;line-height:30px;}
- .tlistbox_5{padding:5px 10px;background:#fcfcfc;border-radius:5px;}
- .tlistbox_6{width:100%;height:60px;}
- .tlistbox_7{width:33.33%;height:60px;}
- .tlistbox_15{width:22.33%;height:60px;}
- .tlistbox_8{width:100%;height:30px;line-height:30px;}
- .tlistbox_9{width:100%;height:30px;line-height:20px;}
- .tl{text-align:left;}
- .tr{text-align:right;}
- .tc{text-align:center;}
- .fl{float:left;}
- .fr{float:right;}
- .red{color:#f5465c;}
- .bghc{background:#f5f5f5;}
- .green{color:#0ecb81;}
- .emptybox{width:100%;height:80px;line-height:80px;text-align:center;}
- .dongbox{position:fixed;z-index:9999;display:none;top:0px;width:100%;height:100vh;background:rgba(0,0,0,0.2);}
- .dong_con{width:80%;height:100vh;background:#fff;margin-top:0px;border-top-right-radius:0px;border-bottom-right-radius:0px;padding:20px 15px 10px 20px;float:left;}
- </style>
- </head>
- <body style="background:#fff;">
- <div class="container-fluid " style="padding:0px;width:100vw;">
- <div class="no_header">
- <div class="fl allhg txtl">
- <i class="bi bi-arrow-left fcc fw" onclick="goback()" style="font-size: 24px;"></i>
- </div>
- <div class="fr allhg txtr" style="line-height:50px;width:10%;"></div>
- </div>
- <div class="contentbox">
- <div class="contentbox_top" style="position: fixed;top: 50px;background:#f5f5f5;">
- <div class="titlebox">
- <span class="xztitile" id="wtlistbtn">{:L('全部委托')}</span>
- </div>
- <div class="titlebox">
- <span class="notitile" id="alllistbtn">{:L('全部持仓')}</span>
- </div>
- <div class="titlebox">
- <span class="notitile" id="finishbtn">{:L('成交明细')}</span>
- </div>
- </div>
-
- <!---成交记录-->
- <div class="listbox" id="finishbox" style="display:none;">
- <empty name="finishlist">
- <div class="emptybox">
- <span class="fcc fzmm">{:L('暂时没有记录')}</span>
- </div>
- <else />
- <foreach name="finishlist" item="vo">
- <div class="tlistbox">
- <div class="tlistbox_1">
- <div class="tlistbox_2">
- <div class="tlistbox_3 fl">
- <if condition="$vo.direction eq 1">
- <span class="fzmmm green">{:L('做多')}</span>
- <elseif condition="$vo.direction eq 2" />
- <span class="fzmmm red">{:L('做空')}</span>
- </if>
- <span class="fzmmm fch" style="font-weight:bold;">{$vo.symbol}</span>
- </div>
- <!--<a href="{:U('Trade/billinfo')}?id={$vo.id}">-->
- <div class="tlistbox_4 fr tr">
- <if condition="$vo.status eq 3">
- <span class="green fzm">{:L('已完成')}</span>
- <elseif condition="$vo.status eq 4" />
- <span class="red fzm">{:L('爆仓')}</span>
- </if>
- <i class="bi bi-chevron-right"></i>
- </div>
- <!--</a>-->
- </div>
-
- <div class="tlistbox_2">
- <div class="tlistbox_3 fl">
- <span class="fzmm fcc">{:L('开仓时间')}:<?php echo $vo['addtime'];?></span>
- </div>
- </div>
- <div class="tlistbox_2">
- <div class="tlistbox_3 fl">
- <span class="fzmm fcc">{:L('平仓时间')}:<?php echo $vo['endtime'];?></span>
- </div>
- </div>
-
- <div class="tlistbox_6">
- <div class="tlistbox_7 fl">
- <div class="tlistbox_8 tl">
- <span class="fzm fcc">{:L('开仓单价')}</span>
- </div>
- <div class="tlistbox_9 tl">
- <span class="fzmm fch">{$vo.price}</span>
- </div>
- </div>
-
- <div class="tlistbox_7 fl">
- <div class="tlistbox_8 tc">
- <span class="fzm fcc">{:L('平仓单价')}</span>
- </div>
- <div class="tlistbox_9 tc">
- <span class="fzmm fch">{$vo.pc_price}</span>
- </div>
- </div>
- <div class="tlistbox_7 fl">
- <div class="tlistbox_8 tr">
- <span class="fzm fcc">{:L('合约手数')}</span>
- </div>
- <div class="tlistbox_9 tr">
- <span class="fzmm fch">{$vo.num}</span>
- </div>
- </div>
- </div>
-
- <div class="tlistbox_6">
- <div class="tlistbox_15 fl">
- <div class="tlistbox_8 tl">
- <span class="fzm fcc">{:L('杠杆倍数')}</span>
- </div>
- <div class="tlistbox_9 tl">
- <span class="fzmm fch">{$vo.ggan}</span>
- </div>
- </div>
- <div class="tlistbox_15 fl">
- <div class="tlistbox_8 tl">
- <span class="fzm fcc">{:L('手續費')}</span>
- </div>
- <div class="tlistbox_9 tl">
- <span class="fzmm fch">{$vo.fee}</span>
- </div>
- </div>
- <div class="tlistbox_15 fl">
- <div class="tlistbox_8 tc">
- <span class="fzm fcc">{:L('盈亏状态')}</span>
- </div>
- <div class="tlistbox_9 tc">
- <if condition="$vo.yk_status eq 1">
- <span class="green fzmmm">{:L('盈利')}</span>
- <elseif condition="$vo.yk_status eq 2" />
- <span class="red fzmmm">{:L('亏损')}</span>
- </if>
- </div>
- </div>
-
- <div class="tlistbox_15 fl">
- <div class="tlistbox_8 tr">
- <span class="fzm fcc">{:L('盈亏金额')}</span>
- </div>
- <div class="tlistbox_9 tr">
- <if condition="$vo.yk_status eq 1">
- <span class="green fzmmm">+{$vo.ylmoney}</span>
- <elseif condition="$vo.yk_status eq 2" />
- <span class="red fzmmm">-{$vo.ylmoney}</span>
- </if>
- </div>
- </div>
- </div>
-
- </div>
- </div>
- </foreach>
- </empty>
-
- </div>
-
-
- <!---全部持仓-->
- <div class="listbox" id="alllistbox" style="display:none;">
- <empty name="alllist">
- <div class="emptybox">
- <span class="fcc fzmm">{:L('暂时没有记录')}</span>
- </div>
- <else />
- <foreach name="alllist" item="vo">
- <div class="tlistbox">
- <div class="tlistbox_1">
- <div class="tlistbox_2">
- <div class="tlistbox_3 fl" style="width:65%;">
- <if condition="$vo.direction eq 1">
- <span class="fzmmm green">{:L('做多')}</span>
- <elseif condition="$vo.direction eq 2" />
- <span class="fzmmm red">{:L('做空')}</span>
- </if>
- <span class="fzmmm fch" style="font-weight:bold;">{$vo.symbol}</span>
- <span class="fzmmm fch pro{$vo.id}" style="font-weight:bold;">{$vo.profit}</span>
- </div>
- <div class="tlistbox_4 fr tr" style="width:35%;" onclick="closeorder({$vo.id});">
- <span class="tlistbox_5 fcy">{:L('一键平仓')}</span>
- </div>
- </div>
- <div class="tlistbox_2">
- <div class="tlistbox_3 fl">
- <span class="fzmm fcc">{:L('开仓时间')}:<?php echo $vo['addtime'];?></span>
- </div>
- </div>
-
- <div class="tlistbox_6">
- <div class="tlistbox_7 fl">
- <div class="tlistbox_8 tl">
- <span class="fzm fcc">{:L('开仓单价')}</span>
- </div>
- <div class="tlistbox_9 tl">
- <span class="fzmm fcc">{$vo.price}</span>
- </div>
- </div>
- <div class="tlistbox_7 fl">
- <div class="tlistbox_8 tc">
- <span class="fzm fcc">{:L('合约手数')}</span>
- </div>
- <div class="tlistbox_9 tc">
- <span class="fzmm fcc">{$vo.num}</span>
- </div>
- </div>
-
- <div class="tlistbox_7 fl">
- <div class="tlistbox_8 tr">
- <span class="fzm fcc">{:L('杠杆倍数')}</span>
- </div>
- <div class="tlistbox_9 tr">
- <span class="fzmm fcc">{$vo.ggan}</span>
- </div>
- </div>
- </div>
-
- <div class="tlistbox_6">
- <div class="tlistbox_7 fl">
- <div class="tlistbox_8 tl">
- <span class="fzm fcc">{:L('止盈单价')}</span>
- </div>
- <div class="tlistbox_9 tl">
- <span class="fzmm fcc">{$vo.zyprice}</span>
- </div>
- </div>
- <div class="tlistbox_7 fl">
- <div class="tlistbox_8 tc">
- <span class="fzm fcc">{:L('止损单价')}</span>
- </div>
- <div class="tlistbox_9 tc">
- <span class="fzmm fcc">{$vo.zsprice}</span>
- </div>
- </div>
-
- <div class="tlistbox_7 fl">
- <div class="tlistbox_8 tr">
- <span class="fzm fcc">{:L('手续费')}</span>
- </div>
- <div class="tlistbox_9 tr">
- <span class="fzmm fcc">{$vo.fee}</span>
- </div>
- </div>
- </div>
-
-
- </div>
- </div>
- </foreach>
- </empty>
-
- </div>
-
-
- <!----所有委托--->
- <div class="listbox" id="wtlistbox" style="display:block;">
- <empty name="list">
- <div class="emptybox">
- <span class="fcc fzmm">{:L('暂时没有记录')}</span>
- </div>
- <else />
- <foreach name="list" item="vo">
- <div class="tlistbox">
- <div class="tlistbox_1">
- <div class="tlistbox_2">
- <div class="tlistbox_3 fl">
- <if condition="$vo.direction eq 1">
- <span class="fzmmm green">{:L('做多')}</span>
- <elseif condition="$vo.direction eq 2" />
- <span class="fzmmm red">{:L('做空')}</span>
- </if>
- <span class="fzmmm fch" style="font-weight:bold;">{$vo.symbol}</span>
- </div>
-
- <div class="tlistbox_4 fr tr" onclick="clearorder({$vo.id});">
- <span class="tlistbox_5 fcy">{:L('取消')}</span>
- </div>
- </div>
-
-
- <div class="tlistbox_6">
- <div class="tlistbox_7 fl">
- <div class="tlistbox_8 tl">
- <span class="fzm fcc">{:L('限价')}</span>
- </div>
- <div class="tlistbox_9 tl">
- <span class="fzmm fch">{$vo.wt_price}</span>
- </div>
- </div>
- <div class="tlistbox_7 fl">
- <div class="tlistbox_8 tc">
- <span class="fzm fcc">{:L('委托手数')}</span>
- </div>
- <div class="tlistbox_9 tc">
- <span class="fzmm fch">{$vo.num}</span>
- </div>
- </div>
-
- <div class="tlistbox_7 fl">
- <div class="tlistbox_8 tr">
- <span class="fzm fcc">{:L('杠杆倍数')}</span>
- </div>
- <div class="tlistbox_9 tr">
- <span class="fzmm fch">{$vo.ggan}</span>
- </div>
- </div>
- </div>
-
-
- </div>
- </div>
- </foreach>
- </empty>
- </div>
-
-
- <div style="width:100%;height:80px;"></div>
-
- </div>
- </div>
- <div class="dongbox" id="pcconfim" style="display:none;">
- <div style="width:300px;height:260px;background:#fff;margin:50% auto;border-radius:10px;padding:20px;">
- <div style="width:100%;height:30px;line-height:30px;text-align:center;">
- <span style="font-size:16px;font-weight:bold;">{:L('操作提示')}</span>
- </div>
- <div style="width:100%;overflow:hidden;min-height:140px;text-align:center;padding:15px;" id="confim_txt">
-
- </div>
- <input type="hidden" id="pcoid" value="" />
- <div style="width:100%;height:60px;">
- <div onclick="pcorder()" style="width:45%;height:36px;line-height:36px;text-align:center;float:left;font-size:14px;color:#fff;background:#0ecb81;border-radius:10px;">{:L('确定平仓')}</div></a>
- <div onclick="hidepcconfim()" style="width:45%;height:36px;line-height:36px;text-align:center;float:right;font-size:14px;color:#fff;background:#f5465c;border-radius:10px;">{:L('取消')}</div>
- </div>
- </div>
- </div>
-
- </body>
- <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
- <script type="text/javascript" src="/Public/Static/js/layer/layer.js" ></script>
- <script type="text/javascript">
- $("#wtlistbtn").click(function(){
- $("#wtlistbtn").addClass("xztitile");
- $("#wtlistbtn").removeClass("notitile");
- $("#alllistbtn").addClass("notitile");
- $("#alllistbtn").removeClass("xztitile");
- $("#finishbtn").addClass("notitile");
- $("#finishbtn").removeClass("xztitile");
- $("#wtlistbox").show();
- $("#alllistbox").hide();
- $("#finishbox").hide();
- });
- $("#alllistbtn").click(function(){
- $("#wtlistbtn").addClass("notitile");
- $("#wtlistbtn").removeClass("xztitile");
- $("#alllistbtn").addClass("xztitile");
- $("#alllistbtn").removeClass("notitile");
- $("#finishbtn").addClass("notitile");
- $("#finishbtn").removeClass("xztitile");
- $("#wtlistbox").hide();
- $("#alllistbox").show();
- $("#finishbox").hide();
- });
- $("#finishbtn").click(function(){
- $("#wtlistbtn").addClass("notitile");
- $("#wtlistbtn").removeClass("xztitile");
- $("#alllistbtn").addClass("notitile");
- $("#alllistbtn").removeClass("xztitile");
- $("#finishbtn").addClass("xztitile");
- $("#finishbtn").removeClass("notitile");
- $("#wtlistbox").hide();
- $("#alllistbox").hide();
- $("#finishbox").show();
- });
- </script>
- <script type="text/javascript">
- $(function(){
- setInterval("real_time()",2000);
- });
- function real_time(){
- $.post("{:U('Levertade/real_time')}",function(data){
- $.each(data,function(index,value){
- $('.pro'+value.id).html(value.profit)
- });
- });
- }
- function hidepcconfim(){
- $("#pcconfim").hide();
- }
- function closeorder(id){
- var oid = id;
- if(oid == '' || oid <= 0){
- layer.msg("{:L('缺少重要参数')}");return false;
- }
- $.post("{:U('Levertade/confimclose')}",{'id':oid},function(data){
- if(data.code == 1){
- $("#confim_txt").empty();
- $("#pcoid").val(data.id);
- $("#confim_txt").html(data.txt);
- $("#pcconfim").show();
- }
- });
- }
-
- function pcorder(){
- var flag = $("#flag").val();
- if(flag == 2){
- return false;
- }
- var oid = $("#pcoid").val();
- if(oid == '' || oid <= 0){
- layer.msg("{:L('缺少重要参数')}");return false;
- }
- $("#flag").val(2);
- $.post("{:U('Levertade/closeorder')}",{'id':oid},function(data){
- if(data.code == 1){
- layer.msg(data.info);
- setTimeout(function(args){
- window.location.reload();
- },2000);
- }else{
- layer.msg(data.info);return false;
- }
- });
- }
- function clearorder(id){
- var flag = $("#flag").val();
- if(flag == 2){
- return false;
- }
- var oid = id;
- if(oid == '' || oid <= 0){
- layer.msg("{:L('缺少重要参数')}");return false;
- }
- $("#flag").val(2);
- $.post("{:U('Levertade/clearorder')}",{'id':oid},function(data){
- if(data.code == 1){
- layer.msg(data.info);
- setTimeout(function(args){
- $("#pcconfim").hide();
- window.location.reload();
- },2000);
- }else{
- layer.msg(data.info);return false;
- }
- });
- }
- </script>
- <script type="text/javascript">
- function goback(){
- window.history.go(-1);
- }
- </script>
- </html>
|