crmYearActivity.blade.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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. </style>
  92. </head>
  93. <body>
  94. <main class="main_box">
  95. <img src="https://cdn-novel.iycdm.com/h5/activity-crm/year-banner.jpg" alt="" />
  96. <div class="content">
  97. <p>原价365,领券立减80元,仅需285元</p>
  98. <p>每天不到0.8元,全年免费看</p>
  99. </div>
  100. <img src="https://cdn-novel.iycdm.com/h5/activity-crm/year-80.png" alt="" />
  101. <img src="https://cdn-novel.iycdm.com/h5/activity-crm/year-footer.jpg" class="content-img" alt="" />
  102. <div class="bottom">
  103. <div>¥285</div>
  104. <div>
  105. <span class="sign">√</span>
  106. 使用
  107. <span style="color:#f85530;padding: 0">80</span>
  108. 元优惠券
  109. </div>
  110. <div><a href="{{$url}}">立即订购</a></div>
  111. </div>
  112. <div class="dialog">
  113. <img src="https://cdn-novel.iycdm.com/h5/activity-crm/year-alert.png" class="dialog_content" />
  114. </div>
  115. </main>
  116. </body>
  117. <script>
  118. var is_get = {{$is_get}}
  119. is_get = parseInt(is_get);
  120. var dialogClose = document.querySelector(".dialog");
  121. function dialogBehavior() {
  122. dialogClose.addEventListener(
  123. "click",
  124. function() {
  125. dialogClose.style.display = "none";
  126. },
  127. false
  128. );
  129. }
  130. function init() {
  131. dialogBehavior();
  132. }
  133. if(!is_get){
  134. init();
  135. }
  136. </script>
  137. </html>