signV3.blade.php 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  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: 10px;
  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. width: 100px;
  137. box-shadow: 0 0 0.16rem rgba(0, 0, 0, 0.1);
  138. border-radius: 2px;
  139. height: 100%;
  140. }
  141. .book_box-featured {
  142. padding: 0 20px;
  143. display: flex;
  144. text-decoration:none;
  145. margin-bottom: 15px;
  146. color: #333;
  147. }
  148. .book_info {
  149. margin-left: 10px;
  150. }
  151. .book_name {
  152. display: flex;
  153. justify-content: space-between;
  154. line-height: 25px;
  155. font-size: 16px;
  156. }
  157. .book_name span:nth-child(2) {
  158. font-size: 14px;
  159. }
  160. .book_details {
  161. display: -webkit-box;
  162. -webkit-box-orient: vertical;
  163. -webkit-line-clamp: 3;
  164. overflow: hidden;
  165. width: 100%;
  166. line-height: 22px;
  167. color: #999;
  168. margin-top: 15px;
  169. }
  170. .book_category {
  171. margin-top: 15px;
  172. text-align: left;
  173. }
  174. .book_category span {
  175. white-space: nowrap;
  176. padding: 2px 5px;
  177. background-color: #fff0d5;
  178. color: #b3883d;
  179. border-radius: 50px;
  180. margin: 5px 0;
  181. }
  182. .dialog {
  183. position: fixed;
  184. top: 0;
  185. bottom: 0;
  186. left: 0;
  187. right: 0;
  188. background: rgba(0, 0, 0, 0.6);
  189. z-index: 9999;
  190. }
  191. .dialog .dialog_content {
  192. position: absolute;
  193. top: 25%;
  194. left: 50%;
  195. transform: translate(-50%);
  196. width: 80%;
  197. }
  198. .dialog .dialog_close {
  199. position: absolute;
  200. top: 60%;
  201. left: 50%;
  202. transform: translate(-50%);
  203. width: 30px;
  204. }
  205. .hide{
  206. display: none;
  207. }
  208. .sign_record{
  209. color: white;
  210. text-decoration: none;
  211. }
  212. </style>
  213. </head>
  214. <body>
  215. <main class="main_box">
  216. <img src="https://cdn-novel.iycdm.com/h5/sign/sign_v3_top_banner.jpg" alt="" />
  217. <div class="top_info">
  218. <div class="user_info">
  219. @if($head_img)
  220. <img src="{{$head_img}}" alt=""/>
  221. @endif
  222. <div class="user_name">
  223. <div>{{$name}}</div>
  224. <div>持有书币:{{$balance}}</div>
  225. </div>
  226. </div>
  227. <div class="sign_info">
  228. <div class="sign_record">
  229. <span>已经连续签到 <span style="font-weight: bold;">{{$sign_count}}</span> 天</span>
  230. <span><a href="/record/sign" class="sign_record">签到记录></a></span>
  231. </div>
  232. <div class="sign_list">
  233. @foreach($fee_pool as $k=>$value)
  234. @if($k > 0)
  235. <div class="sign_day">
  236. <div>{{$k}}天</div>
  237. @if($day > $k)
  238. <img src="https://cdn-novel.iycdm.com/h5/sign/sign_v3_over.png" alt="" />
  239. @elseif($day == $k)
  240. <img src="https://cdn-novel.iycdm.com/h5/sign/sign_v3_doing.png" alt="" />
  241. @else
  242. <img src="https://cdn-novel.iycdm.com/h5/sign/sign_v3_undone.png" alt="" />
  243. @endif
  244. <div>{{$value}}书币</div>
  245. <!-- 连接线 -->
  246. @if($k != 7)
  247. @if($k >= $day)
  248. <div class="sign_line sign_line-wei"></div>
  249. @else
  250. <div class="sign_line"></div>
  251. @endif
  252. @endif
  253. </div>
  254. @endif
  255. @endforeach
  256. </div>
  257. </div>
  258. </div>
  259. <div class="read_record">
  260. <div class="title"><span></span>最近阅读</div>
  261. <div class="book_list">
  262. @foreach($read_record as $ks=>$item)
  263. @if($ks <2)
  264. <div class="book_box">
  265. <a href="{{$item['url']}}">
  266. <img src="{{$item['cover']}}" alt="" />
  267. </a>
  268. <div>{{$item['book_name']}}</div>
  269. @if($item['update_count'])
  270. <div>·更新{{$item['update_count']}}章</div>
  271. @endif
  272. </div>
  273. @endif
  274. @endforeach
  275. <div class="book_box">
  276. <a href="/recent"><img src="https://cdn-novel.iycdm.com/h5/sign/sign_v3_more.png" alt="" /></a>
  277. </div>
  278. </div>
  279. </div>
  280. <div class="read_record">
  281. <div class="title"><span></span>精选推荐</div>
  282. @foreach($recommend_book as $item_book)
  283. <a class="book_box book_box-featured" href="{{$item_book['url']}}">
  284. <img src="{{$item_book['cover']}}" alt=""/>
  285. <div class="book_info">
  286. <div class="book_name">
  287. <span>{{$item_book['book_name']}}</span><span>{{$item_book['category_name']}}</span>
  288. </div>
  289. <div class="book_details">
  290. {{$item_book['intro']}}
  291. </div>
  292. <div class="book_category">
  293. @if($item_book['tag_list'])
  294. @foreach($item_book['tag_list'] as $tag)
  295. <span>{{$tag}}</span>
  296. @endforeach
  297. @endif
  298. </div>
  299. </div>
  300. </a>
  301. @endforeach
  302. </div>
  303. <div class="dialog {{$is_alert? '':'hide'}}" >
  304. <img src="https://cdn-novel.iycdm.com/h5/sign/sign_v3_alert.png" class="dialog_content" />
  305. <img src="https://cdn-novel.iycdm.com/h5/sign/sing_v3_close.png" class="dialog_close" />
  306. </div>
  307. </main>
  308. </body>
  309. <script>
  310. var _hmt = _hmt || [];
  311. (function() {
  312. var hm = document.createElement("script");
  313. hm.src = "https://hm.baidu.com/hm.js?a027c0fdf2b6e70f1892dbd8227cbb2b";
  314. var s = document.getElementsByTagName("script")[0];
  315. s.parentNode.insertBefore(hm, s);
  316. })();
  317. </script>
  318. <script>
  319. var dialogClose = document.querySelector(".dialog_close");
  320. var dialog = document.querySelector(".dialog");
  321. function dialogBehavior() {
  322. dialogClose.addEventListener(
  323. "click",
  324. function() {
  325. dialog.style.display = "none";
  326. },
  327. false
  328. );
  329. }
  330. function init() {
  331. dialogBehavior();
  332. }
  333. init();
  334. </script>
  335. </html>