order.php 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <?php
  2. $user_id=$_SESSION['admin_id'];
  3. $stmit=$pdo->query("select * from recharge where user_id=".$user_id." order by `id` desc");
  4. ?>
  5. <!doctype html>
  6. <html>
  7. <head>
  8. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  9. <meta name="viewport" content="width=device-width, maximum-scale=1.0, initial-scale=1.0, user-scalable=0" />
  10. <link rel="stylesheet" href="/static/layer/layer.css?v=3.1.1" id="layuicss-layer">
  11. <link type="text/css" rel="stylesheet" href="/static/css/home/style.css">
  12. <style type="text/css">
  13. .a3 {
  14. float: right;
  15. display: block;
  16. background: #ff0000;
  17. border: 1px solid #fb0404;
  18. width: 70px;
  19. height: 24px;
  20. line-height: 24px;
  21. text-align: center;
  22. color: #fff;
  23. border-radius: 5px;
  24. font-size: 12px;
  25. letter-spacing: 1px;
  26. margin-top: 5px;
  27. margin-right: 15px;
  28. }
  29. </style>
  30. </head>
  31. <body>
  32. <div class="header">
  33. <div class="box">
  34. <div class="L"><a onClick="javascript:history.back(-1)" class="goback"><img src="/static/image/goback.png" /></a></div>
  35. <div class="C">
  36. <p>话费订单</p>
  37. </div>
  38. </div>
  39. </div>
  40. <div class="clear"></div>
  41. <div class="hbox"></div>
  42. <div class="videoBox">
  43. <!-- <div class="video_1">
  44. <img src="/static/image/3.jpg">
  45. </div> -->
  46. <div class="titbox">
  47. <p>充值订单</p>
  48. <span>查看您所有的订单(点击状态可查看详细信息)</span>
  49. </div>
  50. <ul>
  51. <?php while ($row=$stmit->fetch(PDO::FETCH_ASSOC)){?>
  52. <li>
  53. <div class="L">
  54. <div class="date1"><img src="/static/image/date.png">
  55. <p><?= explode(" ",$row['created_at'])[0] ?></p>
  56. </div>
  57. <div class="date2"><?= explode(" ",$row['created_at'])[1]; ?></div>
  58. </div>
  59. <div class="C"><img src="/static/image/line.jpeg"></div>
  60. <div class="R">
  61. <div class="tit"><span>订单号:<?= $row['order_sn']; ?></span></div>
  62. <div class="sub">
  63. <img src="/static/image/icon_1.png">
  64. <p>***<?= substr($row['phone'],-4); ?></p>
  65. <?php if($row['status']!=1){?>
  66. <a href="javascript:;" onclick="return layer.alert('充值号码:<?= $row['phone']; ?><br>充值金额:30<br>实际支付金额:30')" class="a3">支付失败</a>
  67. <a href="javascript:;" onclick="return layer.alert('充值号码:<?= $row['phone']; ?><br>充值金额:30<br>实际支付金额:30')" class="a3">充值失败</a>
  68. <?php }else{?>
  69. <a href="javascript:;" onclick="return layer.alert('充值号码:<?= $row['phone']; ?><br>充值金额:30<br>实际支付金额:30')" class="a3">支付成功</a>
  70. <a href="javascript:;" onclick="return layer.alert('充值号码:<?= $row['phone']; ?><br>充值金额:30<br>实际支付金额:30')" class="a3">充值成功</a>
  71. <?php } ?>
  72. <div style="clear: both"></div>
  73. </div>
  74. </div>
  75. </li>
  76. </li>
  77. <?php }?>
  78. </ul>
  79. </div>
  80. <div class="h54"></div>
  81. <div class="clear"></div>
  82. <div class="contact-kefu" style="text-align: center;">
  83. <div class="kf-online">
  84. <p>Copyright © 版权所有 浙江榕木信息科技有限公司 <br> <a href="https://beian.miit.gov.cn/" target="_blank"
  85. rel="noopener noreferrer nofollow"><i
  86. class="iconimg iconimg-beian"></i><span>浙ICP备2023051306号-1</span></a></p>
  87. </div>
  88. </div>
  89. <script type="text/javascript" src="/static/js/jquery.min.js"></script>
  90. <script src="/static/layer/layer.js"></script>
  91. </body>
  92. </html>
  93. <script>
  94. // 生成随机数
  95. var randomNum = Math.floor(Math.random() * 10000);
  96. // 获取link元素
  97. var links = document.getElementsByTagName('link');
  98. for (let i = 0; i <links.length ; i++) {
  99. link=links[i];
  100. var href = link.getAttribute('href');
  101. // 添加随机数
  102. link.setAttribute('href', href + '?v=' + randomNum);
  103. }
  104. // 获取原始href属性
  105. </script>
  106. <script>
  107. // 生成随机数
  108. var randomNum = Math.floor(Math.random() * 10000);
  109. // 获取link元素
  110. var scripts = document.getElementsByTagName('script');
  111. for (let i = 0; i <scripts.length ; i++) {
  112. try{
  113. script=scripts[i];
  114. // 获取原始href属性
  115. var script1 = script.getAttribute('src');
  116. script1.setAttribute('src', script1 + '?v=' + randomNum);
  117. }catch (e){
  118. }
  119. }
  120. </script>