d6194b32d9c3bd12380e8190ca1a4e66.php 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  1. <?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
  2. <html lang="zh-CN" style="background:#fff;">
  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><?php echo ($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:0px 15px;}
  22. .listbox{width:100%;height:100px;background:#fff;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. .titlebox{width:29%;height:50px;line-height:50px;float:left;}
  27. .xztitile{color:#000;font-size:22px;font-weight:bold;}
  28. .notitile{color:#707A8A;font-size:20px;font-weight:500px;}
  29. .listbox{width:100%;background:#fff;margin-top:120px;}
  30. .tlistbox{width:100%;clear:both;padding:10px 0px;}
  31. .tlistbox_1{width:100%;border-bottom:1px solid #f5f5f5;}
  32. .tlistbox_2{width:100%;height:30px;}
  33. .tlistbox_3{width:80%;height:30px;line-height:30px;}
  34. .tlistbox_4{width:20%;height:30px;line-height:30px;}
  35. .tlistbox_5{padding:5px 10px;background:#fcfcfc;border-radius:5px;}
  36. .tlistbox_6{width:100%;height:60px;}
  37. .tlistbox_7{width:33.33%;height:60px;}
  38. .tlistbox_8{width:100%;height:30px;line-height:30px;}
  39. .tlistbox_9{width:100%;height:30px;line-height:20px;}
  40. .tl{text-align:left;}
  41. .tr{text-align:right;}
  42. .tc{text-align:center;}
  43. .fl{float:left;}
  44. .fr{float:right;}
  45. .red{color:#f5465c;}
  46. .bghc{background:#f5f5f5;}
  47. .green{color:#0ecb81;}
  48. .emptybox{width:100%;height:80px;line-height:80px;text-align:center;}
  49. </style>
  50. </head>
  51. <body style="background:#fff;">
  52. <div class="container-fluid " style="padding:0px;width:100vw;">
  53. <div class="no_header">
  54. <div class="fl allhg txtl">
  55. <i class="bi bi-arrow-left fcc fw" onclick="goback()" style="font-size: 24px;"></i>
  56. </div>
  57. <div class="fr allhg txtr" style="line-height:50px;width:10%;"></div>
  58. </div>
  59. <div class="contentbox">
  60. <div class="contentbox_top" style="position: fixed;top: 50px;background:#f5f5f5;">
  61. <div class="titlebox">
  62. <span class="xztitile" id="wtlistbtn"><?php echo L('全部委托');?></span>
  63. </div>
  64. <div class="titlebox">
  65. <span class="notitile" id="alllistbtn"><?php echo L('历史记录');?></span>
  66. </div>
  67. <div class="titlebox">
  68. <span class="notitile" id="finishbtn"><?php echo L('成交明细');?></span>
  69. </div>
  70. </div>
  71. <!---成交记录-->
  72. <div class="listbox" id="finishbox" style="display:none;">
  73. <?php if(empty($finishlist)): ?><div class="emptybox">
  74. <span class="fcc fzmm"><?php echo L('暂时没有记录');?></span>
  75. </div>
  76. <?php else: ?>
  77. <?php if(is_array($finishlist)): foreach($finishlist as $key=>$vo): ?><div class="tlistbox">
  78. <div class="tlistbox_1">
  79. <div class="tlistbox_2">
  80. <div class="tlistbox_3 fl">
  81. <?php if($vo["type"] == 1): ?><span class="fzmmm green"><?php echo L('购买');?></span>
  82. <?php elseif($vo["type"] == 2): ?>
  83. <span class="fzmmm red"><?php echo L('出售');?></span><?php endif; ?>
  84. <span class="fzmmm fch" style="font-weight:bold;"><?php echo ($vo["symbol"]); ?></span>
  85. </div>
  86. <a href="<?php echo U('Trade/billinfo');?>?id=<?php echo ($vo["id"]); ?>">
  87. <div class="tlistbox_4 fr tr">
  88. <span class="fcc fzm"><?php echo L('已完成');?></span>
  89. <i class="bi bi-chevron-right"></i>
  90. </div>
  91. </a>
  92. </div>
  93. <div class="tlistbox_6">
  94. <div class="tlistbox_7 fl">
  95. <div class="tlistbox_8 tl">
  96. <span class="fzm fcc"><?php echo L('时间');?></span>
  97. </div>
  98. <div class="tlistbox_9 tl">
  99. <span class="fzmm fch"><?php echo date("m-d H:i",strtotime($vo['tradetime']));?></span>
  100. </div>
  101. </div>
  102. <?php if($vo["type"] == 1): ?><div class="tlistbox_7 fl">
  103. <div class="tlistbox_8 tc">
  104. <span class="fzm fcc"><?php echo L('委托价');?>(USDT)</span>
  105. </div>
  106. <div class="tlistbox_9 tc">
  107. <span class="fzmm fch"><?php echo ($vo["xjprice"]); ?></span>
  108. </div>
  109. </div>
  110. <?php elseif($vo["type"] == 2): ?>
  111. <div class="tlistbox_7 fl">
  112. <div class="tlistbox_8 tc">
  113. <span class="fzm fcc"><?php echo L('委托价');?>(USDT)</span>
  114. </div>
  115. <div class="tlistbox_9 tc">
  116. <span class="fzmm fch"><?php echo L('市价');?></span>
  117. </div>
  118. </div><?php endif; ?>
  119. <div class="tlistbox_7 fl">
  120. <div class="tlistbox_8 tr">
  121. <span class="fzm fcc"><?php echo L('交易额');?>(USDT)</span>
  122. </div>
  123. <div class="tlistbox_9 tr">
  124. <span class="fzmm fch"><?php echo ($vo["usdtnum"]); ?></span>
  125. </div>
  126. </div>
  127. </div>
  128. <div class="tlistbox_6">
  129. <div class="tlistbox_7 fl">
  130. <div class="tlistbox_8 tl">
  131. <span class="fzm fcc"><?php echo L('成交总价');?>(USDT)</span>
  132. </div>
  133. <div class="tlistbox_9 tl">
  134. <span class="fzmm fch"><?php echo ($vo["usdtnum"]); ?></span>
  135. </div>
  136. </div>
  137. <?php if($vo["type"] == 1): ?><div class="tlistbox_7 fl">
  138. <div class="tlistbox_8 tc">
  139. <span class="fzm fcc"><?php echo L('成交均价');?>(USDT)</span>
  140. </div>
  141. <div class="tlistbox_9 tc">
  142. <span class="fzmm fch"><?php echo ($vo["price"]); ?></span>
  143. </div>
  144. </div>
  145. <?php elseif($vo["type"] == 2): ?>
  146. <div class="tlistbox_7 fl">
  147. <div class="tlistbox_8 tc">
  148. <span class="fzm fcc"><?php echo L('成交均价');?>(USDT)</span>
  149. </div>
  150. <div class="tlistbox_9 tc">
  151. <span class="fzmm fch"><?php echo ($vo["price"]); ?></span>
  152. </div>
  153. </div><?php endif; ?>
  154. <div class="tlistbox_7 fl">
  155. <div class="tlistbox_8 tr">
  156. <span class="fzm fcc"><?php echo L('成交量');?>(<?php echo ($vo["coin"]); ?>)</span>
  157. </div>
  158. <div class="tlistbox_9 tr">
  159. <span class="fzmm fch"><?php echo ($vo["coinnum"]); ?></span>
  160. </div>
  161. </div>
  162. </div>
  163. </div>
  164. </div><?php endforeach; endif; endif; ?>
  165. </div>
  166. <!---历史记录-->
  167. <div class="listbox" id="alllistbox" style="display:none;">
  168. <?php if(empty($alllist)): ?><div class="emptybox">
  169. <span class="fcc fzmm"><?php echo L('暂时没有记录');?></span>
  170. </div>
  171. <?php else: ?>
  172. <?php if(is_array($alllist)): foreach($alllist as $key=>$vo): ?><div class="tlistbox">
  173. <div class="tlistbox_1">
  174. <div class="tlistbox_2">
  175. <div class="tlistbox_3 fl">
  176. <?php if($vo["type"] == 1): ?><span class="fzmmm green"><?php echo L('购买');?></span>
  177. <?php elseif($vo["type"] == 2): ?>
  178. <span class="fzmmm red"><?php echo L('出售');?></span><?php endif; ?>
  179. <span class="fzmmm fch" style="font-weight:bold;"><?php echo ($vo["symbol"]); ?></span>
  180. </div>
  181. <a href="<?php echo U('Trade/billinfo');?>?id=<?php echo ($vo["id"]); ?>">
  182. <div class="tlistbox_4 fr tr">
  183. <?php if($vo["status"] == 1): ?><span class="fcc fzm"><?php echo L('取消');?></span>
  184. <?php elseif($vo["status"] == 2): ?>
  185. <span class="fcc fzm"><?php echo L('已完成');?></span>
  186. <?php elseif($vo["status"] == 3): ?>
  187. <span class="fcc fzm"><?php echo L('已完成');?></span><?php endif; ?>
  188. <i class="bi bi-chevron-right"></i>
  189. </div>
  190. </a>
  191. </div>
  192. <div class="tlistbox_6">
  193. <div class="tlistbox_7 fl">
  194. <div class="tlistbox_8 tl">
  195. <span class="fzm fcc"><?php echo L('时间');?></span>
  196. </div>
  197. <div class="tlistbox_9 tl">
  198. <span class="fzmm fch"><?php echo date("m-d H:i",strtotime($vo['tradetime']));?></span>
  199. </div>
  200. </div>
  201. <?php if($vo["type"] == 1): ?><div class="tlistbox_7 fl">
  202. <div class="tlistbox_8 tc">
  203. <span class="fzm fcc"><?php echo L('委托价');?>(USDT)</span>
  204. </div>
  205. <div class="tlistbox_9 tc">
  206. <span class="fzmm fch"><?php echo ($vo["xjprice"]); ?></span>
  207. </div>
  208. </div>
  209. <?php elseif($vo["type"] == 2): ?>
  210. <div class="tlistbox_7 fl">
  211. <div class="tlistbox_8 tc">
  212. <span class="fzm fcc"><?php echo L('委托价');?>(USDT)</span>
  213. </div>
  214. <div class="tlistbox_9 tc">
  215. <span class="fzmm fch"><?php echo L('市价');?></span>
  216. </div>
  217. </div><?php endif; ?>
  218. <div class="tlistbox_7 fl">
  219. <div class="tlistbox_8 tr">
  220. <span class="fzm fcc"><?php echo L('交易额');?>(USDT)</span>
  221. </div>
  222. <div class="tlistbox_9 tr">
  223. <span class="fzmm fch"><?php echo ($vo["usdtnum"]); ?></span>
  224. </div>
  225. </div>
  226. </div>
  227. <div class="tlistbox_6">
  228. <div class="tlistbox_7 fl">
  229. <div class="tlistbox_8 tl">
  230. <span class="fzm fcc"><?php echo L('成交总价');?>(USDT)</span>
  231. </div>
  232. <div class="tlistbox_9 tl">
  233. <span class="fzmm fch"><?php echo ($vo["usdtnum"]); ?></span>
  234. </div>
  235. </div>
  236. <?php if($vo["type"] == 1): ?><div class="tlistbox_7 fl">
  237. <div class="tlistbox_8 tc">
  238. <span class="fzm fcc"><?php echo L('成交均价');?>(USDT)</span>
  239. </div>
  240. <div class="tlistbox_9 tc">
  241. <span class="fzmm fch"><?php echo ($vo["price"]); ?></span>
  242. </div>
  243. </div>
  244. <?php elseif($vo["type"] == 2): ?>
  245. <div class="tlistbox_7 fl">
  246. <div class="tlistbox_8 tc">
  247. <span class="fzm fcc"><?php echo L('成交均价');?>(USDT)</span>
  248. </div>
  249. <div class="tlistbox_9 tc">
  250. <span class="fzmm fch"><?php echo ($vo["price"]); ?></span>
  251. </div>
  252. </div><?php endif; ?>
  253. <div class="tlistbox_7 fl">
  254. <div class="tlistbox_8 tr">
  255. <span class="fzm fcc"><?php echo L('成交量');?>(<?php echo ($vo["coin"]); ?>)</span>
  256. </div>
  257. <div class="tlistbox_9 tr">
  258. <span class="fzmm fch"><?php echo ($vo["coinnum"]); ?></span>
  259. </div>
  260. </div>
  261. </div>
  262. </div>
  263. </div><?php endforeach; endif; endif; ?>
  264. </div>
  265. <!----所有委托--->
  266. <div class="listbox" id="wtlistbox" style="display:block;">
  267. <?php if(empty($list)): ?><div class="emptybox">
  268. <span class="fcc fzmm"><?php echo L('暂时没有记录');?></span>
  269. </div>
  270. <?php else: ?>
  271. <?php if(is_array($list)): foreach($list as $key=>$vo): ?><div class="tlistbox">
  272. <div class="tlistbox_1">
  273. <div class="tlistbox_2">
  274. <div class="tlistbox_3 fl">
  275. <?php if($vo["type"] == 1): ?><span class="fzmmm green"><?php echo L('购买');?></span>
  276. <?php elseif($vo["type"] == 2): ?>
  277. <span class="fzmmm red"><?php echo L('出售');?></span><?php endif; ?>
  278. <span class="fzmmm fch" style="font-weight:bold;"><?php echo ($vo["symbol"]); ?></span>
  279. </div>
  280. <div class="tlistbox_4 fr tr" onclick="clearorder(<?php echo ($vo["id"]); ?>);">
  281. <span class="tlistbox_5 fcy"><?php echo L('取消');?></span>
  282. </div>
  283. </div>
  284. <div class="tlistbox_6">
  285. <div class="tlistbox_7 fl">
  286. <div class="tlistbox_8 tl">
  287. <span class="fzm fcc"><?php echo L('价格');?>(USDT)</span>
  288. </div>
  289. <div class="tlistbox_9 tl">
  290. <span class="fzmm fch"><?php echo ($vo["xjprice"]); ?></span>
  291. </div>
  292. </div>
  293. <?php if($vo["type"] == 1): ?><div class="tlistbox_7 fl">
  294. <div class="tlistbox_8 tc">
  295. <span class="fzm fcc"><?php echo L('数量');?>(USDT)</span>
  296. </div>
  297. <div class="tlistbox_9 tc">
  298. <span class="fzmm fch"><?php echo ($vo["usdtnum"]); ?></span>
  299. </div>
  300. </div>
  301. <?php elseif($vo["type"] == 2): ?>
  302. <div class="tlistbox_7 fl">
  303. <div class="tlistbox_8 tc">
  304. <span class="fzm fcc"><?php echo L('数量');?>(<?php echo ($vo["coin"]); ?>)</span>
  305. </div>
  306. <div class="tlistbox_9 tc">
  307. <span class="fzmm fch"><?php echo ($vo["coinnum"]); ?></span>
  308. </div>
  309. </div><?php endif; ?>
  310. <div class="tlistbox_7 fl">
  311. <div class="tlistbox_8 tr">
  312. <span class="fzm fcc"><?php echo L('实际成交');?>(<?php echo ($vo["coin"]); ?>)</span>
  313. </div>
  314. <div class="tlistbox_9 tr">
  315. <span class="fzmm fch"><?php echo ($vo["coinnum"]); ?></span>
  316. </div>
  317. </div>
  318. </div>
  319. </div>
  320. </div><?php endforeach; endif; endif; ?>
  321. </div>
  322. <div style="width:100%;height:80px;"></div>
  323. </div>
  324. </div>
  325. </body>
  326. <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
  327. <script type="text/javascript" src="/Public/Static/js/layer/layer.js" ></script>
  328. <script type="text/javascript">
  329. $("#wtlistbtn").click(function(){
  330. $("#wtlistbtn").addClass("xztitile");
  331. $("#wtlistbtn").removeClass("notitile");
  332. $("#alllistbtn").addClass("notitile");
  333. $("#alllistbtn").removeClass("xztitile");
  334. $("#finishbtn").addClass("notitile");
  335. $("#finishbtn").removeClass("xztitile");
  336. $("#wtlistbox").show();
  337. $("#alllistbox").hide();
  338. $("#finishbox").hide();
  339. });
  340. $("#alllistbtn").click(function(){
  341. $("#wtlistbtn").addClass("notitile");
  342. $("#wtlistbtn").removeClass("xztitile");
  343. $("#alllistbtn").addClass("xztitile");
  344. $("#alllistbtn").removeClass("notitile");
  345. $("#finishbtn").addClass("notitile");
  346. $("#finishbtn").removeClass("xztitile");
  347. $("#wtlistbox").hide();
  348. $("#alllistbox").show();
  349. $("#finishbox").hide();
  350. });
  351. $("#finishbtn").click(function(){
  352. $("#wtlistbtn").addClass("notitile");
  353. $("#wtlistbtn").removeClass("xztitile");
  354. $("#alllistbtn").addClass("notitile");
  355. $("#alllistbtn").removeClass("xztitile");
  356. $("#finishbtn").addClass("xztitile");
  357. $("#finishbtn").removeClass("notitile");
  358. $("#wtlistbox").hide();
  359. $("#alllistbox").hide();
  360. $("#finishbox").show();
  361. });
  362. </script>
  363. <script type="text/javascript">
  364. function clearorder(id){
  365. var oid = id;
  366. $.post("<?php echo U('Trade/clearorder');?>",
  367. {"oid":oid},
  368. function(data){
  369. if(data.code == 1){
  370. layer.msg(data.info);
  371. setTimeout(function(args){
  372. window.location.reload();
  373. },2000);
  374. }else{
  375. layer.msg(data.info);return false;
  376. }
  377. });
  378. }
  379. </script>
  380. <script type="text/javascript">
  381. function goback(){
  382. window.history.go(-1);
  383. }
  384. </script>
  385. </html>