huaweiActivity.blade.php 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta
  6. name="viewport"
  7. content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
  8. />
  9. <meta http-equiv="X-UA-Compatible" content="ie=edge" />
  10. <title>抽奖大礼包</title>
  11. <style>
  12. html,
  13. body {
  14. margin: 0 auto;
  15. padding: 0;
  16. max-width: 450px;
  17. font-size: 100px;
  18. }
  19. html {
  20. background: #fff;
  21. }
  22. a {
  23. text-decoration: none;
  24. color: currentColor;
  25. -webkit-tap-highlight-color: transparent;
  26. }
  27. p {
  28. margin: 0;
  29. }
  30. i {
  31. font-style: normal;
  32. }
  33. .main_box {
  34. font-size: 0;
  35. position: relative;
  36. }
  37. .main_box img {
  38. width: 100%;
  39. }
  40. .main_box .banner-box {
  41. font-size: 0;
  42. position: relative;
  43. }
  44. .main_box .banner-box .click-area {
  45. position: absolute;
  46. bottom: 6%;
  47. left: 50%;
  48. -webkit-transform: translateX(-50%);
  49. transform: translateX(-50%);
  50. width: 1rem;
  51. height: 0.35rem;
  52. }
  53. .main_box .activity-time {
  54. font-size: 0.12rem;
  55. color: #97643e;
  56. text-align: center;
  57. margin-top: 0.1rem;
  58. }
  59. .main_box .recharge-list__wrap {
  60. display: -webkit-box;
  61. display: -ms-flexbox;
  62. display: flex;
  63. -webkit-box-pack: justify;
  64. -ms-flex-pack: justify;
  65. justify-content: space-between;
  66. -webkit-box-align: center;
  67. -ms-flex-align: center;
  68. align-items: center;
  69. -webkit-box-orient: horizontal;
  70. -webkit-box-direction: normal;
  71. -ms-flex-flow: row wrap;
  72. flex-flow: row wrap;
  73. width: 90%;
  74. margin: 0.14rem auto 0;
  75. -webkit-tap-highlight-color: transparent;
  76. }
  77. .main_box .recharge-list__wrap .recharge-item {
  78. padding: 0.14rem 0 0.12rem;
  79. width: 1.51rem;
  80. font-size: 0.12rem;
  81. color: #97643e;
  82. text-align: center;
  83. border: 1px solid #97643e;
  84. border-radius: 5px;
  85. -webkit-tap-highlight-color: transparent;
  86. }
  87. .main_box .recharge-list__wrap .recharge-item .pay {
  88. font-size: 0.25rem;
  89. font-weight: bold;
  90. }
  91. .main_box .recharge-list__wrap .recharge-item .get {
  92. font-weight: bold;
  93. color: #f35a0a;
  94. }
  95. .main_box .recharge-list__wrap .recharge-item.cur {
  96. border-color: transparent;
  97. background-image: -webkit-gradient(linear, left bottom, left top, from(#e2c18c), to(#f2d8aa));
  98. background-image: linear-gradient(0deg, #e2c18c 0%, #f2d8aa 100%);
  99. -webkit-box-shadow: 0px 0px 0.18rem 0px rgba(188, 142, 91, 0.5);
  100. box-shadow: 0px 0px 0.18rem 0px rgba(188, 142, 91, 0.5);
  101. color: #6f4518;
  102. }
  103. .main_box .recharge-list__wrap .recharge-item.cur .get {
  104. color: #6f4518;
  105. }
  106. .main_box .recharge-list__wrap .recharge-item:nth-of-type(1), .main_box .recharge-list__wrap .recharge-item:nth-of-type(2) {
  107. margin-bottom: 0.15rem;
  108. }
  109. .main_box .to-recharge {
  110. width: 90%;
  111. margin: 0.16rem auto 0;
  112. display: block;
  113. text-align: center;
  114. color: #6f4518;
  115. font-size: 0.18rem;
  116. line-height: 50px;
  117. background-image: -webkit-gradient(linear, right top, left top, from(#e2c18c), to(#f2d8aa));
  118. background-image: linear-gradient(-90deg, #e2c18c 0%, #f2d8aa 100%);
  119. -webkit-box-shadow: 0px 0px 0.18rem 0px rgba(188, 142, 91, 0.5);
  120. box-shadow: 0px 0px 0.18rem 0px rgba(188, 142, 91, 0.5);
  121. border-radius: 25px;
  122. -webkit-tap-highlight-color: transparent;
  123. }
  124. .rule-box .rule-line {
  125. border-top: 1px solid #edc7ab;
  126. height: 0px;
  127. width: 80%;
  128. margin: 0.23rem auto;
  129. position: relative;
  130. }
  131. .rule-box .rule-line::after {
  132. content: "活动说明";
  133. position: absolute;
  134. font-size: 0.13rem;
  135. font-weight: bold;
  136. color: #97643e;
  137. left: 50%;
  138. top: 50%;
  139. -webkit-transform: translate(-50%, -50%);
  140. transform: translate(-50%, -50%);
  141. background: #fff;
  142. width: 100px;
  143. text-align: center;
  144. }
  145. .rule-box .rule-items {
  146. width: 80%;
  147. margin: 0 auto;
  148. font-size: 0.12rem;
  149. color: #97643e;
  150. line-height: 2;
  151. }
  152. .dialog-wrap {
  153. position: fixed;
  154. top: 0;
  155. bottom: 0;
  156. left: 0;
  157. right: 0;
  158. background: rgba(0, 0, 0, 0.3);
  159. }
  160. .dialog-wrap .dialog-content {
  161. position: absolute;
  162. top: 50%;
  163. left: 50%;
  164. width: 90%;
  165. -webkit-transform: translate(-50%, -60%);
  166. transform: translate(-50%, -60%);
  167. }
  168. .dialog-wrap .bg-wrap {
  169. font-size: 0;
  170. }
  171. .dialog-wrap .content {
  172. position: absolute;
  173. top: 50%;
  174. left: 50%;
  175. -webkit-transform: translate(-50%, -36%);
  176. transform: translate(-50%, -36%);
  177. width: 100%;
  178. }
  179. .dialog-wrap .content .text {
  180. font-size: 0.2rem;
  181. color: #7c5429;
  182. font-weight: bold;
  183. text-align: center;
  184. }
  185. .dialog-wrap .content .text i {
  186. font-size: 0.28rem;
  187. color: #d13600;
  188. font-weight: bold;
  189. }
  190. .dialog-wrap .content .to-cj {
  191. display: block;
  192. width: 1.3rem;
  193. line-height: 0.38rem;
  194. background-color: #d13600;
  195. -webkit-box-shadow: 0px 2px 27px 0px rgba(233, 64, 16, 0.58);
  196. box-shadow: 0px 2px 27px 0px rgba(233, 64, 16, 0.58);
  197. border-radius: 38px;
  198. font-size: 0.15rem;
  199. color: #fff;
  200. font-weight: bold;
  201. text-align: center;
  202. margin: 0.2rem auto 0;
  203. -webkit-tap-highlight-color: transparent;
  204. }
  205. .dialog-wrap .area-close {
  206. position: absolute;
  207. bottom: 0;
  208. left: 50%;
  209. -webkit-transform: translateX(-50%);
  210. transform: translateX(-50%);
  211. width: .4rem;
  212. height: .4rem;
  213. }
  214. .dialog-wrap img {
  215. width: 100%;
  216. }
  217. </style>
  218. </head>
  219. <body>
  220. <main class="main_box">
  221. <div class="banner-box">
  222. <img src="https://cdn-novel.iycdm.com/h5/activity-2019-05-30/banner1.jpg" alt="抽奖大礼包">
  223. @if($code == 0)
  224. <a href="/activity/huaweiLottery" class="click-area"></a>
  225. @else
  226. <a href="#" class="click-area"></a>
  227. @endif
  228. </div>
  229. <p class="activity-time">活动有效期:6月13日-{{$end_time}}</p>
  230. <div class="recharge-list__wrap">
  231. <div class="recharge-item cur" data-href="{{isset($url[0])? $url[0]:''}}">
  232. <p class="pay">30元</p>
  233. <span class="send">3000书币</span>
  234. <p class="get">获得1次抽奖机会</p>
  235. </div>
  236. <div class="recharge-item" data-href="{{isset($url[1])? $url[1]:''}}">
  237. <p class="pay">50元</p>
  238. <span class="send">5000+4000书币</span>
  239. <p class="get">获得2次抽奖机会</p>
  240. </div>
  241. <div class="recharge-item" data-href="{{isset($url[2])? $url[2]:''}}">
  242. <p class="pay">100元</p>
  243. <span class="send">10000+9000书币</span>
  244. <p class="get">获得4次抽奖机会</p>
  245. </div>
  246. <div class="recharge-item" data-href="{{isset($url[3])? $url[3]:''}}">
  247. <p class="pay">200元</p>
  248. <span class="send">20000+20000书币</span>
  249. <p class="get">获得8次抽奖机会</p>
  250. </div>
  251. </div>
  252. @if($code == 0)
  253. <a href="{{isset($url[0])? $url[0]:'#'}}" class="to-recharge" id="pay">充值后即可参与抽奖</a>
  254. @else
  255. <a href="#" class="to-recharge" >充值后即可参与抽奖</a>
  256. @endif
  257. </main>
  258. <div class="rule-box">
  259. <p class="rule-line"></p>
  260. <div class="rule-items">
  261. <p class="item">1、充值成功即获得抽奖机会;</p>
  262. <p class="item">2、此充值为书币充值,1元=100书币;</p>
  263. <p class="item">3、书币为虚拟物品,一经充值不得退款;</p>
  264. <p class="item">4、活动期间不限充值次数;</p>
  265. </div>
  266. </div>
  267. <div class="dialog-wrap" style="display: {{$display_dialog}}">
  268. <div class="dialog-content">
  269. <div class="bg-wrap">
  270. <img src="https://cdn-novel.iycdm.com/h5/activity-2019-05-30/dialog.png" alt="" />
  271. <div class="content">
  272. <p class="text">恭喜获得<i>{{$count}}次</i>抽奖机会</p>
  273. <a href="/activity/huaweiLottery" class="to-cj">立即抽奖</a>
  274. </div>
  275. </div>
  276. <span class="area-close"></span>
  277. </div>
  278. </div>
  279. </body>
  280. <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
  281. <script>
  282. $(".recharge-list__wrap").delegate(".recharge-item", "click", function() {
  283. $(".recharge-item").removeClass("cur");
  284. $(this).addClass("cur");
  285. $('#pay').attr('href',$(this).data('href'))
  286. })
  287. $(".main_box").delegate(".to-recharge", "click", function() {
  288. //$(".dialog-wrap").css("display", "");
  289. });
  290. $(".dialog-content").click(function(e) {
  291. e.stopPropagation();
  292. });
  293. [".area-close"].forEach(function(item) {
  294. $(item).click(function(e) {
  295. e.preventDefault();
  296. $(".dialog-wrap").css("display", "none");
  297. })
  298. });
  299. </script>
  300. </html>