123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <link rel=icon type=image/png href="data:image/png;base64,iVBORw0KGgo=">
- <meta http-equiv="X-UA-Compatible" content="ie=edge" />
- <title>签到</title>
- <style>
- html,
- body {
- margin: 0 auto;
- padding: 0;
- max-width: 450px;
- font-size: 100px;
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
- }
- body {
- background: white;
- }
- .main_box {
- font-size: 0.15rem;
- position: relative;
- text-align: center;
- height: 100%;
- }
- .main_box img {
- width: 100%;
- }
- .top_info {
- position: absolute;
- top: 0;
- width: 100%;
- height: 310px;
- }
- .user_info {
- position: absolute;
- left: 5px;
- top: 5%;
- display: flex;
- text-align: left;
- color: white;
- }
- .user_info img {
- width: 50px;
- height: 50px;
- border-radius: 50px;
- border: 1.5px solid white;
- }
- .user_info .user_name {
- margin-left: 10px;
- line-height: 30px;
- }
- .user_info .user_name div:nth-child(1) {
- font-weight: bold;
- }
- .sign_info {
- width: 85%;
- position: absolute;
- left: 25px;
- top: 40%;
- text-align: left;
- color: white;
- }
- .sign_record {
- width: 100%;
- display: flex;
- justify-content: space-between;
- }
- .sign_list {
- position: absolute;
- left: 50%;
- transform: translate(-50%);
- top: 0.6rem;
- width: 100%;
- color: #333;
- line-height: 25px;
- display: flex;
- justify-content: space-between;
- font-size: 12px;
- margin-top: 15px;
- }
- .sign_day {
- text-align: center;
- position: relative;
- }
- .sign_day-wei {
- color: #999;
- }
- .sign_day div:nth-child(1) {
- margin-bottom: 5px;
- }
- .sign_day img {
- width: 20px;
- position: relative;
- z-index: 1000;
- }
- .sign_line {
- border-bottom: 4px #318cf5 solid;
- position: absolute;
- width: 100%;
- top: 48%;
- right: -25px;
- z-index: 10;
- margin-left: 5px;
- }
- .sign_line-wei {
- border-bottom: 4px #e5e5e5 solid;
- }
- .read_record {
- position: relative;
- margin-bottom: 0.15rem;
- }
- .read_record .title {
- text-align: left;
- font-weight: bold;
- margin-bottom: 10px;
- }
- .read_record .title span {
- border-left: 4px solid #318cf5;
- border-radius: 3px;
- margin-right: 10px;
- }
- .book_list {
- display: flex;
- justify-content: space-between;
- padding: 0 20px;
- }
- .book_box {
- line-height: 20px;
- }
- .book_box {
- font-size: 0.13rem;
- }
- .book_box div:nth-child(3) {
- color: #318cf5;
- }
- .book_box img {
- height: 130px;
- width: 100px;
- min-width: 100px;
- box-shadow: 0 0 0.16rem rgba(0, 0, 0, 0.1);
- border-radius: 2px;
- }
- .book_box-featured {
- padding: 0 20px;
- display: flex;
- text-decoration: none;
- margin-bottom: 15px;
- color: #333;
- }
- .book_info {
- margin-left: 10px;
- width: 100%;
- }
- .book_name {
- display: flex;
- justify-content: space-between;
- line-height: 25px;
- font-size: 16px;
- }
- .book_name span:nth-child(1) {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- width: 150px;
- }
- .book_name span:nth-child(2) {
- font-size: 14px;
- }
- .book_details {
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 3;
- overflow: hidden;
- width: 100%;
- line-height: 22px;
- color: #999;
- margin-top: 15px;
- text-align: left;
- }
- .book_category {
- margin-top: 15px;
- text-align: left;
- }
- .book_category span {
- white-space: nowrap;
- padding: 2px 5px;
- background-color: #fff0d5;
- color: #b3883d;
- border-radius: 50px;
- margin: 5px 0;
- }
- .dialog {
- position: fixed;
- top: 0;
- bottom: 0;
- left: 0;
- right: 0;
- background: rgba(0, 0, 0, 0.6);
- z-index: 9999;
- display: flex;
- }
- .dialog .dialog_close {
- position: absolute;
- bottom: 0%;
- left: 50%;
- transform: translate(-50%, 200%);
- width: 30px;
- }
- .hide {
- display: none;
- }
- .sign_record {
- color: white;
- text-decoration: none;
- }
- .dialog .fee {
- position: absolute;
- top: 39.5%;
- left: 50%;
- transform: translate(-50%);
- font-weight: bold;
- font-size: 0.2rem;
- color: #ffc018;
- }
- .dialog .dialog-content {
- margin:auto;
- width:80%;
- font-size:0;
- position: relative;
- }
- .dialog .click-area {
- position: absolute;
- left: 50%;
- bottom: 7%;
- transform: translate(-50%,0);
- width: 58%;
- height: 35px;
- }
- </style>
- </head>
- <body>
- <main class="main_box">
- <img src="https://cdn-novel.iycdm.com/h5/sign/sign_v3_top_banner.jpg" alt="" />
- <div class="top_info">
- <div class="user_info">
- @if($head_img)
- <img src="{{$head_img}}" alt=""/>
- @endif
- <div class="user_name">
- <div>{{$name}}</div>
- <div>持有书币:{{$balance}}</div>
- </div>
- </div>
- <div class="sign_info">
- <div class="sign_record">
- <span>已经连续签到 <span style="font-weight: bold;">{{$sign_count}}</span> 天</span>
- <span><a href="/record/sign" class="sign_record">签到记录></a></span>
- </div>
- <div class="sign_list">
- @foreach($fee_pool as $k=>$value)
- @if($k > 0)
- <div class="sign_day">
- <div>{{$k}}天</div>
- @if($day > $k)
- <img src="https://cdn-novel.iycdm.com/h5/sign/sign_v3_over.png" alt="" />
- @elseif($day == $k)
- <img src="https://cdn-novel.iycdm.com/h5/sign/sign_v3_doing.png" alt="" />
- @else
- <img src="https://cdn-novel.iycdm.com/h5/sign/sign_v3_undone.png" alt="" />
- @endif
- <div>{{$value}}书币</div>
- <!-- 连接线 -->
- @if($k != 7)
- @if($k >= $day)
- <div class="sign_line sign_line-wei"></div>
- @else
- <div class="sign_line"></div>
- @endif
- @endif
- </div>
- @endif
- @endforeach
- </div>
- </div>
- </div>
- <div class="read_record">
- <div class="title"><span></span>最近阅读</div>
- <div class="book_list">
- @foreach($read_record as $ks=>$item)
- @if($ks <2)
- <div class="book_box">
- <a href="{{$item['url']}}">
- <img src="{{$item['cover']}}" alt="" />
- </a>
- <div>{{$item['book_name']}}</div>
- @if($item['update_count'])
- <div>·更新{{$item['update_count']}}章</div>
- @endif
- </div>
- @endif
- @endforeach
- <div class="book_box">
- <a href="/recent"><img src="https://cdn-novel.iycdm.com/h5/sign/sign_v3_more.png" alt="" /></a>
- </div>
- </div>
- </div>
- <div class="read_record">
- <div class="title"><span></span>精选推荐</div>
- @foreach($recommend_book as $item_book)
- <a class="book_box book_box-featured" href="{{$item_book['url']}}">
- <img src="{{$item_book['cover']}}" alt=""/>
- <div class="book_info">
- <div class="book_name">
- <span>{{$item_book['book_name']}}</span><span>{{$item_book['category_name']}}</span>
- </div>
- <div class="book_details">
- {{$item_book['intro']}}
- </div>
- <div class="book_category">
- @if($item_book['tag_list'])
- @foreach($item_book['tag_list'] as $tag)
- <span>{{$tag}}</span>
- @endforeach
- @endif
- </div>
- </div>
- </a>
- @endforeach
- </div>
- <div class="dialog {{$is_alert? '':'hide'}}" >
- @if($bind_status)
- <div class="dialog-content">
- <img src="https://cdn-novel.iycdm.com/h5/sign/sign_v3_alert_v2.png" />
- <div class="fee">{{$fee}}</div>
- <a href="{{$bind_link}}" class="click-area"></a>
- <img src="https://cdn-novel.iycdm.com/h5/sign/sing_v3_close.png" class="dialog_close" />
- </div>
- @else
- <div class="dialog-content">
- <img src="https://cdn-novel.iycdm.com/h5/sign/sign_v3_alert.png" />
- <div class="fee" style="top:66.5%;color: white">获得<span style="color:#ffc018 ">{{$fee}}</span>书币</div>
- <img src="https://cdn-novel.iycdm.com/h5/sign/sing_v3_close.png" class="dialog_close" />
- </div>
- @endif
- </div>
- </main>
- </body>
- <script>
- var _hmt = _hmt || [];
- (function() {
- var hm = document.createElement("script");
- hm.src = "https://hm.baidu.com/hm.js?a027c0fdf2b6e70f1892dbd8227cbb2b";
- var s = document.getElementsByTagName("script")[0];
- s.parentNode.insertBefore(hm, s);
- })();
- </script>
- <script>
- var dialogClose = document.querySelector(".dialog_close");
- var dialog = document.querySelector(".dialog");
- function dialogBehavior() {
- dialogClose.addEventListener(
- "click",
- function() {
- dialog.style.display = "none";
- },
- false
- );
- }
- function init() {
- dialogBehavior();
- }
- init();
- </script>
- </html>
|