crmYearActivity.blade.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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. max-width: 450px;
  14. font-size: 100px;
  15. }
  16. body {
  17. background: #fef1eb;
  18. }
  19. .main_box {
  20. font-size: 0.15rem;
  21. position: relative;
  22. text-align: center;
  23. color: #c94918;
  24. line-height: 0.11rem;
  25. }
  26. .main_box p:nth-child(2) {
  27. font-weight: bold;
  28. }
  29. .main_box img {
  30. width: 100%;
  31. }
  32. .content {
  33. margin: 20px 0;
  34. }
  35. .content-img {
  36. margin-bottom: 50px;
  37. }
  38. .bottom {
  39. position: fixed;
  40. bottom: 0px;
  41. width: 100%;
  42. height: 50px;
  43. background-color: white;
  44. line-height: 50px;
  45. display: flex;
  46. justify-content: space-between;
  47. font-size: 0.15rem;
  48. }
  49. .bottom div {
  50. padding: 0 20px;
  51. color: #333;
  52. display: flex;
  53. position: relative;
  54. }
  55. .bottom div:nth-child(1) {
  56. color: #f85530;
  57. font-weight: bold;
  58. font-size: 0.2rem;
  59. }
  60. .bottom div:nth-child(3) {
  61. background-color: #f85530;
  62. color: white;
  63. font-weight: bold;
  64. }
  65. .sign {
  66. color: white;
  67. background-color: #f85530;
  68. border-radius: 100%;
  69. position: absolute;
  70. top: 33%;
  71. left: 0;
  72. line-height: 0.13rem;
  73. padding: 0.02rem 0.025rem;
  74. }
  75. .dialog {
  76. position: fixed;
  77. top: 0;
  78. bottom: 0;
  79. left: 0;
  80. right: 0;
  81. background: rgba(0, 0, 0, 0.6);
  82. z-index: 9999;
  83. }
  84. .dialog .dialog_content {
  85. position: absolute;
  86. top: 35%;
  87. left: 50%;
  88. transform: translate(-50%);
  89. width: 80%;
  90. }
  91. .pay a{
  92. text-decoration: none;
  93. color: white;
  94. }
  95. </style>
  96. </head>
  97. <body>
  98. <main class="main_box">
  99. <img src="https://cdn-novel.iycdm.com/h5/activity-crm/year-banner.jpg" alt="" />
  100. <div class="content">
  101. <p>原价365,领券立减80元,仅需285元</p>
  102. <p>每天不到0.8元,全年免费看</p>
  103. </div>
  104. <img src="https://cdn-novel.iycdm.com/h5/activity-crm/year-80.png" alt="" />
  105. <img src="https://cdn-novel.iycdm.com/h5/activity-crm/year-footer.jpg" class="content-img" alt="" />
  106. <div class="bottom">
  107. <div>¥285</div>
  108. <div>
  109. <span class="sign">√</span>
  110. 使用
  111. <span style="color:#f85530;padding: 0">80</span>
  112. 元优惠券
  113. </div>
  114. <div class="pay"><a href="{{$url}}">立即订购</a></div>
  115. </div>
  116. @if(!$is_get)
  117. <div class="dialog">
  118. <img src="https://cdn-novel.iycdm.com/h5/activity-crm/year-alert.png" class="dialog_content" />
  119. </div>
  120. @endif
  121. </main>
  122. </body>
  123. <script>
  124. var is_get = {{$is_get}}
  125. is_get = parseInt(is_get);
  126. var dialogClose = document.querySelector(".dialog");
  127. function dialogBehavior() {
  128. dialogClose.addEventListener(
  129. "click",
  130. function() {
  131. dialogClose.style.display = "none";
  132. },
  133. false
  134. );
  135. }
  136. function init() {
  137. dialogBehavior();
  138. }
  139. init();
  140. </script>
  141. </html>