share1.blade.php 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>{{empty($dream->user) ? '' : $dream->user->nickname}}的梦想</title>
  6. <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
  7. <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
  8. <style>
  9. body{
  10. padding: 0;
  11. margin: 0;
  12. }
  13. p{
  14. -webkit-margin-before: 0.1em;
  15. -webkit-margin-after: 0.1em;
  16. }
  17. #tab-title h3{color:#7C7C7C;font-size:15px;font-weight:400;}
  18. #tab-title .selected{color:#00c3da;} /*标题被选中时的样式*/
  19. #tab-title span{width: 33%; display: inline-block; text-align: center; height: 40px; line-height: 40px}
  20. #tab-content .hide{display:none;}
  21. #tab-content ul{overflow:hidden;}
  22. .row {
  23. display: -webkit-box;
  24. display: -webkit-flex;
  25. display: -moz-box;
  26. display: -moz-flex;
  27. display: -ms-flexbox;
  28. display: flex;
  29. padding: 5px;
  30. width: 100%; }
  31. .col {
  32. -webkit-box-flex: 1;
  33. -webkit-flex: 1;
  34. -moz-box-flex: 1;
  35. -moz-flex: 1;
  36. -ms-flex: 1;
  37. flex: 1;
  38. display: block;
  39. padding: 5px;
  40. width: 100%; }
  41. .tab-content .hide{
  42. display: none;
  43. }
  44. .selected {
  45. color: #00c3da;
  46. border-bottom: 1px solid #00c3da;
  47. }
  48. .detail-head {
  49. text-align:center;
  50. background: #F3F3F3;
  51. }
  52. .head{
  53. width:40px;
  54. border-radius:100%;
  55. margin:5px;
  56. }
  57. .detail-head {
  58. text-align:center;
  59. background: #F3F3F3;
  60. }
  61. .detail-head img{
  62. width:80px;
  63. border-radius:100%;
  64. margin-top: 5px;
  65. }
  66. .item {
  67. border: 0px solid #ddd;
  68. background-color: #fff;
  69. color: #444;
  70. position: relative;
  71. z-index: 2;
  72. display: block;
  73. margin: -1px;
  74. padding: 16px;
  75. font-size: 16px; }
  76. .hdcontent {
  77. padding-top:49px;
  78. }
  79. .hdcontent .item {
  80. padding:0;
  81. }
  82. .hdcontent .head{
  83. width:40px;
  84. border-radius:100%;
  85. margin:5px;
  86. }
  87. .hdcontent .slt {
  88. width:31%;
  89. /*max-height:95px;*/
  90. float:left;
  91. /*border: 1px solid #B5B5B5;*/
  92. margin:5px 5px 5px 0;
  93. }
  94. .hdcontent .utitle {
  95. position:relative;
  96. top: -28px;
  97. }
  98. .hdcontent .kz{
  99. float: right;
  100. top: 10px;
  101. margin-right: 10px;
  102. color:#999999;
  103. }
  104. .hdcontent .subtile {
  105. white-space:normal;
  106. padding-left:53px;
  107. top:-23px;
  108. position:relative;
  109. }
  110. .hdcontent .picts {
  111. padding-left:53px;
  112. margin-top:-20px;
  113. }
  114. .hdcontent .subitem img {
  115. width:40px;
  116. border-radius:100%;
  117. margin:5px;
  118. }
  119. .hdcontent .subitem span{
  120. position:relative;
  121. top: -23px;
  122. }
  123. .hdcontent .subitem div{
  124. color: #666666;
  125. }
  126. .hdcontent .subitem span:nth-child(3){
  127. color:#999999;
  128. top: 12px;
  129. float: right;
  130. }
  131. .hdcontent .subitem div {
  132. margin-left:50px;
  133. padding-bottom: 10px;
  134. top:-15px;
  135. border-bottom: 1px solid #E6E6E6;
  136. position:relative;
  137. }
  138. .top2{
  139. margin-top: 13.5px;
  140. text-align: center;
  141. float:left;
  142. height: 97px;
  143. width: 97px;
  144. color: #6B6B6B;
  145. font-size: 14px;
  146. }
  147. .top1{
  148. text-align: center;
  149. float:left;
  150. height: 111px;
  151. width: 111px;
  152. color: #6B6B6B;
  153. font-size: 14px;
  154. }
  155. .detail-head {
  156. text-align:center;
  157. background: #F3F3F3;
  158. }
  159. .detail-head img{
  160. width:80px;
  161. border-radius:100%;
  162. margin-top: 5px;
  163. }
  164. .detail-like {
  165. position:absolute;
  166. width:100%;
  167. bottom:0;
  168. z-index:888;
  169. font-size:1.2rem;
  170. }
  171. .detail-like .box {
  172. border:2px solid #EAEAEA;
  173. background: #fff;
  174. min-height: 55px;
  175. padding: 5px 2%;
  176. margin:2%;
  177. border-radius: 20px;
  178. text-align:center;
  179. }
  180. .detail-like .selected{
  181. border:2px solid #00C3DA;
  182. }
  183. .detail-like .coin {
  184. background-color:#fff;
  185. }
  186. .detail-like .send {
  187. font-size:1.2rem;
  188. height: 3rem;
  189. line-height: 3rem;
  190. padding: 0 1rem;
  191. background-color:#fff;
  192. }
  193. .detail-like .send div{
  194. color: #929292;
  195. }
  196. .detail-like .send img{
  197. width: 30px;
  198. height: 20px;
  199. top: 5px;
  200. }
  201. .detail-like .send span em{
  202. color: #00C3DA;
  203. }
  204. .detail-like .row{
  205. padding: 0;
  206. height: 70px;
  207. color: #898989;
  208. background: #E6E6E6;
  209. }
  210. .detail-like .col{
  211. text-align: center;
  212. padding: 5px 0 0 0;
  213. }
  214. .detail-like .col img{
  215. height: 35px;
  216. width: 35px;
  217. }
  218. .addcontent .item{
  219. border:0;
  220. }
  221. .addcontent .itemjs{
  222. padding-top:0;
  223. margin-top:-6px;
  224. }
  225. .col-20 {
  226. -webkit-box-flex: 0;
  227. -webkit-flex: 0 0 20%;
  228. -moz-box-flex: 0;
  229. -moz-flex: 0 0 20%;
  230. -ms-flex: 0 0 20%;
  231. flex: 0 0 20%;
  232. max-width: 20%; }
  233. .col-80 {
  234. -webkit-box-flex: 0;
  235. -webkit-flex: 0 0 80%;
  236. -moz-box-flex: 0;
  237. -moz-flex: 0 0 80%;
  238. -ms-flex: 0 0 80%;
  239. flex: 0 0 80%;
  240. max-width: 80%; }
  241. .col-60 {
  242. -webkit-box-flex: 0;
  243. -webkit-flex: 0 0 60%;
  244. -moz-box-flex: 0;
  245. -moz-flex: 0 0 60%;
  246. -ms-flex: 0 0 60%;
  247. flex: 0 0 60%;
  248. max-width: 60%; }
  249. .col-offset-20 {
  250. margin-left: 20%; }
  251. .detail-head {
  252. text-align:center;
  253. background: #F3F3F3;
  254. }
  255. </style>
  256. </head>
  257. <body style="overflow-x: hidden">
  258. <div style="height: 50px">
  259. <a href="https://fir.im/jt4h" style="height: 50px; background: #00c3da; position: fixed; z-index: 99; width: 100%">
  260. <div style="float: left;color: #fff;line-height: 50px;padding-left: 5px">支持({{empty($dream->user) ? '' : $dream->user->nickname}})的梦想!现在就下载喵喵</div>
  261. <div style="float: right;padding: 5px">
  262. <img style="width: 40px;height: 40px;" src="http://firicon.fir.im/396004d5e7b572efbefdfee976338331a457282b" alt="">
  263. </div>
  264. </a>
  265. </div>
  266. <div id="sidebar-tab">
  267. <div id="tab-title">
  268. <h3><span class="selected">主页</span><span>互动</span><span>排行榜</span></h3>
  269. </div>
  270. <div id="tab-content">
  271. <div style="margin-bottom: 10px">
  272. <img style="width: 100%; height: 100%;" src="{{!empty($dream->img) ? $dream->img->pic : ''}}">
  273. <p style="font-size: 17px; padding: 0 10px">{{$dream->name}}</p>
  274. <div style="border-bottom: 1px solid #DEDEDE">
  275. <p id="about" style="font-size: 13px; padding: 0 10px; color: #919191;white-space: nowrap;overflow:hidden;text-overflow:ellipsis">
  276. {{$dream->about}}
  277. </p>
  278. <p style="text-align: center">
  279. <img src="/base/img/down.svg" alt="" id="down">
  280. <img src="/base/img/up.svg" alt="" id="up">
  281. </p>
  282. </div>
  283. <div style="border-bottom: 1px solid #DEDEDE; height: 50px; padding: 5px 10px;">
  284. <div style="float:left;">
  285. <p>{{$days}}</p>
  286. <p style="font-size: 13px; color: #919191">剩余时间</p>
  287. </div>
  288. <div style="float:right;">
  289. <p style="text-align: right">{{$dream->mark}}</p>
  290. <p style="font-size: 13px;; color: #919191">当前获得梦想分数</p>
  291. </div>
  292. </div>
  293. <div style="clear:both; height: 50px; padding: 5px 10px;">
  294. <div style="text-align: left; float:left;">
  295. <p style="">{{$dream->coin}}</p>
  296. <p style="font-size: 13px; color: #919191">我要求的梦想币</p>
  297. </div>
  298. @if( $dream->user_id == $user_id)
  299. <div style="text-align: right;float: right">
  300. <p style="color: #FF6600">{{$dream->get_coin}}</p>
  301. <p style="font-size: 13px; color: #919191">目前已获梦想币</p>
  302. </div>
  303. @endif
  304. </div>
  305. <div style="padding: 0 10px 20px 10px">
  306. <div style="background-color:#E6E6E6; width: 100%;">
  307. <div style="width: {{($dream->get_coin / $dream->coin)*100}}%; background: #FF6600; height: 5px">
  308. </div>
  309. </div>
  310. </div>
  311. @if(count($dream->top3user)>0)
  312. <div class="detail-head" style="height: 130px" >
  313. @if(count($dream->top3user)<3)
  314. <div class="row">
  315. @if(count($dream->top3user)>0)
  316. <div class="col top1" style="background: url('/base/img/img_No1.svg') no-repeat; background-size: 100% 100%;">
  317. <img style="width: 80px; height: 80px; margin: 28px 0 8px 0; border-radius: 100%; background: #C6D3E2;" src="{{$dream['top3user'][0]['avatar']}}" /><br>
  318. </div>
  319. @endif
  320. @if(count($dream->top3user)>1)
  321. <div class="col top2" style="margin-top: 10px; background: url('/base/img/img_No2.svg') no-repeat; background-size: 100% 100%;">
  322. <img style="width: 70px; margin: 24px 0 8px 0; border-radius: 100%; background: #C6D3E2;" src="{{$dream['top3user'][1]['avatar']}}" /><br>
  323. </div>
  324. @endif
  325. </div>
  326. @endif
  327. @if(count($dream->top3user)>2)
  328. <div class="row">
  329. @if(count($dream->top3user)>1)
  330. <div class="col top2" style="margin-top: 10px; background: url('/base/img/img_No2.svg') no-repeat; background-size: 100% 100%;">
  331. <img style="width: 70px; margin: 24px 0 8px 0; border-radius: 100%; background: #C6D3E2;"src="{{$dream['top3user'][1]['avatar']}}" /><br>
  332. </div>
  333. @endif
  334. @if(count($dream->top3user)>0)
  335. <div class="col top1" style="background: url('/base/img/img_No1.svg') no-repeat; background-size: 100% 100%;">
  336. <img style="width: 80px; height: 80px; margin: 28px 0 8px 0; border-radius: 100%; background: #C6D3E2;" src="{{$dream['top3user'][0]['avatar']}}" /><br>
  337. </div>
  338. @endif
  339. @if(count($dream->top3user)>2)
  340. <div class="col top2" style="margin-top: 10px; background: url('/base/img/img_No3.svg') no-repeat; background-size: 100% 100%;">
  341. <img style="width: 70px; margin: 24px 0 8px 0; border-radius: 100%; background: #C6D3E2;"src="{{$dream['top3user'][2]['avatar']}}" /><br>
  342. </div>
  343. @endif
  344. </div>
  345. @endif
  346. </div>
  347. @endif
  348. @if(count($dream->top3user)==0)
  349. <div style="background: #f6f6f6;">
  350. <div class="row" >
  351. <div class="col" align="center">
  352. <img src="/base/img/pic_leaves.png">
  353. </div>
  354. </div>
  355. </div>
  356. @endif
  357. </div>
  358. <div class="hide">
  359. @foreach($dream->interactions as $key=> $interaction)
  360. <div class="hdcontent" >
  361. <div>
  362. <img class="head" src="{{$dream->user->avatar}}"/>
  363. <span class="utitle">{{$dream->user->nickname}}</span>
  364. <span class="utitle kz">{{$dream->created_at}}</span>
  365. <p class="subtile" style="white-space:normal; color: #666666">{{$interaction['title']}}</p>
  366. <div class="picts item">
  367. @if($interaction['pic1'])
  368. <img class="slt" src="{{$interaction['pic1']}}" />
  369. @endif
  370. @if($interaction['pic2'])
  371. <img class="slt" src="{{$interaction['pic2']}}" />
  372. @endif @if($interaction['pic3'])
  373. <img class="slt" src="{{$interaction['pic3']}}" />
  374. @endif @if($interaction['pic4'])
  375. <img class="slt" src="{{$interaction['pic4']}}" />
  376. @endif @if($interaction['pic5'])
  377. <img class="slt" src="{{$interaction['pic5']}}" />
  378. @endif @if($interaction['pic6'])
  379. <img class="slt" src="{{$interaction['pic6']}}" />
  380. @endif @if($interaction['pic7'])
  381. <img class="slt" src="{{$interaction['pic7']}}" />
  382. @endif @if($interaction['pic8'])
  383. <img class="slt" src="{{$interaction['pic8']}}" />
  384. @endif @if($interaction['pic9'])
  385. <img class="slt" src="{{$interaction['pic9']}}" />
  386. @endif
  387. </div>
  388. @if($interaction['video'])
  389. <div class="box banner" >
  390. <video src="{{ $interaction['video'] }}" width="100%" style="max-height: 400px;" class="centerme" controls="controls"></video>
  391. </div>
  392. @endif
  393. </div>
  394. <div style="clear:both;"></div>
  395. {{-- <div class="list">
  396. <div class="item" ng-repeat="c in interaction.comments" ng-click="replayOther($event,c.user_nickname,c.user_id,$parent.$parent.$index,$index)" ng-if="interaction.showmore||$index<4">
  397. <div class="row">
  398. <div class="col-20" style="text-align: right">
  399. <img class="head" ng-src="{{c.user_avatar | avator}}" />
  400. </div>
  401. <div class="col-80" style="border-bottom: 1px solid #E6E6E6">
  402. <span style="margin-top: 10px; display: inline-block;font-size: 12px">{{c.user_nickname}}</span>
  403. <span style="font-size: 12px" class="utitle kz">{{c.updated_at}}</span>
  404. <p style="white-space:normal; color: #666666;font-size: 12px">
  405. <span ng-if="c.to_user_nickname&&c.to_user_nickname!=''&&c.to_user_nickname!=dream.user.nickname" style="font-size: 12px">
  406. 回复<span style="color:#333333;font-size: 12px"> {{c.to_user_nickname}}</span> :
  407. </span>
  408. {{c.content}}
  409. </p>
  410. </div>
  411. </div>
  412. </div>
  413. <div class="row">
  414. <div class="col-offset-20 col-60">
  415. <p ng-click="showmore($index)" ng-if="interaction.comments.length>4" style="color: #00C3DA; margin-top: 10px; margin-bottom: 10px"> {{interaction.showmore?"只看最近评论":"查看更多评论"}}</p>
  416. </div>
  417. </div>
  418. </div>--}}
  419. </div>
  420. @endforeach
  421. </div>
  422. <div class="hide">
  423. @if(count($dream->top3user)>0)
  424. <div class="detail-head" style="height: 180px">
  425. @if(count($dream->top3user)<=2)
  426. <div class="row">
  427. @if(count($dream->top3user)>0)
  428. <div class="col top1" style="background: url('/base/img/img_No1.svg') no-repeat; background-size: 100% 100%;">
  429. <img style="width: 80px; height: 80px; margin: 28px 0 8px 0; border-radius: 100%; background: #C6D3E2;" src="{{$dream['top3user'][0]['avatar']}}" /><br>
  430. {{ $dream['top3user'][0]['nickname'] }}<br>
  431. <img src="/base/img/icon_gongxian.svg" style="height: 18px; width: 18px; margin-top: 5px" />
  432. <em style="font-size: 15px;">{{ $dream['top3user'][0]['score'] }}</em>
  433. </div>
  434. @endif
  435. @if(count($dream->top3user)>1)
  436. <div class="col top2" style="background: url('/base/img/img_No2.svg') no-repeat; background-size: 100% 100%;">
  437. <img style="width: 70px; margin: 24px 0 6px 0; border-radius: 100%; background: #C6D3E2;" src="{{ $dream['top3user'][1]['avatar'] }}" /><br>
  438. {{ $dream['top3user'][1]['nickname'] }}<br>
  439. <img src="/base/img/icon_gongxian.svg" style="height: 18px; width: 18px; margin-top: 5px" />
  440. <em style="font-size: 15px;">{{ $dream['top3user'][1]['score'] }}</em>
  441. </div>
  442. @endif
  443. </div>
  444. @elseif(count($dream->top3user)>2)
  445. <div class="row">
  446. @if(count($dream->top3user)>1)
  447. <div class="col top2" style="background: url('/base/img/img_No2.svg') no-repeat; background-size: 100% 100%; margin-top: 10px">
  448. <img style="width: 70px; margin: 24px 0 8px 0; border-radius: 100%; background: #C6D3E2;" src="{{ $dream['top3user'][1]['avatar'] }}" /><br>
  449. {{ $dream['top3user'][1]['nickname'] }}<br>
  450. <img src="/base/img/icon_gongxian.svg" style="height: 18px; width: 18px; margin-top: 5px" />
  451. <em style="font-size: 16px">{{ $dream['top3user'][1]['score'] }}</em>
  452. </div>
  453. @endif
  454. @if(count($dream->top3user)>0)
  455. <div class="col top1" style="background: url('/base/img/img_No1.svg') no-repeat; background-size: 100% 100%;">
  456. <img style="width: 80px; height: 80px; margin: 28px 0 8px 0; border-radius: 100%; background: #C6D3E2;" src="{{ $dream['top3user'][0]['avatar'] }}" /><br>
  457. {{ $dream['top3user'][0]['nickname'] }}<br>
  458. <img src="/base/img/icon_gongxian.svg" style="height: 18px; width: 18px; margin-top: 5px" />
  459. <em style="font-size: 16px">{{ $dream['top3user'][0]['score'] }}</em>
  460. </div>
  461. @endif
  462. @if(count($dream->top3user)>2)
  463. <div class="col top2" style="background: url('/base/img/img_No3.svg') no-repeat; background-size: 100% 100%; margin-top: 10px">
  464. <img style="width: 70px; margin: 24px 0 8px 0; border-radius: 100%; background: #C6D3E2;" src="{{ $dream['top3user'][2]['avatar'] }}" /><br>
  465. {{ $dream['top3user'][2]['nickname'] }}<br>
  466. <img src="/base/img/icon_gongxian.svg" style="height: 18px; width: 18px; margin-top: 5px" />
  467. <em style="font-size: 16px">{{ $dream['top3user'][2]['score'] }}</em>
  468. </div>
  469. @endif
  470. </div>
  471. @endif
  472. </div>
  473. @endif
  474. @if(count($dream->top3user)==0)
  475. <div style="background: #f6f6f6;">
  476. <div class="row" >
  477. <div class="col" align="center">
  478. <img src="/base/img/pic_leaves.png">
  479. </div>
  480. </div>
  481. <div class="row">
  482. <div class="col" style="text-align: center; color: #191919">孤独的我还被支持呢。。。亲,帮个忙?</div>
  483. </div>
  484. </div>
  485. @endif
  486. <div class="list padding">
  487. @foreach($dream->topuser as $key => $user)
  488. @if($key>2)
  489. <div class="item" style="border-bottom: 1px solid #DFDFDF">
  490. <div style="float:left; color: #808080; font-size: 30px; font-weight: bold; margin-top: 0px">
  491. {{$key+1}}
  492. </div>
  493. <div style="padding-left:20px; float:left;">
  494. <div style="float:left;">
  495. <img style="width:40px;border-radius:100%" src="{{$user['avatar']}}" />
  496. </div>
  497. <div style="float:left; margin-left: 10px">
  498. <div style="font-size: 16px">{{$user['nickname']}}</div>
  499. <div style="color:#9E9E9E;">{{$user['signture']}}</div>
  500. </div>
  501. </div>
  502. <div style="float: right;">
  503. <div style="font-weight:500; font-size: 18px">{{$user['score']}}</div>
  504. <div style="color:#9E9E9E;">贡献</div>
  505. </div>
  506. <div style="clear: both"></div>
  507. </div>
  508. @endif
  509. @endforeach
  510. </div>
  511. </div>
  512. </div>
  513. </div>
  514. <script>
  515. $('#tab-title span').click(function(){
  516. $(this).addClass("selected").siblings().removeClass();
  517. $("#tab-content > div").hide().eq($('#tab-title span').index(this)).show();
  518. });
  519. $(function () {
  520. $('#up').hide();
  521. var str = $('#about').html();
  522. new_str = str.replace(/\n/g,"<br/>");
  523. $('#about').html(new_str);
  524. $('#up').click(function () {
  525. $(this).hide();
  526. $('#down').show();
  527. $('#about').css('white-space','nowrap');
  528. });
  529. $('#down').click(function () {
  530. $(this).hide();
  531. $('#up').show();
  532. $('#about').css('white-space','normal');
  533. });
  534. });
  535. </script>
  536. </body>
  537. </html>