ctbill.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  7. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.0/dist/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
  8. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.3.0/font/bootstrap-icons.css">
  9. <link rel="stylesheet" type="text/css" href="/Public/Static/css/base2.css" />
  10. <link rel="stylesheet" type="text/css" href="/Public/Static/css/nologed.css" />
  11. <link rel="stylesheet" href="/Public/Static/Icoinfont/iconfont.css">
  12. <script src="/Public/Static/Icoinfont/iconfont.js"></script>
  13. <title>{$webname}</title>
  14. <style>
  15. ::-webkit-input-placeholder {color: #b5b5b5;font-size: 12px;}
  16. ::-moz-placeholder {color: #b5b5b5;font-size: 12px;}
  17. input:focus{background:#f5f5f5;outline: 1px solid #f5f5f5;}
  18. a:hover,a:link,a:visited,a:active{color:#707A8A;text-decoration:none;}
  19. .no_header{position: fixed;z-index: 9999;padding:0px 10px;top:0px;line-height: 50px;background:#f5f5f5;}
  20. .contentbox{width:100%;margin-top:45px;}
  21. .contentbox_top{width:100%;height:50px;line-height:50px;text-align:left;padding:5px 15px;}
  22. .listbox{width:100%;height:120px;background:#fff;border-bottom:1px solid #f5f5f5;padding:5px 15px;}
  23. .listbox_title{width:100%;height:30px;line-height:30px;}
  24. .listbox_title_l{width:50%;height:30px;float:left;text-align:left;}
  25. .listbox_title_r{width:50%;height:30px;float:right;text-align:right;}
  26. .progress-bar{background-color: #eeb80d;}
  27. </style>
  28. </head>
  29. <body>
  30. <div class="container-fluid " style="padding:0px;width:100vw;">
  31. <div class="no_header">
  32. <div class="fl allhg txtl">
  33. <i class="bi bi-arrow-left fcc fw" onclick="goback()" style="font-size: 24px;"></i>
  34. </div>
  35. <div class="fr allhg txtr" style="line-height:50px;width:10%;"></div>
  36. </div>
  37. <div class="contentbox">
  38. <div class="contentbox_top" style="position: fixed;top: 50px;background: #f5f5f5;">
  39. <div id="hylist_btn" onclick="gethyorder()" style="height: 50px;line-height:50px;float:left;margin-right:45px;">
  40. <span id="hylist_btn_span" style="font-size:16px;font-weight:550;">{:L('合约记录')}</span>
  41. </div>
  42. <div id="tylist_btn" onclick="set_tyinterval()" style="height: 50px;line-height:50px;float:left;margin-right:30px;">
  43. <span id="tylist_btn_span" style="font-size:14px;font-weight:550;">{:L('体验记录')}</span>
  44. </div>
  45. </div>
  46. <!-----------合约订单列表---------->
  47. <div id="list_box" style="width:100%;background:#fff;margin-top:120px;display:block">
  48. </div>
  49. <!----------体验合约订单列表---------->
  50. <div id="tylist_box" style="width:100%;background:#fff;margin-top:120px;display:none;">
  51. </div>
  52. <div style="width:100%;height:80px;"></div>
  53. </div>
  54. </div>
  55. </body>
  56. <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
  57. <script type="text/javascript" src="/Public/Static/js/layer/layer.js" ></script>
  58. <script type="text/javascript">
  59. $(function(){
  60. gethyorder();
  61. setInterval("gethyorder()",1000);
  62. });
  63. $("#hylist_btn").click(function(){
  64. $("#hylist_btn_span").css('font-size','16px');
  65. $("#tylist_btn_span").css('font-size','14px');
  66. $("#list_box").show();
  67. $("#tylist_box").hide();
  68. });
  69. $("#tylist_btn").click(function(){
  70. $("#hylist_btn_span").css('font-size','14px');
  71. $("#tylist_btn_span").css('font-size','16px');
  72. $("#list_box").hide();
  73. $("#tylist_box").show();
  74. });
  75. </script>
  76. <script type="text/javascript">
  77. function set_tyinterval(){
  78. gethyorder();
  79. setInterval("get_tyhyorder()",1000);
  80. }
  81. function get_tyhyorder(){
  82. $.post("{:U('Contract/get_tyhyorder')}",
  83. function(data){
  84. if(data.code == 1){
  85. $("#tylist_box").empty();
  86. var html = '';
  87. if(data.data == '' || data.data == null){
  88. html = '<div class="listbox" style="border:none;">'+
  89. '<div style="width:100%;height:100px;line-height:120px;text-align:center;">'+
  90. '<span class="fzm fcc">' + "{:L('没有获取数据')}" + '</span>'+
  91. '</div>'+
  92. '</div>';
  93. $("#tylist_box").append(html);
  94. }else{
  95. $.each(data.data,function(key,val){
  96. html += '<div class="listbox">'+
  97. '<div class="listbox_title">'+
  98. '<div class="listbox_title_l">'+
  99. '<span class="fcc" style="font-size:16px;font-weight:500;">'+"{:L('交易对')}"+':</span>'+
  100. '<span class="fcc" style="font-size:16px;font-weight:500;">'+val.coinanme+'</span>'+
  101. '</div>'+
  102. '<a href="'+val.href+'">'+
  103. '<div class="listbox_title_r">'+
  104. '<span class="fcc" style="font-size:14px;">'+val.statusstr+'</span>'+
  105. '<i class="bi bi-chevron-right fzmmm"></i>'+
  106. '</div>'+
  107. '</a>'+
  108. '</div>'+
  109. '<div style="width:100%;height:60px;">'+
  110. '<div style="width:33.33%;height:60px;float:left;">'+
  111. '<div style="width:100%;height:30px;line-height:40px;">'+
  112. '<span style="color:#cbcbcb;">'+"{:L('投入金额')}"+'</span>'+
  113. '</div>'+
  114. '<div style="width:100%;height:30px;line-height:30px;">'+
  115. '<span class="fch">'+val.num+'</span>'+
  116. '</div>'+
  117. '</div>'+
  118. '<div style="width:33.33%;height:60px;float:left;">'+
  119. '<div style="width:100%;height:30px;line-height:40px;">'+
  120. '<span style="color:#cbcbcb;">'+"{:L('建仓单价')}"+'</span>'+
  121. '</div>'+
  122. '<div style="width:100%;height:30px;line-height:30px;">'+
  123. '<span class="fch">'+val.buyprice+'</span>'+
  124. '</div>'+
  125. '</div>'+
  126. '<div style="width:33.33%;height:60px;float:left;">'+
  127. '<div style="width:100%;height:30px;line-height:40px;text-align:right;">'+
  128. '<span style="color:#cbcbcb;">'+"{:L('建仓时间')}"+'</span>'+
  129. '</div>'+
  130. '<div style="width:100%;height:30px;line-height:30px;text-align:right;">'+
  131. '<span class="fch">'+val.buytime+'</span>'+
  132. '</div>'+
  133. '</div>'+
  134. '</div>'+
  135. '<div class="progress" style="height: 10px;">'+
  136. '<div class="progress-bar" role="progressbar" style="width:'+val.bl+'" aria-valuenow="'+val.t+'" aria-valuemin="0" aria-valuemax="100">'+val.t+'</div>'+
  137. '</div>'+
  138. '</div>';
  139. });
  140. $("#tylist_box").append(html);
  141. }
  142. }else{
  143. html = '<div class="listbox" style="border:none;">'+
  144. '<div style="width:100%;height:100px;line-height:120px;text-align:center;">'+
  145. '<span class="fzm fcc">' + "{:L('没有获取数据')}" + '</span>'+
  146. '</div>'+
  147. '</div>';
  148. $("#tylist_box").append(html);
  149. }
  150. });
  151. }
  152. function gethyorder(){
  153. $.post("{:U('Contract/gethyorder')}",
  154. function(data){
  155. if(data.code == 1){
  156. $("#list_box").empty();
  157. var html = '';
  158. if(data.data == '' || data.data == null){
  159. html = '<div class="listbox" style="border:none;">'+
  160. '<div style="width:100%;height:100px;line-height:120px;text-align:center;">'+
  161. '<span class="fzm fcc">' + "{:L('没有获取数据')}" + '</span>'+
  162. '</div>'+
  163. '</div>';
  164. $("#list_box").append(html);
  165. }else{
  166. $.each(data.data,function(key,val){
  167. html += '<div class="listbox">'+
  168. '<div class="listbox_title">'+
  169. '<div class="listbox_title_l">'+
  170. '<span class="fcc" style="font-size:16px;font-weight:500;">'+"{:L('交易对')}"+':</span>'+
  171. '<span class="fcc" style="font-size:16px;font-weight:500;">'+val.coinanme+'</span>'+
  172. '</div>'+
  173. '<a href="'+val.href+'">'+
  174. '<div class="listbox_title_r">'+
  175. '<span class="fcc" style="font-size:14px;">'+val.statusstr+'</span>'+
  176. '<i class="bi bi-chevron-right fzmmm"></i>'+
  177. '</div>'+
  178. '</a>'+
  179. '</div>'+
  180. '<div style="width:100%;height:60px;">'+
  181. '<div style="width:33.33%;height:60px;float:left;">'+
  182. '<div style="width:100%;height:30px;line-height:40px;">'+
  183. '<span style="color:#cbcbcb;">'+"{:L('投入金额')}"+'</span>'+
  184. '</div>'+
  185. '<div style="width:100%;height:30px;line-height:30px;">'+
  186. '<span class="fch">'+val.num+'</span>'+
  187. '</div>'+
  188. '</div>'+
  189. '<div style="width:33.33%;height:60px;float:left;">'+
  190. '<div style="width:100%;height:30px;line-height:40px;">'+
  191. '<span style="color:#cbcbcb;">'+"{:L('建仓单价')}"+'</span>'+
  192. '</div>'+
  193. '<div style="width:100%;height:30px;line-height:30px;">'+
  194. '<span class="fch">'+val.buyprice+'</span>'+
  195. '</div>'+
  196. '</div>'+
  197. '<div style="width:33.33%;height:60px;float:left;">'+
  198. '<div style="width:100%;height:30px;line-height:40px;text-align:right;">'+
  199. '<span style="color:#cbcbcb;">'+"{:L('建仓时间')}"+'</span>'+
  200. '</div>'+
  201. '<div style="width:100%;height:30px;line-height:30px;text-align:right;">'+
  202. '<span class="fch">'+val.buytime+'</span>'+
  203. '</div>'+
  204. '</div>'+
  205. '</div>'+
  206. '<div class="progress" style="height: 10px;">'+
  207. '<div class="progress-bar" role="progressbar" style="width:'+val.bl+'" aria-valuenow="'+val.t+'" aria-valuemin="0" aria-valuemax="100">'+val.t+'</div>'+
  208. '</div>'+
  209. '</div>';
  210. });
  211. $("#list_box").append(html);
  212. }
  213. }else{
  214. html = '<div class="listbox" style="border:none;">'+
  215. '<div style="width:100%;height:100px;line-height:120px;text-align:center;">'+
  216. '<span class="fzm fcc">' + "{:L('没有获取数据')}" + '</span>'+
  217. '</div>'+
  218. '</div>';
  219. $("#list_box").append(html);
  220. }
  221. });
  222. }
  223. </script>
  224. <script type="text/javascript">
  225. function goback(){
  226. window.history.go(-1);
  227. }
  228. </script>
  229. </html>