signV3.blade.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398
  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>
  9. <style>
  10. html,
  11. body {
  12. margin: 0 auto;
  13. padding: 0;
  14. max-width: 450px;
  15. font-size: 100px;
  16. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  17. }
  18. body {
  19. background: white;
  20. }
  21. .main_box {
  22. font-size: 0.15rem;
  23. position: relative;
  24. text-align: center;
  25. height: 100%;
  26. }
  27. .main_box img {
  28. width: 100%;
  29. }
  30. .top_info {
  31. position: absolute;
  32. top: 0;
  33. width: 100%;
  34. height: 310px;
  35. }
  36. .user_info {
  37. position: absolute;
  38. left: 5px;
  39. top: 5%;
  40. display: flex;
  41. text-align: left;
  42. color: white;
  43. }
  44. .user_info img {
  45. width: 50px;
  46. height: 50px;
  47. border-radius: 50px;
  48. border: 1.5px solid white;
  49. }
  50. .user_info .user_name {
  51. margin-left: 10px;
  52. line-height: 30px;
  53. }
  54. .user_info .user_name div:nth-child(1) {
  55. font-weight: bold;
  56. }
  57. .sign_info {
  58. width: 85%;
  59. position: absolute;
  60. left: 25px;
  61. top: 40%;
  62. text-align: left;
  63. color: white;
  64. }
  65. .sign_record {
  66. width: 100%;
  67. display: flex;
  68. justify-content: space-between;
  69. }
  70. .sign_list {
  71. position: absolute;
  72. top: 60px;
  73. width: 100%;
  74. color: #333;
  75. line-height: 25px;
  76. display: flex;
  77. justify-content: space-between;
  78. font-size: 13px;
  79. margin-top: 15px;
  80. }
  81. .sign_day {
  82. text-align: center;
  83. position: relative;
  84. }
  85. .sign_day-wei {
  86. color: #999;
  87. }
  88. .sign_day div:nth-child(1) {
  89. margin-bottom: 5px;
  90. }
  91. .sign_day img {
  92. width: 20px;
  93. position: relative;
  94. z-index: 1000;
  95. }
  96. .sign_line {
  97. border-bottom: 4px #318cf5 solid;
  98. position: absolute;
  99. width: 35px;
  100. top: 47%;
  101. right: -20px;
  102. z-index: 10;
  103. }
  104. .sign_line-wei {
  105. border-bottom: 4px #e5e5e5 solid;
  106. }
  107. .read_record {
  108. position: relative;
  109. margin-bottom: 0.15rem;
  110. }
  111. .read_record .title {
  112. text-align: left;
  113. font-weight: bold;
  114. margin-bottom: 10px;
  115. }
  116. .read_record .title span {
  117. border-left: 4px solid #318cf5;
  118. border-radius: 3px;
  119. margin-right: 10px;
  120. }
  121. .book_list {
  122. display: flex;
  123. justify-content: space-between;
  124. padding: 0 20px;
  125. }
  126. .book_box {
  127. line-height: 20px;
  128. }
  129. .book_box {
  130. font-size: 0.13rem;
  131. }
  132. .book_box div:nth-child(3) {
  133. color: #318cf5;
  134. }
  135. .book_box img {
  136. height: 130px;
  137. width: 100px;
  138. min-width: 100px;
  139. box-shadow: 0 0 0.16rem rgba(0, 0, 0, 0.1);
  140. border-radius: 2px;
  141. }
  142. .book_box-featured {
  143. padding: 0 20px;
  144. display: flex;
  145. text-decoration: none;
  146. margin-bottom: 15px;
  147. color: #333;
  148. }
  149. .book_info {
  150. margin-left: 10px;
  151. width: 100%;
  152. }
  153. .book_name {
  154. display: flex;
  155. justify-content: space-between;
  156. line-height: 25px;
  157. font-size: 16px;
  158. }
  159. .book_name span:nth-child(1) {
  160. overflow: hidden;
  161. text-overflow: ellipsis;
  162. white-space: nowrap;
  163. width: 150px;
  164. }
  165. .book_name span:nth-child(2) {
  166. font-size: 14px;
  167. }
  168. .book_details {
  169. display: -webkit-box;
  170. -webkit-box-orient: vertical;
  171. -webkit-line-clamp: 3;
  172. overflow: hidden;
  173. width: 100%;
  174. line-height: 22px;
  175. color: #999;
  176. margin-top: 15px;
  177. text-align: left;
  178. }
  179. .book_category {
  180. margin-top: 15px;
  181. text-align: left;
  182. }
  183. .book_category span {
  184. white-space: nowrap;
  185. padding: 2px 5px;
  186. background-color: #fff0d5;
  187. color: #b3883d;
  188. border-radius: 50px;
  189. margin: 5px 0;
  190. }
  191. .dialog {
  192. position: fixed;
  193. top: 0;
  194. bottom: 0;
  195. left: 0;
  196. right: 0;
  197. background: rgba(0, 0, 0, 0.6);
  198. z-index: 9999;
  199. }
  200. .dialog .dialog_content {
  201. position: absolute;
  202. top: 25%;
  203. left: 50%;
  204. transform: translate(-50%);
  205. width: 80%;
  206. }
  207. .dialog .dialog_close {
  208. position: absolute;
  209. top: 60%;
  210. left: 50%;
  211. transform: translate(-50%);
  212. width: 30px;
  213. }
  214. .hide {
  215. display: none;
  216. }
  217. .sign_record {
  218. color: white;
  219. text-decoration: none;
  220. }
  221. .dialog div {
  222. position: absolute;
  223. top: 45%;
  224. left: 50%;
  225. transform: translate(-50%);
  226. color: white;
  227. font-weight: bold;
  228. font-size: 0.2rem;
  229. }
  230. .dialog div span {
  231. color: #ffc018;
  232. }
  233. </style>
  234. </head>
  235. <body>
  236. <main class="main_box">
  237. <img src="https://cdn-novel.iycdm.com/h5/sign/sign_v3_top_banner.jpg" alt="" />
  238. <div class="top_info">
  239. <div class="user_info">
  240. @if($head_img)
  241. <img src="{{$head_img}}" alt=""/>
  242. @endif
  243. <div class="user_name">
  244. <div>{{$name}}</div>
  245. <div>持有书币:{{$balance}}</div>
  246. </div>
  247. </div>
  248. <div class="sign_info">
  249. <div class="sign_record">
  250. <span>已经连续签到 <span style="font-weight: bold;">{{$sign_count}}</span> 天</span>
  251. <span><a href="/record/sign" class="sign_record">签到记录></a></span>
  252. </div>
  253. <div class="sign_list">
  254. @foreach($fee_pool as $k=>$value)
  255. @if($k > 0)
  256. <div class="sign_day">
  257. <div>{{$k}}天</div>
  258. @if($day > $k)
  259. <img src="https://cdn-novel.iycdm.com/h5/sign/sign_v3_over.png" alt="" />
  260. @elseif($day == $k)
  261. <img src="https://cdn-novel.iycdm.com/h5/sign/sign_v3_doing.png" alt="" />
  262. @else
  263. <img src="https://cdn-novel.iycdm.com/h5/sign/sign_v3_undone.png" alt="" />
  264. @endif
  265. <div>{{$value}}书币</div>
  266. <!-- 连接线 -->
  267. @if($k != 7)
  268. @if($k >= $day)
  269. <div class="sign_line sign_line-wei"></div>
  270. @else
  271. <div class="sign_line"></div>
  272. @endif
  273. @endif
  274. </div>
  275. @endif
  276. @endforeach
  277. </div>
  278. </div>
  279. </div>
  280. <div class="read_record">
  281. <div class="title"><span></span>最近阅读</div>
  282. <div class="book_list">
  283. @foreach($read_record as $ks=>$item)
  284. @if($ks <2)
  285. <div class="book_box">
  286. <a href="{{$item['url']}}">
  287. <img src="{{$item['cover']}}" alt="" />
  288. </a>
  289. <div>{{$item['book_name']}}</div>
  290. @if($item['update_count'])
  291. <div>·更新{{$item['update_count']}}章</div>
  292. @endif
  293. </div>
  294. @endif
  295. @endforeach
  296. <div class="book_box">
  297. <a href="/recent"><img src="https://cdn-novel.iycdm.com/h5/sign/sign_v3_more.png" alt="" /></a>
  298. </div>
  299. </div>
  300. </div>
  301. <div class="read_record">
  302. <div class="title"><span></span>精选推荐</div>
  303. @foreach($recommend_book as $item_book)
  304. <a class="book_box book_box-featured" href="{{$item_book['url']}}">
  305. <img src="{{$item_book['cover']}}" alt=""/>
  306. <div class="book_info">
  307. <div class="book_name">
  308. <span>{{$item_book['book_name']}}</span><span>{{$item_book['category_name']}}</span>
  309. </div>
  310. <div class="book_details">
  311. {{$item_book['intro']}}
  312. </div>
  313. <div class="book_category">
  314. @if($item_book['tag_list'])
  315. @foreach($item_book['tag_list'] as $tag)
  316. <span>{{$tag}}</span>
  317. @endforeach
  318. @endif
  319. </div>
  320. </div>
  321. </a>
  322. @endforeach
  323. </div>
  324. <div class="dialog {{$is_alert? '':'hide'}}" >
  325. <img src="https://cdn-novel.iycdm.com/h5/sign/sign_v3_alert.png" class="dialog_content" />
  326. <div>获得 <span>{{$fee}}</span> 书币</div>
  327. <img src="https://cdn-novel.iycdm.com/h5/sign/sing_v3_close.png" class="dialog_close" />
  328. </div>
  329. </main>
  330. </body>
  331. <script>
  332. var _hmt = _hmt || [];
  333. (function() {
  334. var hm = document.createElement("script");
  335. hm.src = "https://hm.baidu.com/hm.js?a027c0fdf2b6e70f1892dbd8227cbb2b";
  336. var s = document.getElementsByTagName("script")[0];
  337. s.parentNode.insertBefore(hm, s);
  338. })();
  339. </script>
  340. <script>
  341. var dialogClose = document.querySelector(".dialog_close");
  342. var dialog = document.querySelector(".dialog");
  343. function dialogBehavior() {
  344. dialogClose.addEventListener(
  345. "click",
  346. function() {
  347. dialog.style.display = "none";
  348. },
  349. false
  350. );
  351. }
  352. function init() {
  353. dialogBehavior();
  354. }
  355. init();
  356. </script>
  357. </html>