123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217 |
- <!DOCTYPE html>
- <html lang="zh-CN">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
- <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/Static/css/base2.css" />
- <link rel="stylesheet" type="text/css" href="/Public/Static/css/nologed.css" />
- <link rel="stylesheet" href="/Public/Static/Icoinfont/iconfont.css">
- <script src="/Public/Static/Icoinfont/iconfont.js"></script>
- <title>{$webname}</title>
- <style>
- ::-webkit-input-placeholder {color: #b5b5b5;font-size: 12px;}
- ::-moz-placeholder {color: #b5b5b5;font-size: 12px;}
- input:focus{background:#f5f5f5;outline: 1px solid #f5f5f5;}
- a:hover,a:link,a:visited,a:active{color:#707A8A;text-decoration:none;}
- .no_header{position: fixed;z-index: 9999;padding:0px 10px;top:0px;line-height: 50px;background:#f5f5f5;}
- .contentbox{width:100%;height:600px;margin-top:45px;padding:5px 15px;}
- .contentbox_top{width:100%;height:50px;line-height:50px;text-align:left;}
- .contentbox_line{width:100%;height:50px;background:#fff;border-radius:10px;padding:0px 10px;}
- .line_1{width:20%;height:50px;line-height:50px;float:left;}
- .line_2{width:70%;height:50px;line-height:50px;float:right;text-align:right;}
- .imgbox{width:100%;padding:20px;background:#fff;margin-top:15px;border-radius:10px;}
- .imgbox_1{width:100%;height:40px;line-height:40px;text-align:left;}
- .imgbox_2{width:100%;height:35px;line-height:35px;text-align:left;}
- .imgbox_3{width:140px;height:35px;line-height:35px;text-align:center;border:1px solid #ccc;border-radius:5px;color:#ccc;}
- .imgbox_active{width:140px;height:35px;line-height:35px;text-align:center;border:1px solid #FCD535;border-radius:5px;color: #FCD535;}
- .textbox{width:100%;background:#fff;margin-top:10px;border-radius:10px;padding:15px;}
- .tx_inputbox{width:100%;height:40px;background:#f5f5f5;border-radius:10px;padding:0px 10px;}
- .tx_inputbox_l{width:80%;height:30px;margin-top:5px;float:left;}
- .tx_inputbox_r{width:20%;height:30px;line-height:30px;margin-top:5px;float:right;text-align:right;}
- .inputbox_r_l{width:50%;height:30px;line-height:30px;float:left;text-align:center;}
- .inputbox_r_r{width:50%;height:30px;line-height:30px;float:right;text-align:center;}
- .imgbox_8{width:100%;text-align:center;}
- .imgbox_9{width:100px;height:30px;line-height:30px;text-align:center;border-radius:5px;border:1px solid #FCD535;margin:auto;}
- .imgbox_10{width:100%;height:40px;line-height:40px;text-align:center;border-radius:5px;margin:auto;background: linear-gradient(to left,#eeb80d,#ffe35b);}
- .bottom_btn_box{width:100%;height:100px;background:#fff;position:fixed;bottom:0px;border-top-left-radius:15px;border-top-right-radius:15px;padding:15px;}
- .dongbox{position:fixed;z-index:9999999999;display:none;top:0px;width:100%;height:100vh;background:rgba(0,0,0,0.2);}
- .dongbox_cbox{width:75%;height:180px;background:#fff;margin:50% auto;border-radius:15px;padding:10px;}
- .showbtn{width:100%;height:40px;line-height:40px;background: linear-gradient(to left,#eeb80d,#ffe35b);border-radius:5px;text-align:center;margin-top:10px;}
- .addressinfo{width:100%;height:200px;background:#fff;margin-bottom:0px;position: fixed;bottom: 0;padding:10px 15px;border-top-right-radius:10px;border-top-left-radius:10px;}
- .addressinfo_1{width:100%;height:30px;}
- .addressinfo_2{width:50%;height:30px;line-height:30px;float:left;text-align:left;}
- .addressinfo_3{width:50%;height:30px;line-height:30px;float:right;text-align:right;}
- .addressinfo_4{width:100%;height:20px;line-height:20px;}
- .addressinfo_5{width:100%;height:90px;background: rgb(240,185,1,0.2);margin-top:10px;border-radius:10px;border:1px solid #FCD535;padding:10px;}
- .overflow{overflow: hidden;text-overflow:ellipsis;white-space: nowrap;width:100%;height:35px;line-height:35px;}
- </style>
- </head>
- <body>
- <div class="container-fluid " style="padding:0px;width:100vw;">
- <div class="no_header">
- <div class="fl allhg txtl">
- <i class="bi bi-arrow-left fcc fw" onclick="goback()" style="font-size: 24px;"></i>
- </div>
- <div class="fr allhg txtr" style="line-height:50px;width:10%;"></div>
- </div>
- <div class="contentbox">
- <div class="contentbox_top">
- <span style="font-size:26px;font-weight:500;">{:L('资金划转')}</span>
- </div>
- <div class="imgbox">
- <div class="imgbox_1">
- <span class="fzmmm fch">{:L('划转类型')}</span>
- </div>
- <div class="imgbox_2">
- <div class="imgbox_active" style="float:left;" id="mtob" onclick="transfertype(1)">
- <span class="fzm">{:L('资金账户转合约账户')}</span>
- </div>
- <div class="imgbox_3" style="float:right;" id="btom" onclick="transfertype(2)">
- <span class="fzm">{:L('合约账户转资金账户')}</span>
- </div>
- </div>
- <div class="imgbox_1" style="margin-top:20px;height:30px;line-height:30px;">
- <div style="width:30%;height:30px;line-height:30px;float:left;">
- <span class="fzmmm fch">{:L('资金账户')}</span>
- </div>
- <div style="width:70%;height:30px;line-height:30px;float:right;text-align:right;">
- <span class="fzm fcc">{:L('可用余额')} </span>
- <span class="fzm fcc">{$money}</span>
- <span class="fzm fcc"><?php echo strtoupper($info['name']);?></span>
- </div>
- </div>
-
- <div class="imgbox_1" style="height:30px;line-height:30px;">
- <div style="width:30%;height:30px;line-height:30px;float:left;">
- <span class="fzmmm fch">{:L('合约账户')}</span>
- </div>
- <div style="width:70%;height:30px;line-height:30px;float:right;text-align:right;">
- <span class="fzm fcc">{:L('可用余额')} </span>
- <span class="fzm fcc">{$levermoney}</span>
- <span class="fzm fcc"><?php echo strtoupper($info['name']);?></span>
- </div>
- </div>
-
- <div class="tx_inputbox">
- <div class="tx_inputbox_l" style="width:65%;">
- <input type="text" id="tbnum" name="tbnum" placeholder="{:L('输入划转数量')}" style="background:#f5f5f5;border:1px solid #f5f5f5;height: 30px;" autocomplete="off" step="1" min="0" onkeyup="this.value= this.value.match(/\d+(\.\d{0,2})?/) ? this.value.match(/\d+(\.\d{0,2})?/)[0] : ''" />
- </div>
- <div class="tx_inputbox_r" style="width:35%;">
- <div class="inputbox_r_l">
- <span class="fzmmm fcc"><?php echo strtoupper($info['name']);?></span>
- </div>
- <div class="inputbox_r_r" id="allmoneybtn">
- <span class="fzmmm fcc">{:L('全部')}</span>
- </div>
- </div>
- </div>
-
-
- <input type="hidden" id="flag" value="1" />
- <div class="imgbox_8" style="margin-top:30px;">
- <div class="imgbox_10" id="sumbtn">
- <span class="fzmm fch">{:L('提交')}</span>
- </div>
- </div>
- </div>
-
- <input type="hidden" id="ttype" value="1" />
- <input type="hidden" id="levermoney" value="{$levermoney}" />
- <input type="hidden" id="usermoney" value="{$money}" />
- <div style="width:100%;height:30px;"></div>
-
- </div>
- </div>
- </body>
- <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
- <script type="text/javascript" src="/Public/Static/js/layer/layer.js" ></script>
- <script type="text/javascript">
- $("#allmoneybtn").click(function(){
- var type = $("#ttype").val();
- if(type == 1){
- var usermoney = parseFloat($("#usermoney").val());
- if(usermoney <= 0){
- layer.msg("{:L('请输入正确的数量')}");return false;
- }
- }else if(type == 2){
- var usermoney = parseFloat($("#levermoney").val());
- if(usermoney <= 0){
- layer.msg("{:L('请输入正确的数量')}");return false;
- }
- }
-
- $("#tbnum").val(usermoney);
- });
-
- $("#sumbtn").click(function(){
- var flag = $("#flag").val();
- if(flag == 2){
- return false;
- }
- var type = $("#ttype").val();
- var levermoney = $("#levermoney").val();
- var usermoney = $("#usermoney").val();
- var tbnum = $("#tbnum").val();
- if(tbnum <= 0){
- layer.msg("{:L('请输入正确的数量')}");return false;
- }
- if(type == 1){
- if(tbnum*1 > usermoney*1){
- layer.msg("{:L('资金账户余额不足')}");return false;
- }
- }else if(type == 2){
- if(tbnum*1 > levermoney*1){
- layer.msg("{:L('合约账户余额不足')}");return false;
- }
- }
- $("#flag").val(2);
- $.post("{:U('User/transfer')}",{'type':type,'tbnum':tbnum},function(data){
- if(data.code == 1){
- layer.msg(data.info);
- setTimeout(function(args){
- window.location.reload();
- },2000);
- }else{
- layer.msg(data.info);return false;
- }
- });
-
- });
-
-
- function transfertype(st){
- var type = st;
- if(type == 1){
- $("#ttype").val(1);
- $("#mtob").addClass("imgbox_active");
- $("#mtob").removeClass("imgbox_3");
- $("#btom").addClass("imgbox_3");
- $("#btom").removeClass("imgbox_active");
- }else if(type == 2){
- $("#ttype").val(2);
- $("#btom").addClass("imgbox_active");
- $("#btom").removeClass("imgbox_3");
- $("#mtob").addClass("imgbox_3");
- $("#mtob").removeClass("imgbox_active");
- }
- }
-
-
- function goback(){
- window.history.go(-1);
- }
- </script>
- </html>
|