newUserActivity.blade.php 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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>充9.9元,得2000书币,只有一次机会哦!</title>
  8. <style>
  9. html,
  10. body {
  11. margin: 0 auto;
  12. padding: 0;
  13. max-width: 450px;
  14. font-size: 100px;
  15. /*min-height: 100%;*/
  16. overflow: hidden;
  17. height: 100vh;
  18. }
  19. html {
  20. background: url(https://cdn-novel.iycdm.com/h5/activity-newuserv1/bg.png) no-repeat top / cover;
  21. }
  22. .main_box {
  23. font-size: 0;
  24. position: relative;
  25. width: 98%;
  26. margin: 0 auto;
  27. }
  28. .main_box img {
  29. width: 100%;
  30. }
  31. .time {
  32. position: absolute;
  33. font-size: 0.12rem;
  34. margin: 0;
  35. padding: 0;
  36. top: 44.4%;
  37. left: 50%;
  38. transform: translateX(-51%);
  39. width: 76%;
  40. text-align: center;
  41. color: #fff;
  42. font-weight: bold;
  43. }
  44. .recharge_box_one a {
  45. position: absolute;
  46. width: 80%;
  47. height: 0.75rem;
  48. top: 68%;
  49. left: 50%;
  50. transform: translateX(-50%);
  51. z-index: 999;
  52. }
  53. .recharge-list-box {
  54. font-size: 0;
  55. position: absolute;
  56. top: 41%;
  57. left: 50%;
  58. transform: translateX(-50%);
  59. width: 90%;
  60. }
  61. .recharge-list-box img {
  62. -webkit-tap-highlight-color: transparent;
  63. }
  64. .bg-repeat {
  65. background: url(https://cdn-novel.iycdm.com/h5/activity-newuserv1/bg_repeat.png) repeat-y left top / contain;
  66. height: 50px;
  67. width: 98%;
  68. margin: -1px auto 0;
  69. }
  70. .d_none {
  71. display: none;
  72. }
  73. </style>
  74. </head>
  75. <body>
  76. <main class="main_box">
  77. <img src="https://cdn-novel.iycdm.com/h5/activity-newuserv1/bg_2.png" id="bg" alt=""/>
  78. <p class="time">活动有效期:{{$start_time}}到{{$end_time}}</p>
  79. <div class="recharge_box_one">
  80. @if($code == 0)
  81. <!-- 活动进行中 -->
  82. <a href="{{$url}}" class="beginning">
  83. <img src="https://cdn-novel.iycdm.com/h5/activity-newuserv1/doing.png" alt="">
  84. </a>
  85. @elseif($code == -1)
  86. <!-- 活动已充值 -->
  87. <a href="javascript:void(0)" class="done">
  88. <img src="https://cdn-novel.iycdm.com/h5/long_done.png" alt="">
  89. </a>
  90. @elseif($code == -3)
  91. <!-- 活动已充值 -->
  92. <a href="javascript:void(0)" class="done">
  93. <img src="https://cdn-novel.iycdm.com/h5/activity-newuserv1/undone.png" alt="">
  94. </a>
  95. @elseif($code == -2)
  96. <!-- 活动结束 -->
  97. <a href="javascript:void(0)" class="over">
  98. <img src="https://cdn-novel.iycdm.com/h5/activity-newuserv1/over.png" alt="">
  99. </a>
  100. @endif
  101. </div>
  102. </main>
  103. <div class="bg-repeat"></div>
  104. </body>
  105. <script>
  106. var d = document;
  107. var img = d.querySelector('#bg');
  108. var rb = d.querySelector('.bg-repeat');
  109. img.onload = function() {
  110. var h = img.offsetHeight;
  111. var wh = window.screen.height;
  112. rb.style.height = wh - h + 1 + 'px';
  113. }
  114. </script>
  115. </html>