index.html 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <meta name="viewport" content="width=device-width,minimum-scale=1,maximum-scale=1.0,initial-scale=1,user-scalable=no,viewport-fit=true" data-shuvi-head="true">
  6. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.0/dist/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
  7. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.3.0/font/bootstrap-icons.css">
  8. <link rel="stylesheet" type="text/css" href="/Public/Home/static/css/base.css" />
  9. <title>{$webname}</title>
  10. <style>
  11. .css-1wr4jig {
  12. box-sizing: border-box;
  13. margin: 0;
  14. min-width: 0;
  15. display: -webkit-box;
  16. display: -webkit-flex;
  17. display: -ms-flexbox;
  18. display: flex;
  19. -webkit-flex-direction: column;
  20. -ms-flex-direction: column;
  21. flex-direction: column;
  22. -webkit-flex: 1;
  23. -ms-flex: 1;
  24. flex: 1;
  25. }
  26. .css-1pysja1 {box-sizing: border-box;margin: 0;min-width: 0; -webkit-flex: 1;-ms-flex: 1;flex: 1;}
  27. .css-6nqu2s {box-sizing: border-box; margin: 0;min-width: 0;background-color: #FAFAFA;}
  28. .css-b22026 {box-sizing: border-box;margin: 0;min-width: 0;background-color: #FAFAFA;padding-top: 24px;}
  29. .css-1xamyaw {
  30. box-sizing: border-box;
  31. margin: 0;
  32. min-width: 0;
  33. display: -webkit-box;
  34. display: -webkit-flex;
  35. display: -ms-flexbox;
  36. display: flex;
  37. margin-left: auto;
  38. margin-right: auto;
  39. max-width: 1200px;
  40. font-size: 12px;
  41. -webkit-flex-wrap: wrap;
  42. -ms-flex-wrap: wrap;
  43. flex-wrap: wrap;
  44. -webkit-flex-direction: row;
  45. -ms-flex-direction: row;
  46. flex-direction: row;
  47. margin-bottom: 0;
  48. padding-left: 16px;
  49. padding-right: 16px;
  50. -webkit-align-items: center;
  51. -webkit-box-align: center;
  52. -ms-flex-align: center;
  53. align-items: center;
  54. }
  55. .css-1xamyaw {
  56. margin-bottom: 0;
  57. padding-left: 24px;
  58. padding-right: 24px;
  59. }
  60. .css-o32gok {
  61. box-sizing: border-box;
  62. margin: 0;
  63. min-width: 0;
  64. font-weight: 600;
  65. font-size: 28px;
  66. line-height: 36px;
  67. font-size: 24px;
  68. color: #1E2329;
  69. }
  70. .css-jwys36 {
  71. box-sizing: border-box;
  72. margin: 0;
  73. min-width: 0;
  74. display: -webkit-box;
  75. display: -webkit-flex;
  76. display: -ms-flexbox;
  77. display: flex;
  78. display: none;
  79. margin-left: auto;
  80. }
  81. .css-8puh95 {
  82. box-sizing: border-box;
  83. margin: 0;
  84. min-width: 0;
  85. display: -webkit-inline-box;
  86. display: -webkit-inline-flex;
  87. display: -ms-inline-flexbox;
  88. display: inline-flex;
  89. position: relative;
  90. height: 32px;
  91. margin-top: 4px;
  92. margin-bottom: 0px;
  93. -webkit-align-items: center;
  94. -webkit-box-align: center;
  95. -ms-flex-align: center;
  96. align-items: center;
  97. line-height: 1.6;
  98. border: 1px solid transparent;
  99. border-color: #EAECEF;
  100. border-radius: 4px;
  101. padding-left: 8px;
  102. padding-right: 8px;
  103. background-color: #FFFFFF;
  104. margin-top: 0;
  105. width: 100%;
  106. height: 44px;
  107. }
  108. .css-1t9l9dt {
  109. box-sizing: border-box;
  110. margin: 0;
  111. min-width: 0;
  112. background-color: #FAFAFA;
  113. padding-top: 24px;
  114. padding-bottom: 24px;
  115. padding-left: 16px;
  116. padding-right: 16px;
  117. display: none;
  118. }
  119. .css-1t9l9dt {
  120. padding-left: 24px;
  121. padding-right: 24px;
  122. display: block;
  123. }
  124. .css-8hstpq {
  125. box-sizing: border-box;
  126. margin: 0;
  127. min-width: 0;
  128. display: -webkit-box;
  129. display: -webkit-flex;
  130. display: -ms-flexbox;
  131. display: flex;
  132. margin-left: auto;
  133. margin-right: auto;
  134. max-width: 1200px;
  135. font-size: 12px;
  136. -webkit-flex-wrap: wrap;
  137. -ms-flex-wrap: wrap;
  138. flex-wrap: wrap;
  139. -webkit-flex-direction: row;
  140. -ms-flex-direction: row;
  141. flex-direction: row;
  142. margin-bottom: -16px;
  143. margin-left: 0;
  144. }
  145. .css-8hstpq {
  146. margin-bottom: 0;
  147. margin-left: auto;
  148. }
  149. .tophangqi{height:120px;width:22%;background-color:#f3f3f3;border-radius:10px;padding:0px 15px;}
  150. .css-194m5n4 {
  151. box-sizing: border-box;
  152. margin: 0;
  153. min-width: 0;
  154. background-color: #FFFFFF;
  155. padding-bottom: 24px;
  156. border-radius: 32px 32px 0px 0px;
  157. }
  158. .css-1hc8c4h {
  159. box-sizing: border-box;
  160. margin: 0;
  161. min-width: 0;
  162. margin-left: auto;
  163. margin-right: auto;
  164. max-width: 1200px;
  165. padding-left: 0;
  166. padding-right: 0;
  167. border-radius: 32px 32px 0px 0px;
  168. }
  169. .css-1hc8c4h {
  170. padding-left: 8px;
  171. padding-right: 8px;
  172. }
  173. .css-dlistbox{width:100%;min-height:500px;}
  174. .css-dlbbox{width:100%;height:30px;background-color:#f3f3f3;padding:0px 10px;}
  175. .listtitle{height:30px;line-height:30px;}
  176. .css-dlbbox2{width:100%;height:50px;background-color:#fff;padding:0px 10px;border-bottom:1px solid #f3f3f3;}
  177. .listtitle2{height:50px;line-height:50px;}
  178. </style>
  179. </head>
  180. <body>
  181. <div class="App">
  182. <div class="css-tq0shg">
  183. <include file="Public:header"/>
  184. <main class="css-1wr4jig">
  185. <div class="css-1pysja1">
  186. <div class="css-6nqu2s">
  187. <div class="css-b22026">
  188. <div class="css-1xamyaw">
  189. <div class="css-o32gok">{:L('行情')}</div>
  190. </div>
  191. </div>
  192. </div>
  193. <div class="css-1t9l9dt">
  194. <div class="css-8hstpq">
  195. <div class="tophangqi" style="margin-right:4%;">
  196. <div style="width:100%;height:40px;">
  197. <div style="width:60%;height:40px;line-height:50px;float:left;text-align:left:">
  198. <span class="fch f16 famy fw">UKB/USDT</span>
  199. </div>
  200. <div style="width:40%;height:40px;line-height:50px;float:left;text-align:right;">
  201. <span class="f16 famy fw cch_ubk">0.00%</span>
  202. </div>
  203. </div>
  204. <div style="width:100%;height:40px;">
  205. <div style="width:60%;height:40px;line-height:50px;float:left;text-align:left:">
  206. <span class="f16 famy fw cpr_ukb">0.00</span>
  207. </div>
  208. </div>
  209. <div style="width:100%;height:40px;">
  210. <div style="width:40%;height:40px;line-height:30px;float:right;text-align:right;">
  211. <i class="bi bi-arrow-right-circle-fill fcy f18 fw"></i>
  212. </div>
  213. </div>
  214. </div>
  215. <div class="tophangqi" style="margin-right:4%;">
  216. <div style="width:100%;height:40px;">
  217. <div style="width:60%;height:40px;line-height:50px;float:left;text-align:left:">
  218. <span class="fch f16 famy fw">BTC/USDT</span>
  219. </div>
  220. <div style="width:40%;height:40px;line-height:50px;float:left;text-align:right;">
  221. <span class="f16 famy fw cch_btc">0.00%</span>
  222. </div>
  223. </div>
  224. <div style="width:100%;height:40px;">
  225. <div style="width:60%;height:40px;line-height:50px;float:left;text-align:left:">
  226. <span class="f16 famy fw cpr_btc">0.00</span>
  227. </div>
  228. </div>
  229. <div style="width:100%;height:40px;">
  230. <div style="width:40%;height:40px;line-height:30px;float:right;text-align:right;">
  231. <i class="bi bi-arrow-right-circle-fill fcy f18 fw"></i>
  232. </div>
  233. </div>
  234. </div>
  235. <div class="tophangqi" style="margin-right:4%;">
  236. <div style="width:100%;height:40px;">
  237. <div style="width:60%;height:40px;line-height:50px;float:left;text-align:left:">
  238. <span class="fch f16 famy fw">ETH/USDT</span>
  239. </div>
  240. <div style="width:40%;height:40px;line-height:50px;float:left;text-align:right;">
  241. <span class="f16 famy fw cch_eth">0.00%</span>
  242. </div>
  243. </div>
  244. <div style="width:100%;height:40px;">
  245. <div style="width:60%;height:40px;line-height:50px;float:left;text-align:left:">
  246. <span class="f16 famy fw cpr_eth">0.00</span>
  247. </div>
  248. </div>
  249. <div style="width:100%;height:40px;">
  250. <div style="width:40%;height:40px;line-height:30px;float:right;text-align:right;">
  251. <i class="bi bi-arrow-right-circle-fill fcy f18 fw"></i>
  252. </div>
  253. </div>
  254. </div>
  255. <div class="tophangqi">
  256. <div style="width:100%;height:40px;">
  257. <div style="width:60%;height:40px;line-height:50px;float:left;text-align:left:">
  258. <span class="fch f16 famy fw">BCH/USDT</span>
  259. </div>
  260. <div style="width:40%;height:40px;line-height:50px;float:left;text-align:right;">
  261. <span class="f16 famy fw cch_bch">0.00%</span>
  262. </div>
  263. </div>
  264. <div style="width:100%;height:40px;">
  265. <div style="width:60%;height:40px;line-height:50px;float:left;text-align:left:">
  266. <span class="f16 famy fw cpr_bch">0.00</span>
  267. </div>
  268. </div>
  269. <div style="width:100%;height:40px;">
  270. <div style="width:40%;height:40px;line-height:30px;float:right;text-align:right;">
  271. <i class="bi bi-arrow-right-circle-fill fcy f18 fw"></i>
  272. </div>
  273. </div>
  274. </div>
  275. </div>
  276. </div>
  277. <div class="css-194m5n4" style="padding-top:30px;">
  278. <div class="css-1hc8c4h">
  279. <div class="css-dlistbox">
  280. <div class="css-dlbbox">
  281. <div class="listtitle tcl fl" style="width:15%;">
  282. <span class="f12 fch">{:L('名称')}</span>
  283. </div>
  284. <div class="listtitle tcc fl" style="width:15%;">
  285. <span class="f12 fch">{:L('价格')}</span>
  286. </div>
  287. <div class="listtitle tcc fl" style="width:15%;">
  288. <span class="f12 fch">{:L('涨跌幅')}</span>
  289. </div>
  290. <div class="listtitle tcc fl" style="width:20%;">
  291. <span class="f12 fch">{:L('最高')}/{:L('最低')}</span>
  292. </div>
  293. <div class="listtitle tcc fl" style="width:15%;">
  294. <span class="f12 fch">24H{:L('量')}</span>
  295. </div>
  296. <div class="listtitle tcr fl" style="width:20%;">
  297. <span class="f12 fch">{:L('操作')}</span>
  298. </div>
  299. </div>
  300. <foreach name="market" item="vo">
  301. <div class="css-dlbbox2" >
  302. <div class="listtitle2 tcl fl" style="width:15%;">
  303. <span class="f14 fch fw cn_{$vo.coinname}"><?php echo strtoupper($vo['coinname']);?>/USDT</span>
  304. </div>
  305. <div class="listtitle2 tcc fl" style="width:15%;">
  306. <span class="f14 fch cpr_{$vo.coinname}">--:--</span>
  307. </div>
  308. <div class="listtitle2 tcc fl cch_{$vo.coinname}" style="width:15%;">
  309. <span class="f14 fch fw">0.00%</span>
  310. </div>
  311. <div class="listtitle2 tcc fl" style="width:20%;">
  312. <span class="f14 fch fw hl_{$vo.coinname}">--.--/--.--</span>
  313. </div>
  314. <div class="listtitle2 tcc fl" style="width:15%;">
  315. <span class="f14 fch fw vol_{$vo.coinname}">--.--</span>
  316. </div>
  317. <div class="listtitle2 tcr fl" style="width:20%;">
  318. <a href="{:U('Trade/index')}?type=buy&symbol=<?php echo strtoupper($vo['coinname']);?>" href="" class="f14 fcy">{:L('币币交易')}</a>&nbsp;&nbsp;&nbsp;&nbsp;
  319. <a href="{:U('Contract/index')}?coin={$vo.coinname}" class="f14 fcy">{:L('快速合约')}</a>
  320. </div>
  321. </div>
  322. </foreach>
  323. </div>
  324. </div>
  325. </div>
  326. </main>
  327. <include file="Public:footer"/>
  328. </div>
  329. </div>
  330. </body>
  331. <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
  332. <script type="text/javascript" src="/Public/Home/static/js/layer/layer.js" ></script>
  333. <script type="text/javascript" src="/Public/Home/static/js/jquery.SuperSlide.2.1.1.js" ></script>
  334. <script type="text/javascript">
  335. function obtain_btc(){
  336. var coin = "btc";
  337. var nameclass = ".cn_btc";
  338. var priceclass = ".cpr_btc";
  339. var pricehl = ".hl_btc";
  340. var pricevol = ".vol_btc";
  341. var changeclass = ".cch_btc";
  342. $.post("{:U('Ajaxtrade/obtain_btc')}",
  343. {'coin':coin},
  344. function(data){
  345. if(data.code == 1){
  346. $(nameclass).html(data.cname);
  347. $(priceclass).html(data.open);
  348. $(pricehl).html(data.highlow);
  349. $(pricevol).html(data.amount);
  350. $(changeclass).html(data.change);
  351. }else{
  352. return false;
  353. }
  354. }
  355. );
  356. }
  357. function obtain_eth(){
  358. var coin = "eth";
  359. var nameclass = ".cn_eth";
  360. var priceclass = ".cpr_eth";
  361. var pricehl = ".hl_eth";
  362. var pricevol = ".vol_eth";
  363. var changeclass = ".cch_eth";
  364. $.post("{:U('Ajaxtrade/obtain_eth')}",
  365. {'coin':coin},
  366. function(data){
  367. if(data.code == 1){
  368. $(nameclass).html(data.cname);
  369. $(priceclass).html(data.open);
  370. $(pricehl).html(data.highlow);
  371. $(pricevol).html(data.amount);
  372. $(changeclass).html(data.change);
  373. }else{
  374. console.log(data.info);return false;
  375. }
  376. }
  377. );
  378. }
  379. function obtain_eos(){
  380. var coin = "eos";
  381. var nameclass = ".cn_eos";
  382. var priceclass = ".cpr_eos";
  383. var pricehl = ".hl_eos";
  384. var pricevol = ".vol_eos";
  385. var changeclass = ".cch_eos";
  386. $.post("{:U('Ajaxtrade/obtain_eos')}",
  387. {'coin':coin},
  388. function(data){
  389. if(data.code == 1){
  390. $(nameclass).html(data.cname);
  391. $(priceclass).html(data.open);
  392. $(pricehl).html(data.highlow);
  393. $(pricevol).html(data.amount);
  394. $(changeclass).html(data.change);
  395. }else{
  396. console.log(data.info);return false;
  397. }
  398. }
  399. );
  400. }
  401. function obtain_doge(){
  402. var coin = "doge";
  403. var nameclass = ".cn_doge";
  404. var priceclass = ".cpr_doge";
  405. var pricehl = ".hl_doge";
  406. var pricevol = ".vol_doge";
  407. var changeclass = ".cch_doge";
  408. $.post("{:U('Ajaxtrade/obtain_doge')}",
  409. {'coin':coin},
  410. function(data){
  411. if(data.code == 1){
  412. $(nameclass).html(data.cname);
  413. $(priceclass).html(data.open);
  414. $(pricehl).html(data.highlow);
  415. $(pricevol).html(data.amount);
  416. $(changeclass).html(data.change);
  417. }else{
  418. console.log(data.info);return false;
  419. }
  420. }
  421. );
  422. }
  423. function obtain_bch(){
  424. var coin = "bch";
  425. var nameclass = ".cn_bch";
  426. var priceclass = ".cpr_bch";
  427. var pricehl = ".hl_bch";
  428. var pricevol = ".vol_bch";
  429. var changeclass = ".cch_bch";
  430. $.post("{:U('Ajaxtrade/obtain_bch')}",
  431. {'coin':coin},
  432. function(data){
  433. if(data.code == 1){
  434. $(nameclass).html(data.cname);
  435. $(priceclass).html(data.open);
  436. $(pricehl).html(data.highlow);
  437. $(pricevol).html(data.amount);
  438. $(changeclass).html(data.change);
  439. }else{
  440. console.log(data.info);return false;
  441. }
  442. }
  443. );
  444. }
  445. function obtain_ltc(){
  446. var coin = "ltc";
  447. var nameclass = ".cn_ltc";
  448. var priceclass = ".cpr_ltc";
  449. var pricehl = ".hl_ltc";
  450. var pricevol = ".vol_ltc";
  451. var changeclass = ".cch_ltc";
  452. $.post("{:U('Ajaxtrade/obtain_ltc')}",
  453. {'coin':coin},
  454. function(data){
  455. if(data.code == 1){
  456. $(nameclass).html(data.cname);
  457. $(priceclass).html(data.open);
  458. $(pricehl).html(data.highlow);
  459. $(pricevol).html(data.amount);
  460. $(changeclass).html(data.change);
  461. }else{
  462. console.log(data.info);return false;
  463. }
  464. }
  465. );
  466. }
  467. function obtain_iota(){
  468. var coin = "iota";
  469. var nameclass = ".cn_iota";
  470. var priceclass = ".cpr_iota";
  471. var pricehl = ".hl_iota";
  472. var pricevol = ".vol_iota";
  473. var changeclass = ".cch_iota";
  474. $.post("{:U('Ajaxtrade/obtain_iota')}",
  475. {'coin':coin},
  476. function(data){
  477. if(data.code == 1){
  478. $(nameclass).html(data.cname);
  479. $(priceclass).html(data.open);
  480. $(pricehl).html(data.highlow);
  481. $(pricevol).html(data.amount);
  482. $(changeclass).html(data.change);
  483. }else{
  484. console.log(data.info);return false;
  485. }
  486. }
  487. );
  488. }
  489. function obtain_fil(){
  490. var coin = "fil";
  491. var nameclass = ".cn_fil";
  492. var priceclass = ".cpr_fil";
  493. var pricehl = ".hl_fil";
  494. var pricevol = ".vol_fil";
  495. var changeclass = ".cch_fil";
  496. $.post("{:U('Ajaxtrade/obtain_fil')}",
  497. {'coin':coin},
  498. function(data){
  499. if(data.code == 1){
  500. $(nameclass).html(data.cname);
  501. $(priceclass).html(data.open);
  502. $(pricehl).html(data.highlow);
  503. $(pricevol).html(data.amount);
  504. $(changeclass).html(data.change);
  505. }else{
  506. console.log(data.info);return false;
  507. }
  508. }
  509. );
  510. }
  511. function obtain_flow(){
  512. var coin = "flow";
  513. var nameclass = ".cn_flow";
  514. var priceclass = ".cpr_flow";
  515. var pricehl = ".hl_flow";
  516. var pricevol = ".vol_flow";
  517. var changeclass = ".cch_flow";
  518. $.post("{:U('Ajaxtrade/obtain_flow')}",
  519. {'coin':coin},
  520. function(data){
  521. if(data.code == 1){
  522. $(nameclass).html(data.cname);
  523. $(priceclass).html(data.open);
  524. $(pricehl).html(data.highlow);
  525. $(pricevol).html(data.amount);
  526. $(changeclass).html(data.change);
  527. }else{
  528. console.log(data.info);return false;
  529. }
  530. }
  531. );
  532. }
  533. function obtain_jst(){
  534. var coin = "jst";
  535. var nameclass = ".cn_jst";
  536. var priceclass = ".cpr_jst";
  537. var pricehl = ".hl_jst";
  538. var pricevol = ".vol_jst";
  539. var changeclass = ".cch_jst";
  540. $.post("{:U('Ajaxtrade/obtain_jst')}",
  541. {'coin':coin},
  542. function(data){
  543. if(data.code == 1){
  544. $(nameclass).html(data.cname);
  545. $(priceclass).html(data.open);
  546. $(pricehl).html(data.highlow);
  547. $(pricevol).html(data.amount);
  548. $(changeclass).html(data.change);
  549. }else{
  550. console.log(data.info);return false;
  551. }
  552. }
  553. );
  554. }
  555. function obtain_itc(){
  556. var coin = "itc";
  557. var nameclass = ".cn_itc";
  558. var priceclass = ".cpr_itc";
  559. var pricehl = ".hl_itc";
  560. var pricevol = ".vol_itc";
  561. var changeclass = ".cch_itc";
  562. $.post("{:U('Ajaxtrade/obtain_itc')}",
  563. {'coin':coin},
  564. function(data){
  565. if(data.code == 1){
  566. $(nameclass).html(data.cname);
  567. $(priceclass).html(data.open);
  568. $(pricehl).html(data.highlow);
  569. $(pricevol).html(data.amount);
  570. $(changeclass).html(data.change);
  571. }else{
  572. console.log(data.info);return false;
  573. }
  574. }
  575. );
  576. }
  577. function obtain_ht(){
  578. var coin = "ht";
  579. var nameclass = ".cn_ht";
  580. var priceclass = ".cpr_ht";
  581. var pricehl = ".hl_ht";
  582. var pricevol = ".vol_ht";
  583. var changeclass = ".cch_ht";
  584. $.post("{:U('Ajaxtrade/obtain_ht')}",
  585. {'coin':coin},
  586. function(data){
  587. if(data.code == 1){
  588. $(nameclass).html(data.cname);
  589. $(priceclass).html(data.open);
  590. $(pricehl).html(data.highlow);
  591. $(pricevol).html(data.amount);
  592. $(changeclass).html(data.change);
  593. }else{
  594. console.log(data.info);return false;
  595. }
  596. }
  597. );
  598. }
  599. function obtain_usdz(){
  600. var coin = "ukb";
  601. var nameclass = ".cn_ukb";
  602. var priceclass = ".cpr_ukb";
  603. var pricehl = ".hl_ukb";
  604. var pricevol = ".vol_ukb";
  605. var changeclass = ".cch_ukb";
  606. $.post("{:U('Ajaxtrade/obtain_usdz')}",
  607. {'coin':coin},
  608. function(data){
  609. if(data.code == 1){
  610. $(nameclass).html(data.cname);
  611. $(priceclass).html(data.open);
  612. $(pricehl).html(data.highlow);
  613. $(pricevol).html(data.amount);
  614. $(changeclass).html(data.change);
  615. }else{
  616. console.log(data.info);return false;
  617. }
  618. }
  619. );
  620. }
  621. </script>
  622. <script type="text/javascript">
  623. $(function(){
  624. //obtain_btc();
  625. setInterval("obtain_btc()",2000);
  626. //obtain_eth();
  627. setInterval("obtain_eth()",3000);
  628. //obtain_eos();
  629. setInterval("obtain_eos()",5000);
  630. obtain_doge();
  631. setInterval("obtain_doge()",7000);
  632. obtain_bch();
  633. setInterval("obtain_bch()",9000);
  634. obtain_ltc();
  635. setInterval("obtain_ltc()",11000);
  636. obtain_iota();
  637. setInterval("obtain_iota()",13000);
  638. obtain_fil();
  639. setInterval("obtain_fil()",15000);
  640. obtain_flow();
  641. setInterval("obtain_flow()",17000);
  642. obtain_jst();
  643. setInterval("obtain_jst()",19000);
  644. obtain_itc();
  645. setInterval("obtain_itc()",21000);
  646. obtain_ht();
  647. setInterval("obtain_ht()",23000);
  648. obtain_usdz();
  649. setInterval("obtain_usdz()",25000);
  650. });
  651. </script>
  652. <script type="text/javascript">
  653. $("#nav").slide({
  654. type:"menu",// 效果类型,针对菜单/导航而引入的参数(默认slide)
  655. titCell:".nLi", //鼠标触发对象
  656. targetCell:".sub", //titCell里面包含的要显示/消失的对象
  657. effect:"slideDown", //targetCell下拉效果
  658. delayTime:300 , //效果时间
  659. triggerTime:0, //鼠标延迟触发时间(默认150)
  660. returnDefault:true //鼠标移走后返回默认状态,例如默认频道是“预告片”,鼠标移走后会返回“预告片”(默认false)
  661. });
  662. </script>
  663. </html>