addresslist.html 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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:#fff;box-shadow: 0 2px 10px 0 rgb(0 0 0 / 10%);}
  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. .btitle{width:100%;height:35px;line-height:35px;text-align:center;background:#fff;margin-top:10px;border-radius:15px;}
  23. .addbox{width:100%;height:120px;background:#fff;margin-top:20px;border-radius:15px;}
  24. .addressbox{width:100%;height:40px;line-height:40px;background:#f9f9f9;padding:0px 15px;border-top-left-radius:10px;border-top-right-radius:10px;}
  25. .address{width:100%;height:80px;margin-top:10px;padding:10px;word-wrap:break-word;word-break:normal; }
  26. .btnbox{width:100%;height:70px;background:#fff;position:fixed;bottom:0px;}
  27. .btnaddress{width:92%;height:40px;line-height:40px;background: linear-gradient(to left,#eeb80d,#ffe35b);margin:0px auto;text-align:center;margin-top:15px;border-radius:10px;}
  28. </style>
  29. </head>
  30. <body>
  31. <div class="container-fluid " style="padding:0px;width:100vw;">
  32. <div class="no_header">
  33. <div class="fl allhg txtl" style="width: 10%;">
  34. <i class="bi bi-arrow-left fcc fw" onclick="goback()" style="font-size: 24px;"></i>
  35. </div>
  36. <div class="fl allhg" id="centerbox" style="width:80%;text-align:center;line-height:50px;">
  37. <span class="fcc fzmmm">{:L('提币地址管理')}</span>
  38. </div>
  39. <a href="{:U('User/txcoin')}">
  40. <div class="fr allhg txtr" style="line-height:50px;width:10%;">
  41. <span>{:L('添加')}</span>
  42. </div>
  43. </a>
  44. </div>
  45. <div class="contentbox">
  46. <empty name="adrlist">
  47. <div style="width:100%;height:300px;line-height:300px;text-align:center;">
  48. <span class="fzmm fch">{:L('没有保存地址')}</span>
  49. </div>
  50. <else />
  51. <foreach name="adrlist" item="vo">
  52. <div class="addbox">
  53. <div class="addressbox">
  54. <div style="width:80%;height:40px;line-height:40px;float:left;">
  55. <span class="fzmmm fch"><?php echo strtoupper($vo['name']);?> ({$vo.remark})</span>
  56. </div>
  57. <div onclick="deladdress({$vo.id});" style="width:20%;height:40px;line-height:40px;float:right;text-align:right;">
  58. <i class="bi bi-x-circle fzmmm fcy"></i>
  59. </div>
  60. </div>
  61. <div class="address">
  62. <span class="fzmmm fch">{$vo.addr}</span>
  63. </div>
  64. </div>
  65. </foreach>
  66. </empty>
  67. </div>
  68. <div style="width:100%;height:100px;background:#f5f5f5;"></div>
  69. </div>
  70. </body>
  71. <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
  72. <script type="text/javascript" src="/Public/Static/js/layer/layer.js" ></script>
  73. <script type="text/javascript">
  74. function deladdress(id){
  75. var id = id;
  76. if(id <= 0){
  77. layer.msg("{:L('缺少重要参数')}");return false;
  78. }
  79. $.post("{:U('User/deladdress')}",
  80. {'aid':id},
  81. function(data){
  82. if(data.code == 1){
  83. layer.msg(data.info);
  84. setTimeout(function(){
  85. window.location.reload();
  86. },2000);
  87. }else{
  88. layer.msg(data.info);return false;
  89. }
  90. });
  91. }
  92. </script>
  93. <script type="text/javascript">
  94. function goback(){
  95. window.history.go(-1);
  96. }
  97. </script>
  98. </html>