txpage.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  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;padding:0px 10px;top:0px;line-height: 50px;background:#f5f5f5;}
  20. .contentbox{width:100%;height:600px;margin-top:45px;padding:5px 15px;}
  21. .contentbox_top{width:100%;height:50px;line-height:50px;text-align:left;}
  22. .contentbox_line{width:100%;height:50px;background:#fff;border-radius:10px;padding:0px 10px;}
  23. .line_1{width:20%;height:50px;line-height:50px;float:left;}
  24. .line_2{width:70%;height:50px;line-height:50px;float:right;text-align:right;}
  25. .imgbox{width:100%;padding:10px;background:#fff;margin-top:15px;border-radius:10px;}
  26. .imgbox_1{width:100%;height:40px;line-height:40px;text-align:left;}
  27. .imgbox_2{width:100%;height:35px;line-height:35px;text-align:left;}
  28. .imgbox_3{width:100px;height:35px;line-height:35px;text-align:center;border:1px solid #FCD535;border-radius:5px;}
  29. .textbox{width:100%;background:#fff;margin-top:10px;border-radius:10px;padding:15px;}
  30. .tx_inputbox{width:100%;height:40px;background:#f5f5f5;border-radius:10px;padding:0px 10px;}
  31. .tx_inputbox_l{width:80%;height:30px;margin-top:5px;float:left;}
  32. .tx_inputbox_r{width:20%;height:30px;line-height:30px;margin-top:5px;float:right;text-align:right;}
  33. .inputbox_r_l{width:50%;height:30px;line-height:30px;float:left;text-align:center;}
  34. .inputbox_r_r{width:50%;height:30px;line-height:30px;float:right;text-align:center;}
  35. .imgbox_8{width:100%;text-align:center;}
  36. .imgbox_9{width:100px;height:30px;line-height:30px;text-align:center;border-radius:5px;border:1px solid #FCD535;margin:auto;}
  37. .imgbox_10{width:100%;height:40px;line-height:40px;text-align:center;border-radius:5px;margin:auto;background: linear-gradient(to left,#eeb80d,#ffe35b);}
  38. .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;}
  39. .dongbox{position:fixed;z-index:9999999999;display:none;top:0px;width:100%;height:100vh;background:rgba(0,0,0,0.2);}
  40. .dongbox_cbox{width:75%;height:180px;background:#fff;margin:50% auto;border-radius:15px;padding:10px;}
  41. .showbtn{width:100%;height:40px;line-height:40px;background: linear-gradient(to left,#eeb80d,#ffe35b);border-radius:5px;text-align:center;margin-top:10px;}
  42. .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;}
  43. .addressinfo_1{width:100%;height:30px;}
  44. .addressinfo_2{width:50%;height:30px;line-height:30px;float:left;text-align:left;}
  45. .addressinfo_3{width:50%;height:30px;line-height:30px;float:right;text-align:right;}
  46. .addressinfo_4{width:100%;height:20px;line-height:20px;}
  47. .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;}
  48. .overflow{overflow: hidden;text-overflow:ellipsis;white-space: nowrap;width:100%;height:35px;line-height:35px;}
  49. </style>
  50. </head>
  51. <body>
  52. <div class="container-fluid " style="padding:0px;width:100vw;">
  53. <div class="no_header">
  54. <div class="fl allhg txtl">
  55. <i class="bi bi-arrow-left fcc fw" onclick="goback()" style="font-size: 24px;"></i>
  56. </div>
  57. <a href="{:U('User/txlist')}">
  58. <div class="fr allhg txtr" style="line-height:50px;width:10%;">
  59. <i class="bi bi-funnel fcy fw" style="font-size:20px;"></i>
  60. </div>
  61. </a>
  62. </div>
  63. <div class="contentbox">
  64. <div class="contentbox_top">
  65. <span style="font-size:26px;font-weight:500;">{:L('提币')}</span>
  66. </div>
  67. <div class="contentbox_line">
  68. <div class="line_1">
  69. <span class="fzmmm fch">{:L('币种')}</span>
  70. </div>
  71. <a href="{:U('User/txcoin')}">
  72. <div class="line_2">
  73. <span class="fzmmm fcy" style="font-size:18px;font-weight:bold;"><?php echo strtoupper($info['name']);?></span>
  74. <span class="fzmmm fch">&nbsp;&nbsp;<?php echo L($info['title']);?></span>
  75. <i class="bi bi-chevron-right fzmmm fcc"></i>
  76. </div>
  77. </a>
  78. </div>
  79. <div class="imgbox">
  80. <div class="imgbox_1">
  81. <span class="fzmmm fch">{:L('提币网络')}</span>
  82. </div>
  83. <div class="imgbox_2">
  84. <div class="imgbox_3">
  85. <span class="fzmm fcy">{$info.czline}</span>
  86. </div>
  87. </div>
  88. <div class="imgbox_1" style="margin-top:10px;">
  89. <span class="fzmmm fch">{:L('提币地址')}</span>
  90. </div>
  91. <div class="tx_inputbox">
  92. <div class="tx_inputbox_l">
  93. <input type="text" id="address" name="address" placeholder="{:L('输入或长按粘贴地址')}" style="background:#f5f5f5;border:1px solid #f5f5f5;width: 100%;height:30px;" />
  94. </div>
  95. <div class="tx_inputbox_r">
  96. <i class="bi bi-journal-text fch" id="showdongbtn" style="font-size:18px;"></i>
  97. </div>
  98. </div>
  99. <div class="imgbox_1" style="margin-top:10px;">
  100. <div style="width:30%;height:40px;line-height:40px;float:left;">
  101. <span class="fzmmm fch">{:L('提币数量')}</span>
  102. </div>
  103. <div style="width:70%;height:40px;line-height:40px;float:right;text-align:right;">
  104. <span class="fzm fcc">{:L('可用')}&nbsp;&nbsp;</span>
  105. <span class="fzm fcc">{$money}</span>
  106. <span class="fzm fcc"><?php echo strtoupper($info['name']);?></span>
  107. </div>
  108. </div>
  109. <input type="hidden" id="usermoney" value="{$money}" />
  110. <input type="hidden" id="txminnum" value="{$info.txminnum}" />
  111. <input type="hidden" id="txsxf" value="{$info.txsxf}" />
  112. <input type="hidden" id="txsxf_n" value="{$info.txsxf_n}" />
  113. <input type="hidden" id="sxftype" value="{$info.sxftype}" />
  114. <input type="hidden" id="tbid" value="{$info.id}" />
  115. <input type="hidden" id="tbaddre" value="{$adrinfo.addr}" />
  116. <div class="tx_inputbox">
  117. <div class="tx_inputbox_l" style="width:65%;">
  118. <input type="text" id="tbnum" onblur="changenum();" 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] : ''" />
  119. </div>
  120. <div class="tx_inputbox_r" style="width:35%;">
  121. <div class="inputbox_r_l">
  122. <span class="fzmmm fcc"><?php echo strtoupper($info['name']);?></span>
  123. </div>
  124. <div class="inputbox_r_r" id="allmoneybtn">
  125. <span class="fzmmm fcc">{:L('全部')}</span>
  126. </div>
  127. </div>
  128. </div>
  129. <input type="hidden" id="flag" value="1" />
  130. <div class="imgbox_8" style="margin-top:20px;">
  131. <div class="imgbox_10" id="sumbtn">
  132. <span class="fzmm fch">{:L('提交')}</span>
  133. </div>
  134. </div>
  135. <div class="imgbox_1">
  136. <div style="width:50%;height:40px;line-height:40px;float:left;">
  137. <span class="fzm fcc">{:L('实际到账')}</span>
  138. </div>
  139. <div style="width:50%;height:40px;line-height:40px;float:right;text-align:right;">
  140. <span class="fzm fcc" id="tmoney">0.000000</span>
  141. <span class="fzm fcc">&nbsp;&nbsp;<?php echo strtoupper($info['name']);?></span>
  142. </div>
  143. </div>
  144. </div>
  145. <div class="textbox">
  146. <p class="fzm" style="color:red;"></p>
  147. <p class="fzm" style="color:red;">{:L('提币扣除2USDT')}手续费 , {:L('最小提币数量')}:<?php echo strtoupper($info['txminnum']);?><?php echo strtoupper($info['name']);?>,{:L('小于最小金额的提币将不会到账且无法退回')}</p>
  148. <p class="fzm fch">{:L('为保障资金安全,当您账户安全策略变更,密码修改,我们会对提币进行人工审核,请耐心等待工作人员电话或邮件联系.')}</p>
  149. <p class="fzm fch">{:L('请务必确认电脑及浏览器安全,防止信息被篡改或泄露')}</p>
  150. </div>
  151. <div style="width:100%;height:30px;"></div>
  152. </div>
  153. </div>
  154. <!---地址弹窗--->
  155. <div class="dongbox" id="addressbox" style="display:none;">
  156. <div class="addressinfo">
  157. <div class="addressinfo_1">
  158. <div class="addressinfo_2">
  159. <span class="fzmmm fch">{:L('选择')}<?php echo strtoupper($info['name']);?>{:L('地址')}</span>
  160. </div>
  161. <div id="hideaddress" class="addressinfo_3">
  162. <span class="fzmm fcc">{:L('关闭')}</span>
  163. </div>
  164. </div>
  165. <a href="{:U('User/txaddlist')}?id={$info.id}">
  166. <div class="addressinfo_4">
  167. <span class="fzm fcy">{:L('地址管理')}</span>
  168. <i class="bi bi-chevron-right fcy"></i>
  169. </div>
  170. </a>
  171. <div class="addressinfo_5" id="tbadressbtn">
  172. <div class="overflow">
  173. <i class="bi bi-file-richtext fch fzmmm"></i>
  174. <span class="fzmm fch" id="address_remark">{$adrinfo.remark}</span>
  175. </div>
  176. <div class="overflow">
  177. <i class="bi bi-link-45deg fch fzmmm"></i>
  178. <span class="fzmm fch" id="address_addr">{$adrinfo.addr}</span>
  179. </div>
  180. </div>
  181. </div>
  182. </div>
  183. <!---提醒弹窗--->
  184. <div class="dongbox" id="dongbox" style="display:none;">
  185. <div class="dongbox_cbox">
  186. <div style="width:100%;height:50px;line-height:50px;text-align:center;">
  187. <i class="bi bi-exclamation-circle-fill fcy" style="font-size:26px;"></i>
  188. </div>
  189. <div style="width:100%;height:50px;padding:5px 10px;">
  190. <span class="fzmm fch">{:L('暂时没有已保存地址')}</span>
  191. </div>
  192. <div style="width:100%;height:40px;line-height:40px;">
  193. <div class="showbtn" id="hidebtn" style="width:45%;float:left;background:#f5f5f5;">
  194. <span class="fzmm fch">{:L('取消')}</span>
  195. </div>
  196. <a href="{:U('User/txaddlist')}?id={$info.id}">
  197. <div class="showbtn" id="add_address" style="width:45%;float:right;">
  198. <span class="fzmm fch">{:L('去添加')}</span>
  199. </div>
  200. </a>
  201. </div>
  202. </div>
  203. </div>
  204. <div class="dongbox" id="gotaxbox" style="display:none;">
  205. <div style="width:300px;height:260px;background:#fff;margin:50% auto;border-radius:10px;padding:15px;">
  206. <div style="width:100%;height:100px;line-height:100px;text-align:center;">
  207. <i class="bi bi-exclamation-circle" style="font-size:56px;font-weight:bold;color:#f5465c;"></i>
  208. </div>
  209. <div style="width:100%;height:60px;text-align:center;color:#000;font-size:14px;">
  210. {:L('请先缴纳税金')}
  211. </div>
  212. <div style="width:100%;height:60px;">
  213. <a href="{:U('User/cztax')}">
  214. <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>
  215. <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>
  216. </div>
  217. </div>
  218. </div>
  219. </body>
  220. <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
  221. <script type="text/javascript" src="/Public/Static/js/layer/layer.js" ></script>
  222. <script type="text/javascript">
  223. function hidetaxbox(){
  224. $("#gotaxbox").hide();
  225. }
  226. function changenum(){
  227. var tbnum = parseFloat($("#tbnum").val());
  228. if(tbnum <= 0){
  229. layer.msg("{:L('请输入正确的数量')}");return false;
  230. }
  231. var txminnum = parseFloat($("#txminnum").val());
  232. if(tbnum < txminnum){
  233. layer.msg("{:L('不能低于最小提币值')}");return false;
  234. }
  235. var sxftype = $("#sxftype").val();
  236. var txsxf_n = $("#txsxf_n").val();
  237. var txsxf = $("#txsxf").val();
  238. if(sxftype == 1){
  239. var tmoney = tbnum - tbnum * txsxf / 100;
  240. }else if(sxftype == 2){
  241. var tmoney = tbnum - txsxf_n;
  242. }else{
  243. layer.msg("{:L('参数错误')}");return false;
  244. }
  245. $("#tmoney").text(tmoney);
  246. }
  247. </script>
  248. <script type="text/javascript">
  249. $("#sumbtn").click(function(){
  250. var flag = $("#flag").val();
  251. if(flag == 2){
  252. return false;
  253. }
  254. var address = $("#address").val();
  255. var num = parseFloat($("#tbnum").val());
  256. var txminnum = parseFloat($("#txminnum").val());
  257. var id = $("#tbid").val();
  258. if(id <= 0){
  259. layer.msg("{:L('参数错误')}");return false;
  260. }
  261. if(address == '' || address == null){
  262. layer.msg("{:L('请输入提币地址')}");return false;
  263. }
  264. if(num <= 0){
  265. layer.msg("{:L('请输入正确的数量')}");return false;
  266. }
  267. if(num < txminnum){
  268. layer.msg("{:L('不能低于最小提币值')}");return false;
  269. }
  270. $("#flag").val(2);
  271. $.post("{:U('User/tbhandle')}",
  272. {'address':address,'num':num,'id':id},
  273. function(data){
  274. if(data.code == 1){
  275. layer.msg(data.info);
  276. setTimeout(function(){
  277. window.location.href = "{:U('User/txlist')}";
  278. },2000);
  279. }else if(data.code == 3){
  280. $("#gotaxbox").show();
  281. }else{
  282. layer.msg(data.info);return false;
  283. }
  284. });
  285. });
  286. </script>
  287. <script type="text/javascript">
  288. $("#tbadressbtn").click(function(){
  289. var tbaddress = $("#tbaddre").val();
  290. $("#addressbox").hide();
  291. $("#address").val(tbaddress);
  292. });
  293. $("#hideaddress").click(function(){
  294. $("#addressbox").hide();
  295. });
  296. $("#showdongbtn").click(function(){
  297. var id = $("#tbid").val();
  298. $.post("{:U('User/getaddress')}",
  299. {'id' : id},
  300. function(data){
  301. if(data.code == 1){
  302. $("#addressbox").show();
  303. }else{
  304. $("#dongbox").show();
  305. }
  306. }
  307. );
  308. });
  309. $("#hidebtn").click(function(){
  310. $("#dongbox").hide();
  311. });
  312. $("#allmoneybtn").click(function(){
  313. var usermoney = parseFloat($("#usermoney").val());
  314. var txsxf = $("#txsxf").val();
  315. var txminnum = parseFloat($("#txminnum").val());
  316. if(usermoney < txminnum){
  317. layer.msg("{:L('请输入正确的数量')}");return false;
  318. }
  319. var tmoney = usermoney - usermoney * txsxf / 100
  320. $("#tmoney").text(tmoney);
  321. $("#tbnum").val(usermoney);
  322. });
  323. </script>
  324. <script type="text/javascript">
  325. function goback(){
  326. window.history.go(-1);
  327. }
  328. </script>
  329. </html>