123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>{{empty($dream->user) ? '' : $dream->user->nickname}}的梦想</title>
- <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
- <link rel="stylesheet" href="/base/share/jquery-weui.min.css">
- <script src="/base/share/fastclick.js"></script>
- <script src="/base/share/swiper.min.js"></script>
- <script>
- $(function() {
- FastClick.attach(document.body);
- });
- </script>
- <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
- <style>
- .addhidden{
- display: none;
- }
- body{
- padding: 0;
- margin: 0;
- }
- p{
- -webkit-margin-before: 0.1em;
- -webkit-margin-after: 0.1em;
- }
- #tab-title h3{color:#7C7C7C;font-size:15px;font-weight:400;}
- #tab-title .selected{color:#00c3da;} /*标题被选中时的样式*/
- #tab-title span{width: 33%; display: inline-block; text-align: center; height: 40px; line-height: 40px}
- #tab-content .hide{display:none;}
- #tab-content ul{overflow:hidden;}
- .row {
- display: -webkit-box;
- display: -webkit-flex;
- display: -moz-box;
- display: -moz-flex;
- display: -ms-flexbox;
- display: flex;
- padding: 5px;
- width: 100%; }
- .col {
- -webkit-box-flex: 1;
- -webkit-flex: 1;
- -moz-box-flex: 1;
- -moz-flex: 1;
- -ms-flex: 1;
- flex: 1;
- display: block;
- padding: 5px;
- width: 100%; }
- .tab-content .hide{
- display: none;
- }
- .selected {
- color: #00c3da;
- border-bottom: 1px solid #00c3da;
- }
- .detail-head {
- text-align:center;
- background: #F3F3F3;
- }
- .head{
- width:40px;
- border-radius:100%;
- margin:5px;
- }
- .detail-head {
- text-align:center;
- background: #F3F3F3;
- }
- .detail-head img{
- width:80px;
- border-radius:100%;
- margin-top: 5px;
- }
- .item {
- border: 0px solid #ddd;
- background-color: #fff;
- color: #444;
- position: relative;
- z-index: 2;
- display: block;
- margin: -1px;
- padding: 16px;
- font-size: 16px; }
- .hdcontent {
- padding-top:8px;
- }
- .hdcontent .item {
- padding:0;
- }
- .hdcontent .head{
- width:40px;
- border-radius:100%;
- margin:5px;
- }
- .hdcontent .slt {
- width:31%;
- /*max-height:95px;*/
- float:left;
- /*border: 1px solid #B5B5B5;*/
- margin:5px 5px 5px 0;
- }
- .hdcontent .utitle {
- position:relative;
- top: -28px;
- }
- .hdcontent .kz{
- float: right;
- top: 10px;
- margin-right: 10px;
- color:#999999;
- }
- .hdcontent .subtile {
- white-space:normal;
- padding-left:53px;
- top:-23px;
- position:relative;
- }
- .hdcontent .picts {
- padding-left:53px;
- margin-top:-20px;
- }
- .hdcontent .subitem img {
- width:40px;
- border-radius:100%;
- margin:5px;
- }
- .hdcontent .subitem span{
- position:relative;
- top: -23px;
- }
- .hdcontent .subitem div{
- color: #666666;
- }
- .hdcontent .subitem span:nth-child(3){
- color:#999999;
- top: 12px;
- float: right;
- }
- .hdcontent .subitem div {
- margin-left:50px;
- padding-bottom: 10px;
- top:-15px;
- border-bottom: 1px solid #E6E6E6;
- position:relative;
- }
- .top2{
- margin-top: 13.5px;
- text-align: center;
- float:left;
- height: 97px;
- width: 97px;
- color: #6B6B6B;
- font-size: 14px;
- }
- .top1{
- text-align: center;
- float:left;
- height: 111px;
- width: 111px;
- color: #6B6B6B;
- font-size: 14px;
- }
- .detail-head {
- text-align:center;
- background: #F3F3F3;
- }
- .detail-head img{
- width:80px;
- border-radius:100%;
- margin-top: 5px;
- }
- .detail-like {
- position:absolute;
- width:100%;
- bottom:0;
- z-index:888;
- font-size:1.2rem;
- }
- .detail-like .box {
- border:2px solid #EAEAEA;
- background: #fff;
- min-height: 55px;
- padding: 5px 2%;
- margin:2%;
- border-radius: 20px;
- text-align:center;
- }
- .detail-like .selected{
- border:2px solid #00C3DA;
- }
- .detail-like .coin {
- background-color:#fff;
- }
- .detail-like .send {
- font-size:1.2rem;
- height: 3rem;
- line-height: 3rem;
- padding: 0 1rem;
- background-color:#fff;
- }
- .detail-like .send div{
- color: #929292;
- }
- .detail-like .send img{
- width: 30px;
- height: 20px;
- top: 5px;
- }
- .detail-like .send span em{
- color: #00C3DA;
- }
- .detail-like .row{
- padding: 0;
- height: 70px;
- color: #898989;
- background: #E6E6E6;
- }
- .detail-like .col{
- text-align: center;
- padding: 5px 0 0 0;
- }
- .detail-like .col img{
- height: 35px;
- width: 35px;
- }
- .addcontent .item{
- border:0;
- }
- .addcontent .itemjs{
- padding-top:0;
- margin-top:-6px;
- }
- .col-20 {
- -webkit-box-flex: 0;
- -webkit-flex: 0 0 20%;
- -moz-box-flex: 0;
- -moz-flex: 0 0 20%;
- -ms-flex: 0 0 20%;
- flex: 0 0 20%;
- max-width: 20%; }
- .col-80 {
- -webkit-box-flex: 0;
- -webkit-flex: 0 0 80%;
- -moz-box-flex: 0;
- -moz-flex: 0 0 80%;
- -ms-flex: 0 0 80%;
- flex: 0 0 80%;
- max-width: 80%; }
- .col-60 {
- -webkit-box-flex: 0;
- -webkit-flex: 0 0 60%;
- -moz-box-flex: 0;
- -moz-flex: 0 0 60%;
- -ms-flex: 0 0 60%;
- flex: 0 0 60%;
- max-width: 60%; }
- .col-offset-20 {
- margin-left: 20%; }
- .detail-head {
- text-align:center;
- background: #F3F3F3;
- }
- </style>
- </head>
- <body>
- <div style="height: 50px">
- <a href=" " style="height: 50px; background: #00c3da; position: fixed; z-index: 99; width: 100%">
- <div style="float: left;color: #fff;line-height: 50px;padding-left: 5px">支持({{empty($dream->user) ? '' : $dream->user->nickname}})的梦想!现在就下载瞄喵</div>
- <div style="float: right;padding: 5px">
- <img style="width: 40px;height: 40px;" src="http://firicon.fir.im/396004d5e7b572efbefdfee976338331a457282b" alt="">
- </div>
- </a>
- </div>
- <div style="overflow-x: hidden" id="sidebar-tab">
- <div id="tab-title">
- <h3><span class="selected">主页</span><span>互动</span><span>排行榜</span></h3>
- </div>
- <div id="tab-content">
- <div style="margin-bottom: 10px">
- <div class="swiper-container" data-space-between='10' data-pagination='.swiper-pagination' data-autoplay="1000">
- <div class="swiper-wrapper">
- @if($dream['video'])
- <div class="swiper-slide" style="width: 320px;height: 200px;">
- {{--poster="{{$dream->poster}}"--}}
- <video poster="{{env('APP_URL').'/upload/vpic/'.$dream->dream_md5.'.jpg'}}" style="width: 100%;height:200px;" src="{{(mb_substr( $dream['video'], 0, 4 )=='http') ? $dream['video']:env('APP_URL').'/attachment/'.$dream['video']}}" controls >
- </video>
- </div>
- @endif
- @foreach($dream->imgs as $banner)
- <div class="swiper-slide" style="width: 320px;height: 200px;"><img src="{{$banner->pic}}" style="width: 100%;height: 100%;" alt=""></div>
- @endforeach
- </div>
- </div>
- {{--<img style="width: 100%; height: 100%;" src="{{!empty($dream->img) ? $dream->img->pic : ''}}">--}}
- <p style="font-size: 17px; padding: 0 10px">{{$dream->name}}</p>
- <div style="border-bottom: 1px solid #DEDEDE">
- <p id="about" style="font-size: 13px; padding: 0 10px; color: #919191;white-space: nowrap;overflow:hidden;text-overflow:ellipsis">
- {{$dream->about}}
- </p>
- <p style="text-align: center">
- <img src="/base/img/down.svg" alt="" id="down">
- <img src="/base/img/up.svg" alt="" id="up">
- </p>
- </div>
- <div style="border-bottom: 1px solid #DEDEDE; height: 50px; padding: 5px 10px;">
- <div style="float:left;">
- <p>{{$days}}</p>
- <p style="font-size: 13px; color: #919191">剩余时间</p>
- </div>
- <div style="float:right;">
- <p style="text-align: right">{{$dream->mark}}</p>
- <p style="font-size: 13px;; color: #919191">当前获得梦想分数</p>
- </div>
- </div>
- <div style="clear:both; height: 50px; padding: 5px 10px;">
- <div style="text-align: left; float:left;">
- <p style="">{{$dream->coin}}</p>
- <p style="font-size: 13px; color: #919191">我要求的梦想币</p>
- </div>
- @if( $dream->user_id == $user_id)
- <div style="text-align: right;float: right">
- <p style="color: #FF6600">{{$dream->get_coin}}</p>
- <p style="font-size: 13px; color: #919191">目前已获梦想币</p>
- </div>
- @endif
- </div>
- <div style="padding: 0 10px 20px 10px">
- <div style="background-color:#E6E6E6; width: 100%;">
- <div style="width: {{($dream->get_coin / $dream->coin)*100}}%; background: #FF6600; height: 5px">
- </div>
- </div>
- </div>
- @if(count($dream->top3user)>0)
- <div class="detail-head" style="height: 130px" >
- @if(count($dream->top3user)<3)
- <div class="row">
- @if(count($dream->top3user)>0)
- <div class="col top1" style="background: url('/base/img/img_No1.svg') no-repeat; background-size: 100% 100%;">
- <img style="width: 80px; height: 80px; margin: 28px 0 8px 0; border-radius: 100%; background: #C6D3E2;" src="{{$dream['top3user'][0]['avatar']}}" /><br>
- </div>
- @endif
- @if(count($dream->top3user)>1)
- <div class="col top2" style="margin-top: 10px; background: url('/base/img/img_No2.svg') no-repeat; background-size: 100% 100%;">
- <img style="width: 70px; margin: 24px 0 8px 0; border-radius: 100%; background: #C6D3E2;" src="{{$dream['top3user'][1]['avatar']}}" /><br>
- </div>
- @endif
- </div>
- @endif
- @if(count($dream->top3user)>2)
- <div class="row">
- @if(count($dream->top3user)>1)
- <div class="col top2" style="margin-top: 10px; background: url('/base/img/img_No2.svg') no-repeat; background-size: 100% 100%;">
- <img style="width: 70px; margin: 24px 0 8px 0; border-radius: 100%; background: #C6D3E2;"src="{{$dream['top3user'][1]['avatar']}}" /><br>
- </div>
- @endif
- @if(count($dream->top3user)>0)
- <div class="col top1" style="background: url('/base/img/img_No1.svg') no-repeat; background-size: 100% 100%;">
- <img style="width: 80px; height: 80px; margin: 28px 0 8px 0; border-radius: 100%; background: #C6D3E2;" src="{{$dream['top3user'][0]['avatar']}}" /><br>
- </div>
- @endif
- @if(count($dream->top3user)>2)
- <div class="col top2" style="margin-top: 10px; background: url('/base/img/img_No3.svg') no-repeat; background-size: 100% 100%;">
- <img style="width: 70px; margin: 24px 0 8px 0; border-radius: 100%; background: #C6D3E2;"src="{{$dream['top3user'][2]['avatar']}}" /><br>
- </div>
- @endif
- </div>
- @endif
- </div>
- @endif
- @if(count($dream->top3user)==0)
- <div style="background: #f6f6f6;">
- <div class="row" >
- <div class="col" align="center">
- <img src="/base/img/pic_leaves.png">
- </div>
- </div>
- </div>
- @endif
- </div>
- <div class="hide">
- @foreach($dream->interactions as $key=> $interaction)
- <div class="hdcontent" >
- <div>
- <img class="head" src="{{$dream->user->avatar}}"/>
- <span class="utitle">{{$dream->user->nickname}}</span>
- <span class="utitle kz">{{$dream->created_at}}</span>
- <p class="subtile" style="white-space:normal; color: #666666">{{$interaction['title']}}</p>
- <div class="picts item">
- @if($interaction['pic1'])
- <img class="slt" src="{{$interaction['pic1']}}" />
- @endif
- @if($interaction['pic2'])
- <img class="slt" src="{{$interaction['pic2']}}" />
- @endif @if($interaction['pic3'])
- <img class="slt" src="{{$interaction['pic3']}}" />
- @endif @if($interaction['pic4'])
- <img class="slt" src="{{$interaction['pic4']}}" />
- @endif @if($interaction['pic5'])
- <img class="slt" src="{{$interaction['pic5']}}" />
- @endif @if($interaction['pic6'])
- <img class="slt" src="{{$interaction['pic6']}}" />
- @endif @if($interaction['pic7'])
- <img class="slt" src="{{$interaction['pic7']}}" />
- @endif @if($interaction['pic8'])
- <img class="slt" src="{{$interaction['pic8']}}" />
- @endif @if($interaction['pic9'])
- <img class="slt" src="{{$interaction['pic9']}}" />
- @endif
- </div>
- @if($interaction['video'])
- <div class="box banner" >
- {{--<video src="{{ $interaction['video'] }}" width="100%" style="max-height: 400px;" class="centerme" controls="controls"></video>--}}
- <video width="100%" poster="{{env('APP_URL').'/upload/vpic/'.$interaction->interaction_md5.'.jpg'}}" style="max-height: 400px;" class="centerme" src="{{(mb_substr( $interaction['video'], 0, 4 )=='http') ? $interaction['video']:env('APP_URL').'/attachment/'.$interaction['video']}}" controls >
- </video>
- </div>
- @endif
- </div>
- <div style="clear:both;"></div>
- <div class="list" id="list{{$key}}">
- @foreach($interaction->comments as $k => $val)
- <div class="@if($k>4) addhidden max4 @endif " >
- <div class="row">
- <div class="col-20" style="text-align: right">
- <img class="head" src="{{$val['user_avatar']}}" />
- </div>
- <div class="col-80" style="border-bottom: 1px solid #E6E6E6">
- <span style="margin-top: 10px; display: inline-block;font-size: 12px">{{$val['user_nickname']}}</span>
- <span style="font-size: 12px" class="utitle kz">{{$val['updated_at']}}</span>
- <p style="white-space:normal; color: #666666;font-size: 12px">
- {{$val['content']}}
- </p>
- </div>
- </div>
- </div>
- @endforeach
- @if(count($interaction->comments)>4)
- <div class="row showmore" key="{{$key}}">
- <div style="text-align: right; width: 92%" >
- <p style="color: #00C3DA; margin-top: 10px; margin-bottom: 10px;text-align: right"> 查看更多评论</p>
- </div>
- </div>
- <div class="row closemore" style="display: none" key="{{$key}}">
- <div style="text-align: right; width: 92%">
- <p style="color: #00C3DA; margin-top: 10px; margin-bottom: 10px;text-align: right"> 只看最近评论</p>
- </div>
- </div>
- @endif
- </div>
- </div>
- @endforeach
- </div>
- <div class="hide">
- @if(count($dream->top3user)>0)
- <div class="detail-head" style="height: 180px">
- @if(count($dream->top3user)<=2)
- <div class="row">
- @if(count($dream->top3user)>0)
- <div class="col top1" style="background: url('/base/img/img_No1.svg') no-repeat; background-size: 100% 100%;">
- <img style="width: 80px; height: 80px; margin: 28px 0 8px 0; border-radius: 100%; background: #C6D3E2;" src="{{$dream['top3user'][0]['avatar']}}" /><br>
- {{ $dream['top3user'][0]['nickname'] }}<br>
- <img src="/base/img/icon_gongxian.svg" style="height: 18px; width: 18px; margin-top: 5px" />
- <span style="font-size: 15px;">{{ $dream['top3user'][0]['score'] }}</span>
- </div>
- @endif
- @if(count($dream->top3user)>1)
- <div class="col top2" style="background: url('/base/img/img_No2.svg') no-repeat; background-size: 100% 100%;">
- <img style="width: 70px; margin: 24px 0 6px 0; border-radius: 100%; background: #C6D3E2;" src="{{ $dream['top3user'][1]['avatar'] }}" /><br>
- {{ $dream['top3user'][1]['nickname'] }}<br>
- <img src="/base/img/icon_gongxian.svg" style="height: 18px; width: 18px; margin-top: 5px" />
- <span style="font-size: 15px;">{{ $dream['top3user'][1]['score'] }}</span>
- </div>
- @endif
- </div>
- @elseif(count($dream->top3user)>2)
- <div class="row">
- @if(count($dream->top3user)>1)
- <div class="col top2" style="background: url('/base/img/img_No2.svg') no-repeat; background-size: 100% 100%; margin-top: 10px">
- <img style="width: 70px; margin: 24px 0 8px 0; border-radius: 100%; background: #C6D3E2;" src="{{ $dream['top3user'][1]['avatar'] }}" /><br>
- {{ $dream['top3user'][1]['nickname'] }}<br>
- <img src="/base/img/icon_gongxian.svg" style="height: 18px; width: 18px; margin-top: 5px" />
- <span style="font-size: 16px">{{ $dream['top3user'][1]['score'] }}</span>
- </div>
- @endif
- @if(count($dream->top3user)>0)
- <div class="col top1" style="background: url('/base/img/img_No1.svg') no-repeat; background-size: 100% 100%;">
- <img style="width: 80px; height: 80px; margin: 28px 0 8px 0; border-radius: 100%; background: #C6D3E2;" src="{{ $dream['top3user'][0]['avatar'] }}" /><br>
- {{ $dream['top3user'][0]['nickname'] }}<br>
- <img src="/base/img/icon_gongxian.svg" style="height: 18px; width: 18px; margin-top: 5px" />
- <span style="font-size: 16px">{{ $dream['top3user'][0]['score'] }}</span>
- </div>
- @endif
- @if(count($dream->top3user)>2)
- <div class="col top2" style="background: url('/base/img/img_No3.svg') no-repeat; background-size: 100% 100%; margin-top: 10px">
- <img style="width: 70px; margin: 24px 0 8px 0; border-radius: 100%; background: #C6D3E2;" src="{{ $dream['top3user'][2]['avatar'] }}" /><br>
- {{ $dream['top3user'][2]['nickname'] }}<br>
- <img src="/base/img/icon_gongxian.svg" style="height: 18px; width: 18px; margin-top: 5px" />
- <span style="font-size: 16px">{{ $dream['top3user'][2]['score'] }}</span>
- </div>
- @endif
- </div>
- @endif
- </div>
- @endif
- @if(count($dream->top3user)==0)
- <div style="background: #f6f6f6;">
- <div class="row" >
- <div class="col" align="center">
- <img src="/base/img/pic_leaves.png">
- </div>
- </div>
- <div class="row">
- <div class="col" style="text-align: center; color: #191919">孤独的我还被支持呢。。。亲,帮个忙?</div>
- </div>
- </div>
- @endif
- <div class="list padding">
- @foreach($dream->topuser as $key => $user)
- @if($key>2)
- <div class="item" style="border-bottom: 1px solid #DFDFDF">
- <div style="float:left; color: #808080; font-size: 30px; font-weight: bold; margin-top: 0px">
- {{$key+1}}
- </div>
- <div style="padding-left:20px; float:left;">
- <div style="float:left;">
- <img style="width:40px;border-radius:100%" src="{{$user['avatar']}}" />
- </div>
- <div style="float:left; margin-left: 10px">
- <div style="font-size: 16px">{{$user['nickname']}}</div>
- <div style="color:#9E9E9E;">{{$user['signture']}}</div>
- </div>
- </div>
- <div style="float: right;">
- <div style="font-weight:500; font-size: 18px">{{$user['score']}}</div>
- <div style="color:#9E9E9E;">贡献</div>
- </div>
- <div style="clear: both"></div>
- </div>
- @endif
- @endforeach
- </div>
- </div>
- </div>
- </div>
- <script>
- $('#tab-title span').click(function(){
- $(this).addClass("selected").siblings().removeClass();
- $("#tab-content > div").hide().eq($('#tab-title span').index(this)).show();
- });
- $(function () {
- $('#up').hide();
- var str = $('#about').html();
- new_str = str.replace(/\n/g,"<br/>");
- $('#about').html(new_str);
- $('#up').click(function () {
- $(this).hide();
- $('#down').show();
- $('#about').css('white-space','nowrap');
- });
- $('#down').click(function () {
- $(this).hide();
- $('#up').show();
- $('#about').css('white-space','normal');
- });
- $('.showmore').click(function () {
- var key = ($(this).attr('key'));
- var div = '#list'+key + ' div' ;
- if ($(div).hasClass('addhidden')) {
- $(div).removeClass('addhidden');
- $(this).next().show();
- $(this).hide();
- }
- });
- $('.closemore').click(function () {
- var key = ($(this).attr('key'));
- var div = '#list'+key + ' div' ;
- var max4 = '#list'+key + ' .max4';
- if ($(div).hasClass('max4')) {
- $(max4).addClass('addhidden');
- $(this).prev().show();
- $(this).hide();
- }
- });
- });
- </script>
- <script>
- $(".swiper-container").swiper({
- loop: true,
- autoplay:3000
- });
- </script>
- </body>
- </html>
|