cztax.html 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  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. .imgbox_4{width:100%;height:280px;margin-top:15px;border-top:1px solid #f5f5f5;padding:5px 0px;}
  30. .imgbox_5{width:100%;height:40px;line-height:40px;text-align:left;}
  31. .imgbox_6{width:100%;height:120px;margin-top:10px;text-align:center;}
  32. .imgbox_7{width:100%;height:30px;line-height:30px;text-align:center;margin-top:10px;}
  33. .imgbox_8{width:100%;height:30px;line-height:30px;text-align:center;}
  34. .imgbox_9{width:100px;height:30px;line-height:30px;text-align:center;border-radius:5px;border:1px solid #FCD535;margin:auto;}
  35. .imgbox_10{width:100%;height:40px;line-height:40px;text-align:center;border-radius:5px;margin:auto;background: linear-gradient(to left,#eeb80d,#ffe35b);}
  36. .textbox{width:100%;background:#fff;margin-top:10px;border-radius:10px;padding:15px;}
  37. .zz_inputbox{width:100%;height:40px;line-height:40px;background:#f5f5f5;border-radius:10px;padding:0px 15px;}
  38. .zz_input{height:30px;line-height:30px;margin-top:5px;border:#f5f5f5;background:#f5f5f5;}
  39. .layui-upload-file{display: none!important;opacity: .01;}
  40. </style>
  41. </head>
  42. <body>
  43. <div class="container-fluid " style="padding:0px;width:100vw;">
  44. <div class="no_header">
  45. <div class="fl allhg txtl">
  46. <i class="bi bi-arrow-left fcc fw" onclick="goback()" style="font-size: 24px;"></i>
  47. </div>
  48. <div class="fr allhg txtr" style="line-height:50px;width:10%;"></div>
  49. </div>
  50. <div class="contentbox">
  51. <div class="contentbox_top">
  52. <span style="font-size:26px;font-weight:500;">{:L('缴纳税金')}</span>
  53. </div>
  54. <div class="contentbox_line">
  55. <div class="line_1">
  56. <span class="fzmmm fch">{:L('币种')}</span>
  57. </div>
  58. <div class="line_2">
  59. <span class="fzmmm fcy" style="font-size:18px;font-weight:bold;"><?php echo strtoupper($info['name']);?></span>
  60. <span class="fzmmm fch">&nbsp;&nbsp;<?php echo L($info['title']);?></span>
  61. <i class="bi bi-chevron-right fzmmm fcc"></i>
  62. </div>
  63. </div>
  64. <div class="imgbox">
  65. <div class="imgbox_1">
  66. <span class="fzmmm fch">{:L('税金类型')}</span>
  67. </div>
  68. <div class="imgbox_2">
  69. <div class="imgbox_3">
  70. <span class="fzmm fcy">{$info.czline}</span>
  71. </div>
  72. </div>
  73. <div class="imgbox_4">
  74. <div class="imgbox_5">
  75. <span class="fzmmm fch">{:L('充币地址')}</span>
  76. </div>
  77. <div class="imgbox_6">
  78. <img src="/Public/Static/coinimgs/{$address}.png" style="height:120px;" />
  79. </div>
  80. <div class="imgbox_7">
  81. <input type="hidden" id="czaddress" value="{$info.czaddress}" />
  82. <span class="fzmm fch">{$info.czaddress}</span>
  83. </div>
  84. <div class="imgbox_8">
  85. <div class="imgbox_9" onclick="copyUrl()" style="margin: 15px auto;">
  86. <span class="fzmm fcy">{:L('复制地址')}</span>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. <div class="textbox">
  92. <p class="fzm" style="color:red;">{:L('应缴纳税金')}:{$taxnum} USDT</p>
  93. <p class="fzm">{$tinfo.content}</p>
  94. </div>
  95. <div class="imgbox">
  96. <div class="imgbox_4" style="border:none;margin:0px;height:310px;">
  97. <div class="imgbox_5">
  98. <span class="fzmmm fch">{:L('缴纳数量')}</span>
  99. </div>
  100. <div class="zz_inputbox">
  101. <input type="text" id="zznum" class="zz_input" readonly="readonly" value="{$taxnum}" placeholder="{:L('缴纳数量')}" />
  102. </div>
  103. <div class="imgbox_5">
  104. <span class="fzmmm fch">{:L('上传转账凭证')}</span>
  105. </div>
  106. <div class="imgbox_6">
  107. <img src="/Public/Static/img/upimg.png" id="test1" style="height:100px;" />
  108. <input type="hidden" id="payimg" value="" />
  109. <input type="hidden" id="coinname" value="{$info.name}" />
  110. <input type="hidden" id="cid" value="{$info.id}" />
  111. </div>
  112. <input type="hidden" id="flag" value="1" />
  113. <div class="imgbox_8">
  114. <div class="imgbox_10" id="sumbtn">
  115. <span class="fzmm fch">{:L('提交')}</span>
  116. </div>
  117. </div>
  118. </div>
  119. </div>
  120. <div style="width:100%;height:80px;"></div>
  121. </div>
  122. </div>
  123. </body>
  124. <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
  125. <script type="text/javascript" src="/Public/Static/js/layer/layer.js" ></script>
  126. <script type="text/javascript" src="__PUBLIC__/layui/layui.js"></script>
  127. <script type="text/javascript">
  128. $("#sumbtn").click(function(){
  129. var flag = $("#flag").val();
  130. if(flag == 2){
  131. return false;
  132. }
  133. var zznum = $("#zznum").val();
  134. var payimg = $("#payimg").val();
  135. var coinname = $("#coinname").val();
  136. var cid = $("#cid").val();
  137. if(cid <= 0){
  138. layer.msg("{:L('缺少重要参数')}");return false;
  139. }
  140. if(zznum <= 0){
  141. layer.msg("{:L('请输入转账额度')}");return false;
  142. }
  143. if(payimg == ''){
  144. layer.msg("{:L('请上传转账凭证')}");return false;
  145. }
  146. $("#flag").val(2)
  147. $.post("{:U('User/paytax')}",
  148. {'cid' : cid,'zznum':zznum,'payimg':payimg,'coinname':coinname},
  149. function(data){
  150. if(data.code == 1){
  151. layer.msg(data.info);
  152. setTimeout(function(args){
  153. //window.location.reload();
  154. },2000);
  155. }else{
  156. layer.msg(data.info);return false;
  157. }
  158. }
  159. );
  160. });
  161. </script>
  162. <script type="text/javascript">
  163. function copyUrl(){
  164. var qrcode_url=$("#czaddress").val();
  165. copy(qrcode_url);
  166. }
  167. function copy(message) {
  168. var input = document.createElement("input");
  169. input.value = message;
  170. document.body.appendChild(input);
  171. input.select();
  172. input.setSelectionRange(0, input.value.length), document.execCommand('Copy');
  173. document.body.removeChild(input);
  174. layer.msg("{:L('复制成功')}");
  175. }
  176. </script>
  177. <script type="text/javascript">
  178. layui.use('upload', function(){
  179. var upload = layui.upload;
  180. var uploadInst = upload.render({
  181. elem: '#test1' //绑定元素
  182. ,url: '{:U("User/recharge_img")}' //上传接口
  183. ,done: function(res){
  184. console.log(res);
  185. if(res.code == 0){
  186. $('#payimg').val(res.data.img);
  187. $("#test1").attr('src',res.data.src);
  188. }
  189. }
  190. ,error: function(){
  191. layer.msg("{:L('上传失败')}");
  192. }
  193. });
  194. });
  195. </script>
  196. <script type="text/javascript">
  197. function goback(){
  198. window.history.go(-1);
  199. }
  200. </script>
  201. </html>