12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208 |
- <!DOCTYPE html>
- <html lang="zh-CN">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <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">
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.0/dist/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.3.0/font/bootstrap-icons.css">
- <link rel="stylesheet" type="text/css" href="/Public/Home/static/css/base.css" />
- <title>{$webname}</title>
- <style>
- .css-1wr4jig {
- box-sizing: border-box;
- margin: 0;
- min-width: 0;
- display: -webkit-box;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1;
- }
- .css-wp2li4 {
- box-sizing: border-box;
- margin: 0;
- min-width: 0;
- display: -webkit-box;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- overflow-x: hidden;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column;
- }
- .klinetitle{width:100%;height:80px;background:#fff;padding:0px 20px;}
- .klinetitle_l{width:33.33%;height:80px;float:left;}
- .klinetitle_r{width:33.33%;height:80px;float:left;}
- .newpricebox{height:40px;line-height:60px;margin-bottom:0px;color:#2ebd85;font-size:22px;font-weight:bold;}
- .changebox{height:40px;line-height:40px;margin-bottom:0px;color:#2ebd85;font-weight:bold;}
- .klr3_box{width:100%;height:30px;}
- .klr2_box{width:100%;height:25px;}
- .klr3_box_dl{width:45%;height:30px;line-height:40px;float:left;text-align:left;}
- .klr3_box_dr{width:55%;height:30px;line-height:40px;float:right;text-align:right;}
- .klr2_box_dl{width:45%;height:25px;line-height:25px;float:left;text-align:left;}
- .klr2_box_dr{width:55%;height:25px;line-height:25px;float:right;text-align:right;}
- .dong_con{width:80%;height:100vh;background:#fff;margin-top:0px;border-top-right-radius:0px;border-bottom-right-radius:0px;padding:20px 15px 10px 20px;float:left;}
- .dong_title{width:100%;height:40px;line-height:40px;}
- .dong_title_span{font-size:18px;font-weight:500;}
- .dong_find_box{width:100%;height:30px;background:#f5f5f5;border-radius:10px;}
- .dong_find_box_img{width:20%;height:30px;line-height:30px;float:left;text-align:center;}
- .dong_input_box{width:80%;height:30px;float:left;}
- .dong_symbox{width:90%;height:20px;border:none;background:#f5f5f5;margin-top:5px;}
- .dong_sel_box{width:100%;height:30px;border-bottom:1px solid #f5f5f5;}
- .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;}
- .symbol_list{width:100%;height:1120px;margin-top:10px;}
- .no_header{position: fixed;z-index: 9999;padding:0px 10px;top:0px;background: #fff;}
- .txtl{line-height:50px;width:30%;}
- .contentbox{width:100%;background:#fff;padding:10px;}
- .content_title{width:100%;height:40px;line-height:40px;margin-top:50px;position: fixed;z-index: 9999;top:0px;padding:0px 10px;background:#fff;border-bottom:1px solid #f5f5f5;}
- .content_title_l{width:70%;height:40px;line-height:40px;float:left;}
- .content_title_r{width:30%;height:40px;line-height:40px;float:right;padding:0px 5px;}
- .tleft{text-align:left;}
- .tright{text-align:right;}
- .tradebox{width:100%;height:400px;background:#fff;}
- .tradebox_l{width:58%;height:400px;float:left;}
- .tradebox_r{width:40%;height:400px;float:right;}
- .tradebox_l_btn{width:100%;height:36px;}
- .tradebox_l_buybtn{width:48%;height:36px;line-height:36px;float:left;text-align:center;border-radius:5px;}
- .tradebox_l_sellbtn{width:48%;height:36px;line-height:36px;float:right;text-align:center;border-radius:5px;}
- .bggreen{background:#0ecb81;}
- .green{color:#0ecb81;}
- .bgred{background:#f5465c;}
- .red{color:#f5465c;}
- .bghc{background:#f5f5f5;}
- .cfff{color:#fff;}
- .c000{color:#000;}
- .formbox{width:100%;height:350px;margin-top:15px;}
- .formbox_op{width:100%;height:30px;}
- .formbox_op_list{width:20%;height:30px;line-height:30px;float:left;text-align:center;cursor:pointer;}
- .inputbox{width:100%;height:36px;border:1px solid #f5f5f5;border-radius:5px;margin:10px 0px 20px;}
- .inputbox_float{width:60%;height:36px;float:left;}
- .xjinput{width:90%;background:#fff;border:#fff;margin-top:7px;padding:0px 10px;}
- .input_bi{width:50%;height:26px;line-height:26px;float:left;text-align:center;margin-top:5px;cursor:pointer;}
- .borderright{border-right:1px solid #f5f5f5;}
- .bistyle{font-size:16px;cursor: pointer;}
- .blbox{width:100%;height:30px;margin-top:15px;}
- .blbox_1{width:20%;height:30px;float:left;margin-right:6%;}
- .blbox_2{width:20%;height:30px;float:left;}
- .blbox_3{width:100%;height:10px;}
- .bgf5{background:#f5f5f5;border-radius:5px;cursor: pointer;}
- .blbox_4{width:100%;height:20x;line-height:20px;text-align:center;}
- .tradebox_title{width:50%;height:20px;line-height:20px;float:left;}
- .tl{text-align:left;}
- .tr{text-align:right;}
- .tc{text-align:center;}
- .fl{float:left;}
- .fr{float:right;}
- .trade_listbox{width:100%;height:300px;padding:5px;overflow:hidden;}
- .trade_listpricebox{width:100%;height:40px;line-height:40px;padding:0px 10px;}
- .trade_list{width:50%;height:30px;line-height:30px;float:left;}
- .dongbox{position:fixed;z-index:9999;display:none;top:0px;width:100%;height:100vh;background:rgba(0,0,0,0.2);}
- .dong_con{width:80%;height:100vh;background:#fff;margin-top:0px;border-top-right-radius:0px;border-bottom-right-radius:0px;padding:20px 15px 10px 20px;float:left;}
- .dong_title{width:100%;height:40px;line-height:40px;}
- .dong_title_span{font-size:18px;font-weight:500;}
- .dong_find_box{width:100%;height:30px;background:#f5f5f5;border-radius:10px;}
- .dong_find_box_img{width:20%;height:30px;line-height:30px;float:left;text-align:center;}
- .dong_input_box{width:80%;height:30px;float:left;}
- .dong_symbox{width:90%;height:20px;border:none;background:#f5f5f5;margin-top:5px;}
- .dong_sel_box{width:100%;height:30px;border-bottom:1px solid #f5f5f5;}
- .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;}
- .symbol_list{width:100%;margin-top:10px;}
- .sy_list_box{width:100%;height:30px;}
- .sy_list_boxl{width:35%;height:30px;line-height:30px;float:left;text-align:left;}
- .sy_list_boxr{width:30%;height:30px;line-height:30px;float:right;text-align:right;}
- .order_title{display: inline-block;margin-right: 20px;font-weight: 1000;}
- .FCD535{border-bottom: 2px solid #FCD535;}
- .fccbox{width:100%;height:15px;background:#f5f5f5;}
- .wtlistbox{width:100%;padding:0px 10px;}
- .o_title_box{width:50%;height:40px;line-height:40px;border-bottom:1px solid #f5f5f5;}
- .tlistbox{width:100%;clear:both;padding:10px 0px;}
- .tlistbox_1{width:100%;height:100px;border-bottom:1px solid #f5f5f5;}
- .tlistbox_2{width:100%;height:30px;}
- .tlistbox_3{width:80%;height:30px;line-height:30px;}
- .tlistbox_4{width:20%;height:30px;line-height:30px;}
- .tlistbox_5{padding:5px 10px;background:#fcfcfc;border-radius:5px;}
- .tlistbox_6{width:100%;height:60px;}
- .tlistbox_7{width:33.33%;height:60px;}
- .tlistbox_8{width:100%;height:30px;line-height:30px;}
- .tlistbox_9{width:100%;height:30px;line-height:20px;}
- .dongbox {position: fixed;z-index: 99999;display: none;top: 0px;width: 100%;height: 100vh;background: rgba(0,0,0,0.4);}
- </style>
- </head>
- <body>
- <div class="App">
- <div class="css-tq0shg">
- <include file="Public:header"/>
- <div class="css-ogtd7z">
- <div class="css-jrzkh7">
- <div id="header_global_js_wxgy34nj" class="css-1aac2e"></div>
- </div>
- </div>
- <main class="css-1wr4jig">
- <div style="width:100%;min-height:1200px;background:#f5f5f5;padding:10px 0px 0px 0px;">
- <div style="width:100%;min-height:1200px;">
- <div style="width:20%;min-height:1200px;float:left;padding:0px 10px 0px 0px;">
- <div style="width:100%;min-height:1000px;background:#fff;">
- <div style="width:100%;height:100%;padding:0px;padding:0px 10px;">
- <div style="width:100%;top:0px;">
- <div class="dong_title">
- <span class="dong_title_span" style="font-weight: bold;">{:L('币币市场')}</span>
- </div>
-
- <div class="dong_sel_box">
- <span class="fcc dong_sel_span">{:L('全部')}</span>
- </div>
- </div>
-
-
- <div class="symbol_list" id="smybolbox">
- <div style="width:100%;height:100px;line-height:100px;text-align:center;">
- <span class="f14 fcc">{:L('没有获取数据')}</span>
- </div>
- </div>
- </div>
-
- </div>
- </div>
- <div style="width:60%;min-height:1200px;background:#fff;float:left;">
- <div style="width:100%;height:90px;border-bottom:3px solid #f5f5f5;">
- <div class="klinetitle">
- <div class="klinetitle_l">
- <p class="fch" style="font-size:18px;margin:0px;height:40px;line-height:60px;">{$coinname}</p>
- <p class="fch" style="font-size:12px;margin:0px;height:40px;">{:L('币币交易')}</p>
- </div>
- <div class="klinetitle_l">
- <p class="newpricebox closeprice" id="newpricebox" style="font-size:24px;">--</p>
- <p class="changebox" id="changebox">--</p>
- </div>
- <div class="klinetitle_r">
- <div class="klr3_box">
- <div class="klr3_box_dl">
- <span class="f14 fcc">{:L('最低')}</span>
- </div>
- <div class="klr3_box_dr">
- <span class="f14 fch" id="minmoney">--</span>
- </div>
- </div>
- <div class="klr2_box">
- <div class="klr2_box_dl">
- <span class="f14 fcc">{:L('最高')}</span>
- </div>
- <div class="klr2_box_dr">
- <span class="f14 fch" id="maxmoney">--</span>
- </div>
- </div>
- <div class="klr2_box">
- <div class="klr2_box_dl">
- <span class="f14 fcc">24h{:L('量')}</span>
- </div>
- <div class="klr2_box_dr">
- <span class="f14 fch" id="allvol">--</span>
- </div>
- </div>
-
- </div>
- </div>
- </div>
- <div style="width:100%;height:600px;padding:5px;">
- <div style="width:100%;height:600px;">
- <div style="width:100%;height:600px;">
- <?php if($market == "ukbusdt"){?>
- <iframe id="iframeid" width="100%" scrolling="no" height="600px" src="<?php echo U('Trade/ordinaryh',array('market'=>$market));?>" noresize="noresize" frameborder="0" >{:L('不支持IFRAME,请升级')}</iframe>
- </eq>
- <?php }else{ ?>
- <iframe id="iframeid" width="100%" scrolling="no" height="600px" src="<?php echo U('Trade/ordinary',array('market'=>$market));?>" noresize="noresize" frameborder="0" >{:L('不支持IFRAME,请升级')}</iframe>
- </eq>
- <?php }?>
- </div>
- </div>
- </div>
-
-
- <div style="width:100%;height:400px;padding:5px 25px;">
- <div style="width:100%;height:80px;margin-top:10px;background:#fff; border-bottom:1px solid ##FCD535">
- <div style="width:100%;height:40px;line-height:40px;">
- <span class="fch fw" style="font-size:20px;">{:L('币币交易')}</span>
- </div>
- <div style="width:100%;height:40px;line-height:30px;">
- <span class="f12" style="background:#0ecb81;padding:5px 15px;border-radius: 5px;color:#fff;cursor:pointer;" id="buybtn">{:L('买入')}</span>
- <span class="f12" style="background:#f5465c;padding:5px 15px;border-radius: 5px;color:#fff;cursor:pointer;margin:0px 20px;" id="sellbtn">{:L('卖出')}</span>
- <a href="{:U('Trade/bborder')}" style="margin-left:30px;text-decoration:none;padding:5px 15px;border-radius: 5px;color: rgb(240, 185, 11);cursor:pointer;background-color: rgba(240, 185, 11, 0.19);">{:L('我的订单')}</a>
- </div>
-
- </div>
- <div style="width:100%;height:400px;">
-
- <div class="contentbox" style="width:100%;padding:0px;">
- <div class="tradebox" style="width:100%;padding:0px;">
- <div class="tradebox_l" style="width:100%;padding:0px;">
- <!--买入框-->
- <div class="formbox" id="buycoinbox" style="display:block;">
- <div class="formbox_op">
- <div class="formbox_op_list" id="buyxjbtn">
- <span class="f14 fcy" id="xjspan" >{:L('限价委托')}</span>
- </div>
- <div class="formbox_op_list" id="buysjbtn">
- <span class="f14 fcc" id="sjspan">{:L('市价委托')}</span>
- </div>
- </div>
-
- <!--限价委托单价框-->
- <div class="inputbox" id="xjbox">
- <div class="inputbox_float">
- <input type="text" id="newprice" class="fcc xjinput" value="" />
- </div>
- <div class="inputbox_float" style="width:20%;float:right;">
- <div class="input_bi borderright" id="dash_buyprice">
- <i class="bi bi-dash bistyle"></i>
- </div>
- <div class="input_bi" id="plus_buyprice">
- <i class="bi bi-plus bistyle"></i>
- </div>
- </div>
- </div>
-
- <div class="inputbox" style="background: #f5f5f5;display:none" id="sjbox">
- <div class="inputbox_float">
- <input type="text" class="fcc xjinput" placeholder="{:L('按市场最优价')}" style="background:#f5f5f5;" />
- </div>
- </div>
-
- <div class="inputbox" id="sjnumbox" style="display:none;border:none;"></div>
-
- <div class="inputbox" id="xjnumbox" style="display:block;">
- <div class="inputbox_float">
- <input type="text" id="buynum" oninput="buynumfc();" class="fcc xjinput" value="" placeholder="{:L('输入数量')}" autocomplete="off" step="1" min="0" onkeyup="this.value= this.value.match(/\d+(\.\d{0,6})?/) ? this.value.match(/\d+(\.\d{0,6})?/)[0] : ''" />
- </div>
- <div class="inputbox_float" style="width:20%;float:right;">
- <div class="input_bi borderright" id="dash_buynum">
- <i class="bi bi-dash bistyle"></i>
- </div>
- <div class="input_bi" id="plus_buynum">
- <i class="bi bi-plus bistyle"></i>
- </div>
- </div>
- </div>
-
-
- <div class="blbox">
- <div class="blbox_1" onclick="buyblfc(1,25);">
- <div class="blbox_3 bgf5" id="buybl_1"></div>
- <div class="blbox_4">
- <span class="f14 fcc">25%</span>
- </div>
- </div>
- <div class="blbox_1" onclick="buyblfc(2,50);">
- <div class="blbox_3 bgf5" id="buybl_2"></div>
- <div class="blbox_4">
- <span class="f14 fcc">50%</span>
- </div>
- </div>
- <div class="blbox_1" onclick="buyblfc(3,75);">
- <div class="blbox_3 bgf5" id="buybl_3"></div>
- <div class="blbox_4">
- <span class="f14 fcc">75%</span>
- </div>
- </div>
- <div class="blbox_2" onclick="buyblfc(4,100);">
- <div class="blbox_3 bgf5" id="buybl_4"></div>
- <div class="blbox_4">
- <span class="f14 fcc">100%</span>
- </div>
- </div>
- </div>
-
- <div style="width:100%;height:30px;margin-top:20px;">
- <div style="width:30%;height:30px;line-height:30px;float:left;">
- <span class="f14 fcc">{:L('可用')}</span>
- </div>
- <div style="width:70%;height:30px;line-height:30px;float:left;text-align:right;">
- <span class="f14 fcc">{$usdt_blance}</span>
- <span class="f14 fcc">USDT</span>
- </div>
- </div>
-
- <div class="inputbox">
- <div class="inputbox_float">
- <input type="text" id="buyusdt" oninput="buyusdtfc();" class="fcc xjinput" value="" placeholder="{:L('交易额')}" autocomplete="off" step="1" min="0" onkeyup="this.value= this.value.match(/\d+(\.\d{0,6})?/) ? this.value.match(/\d+(\.\d{0,6})?/)[0] : ''" />
- </div>
- <div class="inputbox_float" style="width:10%;text-align:center;line-height:36px;float:right;">
- <span class="f14 fcc">USDT</span>
- </div>
- </div>
-
- <if condition="$uid egt 1">
- <div onclick="bb_buycoin(1);" style="width:100%;height:36px;line-height:36px;background:#0ecb81;text-align:center;color:#fff;border-radius:5px;margin-top:30px;">
- <span class="f14" style="color:#fff;">{:L('买入')}</span>
- </div>
- <else />
- <a href="{:U('Login/index')}">
- <div style="width:100%;height:36px;line-height:36px;background:#0ecb81;text-align:center;color:#fff;border-radius:5px;margin-top:30px;">
- <span class="f14" style="color:#fff;">{:L('登陆')}</span>
- </div>
- </a>
- </if>
-
- </div>
-
-
-
- <!--卖出框-->
- <div class="formbox" id="sellcoinbox" style="display:none;">
- <div class="formbox_op">
- <div class="formbox_op_list" id="sell_xjbtn">
- <span class="f14 fcy" id="sell_xjspan">{:L('限价委托')}</span>
- </div>
- <div class="formbox_op_list" id="sell_sjbtn">
- <span class="f14 fcc" id="sell_sjspan">{:L('市价委托')}</span>
- </div>
- </div>
-
- <!--限价委托单价框-->
- <div class="inputbox" id="sell_xjbox">
- <div class="inputbox_float">
- <input type="text" id="sell_newprice" class="fcc xjinput" value="" />
- </div>
- <div class="inputbox_float" style="width:20%;float:right;">
- <div class="input_bi borderright" id="dash_sellprice">
- <i class="bi bi-dash bistyle"></i>
- </div>
- <div class="input_bi" id="plus_sellprice">
- <i class="bi bi-plus bistyle"></i>
- </div>
- </div>
- </div>
-
- <div class="inputbox" style="background: #f5f5f5;display:none" id="sell_sjbox">
- <div class="inputbox_float">
- <input type="text" class="fcc xjinput" placeholder="{:L('按市场最优价')}" style="background:#f5f5f5;" />
- </div>
- </div>
-
- <div class="inputbox" id="sell_sjnumbox" style="display:none;border:none;"></div>
-
- <div class="inputbox" id="sell_xjnumbox" style="display:block;">
- <div class="inputbox_float">
- <input type="text" id="sell_num" oninput="sellnumfc();" class="fcc xjinput" value="" placeholder="{:L('输入数量')}" autocomplete="off" step="1" min="0" onkeyup="this.value= this.value.match(/\d+(\.\d{0,6})?/) ? this.value.match(/\d+(\.\d{0,6})?/)[0] : ''" />
- </div>
- <div class="inputbox_float" style="width:20%;float:right;">
- <div class="input_bi borderright" id="dash_sellnum">
- <i class="bi bi-dash bistyle"></i>
- </div>
- <div class="input_bi" id="plus_sellnum">
- <i class="bi bi-plus bistyle"></i>
- </div>
- </div>
- </div>
-
-
- <div class="blbox">
- <div class="blbox_1" onclick="sellblfc(1,25);">
- <div class="blbox_3 bgf5" id="sellbl_1"></div>
- <div class="blbox_4">
- <span class="f14 fcc">25%</span>
- </div>
- </div>
- <div class="blbox_1" onclick="sellblfc(2,50);">
- <div class="blbox_3 bgf5" id="sellbl_2"></div>
- <div class="blbox_4">
- <span class="f14 fcc">50%</span>
- </div>
- </div>
- <div class="blbox_1" onclick="sellblfc(3,75);">
- <div class="blbox_3 bgf5" id="sellbl_3"></div>
- <div class="blbox_4">
- <span class="f14 fcc">75%</span>
- </div>
- </div>
- <div class="blbox_2" onclick="sellblfc(4,100);">
- <div class="blbox_3 bgf5" id="sellbl_4"></div>
- <div class="blbox_4">
- <span class="f14 fcc">100%</span>
- </div>
- </div>
- </div>
-
- <div style="width:100%;height:30px;margin-top:20px;">
- <div style="width:30%;height:30px;line-height:30px;float:left;">
- <span class="f14 fcc">{:L('可用')}</span>
- </div>
- <div style="width:70%;height:30px;line-height:30px;float:left;text-align:right;">
- <span class="f14 fcc">{$coin_blance}</span>
- <span class="f14 fcc">{$symbol}</span>
- </div>
- </div>
-
- <div class="inputbox" id="sellxjusdt">
- <div class="inputbox_float">
- <input type="text" id="sell_usdt" oninput="sellusdtfc();" class="fcc xjinput" value="" placeholder="{:L('交易额')}" autocomplete="off" step="1" min="0" onkeyup="this.value= this.value.match(/\d+(\.\d{0,6})?/) ? this.value.match(/\d+(\.\d{0,6})?/)[0] : ''" />
- </div>
- <div class="inputbox_float" style="width:10%;text-align:center;line-height:36px;float:right;">
- <span class="f14 fcc">USDT</span>
- </div>
- </div>
-
- <div class="inputbox" id="sellxjcoin" style="display:none;">
- <div class="inputbox_float">
- <input type="text" id="sell_coin" oninput="sellcoinfc();" class="fcc xjinput" value="" placeholder="{:L('交易额')}" autocomplete="off" step="1" min="0" onkeyup="this.value= this.value.match(/\d+(\.\d{0,6})?/) ? this.value.match(/\d+(\.\d{0,6})?/)[0] : ''" />
- </div>
- <div class="inputbox_float" style="width:10%;text-align:center;line-height:36px;float:right;float:right;">
- <span class="f14 fcc">{$symbol}</span>
- </div>
- </div>
-
-
- <if condition="$uid egt 1">
- <div onclick="bb_sellcoin(2);" style="width:100%;height:36px;line-height:36px;background:#f5465c;text-align:center;color:#fff;border-radius:5px;margin-top:20px;">
- <span class="f14" style="color:#fff;">{:L('卖出')}</span>
- </div>
- <else />
- <a href="{:U('Login/index')}">
- <div style="width:100%;height:36px;line-height:36px;background:#f5465c;text-align:center;color:#fff;border-radius:5px;margin-top:20px;">
- <span class="f14" style="color:#fff;">{:L('登陆')}</span>
- </div>
- </a>
- </if>
-
- </div>
-
- </div>
- </div>
-
- </div>
-
-
-
-
-
- </div>
- </div>
-
- </div>
- <div style="width:20%;min-height:1200px;float:left;padding:0px 0px 0px 10px;">
- <div style="width:100%;min-height:1200px;background:#fff;">
- <div style="width:100%;height:40px;padding:0px 15px;">
- <div style="min-width:20%;height:40px;line-height:40px;border-bottom:2px solid #FCD535">
- <span class="f14 fch">{:L('盘口')}</span>
- </div>
- <div style="width:100%;margin-top:20px;">
-
- <div style="width:100%;">
- <div style="width:100%;height:20px;padding:0px 5px;">
- <div class="tradebox_title tl">
- <span class="fch f12">{:L('价格')}</span>
- </div>
- <div class="tradebox_title tr">
- <span class="fch f12">{:L('数量')}</span>
- </div>
- </div>
-
- <div class="trade_listbox" id="tradesellbox">
- <div style="width:100%;height:30px;">
- <div class="trade_list tl">
- <span class="red f12">--</span>
- </div>
- <div class="trade_list tr">
- <span class="red f12">--</span>
- </div>
- </div>
- </div>
- <div class="trade_listpricebox closeprice" id="closeprice">
- <span>--</span>
- </div>
- <div class="trade_listbox" id="tradebuybox">
- <div style="width:100%;height:30px;">
- <div class="trade_list tl">
- <span class="green f12">--</span>
- </div>
- <div class="trade_list tr">
- <span class="green f12">--</span>
- </div>
- </div>
- </div>
- </div>
-
-
- </div>
-
- </div>
- </div>
- </div>
- </div>
- </div>
- </main>
-
- <input type="hidden" id="buy_usermoney" value="{$usdt_blance}" />
- <input type="hidden" id="buy_usercoin" value="{$coin_blance}" />
-
- <input type="hidden" id="symbolbox" value="{$coinname}" />
- <!--交易限价单价-->
- <input type="hidden" id="mprice" value="" />
- <!--交易限价买卖币的数量-->
- <input type="hidden" id="mnum" value="" />
- <!--交易限价买卖USDT的数量-->
- <input type="hidden" id="musdt" value="" />
- <!--购买类型,1限价2市价-->
- <input type="hidden" id="buytype" value="1" />
-
-
- <include file="Public:footer"/>
- </div>
- </div>
-
- <div class="dongbox" id="gotaxbox" style="display:none;">
- <div style="width:300px;height:260px;background:#fff;margin:18% auto;border-radius:10px;padding:15px;">
- <div style="width:100%;height:100px;line-height:100px;text-align:center;">
- <i class="bi bi-exclamation-circle" style="font-size:56px;font-weight:bold;color:#f5465c;"></i>
- </div>
- <div style="width:100%;height:60px;text-align:center;color:#000;font-size:14px;">
- {:L('请先缴纳税金')}
- </div>
- <div style="width:100%;height:60px;">
- <a href="{:U('Finance/cztax')}" target="__blank">
- <div style="width:45%;height:36px;line-height:36px;text-align:center;float:left;font-size:14px;color:#fff;background:#0ecb81;border-radius:10px;">{:L('缴税')}</div></a>
- <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;">{:L('取消')}</div>
- </div>
- </div>
- </div>
- </body>
- <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
- <script type="text/javascript" src="/Public/Home/static/js/layer/layer.js" ></script>
- <script type="text/javascript" src="/Public/Home/static/js/jquery.SuperSlide.2.1.1.js" ></script>
- <script type="text/javascript">
- function hidetaxbox(){
- $("#gotaxbox").hide();
- }
- function clearorder(id){
- var oid = id;
- $.post("{:U('Trade/clearorder')}",
- {"oid":oid},
- function(data){
- if(data.code == 1){
- layer.msg(data.info);
- setTimeout(function(args){
- window.location.reload();
- },2000);
- }else{
- layer.msg(data.info);return false;
- }
- });
- }
- </script>
- <script type="text/javascript">
- function bb_sellcoin(type){
- var type = type;
- if(type <= 0){
- layer.msg("{:L('缺少重要参数')}");return false;
- }
- var symbol = $("#symbolbox").val();
- var mprice = $("#sell_newprice").val();
- var musdt = $("#musdt").val();
- var selltype = $("#buytype").val();
- if(selltype == 1){
- var mnum = $("#sell_num").val();
- if(mprice < 0){
- layer.msg("{:L('缺少重要参数')}");return false;
- }
- if(mnum <= 0){
- layer.msg("{:L('请输入出售数量')}");return false;
- }
- }else if(selltype == 2){
- var mnum = $("#sell_coin").val();
- if(mnum <= 0){
- layer.msg("{:L('请输入出售数量')}");return false;
- }
- }
- $.post("{:U('Trade/upbbsell')}",
- {'symbol':symbol,'mprice':mprice,'mnum':mnum,'musdt':musdt,'selltype':selltype,'type':type},
- function(data){
- if(data.code == 1){
- layer.msg(data.info);
- setTimeout(function(args){
- window.location.reload();
- },2000);
- }else if(data.code == 3){
- $("#gotaxbox").show();
- }else{
- layer.msg(data.info);return false;
- }
- });
- }
- </script>
- <script type="text/javascript">
- function bb_buycoin(type){
- var type = type;
- if(type <= 0){
- layer.msg("{:L('缺少重要参数')}");return false;
- }
- var symbol = $("#symbolbox").val();
- var mprice = $("#newprice").val();
- var mnum = $("#mnum").val();
- var musdt = $("#musdt").val();
- var buytype = $("#buytype").val();
- if(buytype == 1){
- if(mnum <= 0){
- layer.msg("{:L('输入数量')}");return false;
- }
- }else if(buytype == 2){
- if(musdt <= 0){
- layer.msg("{:L('输入USDT数量')}");return false;
- }
- }
- $.post("{:U('Trade/upbbbuy')}",
- {'symbol':symbol,'mprice':mprice,'mnum':mnum,'musdt':musdt,'buytype':buytype,'type':type},
- function(data){
- if(data.code == 1){
- layer.msg(data.info);
- setTimeout(function(args){
- window.location.reload();
- },2000);
- }else if(data.code == 3){
- $("#gotaxbox").show();
- }else{
- layer.msg(data.info);return false;
- }
- });
- }
- </script>
- <script type="text/javascript">
- function getallsmybol(){
- $.post("{:U('Ajaxtrade/getallcoin')}",
- function(data){
- if(data.code == 1){
- $("#smybolbox").empty();
- var html = '';
- if(data.data == '' || data.data == null){
- html = '<div style="width:100%;height:100px;line-height:100px;text-align:center;">'+
- '<span class="f14 fcc">' + "{:L('没有获取数据')}" + '</span>'+
- '</div>';
- $("#smybolbox").append(html);
-
- }else{
- $.each(data.data,function(key,val){
- html += '<a href="/Trade/index.html?symbol='+ val.coin +'&type=buy">'+
- '<div class="sy_list_box">'+
- '<div class="sy_list_boxl">'+
- '<span class="f12 fch">'+ val.cname +'</span>'+
- '</div>'+
- '<div class="sy_list_boxl" style="text-align:center;font-size:12px;">' + val.open + '</div>'+
- '<div class="sy_list_boxr" style="font-size:12px;">' + val.change +'</div>'+
- '</div>'+
- '</a>';
- });
-
- $("#smybolbox").append(html);
- }
- }else{
- html = '<div style="width:100%;height:100px;line-height:100px;text-align:center;">'+
- '<span class="f14 fcc">' + "{:L('没有获取数据')}" + '</span>'+
- '</div>';
- $("#smybolbox").append(html);
- }
- });
- }
- </script>
- <script type="text/javascript">
- $(function(){
- getallsmybol();
- gettradbuy();
- gettradsell();
- setInterval("getallsmybol()",3000);
- setInterval("gettradbuy()",2000);
- setInterval("gettradsell()",2000);
- });
- </script>
- <script type="text/javascript">
- function gettradsell(){
- var symbol = $("#symbolbox").val();
- $.post("{:U('Ajaxtrade/gettradsellten')}",
- {'symbol':symbol},
- function(data){
- if(data.code == 1){
- $("#tradebuybox").empty();
- var html = '';
- if(data.data == '' || data.data == null){
- html = '<div style="width:100%;height:100px;line-height:100px;text-align:center;">'+
- '<span class="f14 fcc">' + "{:L('没有获取数据')}" + '</span>'+
- '</div>';
- $("#tradebuybox").append(html);
-
- }else{
- $.each(data.data,function(key,val){
- html += '<div style="width:100%;height:30px;">'+
- '<div class="trade_list tl">'+
- '<span class="red f12">'+ val.price +'</span>'+
- '</div>'+
- '<div class="trade_list tr">'+
- '<span class="red f12">'+ val.amount +'</span>'+
- '</div>'+
- '</div>';
- });
- $("#tradebuybox").append(html);
- }
- }
- });
- }
- </script>
- <script type="text/javascript">
- function gettradbuy(){
- var symbol = $("#symbolbox").val();
- $.post("{:U('Ajaxtrade/gettradbuyten')}",
- {'symbol':symbol},
- function(data){
- if(data.code == 1){
- $("#tradesellbox").empty();
- var html = '';
- if(data.data == '' || data.data == null){
- html = '<div style="width:100%;height:100px;line-height:100px;text-align:center;">'+
- '<span class="f14 fcc">' + "{:L('没有获取数据')}" + '</span>'+
- '</div>';
- $("#tradesellbox").append(html);
-
- }else{
- $.each(data.data,function(key,val){
- html += '<div style="width:100%;height:30px;">'+
- '<div class="trade_list tl">'+
- '<span class="green f12">'+ val.price +'</span>'+
- '</div>'+
- '<div class="trade_list tr">'+
- '<span class="green f12">'+ val.amount +'</span>'+
- '</div>'+
- '</div>';
- });
- $("#tradesellbox").append(html);
- }
- }
- });
- }
- </script>
- <script type="text/javascript">
- $(function(){
- getcoinprice();
- setInterval("getcoinprice()",2000);
- });
- </script>
- <script type="text/javascript">
- function getcoinprice(){
- var symbol = $("#symbolbox").val();
- $.post("{:U('Ajaxtrade/getcoinprice')}",
- {'symbol':symbol},
- function(data){
- if(data.code == 1){
- $("#changebox").html(data.change);
- $(".closeprice").html(data.price);
- $("#minmoney").html(data.low);
- $("#maxmoney").html(data.high);
- $("#allvol").html(data.amount);
- }else{
- console.log("{:L('未获取数据')}");
- }
- });
- }
- </script>
- <script type="text/javascript">
- $("#buybtn").click(function(){
- $("#buybtn").addClass("bggreen");
- $("#buybtn").removeClass("bghc");
- $("#sellbtn").addClass("bghc");
- $("#sellbtn").removeClass("bggreen");
- $("#buycoinbox").show();
- $("#sellcoinbox").hide();
- $("#buybtnspan").addClass("cfff");
- $("#buybtnspan").removeClass("c000");
- $("#sellbtnspan").addClass("c000");
- $("#sellbtnspan").removeClass("cfff");
- });
- $("#sellbtn").click(function(){
- $("#buybtn").removeClass("bgred");
- $("#buybtn").addClass("bghc");
- $("#sellbtn").removeClass("bghc");
- $("#sellbtn").addClass("bgred");
- $("#buycoinbox").hide();
- $("#sellcoinbox").show();
- $("#buybtnspan").addClass("c000");
- $("#buybtnspan").removeClass("cfff");
- $("#sellbtnspan").addClass("cfff");
- $("#sellbtnspan").removeClass("c000");
- });
- </script>
- <script type="text/javascript">
- //出售框
- $("#sell_xjbtn").click(function(){
- $("#sell_xjspan").addClass("fcy");
- $("#sell_xjspan").removeClass("fcc");
- $("#sell_sjspan").addClass("fcc");
- $("#sell_sjspan").removeClass("fcy");
- $("#sell_xjbox").show();
- $("#sell_sjbox").hide();
- $("#buytype").val(1);
- $("#sell_sjnumbox").hide();
- $("#sell_xjnumbox").show();
- $("#sellxjusdt").show();
- $("#sellxjcoin").hide();
-
-
- });
- $("#sell_sjbtn").click(function(){
- $("#sell_sjspan").addClass("fcy");
- $("#sell_sjspan").removeClass("fcc");
- $("#sell_xjspan").addClass("fcc");
- $("#sell_xjspan").removeClass("fcy");
- $("#sell_sjbox").show();
- $("#sell_xjbox").hide();
- $("#buytype").val(2);
- $("#sell_xjnumbox").hide();
- $("#sell_sjnumbox").show();
- $("#sellxjusdt").hide();
- $("#sellxjcoin").show();
- });
-
- //买入框
- $("#buyxjbtn").click(function(){
- $("#xjspan").addClass("fcy");
- $("#xjspan").removeClass("fcc");
- $("#sjspan").addClass("fcc");
- $("#sjspan").removeClass("fcy");
- $("#xjbox").show();
- $("#sjbox").hide();
- $("#buytype").val(1);
- $("#sjnumbox").hide();
- $("#xjnumbox").show();
- });
- $("#buysjbtn").click(function(){
- $("#sjspan").addClass("fcy");
- $("#sjspan").removeClass("fcc");
- $("#xjspan").addClass("fcc");
- $("#xjspan").removeClass("fcy");
- $("#sjbox").show();
- $("#xjbox").hide();
- $("#buytype").val(2);
- $("#xjnumbox").hide();
- $("#sjnumbox").show();
- });
- </script>
- <script type="text/javascript">
- function sellusdtfc(){
- var newprice = parseFloat($("#newprice").val()); //单价
- var buyusdt = parseFloat($("#sell_usdt").val()); //输入的USDT数量
- var usermoney = parseFloat($("#buy_usercoin").val());//币的数量
- var coinnum = parseFloat(buyusdt / newprice).toFixed(4);
-
- if(coinnum > usermoney){
- layer.msg("{:L('余额不足')}");return false;
- }else{
- $("#sell_num").val(coinnum);
- $("#musdt").val(buyusdt);
- }
- }
- function buyusdtfc(){
- var newprice = parseFloat($("#newprice").val());
- var buyusdt = parseFloat($("#buyusdt").val());
- var usermoney = parseFloat($("#buy_usermoney").val());
- var num = parseFloat(buyusdt / newprice).toFixed(4);
- if(buyusdt > usermoney){
- layer.msg("{:L('余额不足')}");return false;
- }else{
- var buynum = parseFloat(buyusdt / newprice).toFixed(4);
- $("#buynum").val(buynum);
- $("#musdt").val(buyusdt);
- $("#mnum").val(num);
- }
- }
- </script>
- <script type="text/javascript">
- function sellnumfc(){
- var newbuynum = $("#sell_num").val();
- var newprice = $("#sell_newprice").val();
- var buyusdt = parseFloat((newprice * newbuynum)).toFixed(4);
- var usermoney = parseFloat($("#buy_usercoin").val());
- if(newbuynum > usermoney){
- layer.msg("{:L('余额不足')}");return false;
- }else{
- $("#sell_usdt").val(buyusdt);
- $("#mnum").val(newbuynum);
- $("#musdt").val(buyusdt);
- }
-
- }
- function buynumfc(){
- var newbuynum = $("#buynum").val();
- var newprice = $("#newprice").val();
- var buyusdt = parseFloat((newprice * newbuynum)).toFixed(4);
- var usermoney = parseFloat($("#buy_usermoney").val());
- if(buyusdt > usermoney){
- layer.msg("{:L('余额不足')}");return false;
- }else{
- $("#buyusdt").val(buyusdt);
- $("#mnum").val(newbuynum);
- $("#musdt").val(buyusdt);
- }
-
- }
- </script>
- <script type="text/javascript">
- $(function(){
- var symbol = $("#symbolbox").val();
- $.post("{:U('Ajaxtrade/getnewprice')}",
- {'symbol':symbol},
- function(data){
- if(data.code == 1){
- $("#newprice").val(data.price);
- $("#mprice").val(data.price);
- $("#sell_newprice").val(data.price);
- }else{
- console.log("{:L('未获取数据')}");
- }
- });
- });
- </script>
- <script type="text/javascript">
- function sellcoinfc(){
- var sell_coin = parseFloat($("#sell_coin").val());
- if(sell_coin < 0){
- layer.msg("{:L('请输入正确数量')}");return false;
- }
- var buy_usercoin = parseFloat($("#buy_usercoin").val());
- if(sell_coin > buy_usercoin){
- layer.msg("{:L('余额不足')}");return false;
- }
- }
-
-
-
- function sellblfc(type,num){
- var type = type;
- var num = num;
- var usermoney = $("#buy_usercoin").val();
- var musdt = parseFloat((usermoney * num / 100)).toFixed(4);
- var newprice = $("#newprice").val();
- var buynum = parseFloat((musdt * newprice)).toFixed(4);
-
- $("#sell_usdt").val(buynum);
- $("#sell_num").val(musdt);
-
- $("#musdt").val(buynum);
- $("#mnum").val(musdt);
- $("#sell_coin").val(musdt);
-
-
- if(type == 1){
- $('#sellbl_1').addClass("bgred");
- $('#sellbl_1').removeClass("bgf5");
- $('#sellbl_2').addClass("bgf5");
- $('#sellbl_2').removeClass("bgred");
- $('#sellbl_3').addClass("bgf5");
- $('#sellbl_3').removeClass("bgred");
- $('#sellbl_4').addClass("bgf5");
- $('#sellbl_4').removeClass("bgred");
-
- }else if(type == 2){
- $('#sellbl_2').addClass("bgred");
- $('#sellbl_2').removeClass("bgf5");
- $('#sellbl_1').addClass("bgf5");
- $('#sellbl_1').removeClass("bgred");
- $('#sellbl_3').addClass("bgf5");
- $('#sellbl_3').removeClass("bgred");
- $('#sellbl_4').addClass("bgf5");
- $('#sellbl_4').removeClass("bgred");
- }else if(type == 3){
- $('#sellbl_3').addClass("bgred");
- $('#sellbl_3').removeClass("bgf5");
- $('#sellbl_1').addClass("bgf5");
- $('#sellbl_1').removeClass("bgred");
- $('#sellbl_2').addClass("bgf5");
- $('#sellbl_2').removeClass("bgred");
- $('#sellbl_4').addClass("bgf5");
- $('#sellbl_4').removeClass("bgred");
- }else if(type == 4){
- $('#sellbl_4').addClass("bgred");
- $('#sellbl_4').removeClass("bgf5");
- $('#sellbl_1').addClass("bgf5");
- $('#sellbl_1').removeClass("bgred");
- $('#sellbl_2').addClass("bgf5");
- $('#sellbl_2').removeClass("bgred");
- $('#sellbl_3').addClass("bgf5");
- $('#sellbl_3').removeClass("bgred");
- }
- }
- function buyblfc(type,num){
- var type = type;
- var num = num;
- var usermoney = $("#buy_usermoney").val();
- var musdt = parseFloat((usermoney * num / 100)).toFixed(4);
- var newprice = $("#newprice").val();
- var buynum = parseFloat((musdt / newprice)).toFixed(4);
- $("#buyusdt").val(musdt);
- $("#buynum").val(buynum);
- $("#musdt").val(musdt);
- $("#mnum").val(buynum);
- if(type == 1){
- $('#buybl_1').addClass("bggreen");
- $('#buybl_1').removeClass("bgf5");
- $('#buybl_2').addClass("bgf5");
- $('#buybl_2').removeClass("bggreen");
- $('#buybl_3').addClass("bgf5");
- $('#buybl_3').removeClass("bggreen");
- $('#buybl_4').addClass("bgf5");
- $('#buybl_4').removeClass("bggreen");
-
- }else if(type == 2){
- $('#buybl_2').addClass("bggreen");
- $('#buybl_2').removeClass("bgf5");
- $('#buybl_1').addClass("bgf5");
- $('#buybl_1').removeClass("bggreen");
- $('#buybl_3').addClass("bgf5");
- $('#buybl_3').removeClass("bggreen");
- $('#buybl_4').addClass("bgf5");
- $('#buybl_4').removeClass("bggreen");
- }else if(type == 3){
- $('#buybl_3').addClass("bggreen");
- $('#buybl_3').removeClass("bgf5");
- $('#buybl_1').addClass("bgf5");
- $('#buybl_1').removeClass("bggreen");
- $('#buybl_2').addClass("bgf5");
- $('#buybl_2').removeClass("bggreen");
- $('#buybl_4').addClass("bgf5");
- $('#buybl_4').removeClass("bggreen");
- }else if(type == 4){
- $('#buybl_4').addClass("bggreen");
- $('#buybl_4').removeClass("bgf5");
- $('#buybl_1').addClass("bgf5");
- $('#buybl_1').removeClass("bggreen");
- $('#buybl_2').addClass("bgf5");
- $('#buybl_2').removeClass("bggreen");
- $('#buybl_3').addClass("bgf5");
- $('#buybl_3').removeClass("bggreen");
- }
- }
- </script>
- <script type="text/javascript">
-
- $("#dash_sellprice").click(function(){
- var newprice = parseFloat($("#sell_newprice").val());
- if(newprice > 0){
- var buyprice = (newprice - 0.001).toFixed(4);
- }else{
- var buyprice = 0;
- }
- $("#sell_newprice").val(buyprice);
- $("#mprice").val(buyprice);
- });
-
- $("#plus_sellprice").click(function(){
- var newprice = parseFloat($("#sell_newprice").val());
- var buyprice = (newprice + 0.001).toFixed(4);
- $("#sell_newprice").val(buyprice);
- $("#mprice").val(buyprice);
- });
-
- $("#dash_sellnum").click(function(){
- var buynum = parseFloat($("#sell_num").val());
- if(buynum > 0){
- var newbuynum = (buynum - 0.001).toFixed(4);
- }else{
- newbuynum = 0
- }
- $("#sell_num").val(newbuynum);
- $("#mnum").val(newbuynum);
- var newprice = $("#newprice").val();
- var buyusdt = (newprice * newbuynum).toFixed(4);
- $("#sell_usdt").val(buyusdt);
- $("#musdt").val(buyusdt);
-
- });
- $("#plus_sellnum").click(function(){
- var buynum = parseFloat($("#sell_num").val());
- if(buynum > 0){
- var newbuynum = (buynum + 0.001).toFixed(4);
- }else{
- var newbuynum = 0.01;
- }
- $("#sell_num").val(newbuynum);
- $("#mnum").val(newbuynum);
- var newprice = $("#newprice").val();
- var usermoney = parseFloat($("#buy_usercoin").val());
- var buyusdt = parseFloat((newprice * newbuynum)).toFixed(4);
- if(newbuynum > usermoney){
- layer.msg("{:L('余额不足')}");return false;
- }else{
- $("#sell_usdt").val(buyusdt);
- $("#musdt").val(buyusdt);
- }
- });
-
-
- $("#dash_buyprice").click(function(){
- var newprice = parseFloat($("#newprice").val());
- if(newprice > 0){
- var buyprice = (newprice - 0.001).toFixed(4);
- }else{
- var buyprice = 0;
- }
- $("#newprice").val(buyprice);
- $("#mprice").val(buyprice);
- });
- $("#plus_buyprice").click(function(){
- var newprice = parseFloat($("#newprice").val());
- var buyprice = (newprice + 0.001).toFixed(4);
- $("#newprice").val(buyprice);
- $("#mprice").val(buyprice);
- });
- $("#dash_buynum").click(function(){
- var buynum = parseFloat($("#buynum").val());
- if(buynum > 0){
- var newbuynum = (buynum - 0.001).toFixed(4);
- }else{
- newbuynum = 0
- }
- $("#buynum").val(newbuynum);
- $("#mnum").val(newbuynum);
- var newprice = $("#newprice").val();
- var buyusdt = (newprice * newbuynum).toFixed(4);
- $("#buyusdt").val(buyusdt);
- $("#musdt").val(buyusdt);
-
- });
- $("#plus_buynum").click(function(){
- var buynum = parseFloat($("#buynum").val());
- if(buynum > 0){
- var newbuynum = (buynum + 0.001).toFixed(4);
- }else{
- var newbuynum = 0.01;
- }
- $("#buynum").val(newbuynum);
- $("#mnum").val(newbuynum);
- var newprice = $("#newprice").val();
- var usermoney = parseFloat($("#buy_usermoney").val());
- var buyusdt = parseFloat((newprice * newbuynum)).toFixed(4);
- if(buyusdt > usermoney){
- layer.msg("{:L('余额不足')}");return false;
- }else{
- $("#buyusdt").val(buyusdt);
- $("#musdt").val(buyusdt);
- }
- });
- </script>
- <script type="text/javascript">
- $("#nav").slide({
- type:"menu",// 效果类型,针对菜单/导航而引入的参数(默认slide)
- titCell:".nLi", //鼠标触发对象
- targetCell:".sub", //titCell里面包含的要显示/消失的对象
- effect:"slideDown", //targetCell下拉效果
- delayTime:300 , //效果时间
- triggerTime:0, //鼠标延迟触发时间(默认150)
- returnDefault:true //鼠标移走后返回默认状态,例如默认频道是“预告片”,鼠标移走后会返回“预告片”(默认false)
- });
- </script>
-
- </html>
|