signv2.blade.php 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609
  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(-56%, 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. }
  216. .sign-wrap .sign-list__wrap .sign-item {
  217. width: 24%;
  218. font-size: 0;
  219. }
  220. .sign-wrap .sign-list__wrap .sign-item img {
  221. width: 22px;
  222. height: 22px;
  223. }
  224. .sign-wrap .sign-list__wrap .sign-item .day-send,
  225. .sign-wrap .sign-list__wrap .sign-item .day-text {
  226. display: block;
  227. font-size: 11px;
  228. color: #999;
  229. }
  230. .sign-wrap .sign-list__wrap .sign-item .day-send {
  231. width: 55px;
  232. margin: 10% auto 0;
  233. border: 1px solid #74aeff;
  234. color: #74aeff;
  235. border-radius: 2px;
  236. position: relative;
  237. }
  238. .sign-wrap .sign-list__wrap .sign-item .day-send::before, .sign-wrap .sign-list__wrap .sign-item .day-send::after {
  239. content: "";
  240. width: 0;
  241. height: 0;
  242. border-style: solid;
  243. border-width: 6px;
  244. border-color: transparent transparent #74aeff transparent;
  245. position: absolute;
  246. top: 0%;
  247. left: 50%;
  248. -webkit-transform: translate(-50%, -100%);
  249. transform: translate(-50%, -100%);
  250. }
  251. .sign-wrap .sign-list__wrap .sign-item .day-send::after {
  252. border-width: 5px;
  253. border-color: transparent transparent #fff transparent;
  254. -webkit-transform: translate(-50%, -93%);
  255. transform: translate(-50%, -93%);
  256. }
  257. .sign-wrap .sign-list__wrap .sign-item.cur .day-send {
  258. background: #74aeff;
  259. color: #fff;
  260. }
  261. .sign-wrap .sign-list__wrap .sign-item.cur .day-send::after {
  262. border-color: transparent transparent #74aeff transparent;
  263. }
  264. .sign-wrap .sign-list__wrap .sign-item.cur .day-text {
  265. color: #74aeff;
  266. font-weight: bold;
  267. }
  268. .sign-wrap .sign-to__read {
  269. position: relative;
  270. }
  271. .sign-wrap .sign-to__read .to-read {
  272. display: block;
  273. text-align: center;
  274. width: 55%;
  275. margin: 0 auto;
  276. height: 35px;
  277. line-height: 35px;
  278. background: #74aeff;
  279. color: #fff;
  280. border-radius: 18px;
  281. font-size: 14px;
  282. font-weight: bold;
  283. }
  284. .sign-wrap .sign-to__read .sign-record {
  285. position: absolute;
  286. color: currentColor;
  287. right: 0;
  288. top: 50%;
  289. -webkit-transform: translateY(-50%);
  290. transform: translateY(-50%);
  291. color: #999;
  292. font-size: 12px;
  293. }
  294. .sign-wrap img {
  295. width: 100%;
  296. }
  297. @media screen and (max-width: 320px) {
  298. .sign-wrap .sign-list__wrap .sign-list__top {
  299. margin-bottom: 0%;
  300. }
  301. }
  302. @media screen and (min-width: 414px) {
  303. .sign-wrap .sign-list__wrap .sign-list__top {
  304. margin-bottom: 8%;
  305. }
  306. }
  307. .sign-wrap .read-today__wrap {
  308. margin-top: 10px;
  309. margin-bottom: 10px;
  310. }
  311. .sign-wrap .read-today__wrap h3 {
  312. font-size: 16px;
  313. color: #333;
  314. text-align: left;
  315. display: -webkit-box;
  316. display: -ms-flexbox;
  317. display: flex;
  318. -webkit-box-pack: start;
  319. -ms-flex-pack: start;
  320. justify-content: flex-start;
  321. -webkit-box-align: center;
  322. -ms-flex-align: center;
  323. align-items: center;
  324. margin-bottom: 14px;
  325. }
  326. .sign-wrap .read-today__wrap h3::before {
  327. content: "";
  328. width: 3px;
  329. height: 16px;
  330. background: #74aeff;
  331. border-radius: 1px;
  332. margin-right: 4px;
  333. }
  334. .sign-wrap .read-today__wrap .book-wrap .book-name {
  335. font-size: 16px;
  336. color: #333;
  337. margin-bottom: 12px;
  338. }
  339. .sign-wrap .read-today__wrap .book-wrap .book-intro {
  340. -webkit-line-clamp: 3;
  341. display: -webkit-box;
  342. -webkit-box-orient: vertical;
  343. overflow: hidden;
  344. color: #999;
  345. font-size: 13px;
  346. }
  347. .sign-wrap .read-today__wrap .book-wrap .other-book {
  348. display: -webkit-box;
  349. display: -ms-flexbox;
  350. display: flex;
  351. -webkit-box-pack: start;
  352. -ms-flex-pack: start;
  353. justify-content: flex-start;
  354. -webkit-box-align: start;
  355. -ms-flex-align: start;
  356. align-items: flex-start;
  357. }
  358. .sign-wrap .read-today__wrap .book-wrap .other-book .one,
  359. .sign-wrap .read-today__wrap .book-wrap .other-book .two {
  360. font-size: 12px;
  361. display: block;
  362. padding: 0.06rem 0.12rem;
  363. border-radius: 3px;
  364. }
  365. .sign-wrap .read-today__wrap .book-wrap .other-book .one {
  366. background: #ffe08d;
  367. color: #846a23;
  368. }
  369. .sign-wrap .read-today__wrap .book-wrap .other-book .two {
  370. background: #ffb8b8;
  371. color: #c44444;
  372. }
  373. .sign-wrap .read-today__wrap .book-wrap .other-book span {
  374. -webkit-box-flex: 1;
  375. -ms-flex: 1;
  376. flex: 1;
  377. text-align: left;
  378. margin-left: 6px;
  379. font-size: 13px;
  380. color: #666;
  381. }
  382. .sign-wrap .read-today__wrap .book-wrap .other-book span a {
  383. color: #74aeff;
  384. }
  385. .sign-wrap .read-today__wrap .book-wrap .other-book:not(:last-child) {
  386. margin: 16px auto;
  387. }
  388. .sign-wrap .x-book__multi {
  389. display: -webkit-box;
  390. display: -ms-flexbox;
  391. display: flex;
  392. -webkit-box-align: center;
  393. -ms-flex-align: center;
  394. align-items: center;
  395. -webkit-box-orient: horizontal;
  396. -webkit-box-direction: normal;
  397. -ms-flex-direction: row;
  398. flex-direction: row;
  399. -webkit-box-pack: justify;
  400. -ms-flex-pack: justify;
  401. justify-content: space-between;
  402. }
  403. .sign-wrap .x-book__coverbox {
  404. position: relative;
  405. }
  406. .sign-wrap .x-book__cover {
  407. -webkit-box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  408. box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  409. border-radius: 3px;
  410. display: block;
  411. border: 0.05px solid #fff;
  412. -webkit-transition: 0.6s;
  413. transition: 0.6s;
  414. width: 77px;
  415. height: 103px;
  416. }
  417. .sign-wrap .x-book__text--multi {
  418. -webkit-box-sizing: border-box;
  419. box-sizing: border-box;
  420. padding-left: 20px;
  421. position: relative;
  422. text-align: left;
  423. width: calc(100% - 77px);
  424. height: 103px;
  425. }
  426. </style>
  427. <title>签到</title>
  428. </head>
  429. <body>
  430. <main class="sign-wrap">
  431. <img src="https://cdn-novel.iycdm.com/h5/sign/sign_banner.jpg" alt="" class="sign-banner" />
  432. <span class="every-day__get">获得<i>{{$fee}}</i>书币</span>
  433. <div class="wrap-box sign-week__wrap">
  434. <img src="https://cdn-novel.iycdm.com/h5/sign/sign_hf.png" alt="" class="wrap-box__banner" />
  435. <p class="title-text">
  436. 您已连续签到<i>{{$sign_count}}</i>天,明天签到获得<i>{{$fee}}</i>书币
  437. </p>
  438. <div class="sign-progress__wrap">
  439. <svg
  440. xmlns="http://www.w3.org/2000/svg"
  441. version="1.1"
  442. x="0px"
  443. y="0px"
  444. viewBox="0 0 305 130"
  445. >
  446. <path
  447. id="base"
  448. fill="#fff"
  449. stroke="#f1f7ff"
  450. stroke-width="3"
  451. opacity="0.5"
  452. d="m14,25.4375l278,-0.4375l0,83l-259,0"
  453. />
  454. <path
  455. id="fill"
  456. fill="#fff"
  457. stroke="#4895ff"
  458. stroke-width="3"
  459. opacity="0.5"
  460. d="m14,25.4375l278,-0.4375l0,83l-259,0"
  461. />
  462. </svg>
  463. <div class="sign-list__wrap">
  464. <div class="sign-list__top">
  465. <!-- 说明: 图片三天使用sign_3 七天使用sign_5 -->
  466. <!-- 已签到过的item上加入cur的class -->
  467. @for($i =1;$i<=4;$i++)
  468. <div class="sign-item {{$sign_count >=$i ? 'cur':''}}">
  469. @if($i == 3)
  470. <img src="https://cdn-novel.iycdm.com/h5/sign/sign_3.png" alt="" />
  471. @elseif($i ==7)
  472. <img src="https://cdn-novel.iycdm.com/h5/sign/sign_7.png" alt="" />
  473. @else
  474. <img src="https://cdn-novel.iycdm.com/h5/sign/sign_c.png" alt="" />
  475. @endif
  476. <span class="day-send">{{$fee_pool[$i]}}书币</span>
  477. <span class="day-text">第{{$day[$i]}}天</span>
  478. </div>
  479. @endfor
  480. </div>
  481. <div class="sign-list__bottom">
  482. @for($j =5;$j<=7;$j++)
  483. <div class="sign-item {{$sign_count >=$j ? 'cur':''}}">
  484. @if($j == 3)
  485. <img src="https://cdn-novel.iycdm.com/h5/sign/sign_3.png" alt="" />
  486. @elseif($j ==7)
  487. <img src="https://cdn-novel.iycdm.com/h5/sign/sign_5.png" alt="" />
  488. @else
  489. <img src="https://cdn-novel.iycdm.com/h5/sign/sign_c.png" alt="" />
  490. @endif
  491. <span class="day-send">{{$fee_pool[$j]}}书币</span>
  492. <span class="day-text">第{{$day[$j]}}天</span>
  493. </div>
  494. @endfor
  495. </div>
  496. </div>
  497. </div>
  498. <div class="sign-to__read">
  499. <a href="/continue" class="to-read">继续看书&gt;&gt;</a>
  500. <a href="/record/sign" class="sign-record">签到记录&gt;</a>
  501. </div>
  502. </div>
  503. <div class="wrap-box read-today__wrap">
  504. <h3>今日必读</h3>
  505. <div class="book-wrap">
  506. @if($book1)
  507. <div class="x-book">
  508. <div class="x-book__multi">
  509. <div class="x-book__coverbox">
  510. <a href="{{$book1->url}}"><img src="{{$book1->cover}}" class="x-book__cover"/></a>
  511. </div>
  512. <div class="x-book__text--multi">
  513. <p class="book-name">{{$book1->book_name}}</p>
  514. <p class="book-intro">
  515. {{$book1->intro}}
  516. </p>
  517. </div>
  518. </div>
  519. </div>
  520. @endif
  521. @if($book2)
  522. @foreach($book2 as $key=>$item)
  523. <p class="other-book"><i class="{{$key%2 == 0? 'one':'two'}}">{{$item->category_name}}</i><span>{{$item->desc}}<a href={{$item->url}}>点击阅读&gt;</a></span></p>
  524. @endforeach
  525. @endif
  526. </div>
  527. </div>
  528. </main>
  529. </body>
  530. <script src="https://cdn.bootcss.com/progressbar.js/1.0.1/progressbar.min.js"></script>
  531. <script>
  532. // 每天有对应的进度条进度
  533. var sign = {{$sign_count}}
  534. var dayWithProgress = [0,0, 0.13, 0.26, 0.39, 0.68, 0.85, 1];
  535. // 可以把签到天数放入元素获取 或者直接js赋值
  536. var bar = new ProgressBar.Path("#fill", {
  537. easing: "easeInOut",
  538. duration: 1400
  539. });
  540. bar.set(0);
  541. bar.animate(dayWithProgress[sign]);
  542. </script>
  543. </html>