index_old.html 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851
  1. <!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>{$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:90%;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. </style>
  163. </head>
  164. <body style="background:#fff;">
  165. <div class="container-fluid " style="padding:0px;width:100vw;">
  166. <div class="no_header">
  167. <div class="fl allhg txtl">
  168. <i class="bi bi-arrow-left fcc fw" onclick="goback()" style="font-size: 24px;"></i>
  169. </div>
  170. <div class="fl allhg" id="centerbox" style="width:80%;text-align:center;line-height:50px;">
  171. <i class="bi bi-text-indent-left fw" style="font-size:22px;color:#000;"></i>
  172. <span class="fzmmm fw" style="color:#000;" id="symbolbox">{$upmarket}</span>
  173. <span class="fzmmm fw" style="color:#000;">{:L('快速合约')}</span>
  174. </div>
  175. <a href="{:U('Contract/ctbill')}">
  176. <div class="fr allhg txtr" style="line-height:50px;width:10%;">
  177. <i class="bi bi-funnel fcy fw" style="font-size:20px;"></i>
  178. </div>
  179. </a>
  180. </div>
  181. <div class="klinebox">
  182. <div class="klinetitle">
  183. <div class="klinetitle_l">
  184. <p class="newpricebox" id="newpricebox" style="font-size:24px;">--</p>
  185. <p class="changebox" id="changebox">--</p>
  186. </div>
  187. <div class="klinetitle_r">
  188. <div class="klr3_box">
  189. <div class="klr3_box_dl">
  190. <span class="fzmm fcc">{:L('最低')}</span>
  191. </div>
  192. <div class="klr3_box_dr">
  193. <span class="fzmm fch" id="minmoney">--</span>
  194. </div>
  195. </div>
  196. <div class="klr2_box">
  197. <div class="klr2_box_dl">
  198. <span class="fzmm fcc">{:L('最高')}</span>
  199. </div>
  200. <div class="klr2_box_dr">
  201. <span class="fzmm fch" id="maxmoney">--</span>
  202. </div>
  203. </div>
  204. <div class="klr2_box">
  205. <div class="klr2_box_dl">
  206. <span class="fzmm fcc">24h{:L('量')}</span>
  207. </div>
  208. <div class="klr2_box_dr">
  209. <span class="fzmm fch" id="allvol">--</span>
  210. </div>
  211. </div>
  212. </div>
  213. </div>
  214. <input type="hidden" id="coinname" value="{$smybol}" />
  215. <div style="width:100%;height:540px;">
  216. <iframe id="iframeid" width="100%" scrolling="no" height="540" src="/Trade/ordinary?market={$market}" noresize="noresize" frameborder="0" >不支持IFRAME,请升级</iframe>
  217. </div>
  218. <div style="width:100%;height:20px;"></div>
  219. <div class="btnbox" style="position:fixed;bottom:55px;padding:0px 10px;background: rgba(0,0,0,0.1);">
  220. <div style="width:40%;height:60px;float:left;">
  221. <a href="{:U('Contract/ctbill')}">
  222. <div style="width:50px;height:60px;float:left;">
  223. <div style="width:100%;height:30px;line-height:40px;text-align:center;">
  224. <i class="bi bi-journal-text" style="font-size:18px;"></i>
  225. </div>
  226. <div style="width:100%;height:30px;line-height:25px;text-align:center;">
  227. <span style="color:#707A8A;">{:L('持仓')}</span>
  228. </div>
  229. </div>
  230. </a>
  231. <a href="{:U('User/czcoin')}">
  232. <div style="width:50px;height:60px;float:left;">
  233. <div style="width:100%;height:30px;line-height:40px;text-align:center;">
  234. <i class="bi bi-cursor-fill" style="font-size:18px;"></i>
  235. </div>
  236. <div style="width:100%;height:30px;line-height:25px;text-align:center;">
  237. <span style="color:#707A8A;">{:L('充币')}</span>
  238. </div>
  239. </div>
  240. </a>
  241. </div>
  242. <div style="width:60%;height:60px;float:right;padding:12px 0px;">
  243. <div class="btnbox_l" style="height:36px;line-height:36px;border-radius:5px;" onclick="show_dongbox(1)">
  244. <span class="fzmm fch" style="color:#fff;">{:L('买涨')}</span>
  245. </div>
  246. <div class="btnbox_r" style="height:36px;line-height:36px;border-radius:5px;" onclick="show_dongbox(2)">
  247. <span class="fzmm fch" style="color:#fff;">{:L('买跌')}</span>
  248. </div>
  249. </div>
  250. </div>
  251. <div style="width:100%;height:80px;"></div>
  252. </div>
  253. </div>
  254. <div class="dongbox" id="dongbox" style="display:none;">
  255. <div class="dong_order_c" id="timer_box" style="display:none;height:340px;margin-top:140px;">
  256. <div style="width:100%;height:10px;"></div>
  257. <div class="dong_order_title">
  258. <span class="fch" style="font-size:18px;font-weight:bold;" id="timer_coinname">BTC/USDT</span>
  259. </div>
  260. <div style="width:100%;height:270px;display:none" id="wait_box">
  261. <div style="width:100%;height:220px;line-height:220px;text-align:center;" id="wait_box_info">
  262. <span style="font-size:16px;font-weight:bold;">{:L('正在结算中')}...</span>
  263. </div>
  264. <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;">
  265. <span style="color:#fff;">{:L('继续下单')}</span>
  266. </div>
  267. </div>
  268. <div style="width:100%;" id="timer_info_box">
  269. <div class="circle_wrapper">
  270. <div class="right_circle">
  271. <img class="img_circle_right" id="timer_circle_right" style="-webkit-animation: run 300s linear;" src="/Public/Static/img/right_circle1.png">
  272. </div>
  273. <div class="left_circle">
  274. <img class="img_circle_lift" id="timer_circle_left" style="-webkit-animation: runaway 300s linear;" src="/Public/Static/img/left_circle1.png">
  275. </div>
  276. </div>
  277. <div class="row remaining count_remaining">
  278. <div class="col">
  279. <div class="ng-binding pay_order_sen" id="timer_t">68</div>
  280. <div>{:L('现价')}</div>
  281. <div class="ng-binding newprice" id="timer_newprice">43128.277</div>
  282. </div>
  283. </div>
  284. <div style="width:100%;height:150px;border-top:1px solid #f5f5f5;">
  285. <div style="width:100%;height:80px;">
  286. <div style="width:33.33%;height:80px;float:left;">
  287. <div style="width:100%;height:40px;line-height:50px;text-align:center;">{:L('类型')}</div>
  288. <div id="timer_type" style="width:100%;height:40px;line-height:30px;text-align:center;"><span>{:L('买涨')}</span></div>
  289. </div>
  290. <div style="width:33.33%;height:80px;float:left;">
  291. <div style="width:100%;height:40px;line-height:50px;text-align:center;">{:L('金额')}</div>
  292. <div id="timer_buynum" style="width:100%;height:40px;line-height:30px;text-align:center;font-weight:bold;">1000.00</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;">{:L('建仓')}</div>
  296. <div id="timer_buyprice" style="width:100%;height:40px;line-height:30px;text-align:center;font-weight:bold;">43128.277</div>
  297. </div>
  298. </div>
  299. <input type="hidden" id="timer_order_type" value="1" />
  300. <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;">
  301. <span style="color:#fff;">{:L('继续下单')}</span>
  302. </div>
  303. </div>
  304. </div>
  305. </div>
  306. <!-------------------确认购买订单弹窗开始--------------------->
  307. <div class="dong_order_c" id="confirm_box" style="display:block;">
  308. <div class="dong_order_x" id="x_dongbox">
  309. <i class="bi bi-x" style="font-size:18px;" ></i>
  310. </div>
  311. <div class="dong_order_title">
  312. <span class="fch" style="font-size:16px;font-weight:500;">{:L('确认订单')}</span>
  313. </div>
  314. <p class="dong_order_p fcc">{:L('订单类型')}</p>
  315. <div class="dong_order_option">
  316. <div style="width:1000px;height:80px;">
  317. <foreach name="cd" item="vo">
  318. <div class="dong_order_option_list" id="time_{$vo.sort}" onclick="xztime({$vo.sort},{$vo.time},{$vo.ykbl});">
  319. <div style="width:100%;height:20px;line-height:20px;text-align:center;">
  320. <span class="fcc fzm">{:L('到期时间')}</span>
  321. </div>
  322. <div style="width:100%;height:20px;line-height:20px;text-align:center;margin-top:5px;">
  323. <span class="fcy fzmmm">{$vo.time}{:L('分钟')}</span>
  324. </div>
  325. <div style="width:100%;height:20px;line-height:20px;text-align:center;margin-top:5px;">
  326. <span class="fcc fzm" style="color:#f5465c;">{:L('收益率')}{$vo.ykbl}%</span>
  327. </div>
  328. </div>
  329. </foreach>
  330. </div>
  331. </div>
  332. <p class="dong_order_p fcc">{:L('选择投资金额')}</p>
  333. <div class="dong_money_list">
  334. <div class="dong_money_list_box" style="width:100%;">
  335. <div class="dong_money_list_box_l">
  336. <foreach name="ed" item="v">
  337. <div class="dong_money_list_box_option moveclass" id="tzed_{$v.sort}" onclick="xztzed({$v.sort},{$v.tzed});">
  338. <span class="fzm fcc">{$v.tzed} USDT</span>
  339. </div>
  340. </foreach>
  341. </div>
  342. </div>
  343. </div>
  344. <p class="dong_order_p fcc">{: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="{: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">{:L('账户余额')}:{$eusdt_blan} USDT</p>
  351. <p class="dong_order_p fcc">{:L('体验金')}:{$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">{:L('交易对')}</span>
  356. </div>
  357. <div style="width:100%;height:20px;line-height:20px;text-align:center;">
  358. <span class="fcc fzmm">{$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">{:L('方向')}</span>
  364. </div>
  365. <div style="width:100%;height:20px;line-height:20px;text-align:center;">
  366. <span class="fcc fzmm" id="fxtext">{: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">{: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">{: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="{$upmarket}" />
  389. <input type="hidden" id="ctzfx" value="1" />
  390. <input type="hidden" id="cykbl" value="" />
  391. <input type="hidden" id="hymin" value="{$hymin}" />
  392. <input type="hidden" id="flag" value="1" />
  393. <if condition="$uid elt 0">
  394. <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;">
  395. <span class="fch fzmm">{:L('请先登陆')}</span>
  396. </div>
  397. <else />
  398. <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;">
  399. <span class="fch fzmm">{:L('确认下单')}</span>
  400. </div>
  401. <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;">
  402. <span class="fch fzmm">{:L('体验金下单')}</span>
  403. </div>
  404. </if>
  405. </div>
  406. <!-------------------确认购买订单弹窗结束--------------------->
  407. </div>
  408. <!---------交易选择弹窗---------->
  409. <div class="dongbox" id="showdong">
  410. <div class="dong_con">
  411. <div style="width:100%;position:relative;z-index:9999999;top:0px;">
  412. <div class="dong_title">
  413. <span class="dong_title_span">{:L('快速合约')}</span>
  414. </div>
  415. <div class="dong_sel_box">
  416. <span class="fcc dong_sel_span">{:L('全部')}</span>
  417. </div>
  418. </div>
  419. <div class="symbol_list" id="smybolbox">
  420. <div style="width:100%;height:100px;line-height:100px;text-align:center;">
  421. <span class="fzmm fcc">{:L('没有获取数据')}</span>
  422. </div>
  423. </div>
  424. </div>
  425. <div style="width:20%;height:100vh;float:left;" id="hidedong"></div>
  426. </div>
  427. <!--底部-->
  428. <div class="footer">
  429. <a href="{:U('Index/index')}">
  430. <div class="footer_op">
  431. <div class="f_op_t">
  432. <span class="iconfont icon-shouye" style="font-size:22px;"></span>
  433. </div>
  434. <div class="f_op_b">
  435. <span class="fzm fcc">{:L('首页')}</span>
  436. </div>
  437. </div>
  438. </a>
  439. <a href="{:U('Trade/index')}">
  440. <div class="footer_op">
  441. <div class="f_op_t" style="line-height:35px;">
  442. <span class="iconfont icon-fukuan" style="font-size:22px;"></span>
  443. </div>
  444. <div class="f_op_b">
  445. <span class="fzm fcc">{:L('交易')}</span>
  446. </div>
  447. </div>
  448. </a>
  449. <a href="{:U('Orepool/index')}">
  450. <div class="footer_op">
  451. <div class="f_op_t" style="line-height:35px;">
  452. <span class="iconfont icon-ziyuan14" style="font-size:22px;"></span>
  453. </div>
  454. <div class="f_op_b">
  455. <span class="fzm fcc">{:L('矿机')}</span>
  456. </div>
  457. </div>
  458. </a>
  459. <a href="{:U('Contract/index')}">
  460. <div class="footer_op">
  461. <div class="f_op_t" style="line-height:35px;">
  462. <svg class="icon fticon" aria-hidden="true"><use xlink:href="#icon-xuanxiang"></use></svg>
  463. </div>
  464. <div class="f_op_b">
  465. <span class="fzm fcy">{:L('合约')}</span>
  466. </div>
  467. </div>
  468. </a>
  469. <a href="{:U('User/index')}">
  470. <div class="footer_op">
  471. <div class="f_op_t" style="line-height:35px;">
  472. <span class="iconfont icon-ziyuan24" style="font-size:22px;"></span>
  473. </div>
  474. <div class="f_op_b">
  475. <span class="fzm fcc">{:L('资产')}</span>
  476. </div>
  477. </div>
  478. </a>
  479. </div>
  480. </body>
  481. <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
  482. <script type="text/javascript" src="/Public/Static/js/layer/layer.js" ></script>
  483. <script type="text/javascript">
  484. function settzmoney(){
  485. var hymin = parseFloat($("#hymin").val());
  486. var tzmoney = parseFloat($("#tzmoney").val());
  487. if(tzmoney < hymin){
  488. layer.msg("{:L('不能小于最低投资额度')}");return false;
  489. }
  490. $("#ctzed").val(tzmoney);
  491. $("#ttzed").html(tzmoney);
  492. }
  493. </script>
  494. <script type="text/javascript">
  495. $("#custommoney").click(function(){
  496. $(".moveclass").removeClass("option_list_active");
  497. $("#custommoney").addClass("option_list_active");
  498. });
  499. </script>
  500. <script type="text/javascript">
  501. $("#tyj_subbtn").click(function(){
  502. // var flag = $("#flag").val();
  503. // if(flag == 2){
  504. // return false;
  505. // }
  506. var ctime = $("#ctime").val();
  507. var ctzed = $("#ctzed").val();
  508. var ccoinname = $("#ccoinname").val();
  509. var ctzfx = $("#ctzfx").val();
  510. var cykbl = $("#cykbl").val();
  511. if(ctime <= 0 || ctime ==''){
  512. layer.msg("{:L('请选择结算时间')}");return false;
  513. }
  514. if(ctzed <= 0 || ctzed==''){
  515. layer.msg("{:L('请选择或输入投入金额')}");return false;
  516. }
  517. if(ccoinname == '' || ccoinname == null){
  518. layer.msg("{:L('缺少重要参数')}");return false;
  519. }
  520. if(ctzfx <= 0 || ctzfx ==''){
  521. layer.msg("{:L('缺少重要参数')}");return false;
  522. }
  523. if(cykbl <= 0 || cykbl ==''){
  524. layer.msg("{:L('缺少重要参数')}");return false;
  525. }
  526. // $("#flag").val(2);
  527. $.post("{:U('Contract/ty_creatorder')}",
  528. {'ctime':ctime,'ctzed':ctzed,'ccoinname':ccoinname,'ctzfx':ctzfx,'cykbl':cykbl},
  529. function(data){
  530. if(data.code == 1){
  531. $('#timer_circle_right').attr('style','-webkit-animation: run '+ data.time +'s linear;')
  532. $('#timer_circle_left').attr('style','-webkit-animation: runaway '+ data.time +'s linear;')
  533. $("#timer_t").text(data.time);
  534. $("#timer_newprice").text(data.timer_newprice);
  535. $("#timer_type").html(data.timer_type);
  536. $("#timer_buynum").html(data.timer_buynum);
  537. $("#timer_order_type").html(data.hyzd);
  538. $("#timer_buyprice").html(data.buyprice);
  539. $("#confirm_box").hide();
  540. $("#timer_box").show();
  541. gettimer_time(data.id);
  542. setInterval('gettimer_time('+ data.id +')',1000);
  543. }else{
  544. layer.msg(data.msg);return false;
  545. }
  546. });
  547. });
  548. function gettimer_time(id){
  549. var oid = id;
  550. $.post("{:U('Contract/get_tyhyorder_one')}",{'oid':oid},function(data){
  551. if(data.code == 1){
  552. $("#timer_t").text(data.time);
  553. $("#timer_newprice").text(data.timer_newprice);
  554. }else if(data.code == 2){
  555. $("#wait_box_info").html(data.statusstr)
  556. $("#wait_box").show();
  557. $("#timer_info_box").hide();
  558. }else{
  559. $("#wait_box").show();
  560. $("#timer_info_box").hide();
  561. }
  562. });
  563. }
  564. </script>
  565. <script type="text/javascript">
  566. $("#subbtn").click(function(){
  567. // var flag = $("#flag").val();
  568. // if(flag == 2){
  569. // return false;
  570. // }
  571. var ctime = $("#ctime").val();
  572. var ctzed = $("#ctzed").val();
  573. var ccoinname = $("#ccoinname").val();
  574. var ctzfx = $("#ctzfx").val();
  575. var cykbl = $("#cykbl").val();
  576. if(ctime <= 0 || ctime ==''){
  577. layer.msg("{:L('请选择结算时间')}");return false;
  578. }
  579. if(ctzed <= 0 || ctzed==''){
  580. layer.msg("{:L('请选择或输入投入金额')}");return false;
  581. }
  582. if(ccoinname == '' || ccoinname == null){
  583. layer.msg("{:L('缺少重要参数')}");return false;
  584. }
  585. if(ctzfx <= 0 || ctzfx ==''){
  586. layer.msg("{:L('缺少重要参数')}");return false;
  587. }
  588. if(cykbl <= 0 || cykbl ==''){
  589. layer.msg("{:L('缺少重要参数')}");return false;
  590. }
  591. // $("#flag").val(2);
  592. $.post("{:U('Contract/creatorder')}",
  593. {'ctime':ctime,'ctzed':ctzed,'ccoinname':ccoinname,'ctzfx':ctzfx,'cykbl':cykbl},
  594. function(data){
  595. if(data.code == 1){
  596. $('#timer_circle_right').attr('style','-webkit-animation: run '+ data.time +'s linear;')
  597. $('#timer_circle_left').attr('style','-webkit-animation: runaway '+ data.time +'s linear;')
  598. $("#timer_t").text(data.time);
  599. $("#timer_newprice").text(data.timer_newprice);
  600. $("#timer_type").html(data.timer_type);
  601. $("#timer_buynum").html(data.timer_buynum);
  602. $("#timer_order_type").html(data.hyzd);
  603. $("#timer_buyprice").html(data.buyprice);
  604. $("#confirm_box").hide();
  605. $("#timer_box").show();
  606. gettimer_hytime(data.id);
  607. setInterval('gettimer_hytime('+ data.id +')',1000);
  608. }else{
  609. layer.msg(data.msg);return false;
  610. }
  611. });
  612. });
  613. function gettimer_hytime(id){
  614. var oid = id;
  615. $.post("{:U('Contract/get_hyorder_one')}",{'oid':oid},function(data){
  616. if(data.code == 1){
  617. $("#timer_t").text(data.time);
  618. $("#timer_newprice").text(data.timer_newprice);
  619. }else if(data.code == 2){
  620. $("#wait_box_info").html(data.statusstr)
  621. $("#wait_box").show();
  622. $("#timer_info_box").hide();
  623. }else{
  624. $("#wait_box").show();
  625. $("#timer_info_box").hide();
  626. }
  627. });
  628. }
  629. </script>
  630. <script type="text/javascript">
  631. function xztime(sort,time,ykbl){
  632. var sort = sort;
  633. var time = time;
  634. var ykbl = ykbl;
  635. var idtxt = "#time_"+sort;
  636. $("#ctime").val(time);
  637. $("#cykbl").val(ykbl);
  638. $(idtxt).addClass("option_list_active");
  639. $(idtxt).siblings().removeClass("option_list_active");
  640. }
  641. function xztzed(sort,tzed){
  642. var sort = sort;
  643. var tzed = tzed;
  644. var idtxt = "#tzed_"+sort;
  645. $("#ctzed").val(tzed);
  646. $("#ttzed").html(tzed);
  647. $("#tzmoney").val(tzed)
  648. $(idtxt).addClass("option_list_active");
  649. $(idtxt).siblings().removeClass("option_list_active");
  650. $("#custommoney").removeClass("option_list_active");
  651. }
  652. </script>
  653. <script type="text/javascript">
  654. function getcoin_data(){
  655. var coinname = $("#coinname").val();
  656. $.post("{:U('Ajaxtrade/getcoin_data')}",
  657. {'coinname':coinname},
  658. function(data){
  659. if(data.code == 1){
  660. $("#newpricebox").html(data.close);
  661. $("#ordernewprice").html(data.close);
  662. $("#changebox").html(data.change);
  663. $("#minmoney").html(data.low);
  664. $("#maxmoney").html(data.high);
  665. $("#allvol").html(data.amount);
  666. }
  667. });
  668. }
  669. </script>
  670. <script type="text/javascript">
  671. $(function(){
  672. getcoin_data();
  673. setInterval("getcoin_data()",2000);
  674. });
  675. </script>
  676. <script type="text/javascript">
  677. function getallsmybol(){
  678. $.post("{:U('Ajaxtrade/getallcoin')}",
  679. function(data){
  680. if(data.code == 1){
  681. $("#smybolbox").empty();
  682. var html = '';
  683. if(data.data == '' || data.data == null){
  684. html = '<div style="width:100%;height:100px;line-height:100px;text-align:center;">'+
  685. '<span class="fzmm fcc">' + "{:L('没有获取数据')}" + '</span>'+
  686. '</div>';
  687. $("#smybolbox").append(html);
  688. }else{
  689. $.each(data.data,function(key,val){
  690. html += '<a href="/Contract/index.html?coin='+ val.symbol +'">'+
  691. '<div class="sy_list_box">'+
  692. '<div class="sy_list_boxl">'+
  693. '<span class="fzmm fcc">'+ val.cname +'</span>'+
  694. '</div>'+
  695. '<div class="sy_list_boxl" style="text-align:center;">' + val.open + '</div>'+
  696. '<div class="sy_list_boxr">' + val.change +'</div>'+
  697. '</div>'+
  698. '</a>';
  699. });
  700. $("#smybolbox").append(html);
  701. }
  702. }else{
  703. html = '<div style="width:100%;height:100px;line-height:100px;text-align:center;">'+
  704. '<span class="fzmm fcc">' + "{:L('没有获取数据')}" + '</span>'+
  705. '</div>';
  706. $("#smybolbox").append(html);
  707. }
  708. });
  709. }
  710. </script>
  711. <script type="text/javascript">
  712. function show_confirm(){
  713. var num = $("#timer_type").val;
  714. show_dongbox(num);
  715. };
  716. function show_confirm_empty(num){
  717. var num = num
  718. show_dongbox(num);
  719. }
  720. function show_dongbox(num){
  721. var n = num;
  722. if(n == 1){
  723. $("#ctzfx").val(n);
  724. $("#fxtext").text("{:L('买涨')}");
  725. $("#fxtext").css('color','#0ecb81');
  726. }else if(n == 2){
  727. $("#ctzfx").val(n);
  728. $("#fxtext").text("{:L('买跌')}");
  729. $("#fxtext").css('color','#f5465c');
  730. }
  731. $("#timer_box").hide();
  732. $("#confirm_box").show();
  733. $("#dongbox").show();
  734. }
  735. $("#x_dongbox").click(function(){
  736. $("#timer_box").hide();
  737. $("#confirm_box").hide();
  738. $("#dongbox").hide();
  739. });
  740. </script>
  741. <script type="text/javascript">
  742. $("#hidedong").click(function(){
  743. $("#showdong").fadeOut("slow");
  744. });
  745. $("#centerbox").click(function(){
  746. getallsmybol();
  747. $("#showdong").fadeIn("slow");
  748. });
  749. </script>
  750. <script type="text/javascript">
  751. function goback(){
  752. window.history.go(-1);
  753. }
  754. </script>
  755. </html>