0772996556fcf62c01b87153216ba3b3.php 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869
  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;background:#fff;padding:0px 10px;top:0px;box-shadow: 0 2px 10px 0 rgb(0 0 0 / 10%);}
  20. .txtl{line-height:50px;width:10%;}
  21. .klinebox{width:100%;height:550px;margin-top:55px;}
  22. .klinetitle{width:100%;height:80px;background:#fff;padding:0px 20px;box-shadow: 0 2px 10px 0 rgb(0 0 0 / 5%);}
  23. .klinetitle_l{width:45%;height:80px;float:left;}
  24. .klinetitle_r{width:55%;height:80px;float:left;}
  25. .newpricebox{height:40px;line-height:60px;margin-bottom:0px;color:#2ebd85;font-size:22px;font-weight:bold;}
  26. .changebox{height:40px;line-height:40px;margin-bottom:0px;color:#2ebd85;font-weight:bold;}
  27. .klr3_box{width:100%;height:30px;}
  28. .klr2_box{width:100%;height:25px;}
  29. .klr3_box_dl{width:45%;height:30px;line-height:40px;float:left;text-align:left;}
  30. .klr3_box_dr{width:55%;height:30px;line-height:40px;float:right;text-align:right;}
  31. .klr2_box_dl{width:45%;height:25px;line-height:25px;float:left;text-align:left;}
  32. .klr2_box_dr{width:55%;height:25px;line-height:25px;float:right;text-align:right;}
  33. .dongbox{position:fixed;z-index:9999;display:none;top:0px;width:100%;height:100vh;background:rgba(0,0,0,0.2);}
  34. .dong_con{width:80%;height:86vh;background:#fff;margin-top:20px;border-top-right-radius:20px;border-bottom-right-radius:20px;padding:20px 15px 10px 20px;float:left;}
  35. .dong_title{width:100%;height:40px;line-height:40px;}
  36. .dong_title_span{font-size:18px;font-weight:500;}
  37. .dong_find_box{width:100%;height:30px;background:#f5f5f5;border-radius:10px;}
  38. .dong_find_box_img{width:20%;height:30px;line-height:30px;float:left;text-align:center;}
  39. .dong_input_box{width:80%;height:30px;float:left;}
  40. .dong_symbox{width:90%;height:20px;border:none;background:#f5f5f5;margin-top:5px;}
  41. .dong_sel_box{width:100%;height:30px;border-bottom:1px solid #f5f5f5;}
  42. .dong_sel_span{display:block;width:35px;height:30px;line-height:30px;border-bottom:2px solid #FCD535;font-size:14px;text-align:center;font-size:14px;}
  43. .symbol_list{width:100%;height:450px;overflow-y: scroll;margin-top:10px;}
  44. .sy_list_box{width:100%;height:30px;}
  45. .sy_list_boxl{width:35%;height:30px;line-height:30px;float:left;text-align:left;}
  46. .sy_list_boxr{width:30%;height:30px;line-height:30px;float:right;text-align:right;}
  47. .btnbox{width:100%;height:60px;padding:10px 20px;}
  48. .btnbox_l{width:45%;height:40px;line-height:40px;float:left;text-align:center;border-radius:10px;background:#0ecb81;}
  49. .btnbox_r{width:45%;height:40px;line-height:40px;float:right;text-align:center;border-radius:10px;background:#f5465c;}
  50. .dong_order_c{width:84%;height:540px;background:#fff;margin:60px auto;border-radius:10px;padding:10px;}
  51. .dong_order_x{width:100%;height:20px;line-height:20px;text-align:right;}
  52. .dong_order_title{width:100%;height:30px;line-height:20px;text-align:center;border-bottom: 1px solid #f5f5f5;}
  53. .dong_order_option{width:100%;height:80px;;overflow: hidden;overflow-x: scroll;margin-top:5px;}
  54. .dong_order_option_list{width:100px;height:80px;background:#f5f5f5;float:left;margin-right:10px;border-radius:10px;padding:5px;}
  55. .option_list_active{border:1px solid #FCD535;}
  56. .dong_order_p{width:100%;margin-bottom: 0rem;margin-top:10px;padding-left:5px;}
  57. .dong_money_list{width:100%;height:40px;}
  58. .dong_money_list_box{width:70%;height:40px;float:left;overflow: hidden;overflow-x: scroll;}
  59. .dong_money_list_box_l{width:1000px;height:40px;}
  60. .dong_money_list_box_option{width:70px;height:40px;line-height:40px;background:#f5f5f5;float:left;margin-right:5px;border-radius:5px;text-align:center;}
  61. .green{color:#0ecb81;}
  62. .red{color:#f5465c;}
  63. .circle_box{position: relative;left: 0;right: 0;top: 5px;bottom: 120px;margin: auto;width: 110px;height: 127px;box-sizing: content-box;}
  64. /*倒计时圆形进度条*/
  65. .circle_wrapper {
  66. position: relative;
  67. left: 0;
  68. right: 0;
  69. top: 5px;
  70. bottom: 120px;
  71. margin: auto;
  72. width: 110px;
  73. height: 127px;
  74. box-sizing: content-box;
  75. }
  76. .right_circle,.left_circle {
  77. position: absolute;
  78. width: 110px;
  79. height: 110px;
  80. overflow: hidden;
  81. top: 8px;
  82. }
  83. .right_circle {
  84. right: -50%;
  85. }
  86. .left_circle {
  87. left: -50%;
  88. }
  89. .right_circle > img {
  90. width: 100%;
  91. position: absolute;
  92. right: 50%;
  93. -webkit-animation: run 5s linear;
  94. animation-fill-mode: forwards;
  95. }
  96. @-webkit-keyframes run{
  97. 0{
  98. transform: rotate(0);
  99. }
  100. 50%{
  101. transform: rotate(180deg);
  102. }
  103. 100% {
  104. transform: rotate(180deg);
  105. }
  106. }
  107. .left_circle > img {
  108. width: 100%;
  109. position: absolute;
  110. left: 50%;
  111. -webkit-animation: runaway 5s linear;
  112. animation-fill-mode: forwards;
  113. }
  114. @-webkit-keyframes runaway{
  115. 0{
  116. transform: rotate(0);
  117. }
  118. 50%{
  119. transform: rotate(0);
  120. }
  121. 100% {
  122. transform: rotate(180deg);
  123. }
  124. }
  125. .count_remaining {
  126. margin-top: -128px !important;
  127. }
  128. .remaining {
  129. position: relative;
  130. height: 138px;
  131. }
  132. .row {subbtn
  133. padding-top: 10px !important;
  134. }
  135. .remaining > .col {
  136. color: red;
  137. font-size: 40px;
  138. text-align: center;
  139. height: 105px;
  140. position: absolute;
  141. top: 0;
  142. bottom: 0;
  143. left: 0;
  144. right: 0;
  145. }
  146. .remaining > div >div:nth-of-type(1) {
  147. font-size: 40px;
  148. color: #fdbe19;
  149. text-align: center;
  150. margin-top: 10px;
  151. }
  152. .remaining > div >div:nth-of-type(2) {
  153. font-size: 12px;
  154. color: #6d6d6d;
  155. text-align: center;
  156. }
  157. .remaining > div >div:nth-of-type(3) {
  158. font-size: 14px;
  159. color: #fa2e42;
  160. text-align: center;
  161. }
  162. .dong_order_c{
  163. height: 65vh;
  164. overflow: auto;
  165. }
  166. </style>
  167. </head>
  168. <body style="background:#fff;">
  169. <div class="container-fluid " style="padding:0px;width:100vw;">
  170. <div class="no_header">
  171. <div class="fl allhg txtl">
  172. <i class="bi bi-arrow-left fcc fw" onclick="goback()" style="font-size: 24px;"></i>
  173. </div>
  174. <div class="fl allhg" id="centerbox" style="width:80%;text-align:center;line-height:50px;">
  175. <i class="bi bi-text-indent-left fw" style="font-size:22px;color:#000;"></i>
  176. <span class="fzmmm fw" style="color:#000;" id="symbolbox"><?php echo ($upmarket); ?></span>
  177. <span class="fzmmm fw" style="color:#000;"><?php echo L('快速合约');?></span>
  178. </div>
  179. <a href="<?php echo U('Contract/ctbill');?>">
  180. <div class="fr allhg txtr" style="line-height:50px;width:10%;">
  181. <i class="bi bi-funnel fcy fw" style="font-size:20px;"></i>
  182. </div>
  183. </a>
  184. </div>
  185. <div class="klinebox">
  186. <div class="klinetitle">
  187. <div class="klinetitle_l">
  188. <p class="newpricebox" id="newpricebox" style="font-size:24px;">--</p>
  189. <p class="changebox" id="changebox">--</p>
  190. </div>
  191. <div class="klinetitle_r">
  192. <div class="klr3_box">
  193. <div class="klr3_box_dl">
  194. <span class="fzmm fcc"><?php echo L('最低');?></span>
  195. </div>
  196. <div class="klr3_box_dr">
  197. <span class="fzmm fch" id="minmoney">--</span>
  198. </div>
  199. </div>
  200. <div class="klr2_box">
  201. <div class="klr2_box_dl">
  202. <span class="fzmm fcc"><?php echo L('最高');?></span>
  203. </div>
  204. <div class="klr2_box_dr">
  205. <span class="fzmm fch" id="maxmoney">--</span>
  206. </div>
  207. </div>
  208. <div class="klr2_box">
  209. <div class="klr2_box_dl">
  210. <span class="fzmm fcc">24h<?php echo L('量');?></span>
  211. </div>
  212. <div class="klr2_box_dr">
  213. <span class="fzmm fch" id="allvol">--</span>
  214. </div>
  215. </div>
  216. </div>
  217. </div>
  218. <input type="hidden" id="coinname" value="<?php echo ($smybol); ?>" />
  219. <div style="width:100%;height:540px;">
  220. <iframe id="iframeid" width="100%" scrolling="no" height="540" src="/Trade/ordinary?market=<?php echo ($market); ?>" noresize="noresize" frameborder="0" >不支持IFRAME,请升级</iframe>
  221. </div>
  222. <div style="width:100%;height:20px;"></div>
  223. <div class="btnbox" style="position:fixed;bottom:0px;padding:0px 10px;background:#fff;">
  224. <div style="width:40%;height:60px;float:left;">
  225. <a href="<?php echo U('Contract/ctbill');?>">
  226. <div style="width:50px;height:60px;float:left;">
  227. <div style="width:100%;height:30px;line-height:40px;text-align:center;">
  228. <i class="bi bi-journal-text" style="font-size:18px;"></i>
  229. </div>
  230. <div style="width:100%;height:30px;line-height:25px;text-align:center;">
  231. <span style="color:#707A8A;"><?php echo L('持仓');?></span>
  232. </div>
  233. </div>
  234. </a>
  235. <a href="<?php echo U('User/czcoin');?>">
  236. <div style="width:50px;height:60px;float:left;">
  237. <div style="width:100%;height:30px;line-height:40px;text-align:center;">
  238. <i class="bi bi-cursor-fill" style="font-size:18px;"></i>
  239. </div>
  240. <div style="width:100%;height:30px;line-height:25px;text-align:center;">
  241. <span style="color:#707A8A;"><?php echo L('充币');?></span>
  242. </div>
  243. </div>
  244. </a>
  245. </div>
  246. <div style="width:60%;height:60px;float:right;padding:12px 0px;">
  247. <div class="btnbox_l" style="height:36px;line-height:36px;border-radius:5px;" onclick="show_dongbox(1)">
  248. <span class="fzmm fch" style="color:#fff;"><?php echo L('买涨');?></span>
  249. </div>
  250. <div class="btnbox_r" style="height:36px;line-height:36px;border-radius:5px;" onclick="show_dongbox(2)">
  251. <span class="fzmm fch" style="color:#fff;"><?php echo L('买跌');?></span>
  252. </div>
  253. </div>
  254. </div>
  255. <div style="width:100%;height:80px;"></div>
  256. </div>
  257. </div>
  258. <div class="dongbox" id="dongbox" style="display:none;">
  259. <div class="dong_order_c" id="timer_box" style="display:none;height:340px;margin-top:140px;">
  260. <div style="width:100%;height:10px;"></div>
  261. <div class="dong_order_title">
  262. <span class="fch" style="font-size:18px;font-weight:bold;" id="timer_coinname">BTC/USDT</span>
  263. </div>
  264. <div style="width:100%;height:270px;display:none" id="wait_box">
  265. <div style="width:100%;height:220px;line-height:220px;text-align:center;" id="wait_box_info">
  266. <span style="font-size:16px;font-weight:bold;"><?php echo L('正在结算中');?>...</span>
  267. </div>
  268. <div onclick="show_confirm_empty(1)" style="width: 100%;height: 45px;line-height: 45px;text-align: center;background: linear-gradient(to left,#eeb80d,#ffe35b);border-radius: 10px;cursor: pointer;">
  269. <span style="color:#fff;"><?php echo L('返回');?></span>
  270. </div>
  271. </div>
  272. <div style="width:100%;" id="timer_info_box">
  273. <div class="circle_wrapper">
  274. <div class="right_circle">
  275. <img class="img_circle_right" id="timer_circle_right" style="-webkit-animation: run 300s linear;" src="/Public/Static/img/right_circle1.png">
  276. </div>
  277. <div class="left_circle">
  278. <img class="img_circle_lift" id="timer_circle_left" style="-webkit-animation: runaway 300s linear;" src="/Public/Static/img/left_circle1.png">
  279. </div>
  280. </div>
  281. <div class="row remaining count_remaining">
  282. <div class="col">
  283. <div class="ng-binding pay_order_sen" id="timer_t">68</div>
  284. <div><?php echo L('现价');?></div>
  285. <div class="ng-binding newprice" id="timer_newprice">43128.277</div>
  286. </div>
  287. </div>
  288. <div style="width:100%;height:150px;border-top:1px solid #f5f5f5;">
  289. <div style="width:100%;height:80px;">
  290. <div style="width:33.33%;height:80px;float:left;">
  291. <div style="width:100%;height:40px;line-height:50px;text-align:center;"><?php echo L('类型');?></div>
  292. <div id="timer_type" style="width:100%;height:40px;line-height:30px;text-align:center;"><span><?php echo L('买涨');?></span></div>
  293. </div>
  294. <div style="width:33.33%;height:80px;float:left;">
  295. <div style="width:100%;height:40px;line-height:50px;text-align:center;"><?php echo L('金额');?></div>
  296. <div id="timer_buynum" style="width:100%;height:40px;line-height:30px;text-align:center;font-weight:bold;">1000.00</div>
  297. </div>
  298. <div style="width:33.33%;height:80px;float:left;">
  299. <div style="width:100%;height:40px;line-height:50px;text-align:center;"><?php echo L('建仓');?></div>
  300. <div id="timer_buyprice" style="width:100%;height:40px;line-height:30px;text-align:center;font-weight:bold;">43128.277</div>
  301. </div>
  302. </div>
  303. <input type="hidden" id="timer_order_type" value="1" />
  304. <div onclick="show_confirm()" style="width: 100%;height: 45px;line-height: 45px;text-align: center;background: linear-gradient(to left,#eeb80d,#ffe35b);border-radius: 10px;cursor: pointer;">
  305. <span style="color:#fff;"><?php echo L('返回');?></span>
  306. </div>
  307. </div>
  308. </div>
  309. </div>
  310. <!-------------------确认购买订单弹窗开始--------------------->
  311. <div class="dong_order_c" id="confirm_box" style="display:block;">
  312. <div class="dong_order_x" id="x_dongbox">
  313. <i class="bi bi-x" style="font-size:18px;" ></i>
  314. </div>
  315. <div class="dong_order_title">
  316. <span class="fch" style="font-size:16px;font-weight:500;"><?php echo L('确认订单');?></span>
  317. </div>
  318. <p class="dong_order_p fcc"><?php echo L('订单类型');?></p>
  319. <div class="dong_order_option">
  320. <div style="width:1000px;height:80px;">
  321. <?php if(is_array($cd)): foreach($cd as $key=>$vo): ?><div class="dong_order_option_list" id="time_<?php echo ($vo["sort"]); ?>" onclick="xztime(<?php echo ($vo["sort"]); ?>,<?php echo ($vo["time"]); ?>,<?php echo ($vo["ykbl"]); ?>);">
  322. <div style="width:100%;height:20px;line-height:20px;text-align:center;">
  323. <span class="fcc fzm"><?php echo L('到期时间');?></span>
  324. </div>
  325. <div style="width:100%;height:20px;line-height:20px;text-align:center;margin-top:5px;">
  326. <span class="fcy fzmmm"><?php echo ($vo["time"]); echo L('分钟');?></span>
  327. </div>
  328. <div style="width:100%;height:20px;line-height:20px;text-align:center;margin-top:5px;">
  329. <span class="fcc fzm" style="color:#f5465c;"><?php echo L('收益率'); echo ($vo["ykbl"]); ?>%</span>
  330. </div>
  331. </div><?php endforeach; endif; ?>
  332. </div>
  333. </div>
  334. <p class="dong_order_p fcc"><?php echo L('选择投资金额');?></p>
  335. <div class="dong_money_list">
  336. <div class="dong_money_list_box" style="width:100%;">
  337. <div class="dong_money_list_box_l">
  338. <?php if(is_array($ed)): foreach($ed as $key=>$v): ?><div class="dong_money_list_box_option moveclass" id="tzed_<?php echo ($v["sort"]); ?>" onclick="xztzed(<?php echo ($v["sort"]); ?>,<?php echo ($v["tzed"]); ?>);">
  339. <span class="fzm fcc"><?php echo ($v["tzed"]); ?> USDT</span>
  340. </div><?php endforeach; endif; ?>
  341. </div>
  342. </div>
  343. </div>
  344. <p class="dong_order_p fcc"><?php echo L('自定义金额');?></p>
  345. <div class="dong_money_list">
  346. <div style="width:100%;height:40px;text-align:center;" id="custommoney">
  347. <input type="text" id="tzmoney" onblur="settzmoney();" value="" placeholder="<?php echo L('请输入金额');?>" style="width:98%;margin:auto;height:35px;line-height:35px;background:#f5f5f5;padding-left:15px;border:none;margin-top:2px;" />
  348. </div>
  349. </div>
  350. <p class="dong_order_p fcc"><?php echo L('账户余额');?>:<?php echo ($eusdt_blan); ?> USDT</p>
  351. <p class="dong_order_p fcc"><?php echo L('体验金');?>:<?php echo ($tj_money); ?> USDT</p>
  352. <div style="width:100%;height:50px;margin-top:10px;border-top:1px solid #f5f5f5;padding-top:10px;">
  353. <div style="width:25%;height:50px;float:left;">
  354. <div style="width:100%;height:30px;line-height:30px;text-align:center;">
  355. <span class="fcc fzmm"><?php echo L('交易对');?></span>
  356. </div>
  357. <div style="width:100%;height:20px;line-height:20px;text-align:center;">
  358. <span class="fcc fzmm"><?php echo ($upmarket); ?></span>
  359. </div>
  360. </div>
  361. <div style="width:20%;height:50px;float:left;">
  362. <div style="width:100%;height:30px;line-height:30px;text-align:center;">
  363. <span class="fcc fzmm"><?php echo L('方向');?></span>
  364. </div>
  365. <div style="width:100%;height:20px;line-height:20px;text-align:center;">
  366. <span class="fcc fzmm" id="fxtext"><?php echo L('买涨');?></span>
  367. </div>
  368. </div>
  369. <div style="width:30%;height:50px;float:left;">
  370. <div style="width:100%;height:30px;line-height:30px;text-align:center;">
  371. <span class="fcc fzmm"><?php echo L('现价');?></span>
  372. </div>
  373. <div style="width:100%;height:20px;line-height:20px;text-align:center;">
  374. <span class="fcc fzmm" style="color:#f5465c;" id="ordernewprice">--</span>
  375. </div>
  376. </div>
  377. <div style="width:25%;height:50px;float:left;">
  378. <div style="width:100%;height:30px;line-height:30px;text-align:center;">
  379. <span class="fcc fzmm"><?php echo L('金额');?></span>
  380. </div>
  381. <div style="width:100%;height:20px;line-height:20px;text-align:center;">
  382. <span class="fcc fzmm"><span id="ttzed">10</span> USDT</span>
  383. </div>
  384. </div>
  385. </div>
  386. <input type="hidden" id="ctime" value="" />
  387. <input type="hidden" id="ctzed" value="" />
  388. <input type="hidden" id="ccoinname" value="<?php echo ($upmarket); ?>" />
  389. <input type="hidden" id="ctzfx" value="1" />
  390. <input type="hidden" id="cykbl" value="" />
  391. <input type="hidden" id="hymin" value="<?php echo ($hymin); ?>" />
  392. <input type="hidden" id="flag" value="1" />
  393. <?php if($uid <= 0): ?><div style="width:100%;height:40px;line-height:40px;text-align:center;margin-top:30px;background: linear-gradient(to left,#eeb80d,#ffe35b);border-radius:10px;">
  394. <span class="fch fzmm"><?php echo L('请先登陆');?></span>
  395. </div>
  396. <?php else: ?>
  397. <div id="subbtn" style="width:45%;height:40px;line-height:40px;text-align:center;margin-top:30px;background: linear-gradient(to left,#eeb80d,#ffe35b);border-radius:10px;float:left;">
  398. <span class="fch fzmm"><?php echo L('确认下单');?></span>
  399. </div>
  400. <div id="tyj_subbtn" style="width:45%;height:40px;line-height:40px;text-align:center;margin-top:30px;background: linear-gradient(to left,#eeb80d,#ffe35b);border-radius:10px;float:right;">
  401. <span class="fch fzmm"><?php echo L('体验金下单');?></span>
  402. </div><?php endif; ?>
  403. </div>
  404. <!-------------------确认购买订单弹窗结束--------------------->
  405. </div>
  406. <!---------交易选择弹窗---------->
  407. <div class="dongbox" id="showdong">
  408. <div class="dong_con">
  409. <div style="width:100%;position:relative;z-index:9999999;top:0px;">
  410. <div class="dong_title">
  411. <span class="dong_title_span"><?php echo L('快速合约');?></span>
  412. </div>
  413. <div class="dong_sel_box">
  414. <span class="fcc dong_sel_span"><?php echo L('全部');?></span>
  415. </div>
  416. </div>
  417. <div class="symbol_list" id="smybolbox">
  418. <div style="width:100%;height:100px;line-height:100px;text-align:center;">
  419. <span class="fzmm fcc"><?php echo L('没有获取数据');?></span>
  420. </div>
  421. </div>
  422. </div>
  423. <div style="width:20%;height:100vh;float:left;" id="hidedong"></div>
  424. </div>
  425. <!--底部-->
  426. <!--<div class="footer">-->
  427. <!-- <a href="<?php echo U('Index/index');?>">-->
  428. <!-- <div class="footer_op">-->
  429. <!-- <div class="f_op_t">-->
  430. <!-- <span class="iconfont icon-shouye" style="font-size:22px;"></span>-->
  431. <!-- </div>-->
  432. <!-- <div class="f_op_b">-->
  433. <!-- <span class="fzm fcc"><?php echo L('首页');?></span> -->
  434. <!-- </div>-->
  435. <!-- </div>-->
  436. <!-- </a>-->
  437. <!-- <a href="<?php echo U('Trade/index');?>">-->
  438. <!-- <div class="footer_op">-->
  439. <!-- <div class="f_op_t" style="line-height:35px;">-->
  440. <!-- <span class="iconfont icon-fukuan" style="font-size:22px;"></span>-->
  441. <!-- </div>-->
  442. <!-- <div class="f_op_b">-->
  443. <!-- <span class="fzm fcc"><?php echo L('交易');?></span> -->
  444. <!-- </div>-->
  445. <!-- </div>-->
  446. <!-- </a>-->
  447. <!-- <a href="<?php echo U('Orepool/index');?>">-->
  448. <!-- <div class="footer_op">-->
  449. <!-- <div class="f_op_t" style="line-height:35px;">-->
  450. <!-- <span class="iconfont icon-ziyuan14" style="font-size:22px;"></span>-->
  451. <!-- </div>-->
  452. <!-- <div class="f_op_b">-->
  453. <!-- <span class="fzm fcc"><?php echo L('矿机');?></span> -->
  454. <!-- </div>-->
  455. <!-- </div>-->
  456. <!-- </a>-->
  457. <!-- <a href="<?php echo U('Levertade/index');?>">-->
  458. <!-- <div class="footer_op">-->
  459. <!-- <div class="f_op_t" style="line-height:35px;">-->
  460. <!-- <svg class="icon fticon" aria-hidden="true"><use xlink:href="#icon-xuanxiang"></use></svg>-->
  461. <!-- </div>-->
  462. <!-- <div class="f_op_b">-->
  463. <!-- <span class="fzm fcy"><?php echo L('合约');?></span> -->
  464. <!-- </div>-->
  465. <!-- </div>-->
  466. <!-- </a>-->
  467. <!-- <a href="<?php echo U('User/index');?>">-->
  468. <!-- <div class="footer_op">-->
  469. <!-- <div class="f_op_t" style="line-height:35px;">-->
  470. <!-- <span class="iconfont icon-ziyuan24" style="font-size:22px;"></span>-->
  471. <!-- </div>-->
  472. <!-- <div class="f_op_b">-->
  473. <!-- <span class="fzm fcc"><?php echo L('资产');?></span> -->
  474. <!-- </div>-->
  475. <!-- </div>-->
  476. <!-- </a>-->
  477. <!--</div>-->
  478. <div class="dongbox" id="gotaxbox" style="display:none;">
  479. <div style="width:300px;height:260px;background:#fff;margin:50% auto;border-radius:10px;padding:15px;">
  480. <div style="width:100%;height:100px;line-height:100px;text-align:center;">
  481. <i class="bi bi-exclamation-circle" style="font-size:56px;font-weight:bold;color:#f5465c;"></i>
  482. </div>
  483. <div style="width:100%;height:60px;text-align:center;color:#000;font-size:14px;">
  484. <?php echo L('请先缴纳税金');?>
  485. </div>
  486. <div style="width:100%;height:60px;">
  487. <a href="<?php echo U('User/cztax');?>">
  488. <div style="width:45%;height:36px;line-height:36px;text-align:center;float:left;font-size:14px;color:#fff;background:#0ecb81;border-radius:10px;"><?php echo L('缴税');?></div></a>
  489. <div onclick="hidetaxbox()" style="width:45%;height:36px;line-height:36px;text-align:center;float:right;font-size:14px;color:#fff;background:#f5465c;border-radius:10px;"><?php echo L('取消');?></div>
  490. </div>
  491. </div>
  492. </div>
  493. </body>
  494. <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
  495. <script type="text/javascript" src="/Public/Static/js/layer/layer.js" ></script>
  496. <script type="text/javascript">
  497. function hidetaxbox(){
  498. $("#gotaxbox").hide();
  499. }
  500. function settzmoney(){
  501. var hymin = parseFloat($("#hymin").val());
  502. var tzmoney = parseFloat($("#tzmoney").val());
  503. if(tzmoney < hymin){
  504. layer.msg("<?php echo L('不能小于最低投资额度');?>");return false;
  505. }
  506. $("#ctzed").val(tzmoney);
  507. $("#ttzed").html(tzmoney);
  508. }
  509. </script>
  510. <script type="text/javascript">
  511. $("#custommoney").click(function(){
  512. $(".moveclass").removeClass("option_list_active");
  513. $("#custommoney").addClass("option_list_active");
  514. });
  515. </script>
  516. <script type="text/javascript">
  517. $("#tyj_subbtn").click(function(){
  518. // var flag = $("#flag").val();
  519. // if(flag == 2){
  520. // return false;
  521. // }
  522. var ctime = $("#ctime").val();
  523. var ctzed = $("#ctzed").val();
  524. var ccoinname = $("#ccoinname").val();
  525. var ctzfx = $("#ctzfx").val();
  526. var cykbl = $("#cykbl").val();
  527. if(ctime <= 0 || ctime ==''){
  528. layer.msg("<?php echo L('请选择结算时间');?>");return false;
  529. }
  530. if(ctzed <= 0 || ctzed==''){
  531. layer.msg("<?php echo L('请选择或输入投入金额');?>");return false;
  532. }
  533. if(ccoinname == '' || ccoinname == null){
  534. layer.msg("<?php echo L('缺少重要参数');?>");return false;
  535. }
  536. if(ctzfx <= 0 || ctzfx ==''){
  537. layer.msg("<?php echo L('缺少重要参数');?>");return false;
  538. }
  539. if(cykbl <= 0 || cykbl ==''){
  540. layer.msg("<?php echo L('缺少重要参数');?>");return false;
  541. }
  542. // $("#flag").val(2);
  543. $.post("<?php echo U('Contract/ty_creatorder');?>",
  544. {'ctime':ctime,'ctzed':ctzed,'ccoinname':ccoinname,'ctzfx':ctzfx,'cykbl':cykbl},
  545. function(data){
  546. if(data.code == 1){
  547. $('#timer_circle_right').attr('style','-webkit-animation: run '+ data.time +'s linear;')
  548. $('#timer_circle_left').attr('style','-webkit-animation: runaway '+ data.time +'s linear;')
  549. $("#timer_t").text(data.time);
  550. $("#timer_newprice").text(data.timer_newprice);
  551. $("#timer_type").html(data.timer_type);
  552. $("#timer_buynum").html(data.timer_buynum);
  553. $("#timer_order_type").html(data.hyzd);
  554. $("#timer_buyprice").html(data.buyprice);
  555. $("#confirm_box").hide();
  556. $("#timer_box").show();
  557. gettimer_time(data.id);
  558. setInterval('gettimer_time()',1000);
  559. }else{
  560. layer.msg(data.msg);return false;
  561. }
  562. });
  563. });
  564. function gettimer_time(id){
  565. var oid = id;
  566. $.post("<?php echo U('Contract/get_tyhyorder_one');?>",{'oid':oid},function(data){
  567. if(data.code == 1){
  568. $("#timer_t").text(data.time);
  569. $("#timer_newprice").text(data.timer_newprice);
  570. $("#timer_info_box").show();
  571. $("#wait_box").hide();
  572. }else if(data.code == 2){
  573. $("#wait_box_info").html(data.statusstr)
  574. $("#wait_box").show();
  575. $("#timer_info_box").hide();
  576. }else{
  577. $("#wait_box").show();
  578. $("#timer_info_box").hide();
  579. }
  580. });
  581. }
  582. </script>
  583. <script type="text/javascript">
  584. $("#subbtn").click(function(){
  585. // var flag = $("#flag").val();
  586. // if(flag == 2){
  587. // return false;
  588. // }
  589. var ctime = $("#ctime").val();
  590. var ctzed = $("#ctzed").val();
  591. var ccoinname = $("#ccoinname").val();
  592. var ctzfx = $("#ctzfx").val();
  593. var cykbl = $("#cykbl").val();
  594. if(ctime <= 0 || ctime ==''){
  595. layer.msg("<?php echo L('请选择结算时间');?>");return false;
  596. }
  597. if(ctzed <= 0 || ctzed==''){
  598. layer.msg("<?php echo L('请选择或输入投入金额');?>");return false;
  599. }
  600. if(ccoinname == '' || ccoinname == null){
  601. layer.msg("<?php echo L('缺少重要参数');?>");return false;
  602. }
  603. if(ctzfx <= 0 || ctzfx ==''){
  604. layer.msg("<?php echo L('缺少重要参数');?>");return false;
  605. }
  606. if(cykbl <= 0 || cykbl ==''){
  607. layer.msg("<?php echo L('缺少重要参数');?>");return false;
  608. }
  609. // $("#flag").val(2);
  610. $.post("<?php echo U('Contract/creatorder');?>",
  611. {'ctime':ctime,'ctzed':ctzed,'ccoinname':ccoinname,'ctzfx':ctzfx,'cykbl':cykbl},
  612. function(data){
  613. if(data.code == 1){
  614. $('#timer_circle_right').attr('style','-webkit-animation: run '+ data.time +'s linear;')
  615. $('#timer_circle_left').attr('style','-webkit-animation: runaway '+ data.time +'s linear;')
  616. $("#timer_t").text(data.time);
  617. $("#timer_newprice").text(data.timer_newprice);
  618. $("#timer_type").html(data.timer_type);
  619. $("#timer_buynum").html(data.timer_buynum);
  620. $("#timer_order_type").html(data.hyzd);
  621. $("#timer_buyprice").html(data.buyprice);
  622. $("#confirm_box").hide();
  623. $("#timer_box").show();
  624. gettimer_hytime(data.id);
  625. setInterval("gettimer_hytime()",1000);
  626. }else if(data.code == 3){
  627. $("#gotaxbox").show();
  628. }else{
  629. layer.msg(data.msg);return false;
  630. }
  631. });
  632. });
  633. function gettimer_hytime(id = null){
  634. var oid = id;
  635. $.post("<?php echo U('Contract/get_hyorder_one');?>",{'oid':oid},function(data){
  636. if(data.code == 1){
  637. $("#timer_t").text(data.time);
  638. $("#timer_newprice").text(data.timer_newprice);
  639. $("#timer_info_box").show();
  640. $("#wait_box").hide();
  641. }else if(data.code == 2){
  642. $("#wait_box_info").html(data.statusstr)
  643. $("#wait_box").show();
  644. $("#timer_info_box").hide();
  645. }else{
  646. $("#wait_box").show();
  647. $("#timer_info_box").hide();
  648. }
  649. });
  650. }
  651. </script>
  652. <script type="text/javascript">
  653. function xztime(sort,time,ykbl){
  654. var sort = sort;
  655. var time = time;
  656. var ykbl = ykbl;
  657. var idtxt = "#time_"+sort;
  658. $("#ctime").val(time);
  659. $("#cykbl").val(ykbl);
  660. $(idtxt).addClass("option_list_active");
  661. $(idtxt).siblings().removeClass("option_list_active");
  662. }
  663. function xztzed(sort,tzed){
  664. var sort = sort;
  665. var tzed = tzed;
  666. var idtxt = "#tzed_"+sort;
  667. $("#ctzed").val(tzed);
  668. $("#ttzed").html(tzed);
  669. $("#tzmoney").val(tzed)
  670. $(idtxt).addClass("option_list_active");
  671. $(idtxt).siblings().removeClass("option_list_active");
  672. $("#custommoney").removeClass("option_list_active");
  673. }
  674. </script>
  675. <script type="text/javascript">
  676. function getcoin_data(){
  677. var coinname = $("#coinname").val();
  678. $.post("<?php echo U('Ajaxtrade/getcoin_data');?>",
  679. {'coinname':coinname},
  680. function(data){
  681. if(data.code == 1){
  682. $("#newpricebox").html(data.close);
  683. $("#ordernewprice").html(data.close);
  684. $("#changebox").html(data.change);
  685. $("#minmoney").html(data.low);
  686. $("#maxmoney").html(data.high);
  687. $("#allvol").html(data.amount);
  688. }
  689. });
  690. }
  691. </script>
  692. <script type="text/javascript">
  693. $(function(){
  694. getcoin_data();
  695. setInterval("getcoin_data()",2000);
  696. //
  697. });
  698. </script>
  699. <script type="text/javascript">
  700. function getallsmybol(){
  701. $.post("<?php echo U('Ajaxtrade/getallcoin');?>",
  702. function(data){
  703. if(data.code == 1){
  704. $("#smybolbox").empty();
  705. var html = '';
  706. if(data.data == '' || data.data == null){
  707. html = '<div style="width:100%;height:100px;line-height:100px;text-align:center;">'+
  708. '<span class="fzmm fcc">' + "<?php echo L('没有获取数据');?>" + '</span>'+
  709. '</div>';
  710. $("#smybolbox").append(html);
  711. }else{
  712. $.each(data.data,function(key,val){
  713. html += '<a href="/Contract/index.html?coin='+ val.symbol +'">'+
  714. '<div class="sy_list_box">'+
  715. '<div class="sy_list_boxl">'+
  716. '<span class="fzmm fcc">'+ val.cname +'</span>'+
  717. '</div>'+
  718. '<div class="sy_list_boxl" style="text-align:center;">' + val.open + '</div>'+
  719. '<div class="sy_list_boxr">' + val.change +'</div>'+
  720. '</div>'+
  721. '</a>';
  722. });
  723. $("#smybolbox").append(html);
  724. }
  725. }else{
  726. html = '<div style="width:100%;height:100px;line-height:100px;text-align:center;">'+
  727. '<span class="fzmm fcc">' + "<?php echo L('没有获取数据');?>" + '</span>'+
  728. '</div>';
  729. $("#smybolbox").append(html);
  730. }
  731. });
  732. }
  733. </script>
  734. <script type="text/javascript">
  735. function show_confirm(){
  736. var num = $("#timer_type").val;
  737. show_dongbox(num);
  738. };
  739. function show_confirm_empty(num){
  740. var num = num
  741. show_dongbox(num);
  742. }
  743. function show_dongbox(num){
  744. var n = num;
  745. if(n == 1){
  746. $("#ctzfx").val(n);
  747. $("#fxtext").text("<?php echo L('买涨');?>");
  748. $("#fxtext").css('color','#0ecb81');
  749. }else if(n == 2){
  750. $("#ctzfx").val(n);
  751. $("#fxtext").text("<?php echo L('买跌');?>");
  752. $("#fxtext").css('color','#f5465c');
  753. }
  754. $("#timer_box").hide();
  755. $("#confirm_box").show();
  756. $("#dongbox").show();
  757. }
  758. $("#x_dongbox").click(function(){
  759. $("#timer_box").hide();
  760. $("#confirm_box").hide();
  761. $("#dongbox").hide();
  762. });
  763. </script>
  764. <script type="text/javascript">
  765. $("#hidedong").click(function(){
  766. $("#showdong").fadeOut("slow");
  767. });
  768. $("#centerbox").click(function(){
  769. getallsmybol();
  770. $("#showdong").fadeIn("slow");
  771. });
  772. </script>
  773. <script type="text/javascript">
  774. function goback(){
  775. window.history.go(-1);
  776. }
  777. </script>
  778. </html>