123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>{{empty($dream->user) ? '' : $dream->user->nickname}}的梦想</title>
- <script src="/base/js/jquery-2.1.1.min.js"></script>
- <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
- <style>
- body{
- padding: 0;
- margin: 0;
- }
- p{
- -webkit-margin-before: 0.1em;
- -webkit-margin-after: 0.1em;
- }
- </style>
- </head>
- <body style="overflow-x: hidden">
- <div style="height: 50px">
- <a href="https://fir.im/jt4h">
- <div style="float: left;color: #666;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>
- <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>
- {{--判断显示--}}
- @if( $dream->user_id == $user_id)
- <div style="float:right;">
- <p style="text-align: right">{{$dream->mark}}</p>
- <p style="font-size: 13px;; color: #919191">当前获得梦想分数</p>
- </div>
- @endif
- </div>
- <div style="clear:both; height: 50px; padding: 5px 10px;">
- <div style="text-align: left">
- <p style="text-align: right">{{$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>
- </body>
- </html>
- <script>
- $(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');
- });
- });
- </script>
|