signv2.blade.php 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623
  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. <style>
  11. html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote,
  12. pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small,
  13. strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend,
  14. table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details,
  15. figcaption, figure, footer, header, menu, nav, section, summary, time, mark, audio,
  16. video {
  17. margin: 0;
  18. padding: 0;
  19. border: 0;
  20. outline: 0;
  21. font-size: 100%;
  22. vertical-align: baseline;
  23. background: transparent;
  24. }
  25. html {
  26. background: #fff;
  27. }
  28. body {
  29. line-height: 1.5;
  30. font-size: 0.24rem;
  31. font-family: sans-serif, "Microsoft YaHei";
  32. margin: auto;
  33. max-width: 750px;
  34. text-align: center;
  35. -webkit-font-smoothing: antialiased;
  36. }
  37. :focus {
  38. outline: 1;
  39. }
  40. article,
  41. aside,
  42. canvas,
  43. details,
  44. figcaption,
  45. figure,
  46. footer,
  47. header,
  48. hgroup,
  49. menu,
  50. nav,
  51. section,
  52. summary {
  53. display: block;
  54. }
  55. ul {
  56. list-style: none;
  57. }
  58. blockquote,
  59. q {
  60. quotes: none;
  61. }
  62. blockquote:before,
  63. blockquote:after,
  64. q:before,
  65. q:after {
  66. content: "";
  67. content: none;
  68. }
  69. a {
  70. margin: 0;
  71. padding: 0;
  72. border: 0;
  73. font-size: 100%;
  74. vertical-align: baseline;
  75. background: transparent;
  76. text-decoration: none;
  77. }
  78. ins {
  79. background-color: #ff9;
  80. color: #000;
  81. text-decoration: none;
  82. }
  83. mark {
  84. background-color: #ff9;
  85. color: #000;
  86. font-style: italic;
  87. font-weight: bold;
  88. }
  89. del {
  90. text-decoration: line-through;
  91. }
  92. abbr[title],
  93. dfn[title] {
  94. border-bottom: 1px dotted #000;
  95. cursor: help;
  96. }
  97. table {
  98. border-collapse: collapse;
  99. border-spacing: 0;
  100. }
  101. hr {
  102. display: block;
  103. height: 1px;
  104. border: 0;
  105. border-top: 1px solid #cccccc;
  106. margin: 0;
  107. padding: 0;
  108. }
  109. input,
  110. select {
  111. vertical-align: middle;
  112. padding: 0;
  113. margin: 0;
  114. }
  115. input[type="button"],
  116. input[type="submit"],
  117. input[type="reset"] {
  118. -webkit-appearance: none;
  119. }
  120. img {
  121. -webkit-tap-highlight-color: transparent;
  122. }
  123. i {
  124. font-style: normal;
  125. }
  126. body.dialog-open {
  127. position: fixed;
  128. width: 100%;
  129. }
  130. html {
  131. background: #f7f7f7;
  132. }
  133. .sign-wrap {
  134. font-size: 0;
  135. }
  136. .sign-wrap .sign-banner {
  137. position: absolute;
  138. top: 0;
  139. left: 0;
  140. }
  141. .sign-wrap .every-day__get {
  142. position: absolute;
  143. top: 7.5%;
  144. left: 50%;
  145. -webkit-transform: translate(-50%, 0%);
  146. transform: translate(-50%, 0%);
  147. font-size: 18px;
  148. color: #fff;
  149. }
  150. .sign-wrap .every-day__get i {
  151. font-weight: bold;
  152. }
  153. .sign-wrap .wrap-box {
  154. margin: 0 10px;
  155. background: white;
  156. -webkit-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.08);
  157. box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.08);
  158. border-radius: 10px;
  159. font-size: 13px;
  160. padding: 20px;
  161. position: relative;
  162. }
  163. .sign-wrap .wrap-box .wrap-box__banner {
  164. position: absolute;
  165. top: 0%;
  166. left: 50%;
  167. -webkit-transform: translate(-50%, -56%);
  168. transform: translate(-50%, -56%);
  169. width: 70%;
  170. }
  171. .sign-wrap .sign-week__wrap {
  172. margin-top: 30%;
  173. }
  174. .sign-wrap .sign-week__wrap .title-text {
  175. margin-top: 9px;
  176. font-size: 13px;
  177. color: #666;
  178. }
  179. .sign-wrap .sign-week__wrap .title-text i {
  180. font-size: 14px;
  181. color: #74aeff;
  182. font-weight: bold;
  183. }
  184. .sign-wrap .sign-week__wrap .sign-progress__wrap {
  185. position: relative;
  186. padding-bottom: 50px;
  187. }
  188. .sign-wrap .sign-list__wrap {
  189. position: absolute;
  190. width: 100%;
  191. top: 0;
  192. left: 50%;
  193. -webkit-transform: translate(-56%, 8%);
  194. transform: translate(-50%, 8%);
  195. }
  196. .sign-wrap .sign-list__wrap .sign-list__top,
  197. .sign-wrap .sign-list__wrap .sign-list__bottom {
  198. display: -webkit-box;
  199. display: -ms-flexbox;
  200. display: flex;
  201. -ms-flex-pack: distribute;
  202. justify-content: space-around;
  203. -webkit-box-align: start;
  204. -ms-flex-align: start;
  205. align-items: flex-start;
  206. }
  207. .sign-wrap .sign-list__wrap .sign-list__top {
  208. margin-bottom: 6%;
  209. }
  210. .sign-wrap .sign-list__wrap .sign-list__bottom {
  211. -webkit-box-orient: horizontal;
  212. -webkit-box-direction: reverse;
  213. -ms-flex-direction: row-reverse;
  214. flex-direction: row-reverse;
  215. width: 77%;
  216. margin: 0 auto;
  217. }
  218. .sign-wrap .sign-list__wrap .sign-item {
  219. width: 24%;
  220. font-size: 0;
  221. }
  222. .sign-wrap .sign-list__wrap .sign-item img {
  223. width: 22px;
  224. height: 22px;
  225. }
  226. .sign-wrap .sign-list__wrap .sign-item .day-send,
  227. .sign-wrap .sign-list__wrap .sign-item .day-text {
  228. display: block;
  229. font-size: 11px;
  230. color: #999;
  231. }
  232. .sign-wrap .sign-list__wrap .sign-item .day-send {
  233. width: 55px;
  234. margin: 10% auto 0;
  235. border: 1px solid #74aeff;
  236. color: #74aeff;
  237. border-radius: 2px;
  238. position: relative;
  239. }
  240. .sign-wrap .sign-list__wrap .sign-item .day-send::before, .sign-wrap .sign-list__wrap .sign-item .day-send::after {
  241. content: "";
  242. width: 0;
  243. height: 0;
  244. border-style: solid;
  245. border-width: 6px;
  246. border-color: transparent transparent #74aeff transparent;
  247. position: absolute;
  248. top: 0%;
  249. left: 50%;
  250. -webkit-transform: translate(-50%, -100%);
  251. transform: translate(-50%, -100%);
  252. }
  253. .sign-wrap .sign-list__wrap .sign-item .day-send::after {
  254. border-width: 5px;
  255. border-color: transparent transparent #fff transparent;
  256. -webkit-transform: translate(-50%, -93%);
  257. transform: translate(-50%, -93%);
  258. }
  259. .sign-wrap .sign-list__wrap .sign-item.cur .day-send {
  260. background: #74aeff;
  261. color: #fff;
  262. }
  263. .sign-wrap .sign-list__wrap .sign-item.cur .day-send::after {
  264. border-color: transparent transparent #74aeff transparent;
  265. }
  266. .sign-wrap .sign-list__wrap .sign-item.cur .day-text {
  267. color: #74aeff;
  268. font-weight: bold;
  269. }
  270. .sign-wrap .sign-to__read {
  271. position: relative;
  272. }
  273. .sign-wrap .sign-to__read .to-read {
  274. display: block;
  275. text-align: center;
  276. width: 55%;
  277. margin: 0 auto;
  278. line-height: 35px;
  279. background: #74aeff;
  280. color: #fff;
  281. border-radius: 18px;
  282. font-size: 14px;
  283. font-weight: bold;
  284. }
  285. .sign-wrap .sign-to__read .sign-record {
  286. position: absolute;
  287. color: currentColor;
  288. right: 0;
  289. top: 50%;
  290. -webkit-transform: translateY(-50%);
  291. transform: translateY(-50%);
  292. color: #999;
  293. font-size: 12px;
  294. }
  295. .sign-wrap img {
  296. width: 100%;
  297. }
  298. @media screen and (max-width: 320px) {
  299. .sign-wrap .sign-list__wrap .sign-list__top {
  300. margin-bottom: 0%;
  301. }
  302. }
  303. @media screen and (min-width: 414px) {
  304. .sign-wrap .sign-list__wrap .sign-list__top {
  305. margin-bottom: 8%;
  306. }
  307. }
  308. .sign-wrap .read-today__wrap {
  309. margin-top: 10px;
  310. margin-bottom: 10px;
  311. }
  312. .sign-wrap .read-today__wrap h3 {
  313. font-size: 16px;
  314. color: #333;
  315. text-align: left;
  316. display: -webkit-box;
  317. display: -ms-flexbox;
  318. display: flex;
  319. -webkit-box-pack: start;
  320. -ms-flex-pack: start;
  321. justify-content: flex-start;
  322. -webkit-box-align: center;
  323. -ms-flex-align: center;
  324. align-items: center;
  325. margin-bottom: 14px;
  326. }
  327. .sign-wrap .read-today__wrap h3::before {
  328. content: "";
  329. width: 3px;
  330. height: 16px;
  331. background: #74aeff;
  332. border-radius: 1px;
  333. margin-right: 4px;
  334. }
  335. .sign-wrap .read-today__wrap .book-wrap .book-name {
  336. font-size: 16px;
  337. color: #333;
  338. margin-bottom: 12px;
  339. }
  340. .sign-wrap .read-today__wrap .book-wrap .book-intro {
  341. -webkit-line-clamp: 3;
  342. display: -webkit-box;
  343. -webkit-box-orient: vertical;
  344. overflow: hidden;
  345. color: #999;
  346. font-size: 13px;
  347. }
  348. .sign-wrap .read-today__wrap .book-wrap .other-book {
  349. display: -webkit-box;
  350. display: -ms-flexbox;
  351. display: flex;
  352. -webkit-box-pack: start;
  353. -ms-flex-pack: start;
  354. justify-content: flex-start;
  355. -webkit-box-align: start;
  356. -ms-flex-align: start;
  357. align-items: flex-start;
  358. }
  359. .sign-wrap .read-today__wrap .book-wrap .other-book .one,
  360. .sign-wrap .read-today__wrap .book-wrap .other-book .two {
  361. font-size: 12px;
  362. display: block;
  363. padding: 0.06rem 0.12rem;
  364. border-radius: 3px;
  365. }
  366. .sign-wrap .read-today__wrap .book-wrap .other-book .one {
  367. background: #ffe08d;
  368. color: #846a23;
  369. }
  370. .sign-wrap .read-today__wrap .book-wrap .other-book .two {
  371. background: #ffb8b8;
  372. color: #c44444;
  373. }
  374. .sign-wrap .read-today__wrap .book-wrap .other-book a.status {
  375. -webkit-box-flex: 1;
  376. -ms-flex: 1;
  377. flex: 1;
  378. text-align: left;
  379. margin-left: 6px;
  380. font-size: 13px;
  381. color: #666;
  382. }
  383. .sign-wrap .read-today__wrap .book-wrap .other-book a span {
  384. color: #74aeff;
  385. }
  386. .sign-wrap .read-today__wrap .book-wrap .other-book:not(:last-child) {
  387. margin: 16px auto;
  388. }
  389. .sign-wrap .x-book__multi {
  390. display: -webkit-box;
  391. display: -ms-flexbox;
  392. display: flex;
  393. -webkit-box-align: center;
  394. -ms-flex-align: center;
  395. align-items: center;
  396. -webkit-box-orient: horizontal;
  397. -webkit-box-direction: normal;
  398. -ms-flex-direction: row;
  399. flex-direction: row;
  400. -webkit-box-pack: justify;
  401. -ms-flex-pack: justify;
  402. justify-content: space-between;
  403. }
  404. .sign-wrap .x-book__coverbox {
  405. position: relative;
  406. }
  407. .sign-wrap .x-book__cover {
  408. -webkit-box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  409. box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  410. border-radius: 3px;
  411. display: block;
  412. border: 0.05px solid #fff;
  413. -webkit-transition: 0.6s;
  414. transition: 0.6s;
  415. width: 77px;
  416. height: 103px;
  417. }
  418. .sign-wrap .x-book__text--multi {
  419. -webkit-box-sizing: border-box;
  420. box-sizing: border-box;
  421. padding-left: 20px;
  422. position: relative;
  423. text-align: left;
  424. width: calc(100% - 77px);
  425. height: 103px;
  426. }
  427. </style>
  428. <title>签到</title>
  429. </head>
  430. <body>
  431. <main class="sign-wrap">
  432. <img src="https://cdn-novel.iycdm.com/h5/sign/sign_banner.jpg" alt="" class="sign-banner" />
  433. <span class="every-day__get">获得<i>{{$fee}}</i>书币</span>
  434. <div class="wrap-box sign-week__wrap">
  435. <img src="https://cdn-novel.iycdm.com/h5/sign/sign_hf.png" alt="" class="wrap-box__banner" />
  436. <p class="title-text">
  437. 您已连续签到<i>{{$sign_count}}</i>天,明天签到获得<i>{{$tomorrow_fee}}</i>书币
  438. </p>
  439. <div class="sign-progress__wrap">
  440. <svg
  441. xmlns="http://www.w3.org/2000/svg"
  442. version="1.1"
  443. x="0px"
  444. y="0px"
  445. viewBox="0 0 305 130"
  446. >
  447. <path
  448. id="base"
  449. fill="#fff"
  450. stroke="#f1f7ff"
  451. stroke-width="3"
  452. opacity="0.5"
  453. d="m14,25.4375l278,-0.4375l0,83l-259,0"
  454. />
  455. <path
  456. id="fill"
  457. fill="#fff"
  458. stroke="#4895ff"
  459. stroke-width="3"
  460. opacity="0.5"
  461. d="m14,25.4375l278,-0.4375l0,83l-259,0"
  462. />
  463. </svg>
  464. <div class="sign-list__wrap">
  465. <div class="sign-list__top">
  466. <!-- 说明: 图片三天使用sign_3 七天使用sign_5 -->
  467. <!-- 已签到过的item上加入cur的class -->
  468. @for($i =1;$i<=4;$i++)
  469. <div class="sign-item {{($sign_count %7 >=$i) || $sign_count %7 == 0 ? 'cur':''}}">
  470. @if($i == 3)
  471. <img src="https://cdn-novel.iycdm.com/h5/sign/sign_3.png" alt="" />
  472. @elseif($i ==7)
  473. <img src="https://cdn-novel.iycdm.com/h5/sign/sign_7.png" alt="" />
  474. @else
  475. <img src="https://cdn-novel.iycdm.com/h5/sign/sign_c.png" alt="" />
  476. @endif
  477. <span class="day-send">{{$fee_pool[$i]}}书币</span>
  478. <span class="day-text">第{{$day[$i]}}天</span>
  479. </div>
  480. @endfor
  481. </div>
  482. <div class="sign-list__bottom">
  483. @for($j =5;$j<=7;$j++)
  484. <div class="sign-item {{($sign_count %7 >=$j) || ($sign_count %7 ==0 ) ? 'cur':''}}">
  485. @if($j == 3)
  486. <img src="https://cdn-novel.iycdm.com/h5/sign/sign_3.png" alt="" />
  487. @elseif($j ==7)
  488. <img src="https://cdn-novel.iycdm.com/h5/sign/sign_5.png" alt="" />
  489. @else
  490. <img src="https://cdn-novel.iycdm.com/h5/sign/sign_c.png" alt="" />
  491. @endif
  492. <span class="day-send">{{$fee_pool[$j]}}书币</span>
  493. <span class="day-text">第{{$day[$j]}}天</span>
  494. </div>
  495. @endfor
  496. </div>
  497. </div>
  498. </div>
  499. <div class="sign-to__read">
  500. <a href="/continue" class="to-read">继续看书&gt;&gt;</a>
  501. <a href="/record/sign" class="sign-record">签到记录&gt;</a>
  502. </div>
  503. </div>
  504. <div class="wrap-box read-today__wrap">
  505. <h3>今日必读</h3>
  506. <div class="book-wrap">
  507. @if($book1)
  508. <div class="x-book">
  509. <div class="x-book__multi">
  510. <div class="x-book__coverbox">
  511. <a href="{{$book1->url}}"><img src="{{$book1->cover}}" class="x-book__cover"/></a>
  512. </div>
  513. <div class="x-book__text--multi">
  514. <a href="{{$book1->url}}">
  515. <p class="book-name">{{$book1->book_name}}</p>
  516. <p class="book-intro">
  517. {{$book1->intro}}
  518. </p>
  519. </a>
  520. </div>
  521. </div>
  522. </div>
  523. @endif
  524. @if($book2)
  525. @foreach($book2 as $key=>$item)
  526. <p class="other-book"><i class="{{$key%2 == 0? 'one':'two'}}">{{$item->category_name}}</i><a href={{$item->url}} class="status">{{$item->desc}}<span >点击阅读&gt;</span></a></p>
  527. @endforeach
  528. @endif
  529. </div>
  530. </div>
  531. </main>
  532. </body>
  533. <script>
  534. var _hmt = _hmt || [];
  535. (function() {
  536. var hm = document.createElement("script");
  537. hm.src = "https://hm.baidu.com/hm.js?a027c0fdf2b6e70f1892dbd8227cbb2b";
  538. var s = document.getElementsByTagName("script")[0];
  539. s.parentNode.insertBefore(hm, s);
  540. })();
  541. </script>
  542. <script src="https://cdn.bootcss.com/progressbar.js/1.0.1/progressbar.min.js"></script>
  543. <script>
  544. // 每天有对应的进度条进度
  545. var sign = {{$sign_count}}
  546. sign = sign % 7;
  547. if(sign == 0) sign = 7;
  548. var dayWithProgress = [0,0.05, 0.16, 0.28, 0.42, 0.68, 0.80, 1];
  549. // 可以把签到天数放入元素获取 或者直接js赋值
  550. var bar = new ProgressBar.Path("#fill", {
  551. easing: "easeInOut",
  552. duration: 1400
  553. });
  554. bar.set(0);
  555. bar.animate(dayWithProgress[sign]);
  556. </script>
  557. </html>