qingmingactivity.blade.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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. /* background: #5fc18e; */
  11. }
  12. html,
  13. body {
  14. margin: 0 auto;
  15. padding: 0;
  16. max-width: 450px;
  17. font-size: 100px;
  18. }
  19. .main_box {
  20. font-size: 0;
  21. position: relative;
  22. }
  23. .main_box img {
  24. width: 100%;
  25. }
  26. .activity_date {
  27. position: absolute;
  28. top: 43%;
  29. left: 50%;
  30. transform: translateX(-50%);
  31. width: 80%;
  32. height: 0.12rem;
  33. }
  34. .activity_date p {
  35. position: absolute;
  36. top: -58%;
  37. left: 50%;
  38. transform: translateX(-50%);
  39. width: 90%;
  40. text-align: center;
  41. font-size: 0.18rem;
  42. margin: 0;
  43. font-weight: bolder;
  44. }
  45. /* .activity_date p span {
  46. color: #506bfb;
  47. } */
  48. .recharge_box_one a {
  49. position: absolute;
  50. width: 80%;
  51. height: 0.75rem;
  52. top: 60%;
  53. left: 50%;
  54. transform: translateX(-50%);
  55. z-index: 999;
  56. }
  57. .show-in-iphone-x {
  58. position: relative;
  59. }
  60. .show-in-iphone-x .img-bg {
  61. min-height: 2.25rem;
  62. }
  63. .show-in-iphone-x .img-intro{
  64. position: absolute;
  65. left: 50%;
  66. top: 20%;
  67. width: 80%;
  68. transform: translateX(-50%);
  69. }
  70. .d_none {
  71. display: none;
  72. }
  73. </style>
  74. </head>
  75. <body>
  76. <main class="main_box">
  77. <img src="http://yueduyun.oss-cn-hangzhou.aliyuncs.com/h5/qingming_bg.jpg" alt="">
  78. <div class="recharge_box_one">
  79. @if($code == 1)
  80. <!-- 活动未开始 -->
  81. <a href="#" class="un_begin">
  82. <img src="http://yueduyun.oss-cn-hangzhou.aliyuncs.com/h5/qingming_undone.png" alt="">
  83. </a>
  84. @elseif($code == 0)
  85. <!-- 活动进行中 -->
  86. <a href="{{$url}}" class="beginning">
  87. <img src="http://yueduyun.oss-cn-hangzhou.aliyuncs.com/h5/qingming_doing.png" alt="">
  88. </a>
  89. @elseif($code == 2)
  90. <!-- 活动结束 -->
  91. <a href="javascript:void(0)" class="over">
  92. <img src="http://yueduyun.oss-cn-hangzhou.aliyuncs.com/h5/qingming_over.png" alt="">
  93. </a>
  94. @endif
  95. </div>
  96. <div class="show-in-iphone-x">
  97. <img class="img-bg" src="http://yueduyun.oss-cn-hangzhou.aliyuncs.com/h5/qingming_bg2.png" alt="">
  98. <img src="http://yueduyun.oss-cn-hangzhou.aliyuncs.com/h5/qingming_bg1.png" alt="" class="img-intro">
  99. </div>
  100. </main>
  101. </body>
  102. <script>
  103. window.onload = function () {
  104. var body = document.documentElement.clientHeight
  105. if (body >= 812) {
  106. document.querySelector('.show-in-iphone-x').style.display = 'block'
  107. }
  108. }
  109. </script>
  110. </html>