subscribeV2.blade.php 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590
  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. <link rel=icon type=image/png href="data:image/png;base64,iVBORw0KGgo=">
  7. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  8. <title>{{$title}}</title>
  9. <style>
  10. /*
  11. html5doctor.com Reset Stylesheet
  12. v1.4.1
  13. 2010-03-01
  14. Author: Richard Clark - http://richclarkdesign.com
  15. */
  16. html,
  17. body,
  18. div,
  19. span,
  20. object,
  21. iframe,
  22. h1,
  23. h2,
  24. h3,
  25. h4,
  26. h5,
  27. h6,
  28. p,
  29. blockquote,
  30. pre,
  31. abbr,
  32. address,
  33. cite,
  34. code,
  35. del,
  36. dfn,
  37. em,
  38. img,
  39. ins,
  40. kbd,
  41. q,
  42. samp,
  43. small,
  44. strong,
  45. sub,
  46. sup,
  47. var,
  48. b,
  49. i,
  50. dl,
  51. dt,
  52. dd,
  53. ol,
  54. ul,
  55. li,
  56. fieldset,
  57. form,
  58. label,
  59. legend,
  60. table,
  61. caption,
  62. tbody,
  63. tfoot,
  64. thead,
  65. tr,
  66. th,
  67. td,
  68. article,
  69. aside,
  70. canvas,
  71. details,
  72. figcaption,
  73. figure,
  74. footer,
  75. header,
  76. hgroup,
  77. menu,
  78. nav,
  79. section,
  80. summary,
  81. time,
  82. mark,
  83. audio,
  84. video {
  85. margin: 0;
  86. padding: 0;
  87. border: 0;
  88. outline: 0;
  89. font-size: 100%;
  90. vertical-align: baseline;
  91. background: transparent;
  92. }
  93. html {
  94. background: #fff;
  95. }
  96. body {
  97. line-height: 1.5;
  98. font-size: 0.24rem;
  99. font-family: "Microsoft YaHei";
  100. margin: auto;
  101. max-width: 750px;
  102. }
  103. :focus {
  104. outline: 1;
  105. }
  106. article,
  107. aside,
  108. canvas,
  109. details,
  110. figcaption,
  111. figure,
  112. footer,
  113. header,
  114. hgroup,
  115. menu,
  116. nav,
  117. section,
  118. summary {
  119. display: block;
  120. }
  121. ul {
  122. list-style: none;
  123. }
  124. blockquote,
  125. q {
  126. quotes: none;
  127. }
  128. blockquote:before,
  129. blockquote:after,
  130. q:before,
  131. q:after {
  132. content: "";
  133. content: none;
  134. }
  135. a {
  136. margin: 0;
  137. padding: 0;
  138. border: 0;
  139. font-size: 100%;
  140. vertical-align: baseline;
  141. background: transparent;
  142. text-decoration: none;
  143. }
  144. ins {
  145. background-color: #ff9;
  146. color: #000;
  147. text-decoration: none;
  148. }
  149. mark {
  150. background-color: #ff9;
  151. color: #000;
  152. font-style: italic;
  153. font-weight: bold;
  154. }
  155. del {
  156. text-decoration: line-through;
  157. }
  158. abbr[title],
  159. dfn[title] {
  160. border-bottom: 1px dotted #000;
  161. cursor: help;
  162. }
  163. table {
  164. border-collapse: collapse;
  165. border-spacing: 0;
  166. }
  167. hr {
  168. display: block;
  169. height: 1px;
  170. border: 0;
  171. border-top: 1px solid #cccccc;
  172. margin: 0;
  173. padding: 0;
  174. }
  175. input,
  176. select {
  177. vertical-align: middle;
  178. padding: 0;
  179. margin: 0;
  180. }
  181. input[type="button"],
  182. input[type="submit"],
  183. input[type="reset"] {
  184. -webkit-appearance: none;
  185. }
  186. img {
  187. -webkit-tap-highlight-color: transparent;
  188. }
  189. html {
  190. background: #f2f2f2;
  191. }
  192. html, body {
  193. max-width: 500px;
  194. /*font-size: 100px;*/
  195. }
  196. .main {
  197. position: relative;
  198. }
  199. .container {
  200. position: fixed;
  201. /*top: 1.2rem;*/
  202. top: 120px;
  203. bottom: 0;
  204. /*left: 0.125rem;
  205. right: 0.125rem;*/
  206. left: 12.5px;
  207. right: 12.5px;
  208. background: #fff;
  209. color: #333;
  210. }
  211. .head-box {
  212. position: absolute;
  213. /*top: -0.6rem;*/
  214. top: -36px;
  215. left: 50%;
  216. transform: translateX(-50%);
  217. line-height: 1;
  218. text-align: center
  219. }
  220. .head-box .head {
  221. /*width: 0.65rem;
  222. height: 0.65rem;*/
  223. width: 65px;
  224. height: 65px;
  225. }
  226. .head-box .shadow {
  227. position: absolute;
  228. /*width: 0.75rem;
  229. top: 0.9rem;*/
  230. width: 75px;
  231. top: 65px;
  232. left: 50%;
  233. height: auto;
  234. transform: translateX(-50%);
  235. }
  236. .wrapper {
  237. position: absolute;
  238. bottom: 0;
  239. /*top: 0.45re*/m;
  240. top: 45px;
  241. overflow: scroll;
  242. }
  243. .notice-text {
  244. /*margin-top: .05rem;
  245. font-size: 0.14rem;
  246. padding: 0 0.2rem;*/
  247. margin-top: 5px;
  248. font-size: 14px;
  249. padding: 0 20px;
  250. }
  251. .notice-text .title {
  252. /*margin-bottom: 0.1rem;
  253. font-size: 0.17rem;*/
  254. margin-bottom: 10px;
  255. font-size: 17px;
  256. font-weight: 500;
  257. color: #420A1E;;
  258. }
  259. .notice-text .text {
  260. /*text-indent: 2em;*/
  261. text-indent: 2em;
  262. font-weight: 500;
  263. color: #420A1E;
  264. line-height: 1.65;
  265. word-break: break-all;
  266. }
  267. .notice-text .text i {
  268. font-style: normal;
  269. font-weight: bold;
  270. color: #f14747;
  271. }
  272. .qrcode {
  273. text-align: center;
  274. line-height: 1;
  275. /*margin-top: 0.15rem;
  276. padding-bottom: 0.5rem;*/
  277. margin-top: 15px;
  278. padding-bottom: 50px;
  279. font-size: 0;
  280. }
  281. .qrcode img {
  282. /*width: 2.4rem;
  283. height: 2.4rem;*/
  284. width: 240px;
  285. height: 240px;
  286. }
  287. .friend {
  288. /*font-size: 0.13rem;*/
  289. font-size: 13px;
  290. color: #333;
  291. margin-top: 0;
  292. text-align: center;
  293. }
  294. .friend i {
  295. font-style: normal;
  296. color: #f14747;
  297. }
  298. .qrcode .read-qr {
  299. /*font-size: 0.17rem;*/
  300. font-size: 17px;
  301. color: #f14747;
  302. font-weight: bold;
  303. }
  304. @media screen and (min-width: 414px) {
  305. .head-box {
  306. /*top: -.5rem;*/
  307. top: -36px;
  308. }
  309. .head-box .head {
  310. /*width: 0.7rem;
  311. height: 0.7rem;*/
  312. width: 70px;
  313. height: 70px;
  314. }
  315. .wrapper {
  316. /*top: 0.5rem;*/
  317. top: 50px;
  318. }
  319. .notice-text {
  320. /* font-size: .2rem;*/
  321. font-size: 20px;
  322. }
  323. .notice-text .title {
  324. /*font-size: .22rem;*/
  325. font-size: 22px;
  326. }
  327. .qrcode {
  328. /* margin-top: .2rem;*/
  329. margin-top: 20px;
  330. }
  331. .friend {
  332. /*margin-bottom: .1rem;
  333. font-size: .15rem;*/
  334. margin-bottom: 10px;
  335. font-size: 15px;
  336. }
  337. .qrcode .read-qr {
  338. /*font-size: .2rem;*/
  339. font-size: 20px;
  340. }
  341. }
  342. @media screen and (max-width: 320px) {
  343. .notice-text {
  344. /* padding: 0 .15rem;*/
  345. padding: 0 15px;
  346. }
  347. .qrcode {
  348. /* margin-top: .2rem;*/
  349. margin-top: 20px;
  350. }
  351. .qrcode img {
  352. /*width: 2.4rem;
  353. height: 2.4rem;*/
  354. width: 240px;
  355. height: 240px;
  356. }
  357. }
  358. ul,
  359. li {
  360. padding: 0;
  361. margin: 0;
  362. list-style: none;
  363. }
  364. .wrapper1 {
  365. width: 85%;
  366. height: 35px;
  367. overflow: hidden;
  368. margin: .2rem auto 0;
  369. background: #e6e6e6;
  370. /*font-size: 0.12rem;*/
  371. font-size: 12px;
  372. color: #666;
  373. border-radius: 50px;
  374. padding: 2px;
  375. }
  376. ul::after {
  377. content: "";
  378. display: block;
  379. clear: both;
  380. }
  381. ul {
  382. position: relative;
  383. transform: translate3d(0, 0, 0);
  384. }
  385. li {
  386. width: 100%;
  387. height: 37px;
  388. line-height: 37px;
  389. text-align: center;
  390. }
  391. li .item {
  392. display: flex;
  393. justify-content: flex-start;
  394. align-items: center;
  395. }
  396. .item img {
  397. width: 35px;
  398. height: 35px;
  399. border-radius: 50%;
  400. }
  401. .item span {
  402. font-weight: bold;
  403. /*margin-left: 0.06rem;*/
  404. margin-left: 6px;
  405. }
  406. .item i {
  407. font-style: normal;
  408. }
  409. .top {
  410. /*top: 0.8rem;*/
  411. top: 80px;
  412. }
  413. </style>
  414. </head>
  415. <body>
  416. <section class="main">
  417. @if($template == 3)
  418. <div class="wrapper1">
  419. <ul>
  420. <li>
  421. <p class="item">
  422. <img
  423. src="https://cdn-novel.iycdm.com/h5/subscribe/headimg/1.png"
  424. alt=""
  425. />
  426. <span>梅子:</span><i>这本小说超好看的,点赞</i>
  427. </p>
  428. </li>
  429. <li>
  430. <p class="item">
  431. <img
  432. src="https://cdn-novel.iycdm.com/h5/subscribe/headimg/2.png"
  433. alt=""
  434. />
  435. <span>柒柒:</span><i>关注了真有大礼包,领了2000书币</i>
  436. </p>
  437. </li>
  438. <li>
  439. <p class="item">
  440. <img
  441. src="https://cdn-novel.iycdm.com/h5/subscribe/headimg/3.png"
  442. alt=""
  443. />
  444. <span>月月:</span><i>好看的小说真多,每天都能领书币</i>
  445. </p>
  446. </li>
  447. <li>
  448. <p class="item">
  449. <img
  450. src="https://cdn-novel.iycdm.com/h5/subscribe/headimg/1.png"
  451. alt=""
  452. />
  453. <span>梅子:</span><i>这本小说超好看的,点赞</i>
  454. </p>
  455. </li>
  456. </ul>
  457. </div>
  458. @endif
  459. @if($template == 3)
  460. <div class="container">
  461. @else
  462. <div class="container top">
  463. @endif
  464. <div class="head-box">
  465. <img src="{{$head_img}}" alt="" class="head">
  466. <img src="data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAABkAAD/4QMqaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjYtYzE0MiA3OS4xNjA5MjQsIDIwMTcvMDcvMTMtMDE6MDY6MzkgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDQyAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NDFBNDQ1MDNDM0JEMTFFOEIyMjVGNTg0ODlCRjJFNEQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC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uAAAAAAAAAOlNWgZOR5qQKtNVgZOSx6wMZuU4xg46IrADCfkTON9eVAHLP20z31Q1gcs/aTuKWev+AOSfsZ236rTmA5Z/Hcx5mnmsA55vGcx5nHXHcBlN4vmVtPFeyQFP1fMsy/IC68XzK0ni/Zgay+M5izPTV/aA6ZPH8yqm+uAHVJ2M8c9IHXJ2kyoeaoDqk7aZZnT66KYAdMvJdHpDKlgdEvLapg46ttYGqkteoDSEagLqRuugDRKCgBIAAAAAAAAAAAiCsWoCOCWzECOBX4bgK9JXakBD5KyitjAr0JbJcdwEfXluy/yBT6snxxQD6snxxQD6snxxQD6snxxQD6snxh6r2Av9eW7L/IE9CX4y4gWXJWUX7gT0ldqQFuBX4bgJ4JdOVwEwSqSAkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/9k="
  467. alt="" class="shadow">
  468. {{-- <p class="friend"><i>{{$num}}</i>位好友正在读</p>--}}
  469. </div>
  470. <div class="wrapper">
  471. <div class="notice-text">
  472. <p class="title">亲爱的读者:</p>
  473. <p class="text">因版权问题,请关注作者授权公众号,方便<i>继续阅读</i>。关注后可看海量精品小说,更有签到双重礼包</p>
  474. </div>
  475. <div class="qrcode">
  476. <div class="now-see" style="
  477. font-size: .12rem;
  478. text-align: center;
  479. "><span style="
  480. color: #F14747;
  481. font-weight: bold;
  482. ">{{$num}}</span>位好友正在看
  483. </div>
  484. <img src="{{$img}}" alt="">
  485. <p class="read-qr">长按上图识别二维码关注</p>
  486. </div>
  487. </div>
  488. </div>
  489. </section>
  490. @if($template == 3)
  491. <script>
  492. var itemHeight = 38;
  493. var wrapperLen = document.querySelectorAll("li").length;
  494. var scrollWrapper = document.querySelector("ul");
  495. var initTop = 0;
  496. var current = -1;
  497. var timer = null;
  498. function initAnimate() {
  499. cancelAnimationFrame(timer);
  500. timer = requestAnimationFrame(function s() {
  501. var currentTop = itemHeight * (current + 1);
  502. if (initTop < currentTop) {
  503. initTop++;
  504. scrollWrapper.style.top = -initTop + "px";
  505. timer = requestAnimationFrame(s);
  506. } else cancelAnimationFrame(timer);
  507. });
  508. }
  509. function initAutoplay() {
  510. // initAnimate();
  511. setInterval(function () {
  512. if (current < wrapperLen - 2) current++;
  513. else {
  514. current = 0;
  515. initTop = 0;
  516. }
  517. initAnimate();
  518. }, 3000);
  519. }
  520. initAutoplay();
  521. </script>
  522. @endif
  523. </body>
  524. </html>