rand_sign.blade.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <meta http-equiv="X-UA-Compatible" content="ie=edge" />
  7. <title>微信阅读小管家福利</title>
  8. <style>
  9. html,
  10. body {
  11. margin: 0 auto;
  12. padding: 0;
  13. height: 100%;
  14. max-width: 450px;
  15. }
  16. .main_box {
  17. height: inherit;
  18. font-size: 0;
  19. position: relative;
  20. }
  21. .main_box img {
  22. height: inherit;
  23. width: 100%;
  24. }
  25. .button {
  26. position: absolute;
  27. top: 50%;
  28. width: 80%;
  29. left: 50%;
  30. transform: translate(-50%);
  31. }
  32. .floatWindow {
  33. background-color: rgba(0, 0, 0, 0.4);
  34. width: 100%;
  35. height: 100%;
  36. position: fixed;
  37. top: 0;
  38. left: 0;
  39. }
  40. .floatWindow-body {
  41. position: absolute;
  42. top: 20%;
  43. left: 50%;
  44. transform: translate(-50%);
  45. width: 80%;
  46. }
  47. .floatWindow-body .money {
  48. font-size: 22px;
  49. font-weight: bold;
  50. position: absolute;
  51. top: 48%;
  52. color: #e54100;
  53. left: 28%;
  54. }
  55. .floatWindow-body .floatWindow-button {
  56. width: 80%;
  57. position: absolute;
  58. left: 50%;
  59. transform: translate(-50%);
  60. top: 70%;
  61. }
  62. </style>
  63. </head>
  64. <body>
  65. <main class="main_box">
  66. <img src="//cdn-novel.iycdm.com/wap/sign/main_back.jpg" alt="" />
  67. <div class="recharge_box_one">
  68. <a href="/recent" class="button">
  69. <img src="//cdn-novel.iycdm.com/wap/sign/main_button.png" alt="" />
  70. </a>
  71. </div>
  72. @if($fee >0)
  73. <div class="floatWindow" id="floatWindow">
  74. <div class="floatWindow-body">
  75. <img src="//cdn-novel.iycdm.com/wap/sign/pop_back.png" alt="" />
  76. <div class="money">{{ $fee }}书币</div>
  77. <img
  78. src="//cdn-novel.iycdm.com/wap/sign/pop_button.png"
  79. id="floatWindow-button"
  80. class="floatWindow-button"
  81. onclick="close()"
  82. />
  83. </div>
  84. </div>
  85. @endif
  86. </main>
  87. </body>
  88. <script>
  89. document
  90. .getElementById("floatWindow-button")
  91. .addEventListener("click", function() {
  92. document.getElementById("floatWindow").style.display = "none";
  93. });
  94. </script>
  95. </html>