de195779ad7d8dcd522efe5b43d1850e.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. <?php if (!defined('THINK_PATH')) exit();?><!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><?php echo ($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. <a href="<?php echo U('User/czlist');?>">
  49. <div class="fr allhg txtr" style="line-height:50px;width:10%;">
  50. <i class="bi bi-funnel fcy fw" style="font-size:20px;"></i>
  51. </div>
  52. </a>
  53. </div>
  54. <div class="contentbox">
  55. <div class="contentbox_top">
  56. <span style="font-size:26px;font-weight:500;"><?php echo L('充币');?></span>
  57. </div>
  58. <div class="contentbox_line">
  59. <div class="line_1">
  60. <span class="fzmmm fch"><?php echo L('币种');?></span>
  61. </div>
  62. <a href="<?php echo U('User/czcoin');?>">
  63. <div class="line_2">
  64. <span class="fzmmm fcy" style="font-size:18px;font-weight:bold;"><?php echo strtoupper($info['name']);?></span>
  65. <!-- <span class="fzmmm fch">&nbsp;&nbsp;<?php echo L($info['title']);?></span>-->
  66. <i class="bi bi-chevron-right fzmmm fcc"></i>
  67. </div>
  68. </a>
  69. </div>
  70. <div class="imgbox">
  71. <div class="imgbox_1">
  72. <span class="fzmmm fch"><?php echo L('充币网络');?></span>
  73. </div>
  74. <div class="imgbox_3" style="float:left">
  75. <span class="fzmm fcy" onclick="tec()"><?php echo ($info["czline"]); ?></span>
  76. </div>
  77. <div class="imgbox_3" id="yincang" style="float:left;margin-left:10px;">
  78. <span class="fzmm fcy" onclick="dianji()" >ERC20</span>
  79. </div>
  80. <div class="imgbox_4" style=" clear:both;">
  81. <div class="imgbox_5">
  82. <span class="fzmmm fch"><?php echo L('充币地址');?></span>
  83. </div>
  84. <div class="imgbox_6" id="tupian">
  85. <img src="/Public/Static/coinimgs/<?php echo ($address); ?>.png" style="height:120px;" />
  86. </div>
  87. <div class="imgbox_7">
  88. <input type="hidden" id="czaddress" value="<?php echo ($info["czaddress"]); ?>" />
  89. <span id="idzhi" class="fzmm fch"><?php echo ($info["czaddress"]); ?></span>
  90. </div>
  91. <div class="imgbox_8">
  92. <div class="imgbox_9" onclick="copyUrl()" style="margin: 15px auto;">
  93. <span class="fzmm fcy"><?php echo L('复制地址');?></span>
  94. </div>
  95. </div>
  96. </div>
  97. </div>
  98. <div class="textbox">
  99. <p class="fzm" style="color:red;"><?php echo L('最小充值金额');?>:<?php echo strtoupper($info['czminnum']); echo strtoupper($info['name']);?>,<?php echo L('小于最小金额的充值将不会上账且无法退回');?></p>
  100. <p class="fzm fch"><?php echo L('请选择正确的充值通道网络,否则资产将不可找回');?></p>
  101. <p class="fzm fch"><?php echo L('最小充值金额');?>:<?php echo strtoupper($info['czminnum']); echo strtoupper($info['name']);?>,<?php echo L('小于最小金额的充值将不会上账且无法退回');?></p>
  102. <p class="fzm fch"><?php echo L('您的充值地址不会经常改变,可以重复充值;如有更改,我们会尽量通过网站公告或邮件通知您');?></p>
  103. <p class="fzm fch"><?php echo L('请务必确认电脑及浏览器安全,防止信息被篡改或泄露');?></p>
  104. </div>
  105. <div class="imgbox">
  106. <div class="imgbox_4" style="border:none;margin:0px;height:310px;">
  107. <div class="imgbox_5">
  108. <span class="fzmmm fch"><?php echo L('转账金额');?></span>
  109. </div>
  110. <div class="zz_inputbox">
  111. <input type="text" id="zznum" class="zz_input" placeholder="<?php echo L('请输入转账金额');?>" />
  112. </div>
  113. <div class="imgbox_5">
  114. <span class="fzmmm fch"><?php echo L('上传转账凭证');?></span>
  115. </div>
  116. <div class="imgbox_6">
  117. <img src="/Public/Static/img/upimg.png" id="test1" style="height:100px;" />
  118. <input type="hidden" id="payimg" value="" />
  119. <input type="hidden" id="coinname" value="<?php echo ($info["name"]); ?>" />
  120. <input type="hidden" id="cid" value="<?php echo ($info["id"]); ?>" />
  121. </div>
  122. <input type="hidden" id="flag" value="1" />
  123. <div class="imgbox_8">
  124. <div class="imgbox_10" id="sumbtn">
  125. <span class="fzmm fch"><?php echo L('提交');?></span>
  126. </div>
  127. </div>
  128. </div>
  129. </div>
  130. <div style="width:100%;height:80px;"></div>
  131. </div>
  132. </div>
  133. </body>
  134. <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
  135. <script type="text/javascript" src="/Public/Static/js/layer/layer.js" ></script>
  136. <script type="text/javascript" src="/Public/layui/layui.js"></script>
  137. <script type="text/javascript">
  138. var img = "<?php echo ($addresss); ?>";
  139. var dizhi = "<?php echo ($infos["czaddress"]); ?>";
  140. var name = "<?php echo ($info["name"]); ?>";
  141. if(name != 'usdt'){
  142. $("#yincang").attr("style","display:none;");//隐藏div
  143. }
  144. function tec(){
  145. location.reload();
  146. }
  147. function dianji(){
  148. $("#czaddress").val(dizhi);
  149. $("#idzhi").html(dizhi);
  150. $("#tupian").html('<img src="/Public/Static/coinimgs/'+dizhi+'.png" style="height:120px;"/>')
  151. }
  152. $("#sumbtn").click(function(){
  153. var flag = $("#flag").val();
  154. if(flag == 2){
  155. return false;
  156. }
  157. var zznum = $("#zznum").val();
  158. var payimg = $("#payimg").val();
  159. var coinname = $("#coinname").val();
  160. var cid = $("#cid").val();
  161. if(cid <= 0){
  162. layer.msg("<?php echo L('缺少重要参数');?>");return false;
  163. }
  164. if(zznum <= 0){
  165. layer.msg("<?php echo L('请输入转账额度');?>");return false;
  166. }
  167. if(payimg == ''){
  168. layer.msg("<?php echo L('请上传转账凭证');?>");return false;
  169. }
  170. $("#flag").val(2)
  171. $.post("<?php echo U('User/paycoin');?>",
  172. {'cid' : cid,'zznum':zznum,'payimg':payimg,'coinname':coinname},
  173. function(data){
  174. if(data.code == 1){
  175. layer.msg(data.info);
  176. setTimeout(function(args){
  177. window.location.reload();
  178. },2000);
  179. }else{
  180. layer.msg(data.info);return false;
  181. }
  182. }
  183. );
  184. });
  185. </script>
  186. <script type="text/javascript">
  187. function copyUrl(){
  188. var qrcode_url=$("#czaddress").val();
  189. copy(qrcode_url);
  190. }
  191. function copy(message) {
  192. var input = document.createElement("input");
  193. input.value = message;
  194. document.body.appendChild(input);
  195. input.select();
  196. input.setSelectionRange(0, input.value.length), document.execCommand('Copy');
  197. document.body.removeChild(input);
  198. layer.msg("<?php echo L('复制成功');?>");
  199. }
  200. </script>
  201. <script type="text/javascript">
  202. layui.use('upload', function(){
  203. var upload = layui.upload;
  204. var uploadInst = upload.render({
  205. elem: '#test1' //绑定元素
  206. ,url: '<?php echo U("User/recharge_img");?>' //上传接口
  207. ,done: function(res){
  208. console.log(res);
  209. if(res.code == 0){
  210. $('#payimg').val(res.data.img);
  211. $("#test1").attr('src',res.data.src);
  212. }
  213. }
  214. ,error: function(){
  215. layer.msg("<?php echo L('上传失败');?>");
  216. }
  217. });
  218. });
  219. </script>
  220. <script type="text/javascript">
  221. function goback(){
  222. window.history.go(-1);
  223. }
  224. </script>
  225. </html>