signV3.blade.php 10.0 KB

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