signV3.blade.php 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  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
  217. src="{{$head_img}}"
  218. alt=""
  219. />
  220. @endif
  221. <div class="user_name">
  222. <div>{{$name}}</div>
  223. <div>持有书币:{{$balance}}</div>
  224. </div>
  225. </div>
  226. <div class="sign_info">
  227. <div class="sign_record">
  228. <span>已经连续签到 <span style="font-weight: bold;">{{$sign_count}}</span> 天</span>
  229. <span><a href="/record/sign" class="sign_record">签到记录></a></span>
  230. </div>
  231. <div class="sign_list">
  232. @foreach($fee_pool as $k=>$value)
  233. @if($k > 0)
  234. <div class="sign_day">
  235. <div>{{$k}}天</div>
  236. @if($day > $k)
  237. <img src="https://cdn-novel.iycdm.com/h5/sign/sign_v3_over.png" alt="" />
  238. @elseif($day == $k)
  239. <img src="https://cdn-novel.iycdm.com/h5/sign/sign_v3_doing.png" alt="" />
  240. @else
  241. <img src="https://cdn-novel.iycdm.com/h5/sign/sign_v3_undone.png" alt="" />
  242. @endif
  243. <div>{{$value}}书币</div>
  244. <!-- 连接线 -->
  245. @if($k != 7)
  246. @if($k >= $day)
  247. <div class="sign_line sign_line-wei"></div>
  248. @else
  249. <div class="sign_line"></div>
  250. @endif
  251. @endif
  252. </div>
  253. @endif
  254. @endforeach
  255. </div>
  256. </div>
  257. </div>
  258. <div class="read_record">
  259. <div class="title"><span></span>最近阅读</div>
  260. <div class="book_list">
  261. @foreach($read_record as $ks=>$item)
  262. @if($ks <2)
  263. <div class="book_box">
  264. <a href="{{$item['url']}}">
  265. <img src="{{$item['cover']}}" alt="" />
  266. </a>
  267. <div>{{$item['book_name']}}</div>
  268. @if($item['update_count'])
  269. <div>·更新{{$item['update_count']}}章</div>
  270. @endif
  271. </div>
  272. @endif
  273. @endforeach
  274. <div class="book_box">
  275. <a href="/recent"><img src="https://cdn-novel.iycdm.com/h5/sign/sign_v3_more.png" alt="" /></a>
  276. </div>
  277. </div>
  278. </div>
  279. <div class="read_record">
  280. <div class="title"><span></span>精选推荐</div>
  281. <div class="book_box book_box-featured">
  282. <img
  283. src="https://cdn-novel.iycdm.com/book/cover/201901221445344027.jpeg?x-oss-process=image/resize,w_200/format,jpg"
  284. alt=""
  285. />
  286. <div class="book_info">
  287. <div class="book_name">
  288. <span>何以笙箫默</span><span>霸道总裁</span>
  289. </div>
  290. <div class="book_details">
  291. 有人说,七年是一个轮回。  舞轻尘用七年时光,自以为修成正果,终于嫁给心爱男人,却不料,新婚夜,他将她狠狠踏入尘埃。  七年后,她携滔天恨意归来,一步一个血印,他的万里江山,他的如花美眷,她要一样样给他揉碎了!
  292. </div>
  293. <div class="book_category">
  294. <span>先混厚爱</span>
  295. <span>死去活来</span>
  296. <span>死去活来</span>
  297. </div>
  298. </div>
  299. </div>
  300. </div>
  301. <div class="dialog {{$is_alert? '':'hide'}}" >
  302. <img src="https://cdn-novel.iycdm.com/h5/sign/sign_v3_alert.png" class="dialog_content" />
  303. <img src="https://cdn-novel.iycdm.com/h5/sign/sing_v3_close.png" class="dialog_close" />
  304. </div>
  305. </main>
  306. </body>
  307. <script>
  308. var dialogClose = document.querySelector(".dialog_close");
  309. var dialog = document.querySelector(".dialog");
  310. function dialogBehavior() {
  311. dialogClose.addEventListener(
  312. "click",
  313. function() {
  314. dialog.style.display = "none";
  315. },
  316. false
  317. );
  318. }
  319. function init() {
  320. dialogBehavior();
  321. }
  322. init();
  323. </script>
  324. </html>