share1.blade.php 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553
  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. @if( $dream->user_id == $user_id)
  289. <div style="float:right;">
  290. <p style="text-align: right">{{$dream->mark}}</p>
  291. <p style="font-size: 13px;; color: #919191">当前获得梦想分数</p>
  292. </div>
  293. @endif
  294. </div>
  295. <div style="clear:both; height: 50px; padding: 5px 10px;">
  296. <div style="text-align: left; float:left;">
  297. <p style="">{{$dream->coin}}</p>
  298. <p style="font-size: 13px; color: #919191">我要求的梦想币</p>
  299. </div>
  300. @if( $dream->user_id == $user_id)
  301. <div style="text-align: right;float: right">
  302. <p style="color: #FF6600">{{$dream->get_coin}}</p>
  303. <p style="font-size: 13px; color: #919191">目前已获梦想币</p>
  304. </div>
  305. @endif
  306. </div>
  307. <div style="padding: 0 10px 20px 10px">
  308. <div style="background-color:#E6E6E6; width: 100%;">
  309. <div style="width: {{($dream->get_coin / $dream->coin)*100}}%; background: #FF6600; height: 5px">
  310. </div>
  311. </div>
  312. </div>
  313. @if(count($dream->top3user)>0)
  314. <div class="detail-head" style="height: 130px" >
  315. @if(count($dream->top3user)<3)
  316. <div class="row">
  317. @if(count($dream->top3user)>0)
  318. <div class="col top1" style="background: url('/base/img/img_No1.svg') no-repeat; background-size: 100% 100%;">
  319. <img style="width: 80px; height: 80px; margin: 28px 0 8px 0; border-radius: 100%; background: #C6D3E2;" src="{{$dream['top3user'][0]['avatar']}}" /><br>
  320. </div>
  321. @endif
  322. @if(count($dream->top3user)>1)
  323. <div class="col top2" style="margin-top: 10px; background: url('/base/img/img_No2.svg') no-repeat; background-size: 100% 100%;">
  324. <img style="width: 70px; margin: 24px 0 8px 0; border-radius: 100%; background: #C6D3E2;" src="{{$dream['top3user'][1]['avatar']}}" /><br>
  325. </div>
  326. @endif
  327. </div>
  328. @endif
  329. @if(count($dream->top3user)>2)
  330. <div class="row">
  331. @if(count($dream->top3user)>1)
  332. <div class="col top2" style="margin-top: 10px; background: url('/base/img/img_No2.svg') no-repeat; background-size: 100% 100%;">
  333. <img style="width: 70px; margin: 24px 0 8px 0; border-radius: 100%; background: #C6D3E2;"src="{{$dream['top3user'][1]['avatar']}}" /><br>
  334. </div>
  335. @endif
  336. @if(count($dream->top3user)>0)
  337. <div class="col top1" style="background: url('/base/img/img_No1.svg') no-repeat; background-size: 100% 100%;">
  338. <img style="width: 80px; height: 80px; margin: 28px 0 8px 0; border-radius: 100%; background: #C6D3E2;" src="{{$dream['top3user'][0]['avatar']}}" /><br>
  339. </div>
  340. @endif
  341. @if(count($dream->top3user)>2)
  342. <div class="col top2" style="margin-top: 10px; background: url('/base/img/img_No3.svg') no-repeat; background-size: 100% 100%;">
  343. <img style="width: 70px; margin: 24px 0 8px 0; border-radius: 100%; background: #C6D3E2;"src="{{$dream['top3user'][2]['avatar']}}" /><br>
  344. </div>
  345. @endif
  346. </div>
  347. @endif
  348. </div>
  349. @endif
  350. @if(count($dream->top3user)==0)
  351. <div style="background: #f6f6f6;">
  352. <div class="row" >
  353. <div class="col" align="center">
  354. <img src="/base/img/pic_leaves.png">
  355. </div>
  356. </div>
  357. </div>
  358. @endif
  359. </div>
  360. <div class="hide">
  361. @foreach($dream->interactions as $key=> $interaction)
  362. <div class="hdcontent" >
  363. <div>
  364. <img class="head" src="{{$dream->user->avatar}}"/>
  365. <span class="utitle">{{$dream->user->nickname}}</span>
  366. <span class="utitle kz">{{$dream->created_at}}</span>
  367. <p class="subtile" style="white-space:normal; color: #666666">{{$interaction['title']}}</p>
  368. <div class="picts item">
  369. @if($interaction['pic1'])
  370. <img class="slt" src="{{$interaction['pic1']}}" />
  371. @endif
  372. @if($interaction['pic2'])
  373. <img class="slt" src="{{$interaction['pic2']}}" />
  374. @endif @if($interaction['pic3'])
  375. <img class="slt" src="{{$interaction['pic3']}}" />
  376. @endif @if($interaction['pic4'])
  377. <img class="slt" src="{{$interaction['pic4']}}" />
  378. @endif @if($interaction['pic5'])
  379. <img class="slt" src="{{$interaction['pic5']}}" />
  380. @endif @if($interaction['pic6'])
  381. <img class="slt" src="{{$interaction['pic6']}}" />
  382. @endif @if($interaction['pic7'])
  383. <img class="slt" src="{{$interaction['pic7']}}" />
  384. @endif @if($interaction['pic8'])
  385. <img class="slt" src="{{$interaction['pic8']}}" />
  386. @endif @if($interaction['pic9'])
  387. <img class="slt" src="{{$interaction['pic9']}}" />
  388. @endif
  389. </div>
  390. @if($interaction['video'])
  391. <div class="box banner" >
  392. <video src="{{ $interaction['video'] }}" width="100%" style="max-height: 400px;" class="centerme" controls="controls"></video>
  393. </div>
  394. @endif
  395. </div>
  396. <div style="clear:both;"></div>
  397. {{-- <div class="list">
  398. <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">
  399. <div class="row">
  400. <div class="col-20" style="text-align: right">
  401. <img class="head" ng-src="{{c.user_avatar | avator}}" />
  402. </div>
  403. <div class="col-80" style="border-bottom: 1px solid #E6E6E6">
  404. <span style="margin-top: 10px; display: inline-block;font-size: 12px">{{c.user_nickname}}</span>
  405. <span style="font-size: 12px" class="utitle kz">{{c.updated_at}}</span>
  406. <p style="white-space:normal; color: #666666;font-size: 12px">
  407. <span ng-if="c.to_user_nickname&&c.to_user_nickname!=''&&c.to_user_nickname!=dream.user.nickname" style="font-size: 12px">
  408. 回复<span style="color:#333333;font-size: 12px"> {{c.to_user_nickname}}</span> :
  409. </span>
  410. {{c.content}}
  411. </p>
  412. </div>
  413. </div>
  414. </div>
  415. <div class="row">
  416. <div class="col-offset-20 col-60">
  417. <p ng-click="showmore($index)" ng-if="interaction.comments.length>4" style="color: #00C3DA; margin-top: 10px; margin-bottom: 10px"> {{interaction.showmore?"只看最近评论":"查看更多评论"}}</p>
  418. </div>
  419. </div>
  420. </div>--}}
  421. </div>
  422. @endforeach
  423. </div>
  424. <div class="hide">
  425. @if(count($dream->top3user)>0)
  426. <div class="detail-head" style="height: 180px">
  427. @if(count($dream->top3user)<=2)
  428. <div class="row">
  429. @if(count($dream->top3user)>0)
  430. <div class="col top1" style="background: url('/base/img/img_No1.svg') no-repeat; background-size: 100% 100%;">
  431. <img style="width: 80px; height: 80px; margin: 28px 0 8px 0; border-radius: 100%; background: #C6D3E2;" src="{{$dream['top3user'][0]['avatar']}}" /><br>
  432. {{ $dream['top3user'][0]['nickname'] }}<br>
  433. <img src="/base/img/icon_gongxian.svg" style="height: 18px; width: 18px; margin-top: 5px" />
  434. <em style="font-size: 15px;">{{ $dream['top3user'][0]['score'] }}</em>
  435. </div>
  436. @endif
  437. @if(count($dream->top3user)>1)
  438. <div class="col top2" style="background: url('/base/img/img_No2.svg') no-repeat; background-size: 100% 100%;">
  439. <img style="width: 70px; margin: 24px 0 6px 0; border-radius: 100%; background: #C6D3E2;" src="{{ $dream['top3user'][1]['avatar'] }}" /><br>
  440. {{ $dream['top3user'][1]['nickname'] }}<br>
  441. <img src="/base/img/icon_gongxian.svg" style="height: 18px; width: 18px; margin-top: 5px" />
  442. <em style="font-size: 15px;">{{ $dream['top3user'][1]['score'] }}</em>
  443. </div>
  444. @endif
  445. </div>
  446. @elseif(count($dream->top3user)>2)
  447. <div class="row">
  448. @if(count($dream->top3user)>1)
  449. <div class="col top2" style="background: url('/base/img/img_No2.svg') no-repeat; background-size: 100% 100%; margin-top: 10px">
  450. <img style="width: 70px; margin: 24px 0 8px 0; border-radius: 100%; background: #C6D3E2;" src="{{ $dream['top3user'][1]['avatar'] }}" /><br>
  451. {{ $dream['top3user'][1]['nickname'] }}<br>
  452. <img src="/base/img/icon_gongxian.svg" style="height: 18px; width: 18px; margin-top: 5px" />
  453. <em style="font-size: 16px">{{ $dream['top3user'][1]['score'] }}</em>
  454. </div>
  455. @endif
  456. @if(count($dream->top3user)>0)
  457. <div class="col top1" style="background: url('/base/img/img_No1.svg') no-repeat; background-size: 100% 100%;">
  458. <img style="width: 80px; height: 80px; margin: 28px 0 8px 0; border-radius: 100%; background: #C6D3E2;" src="{{ $dream['top3user'][0]['avatar'] }}" /><br>
  459. {{ $dream['top3user'][0]['nickname'] }}<br>
  460. <img src="/base/img/icon_gongxian.svg" style="height: 18px; width: 18px; margin-top: 5px" />
  461. <em style="font-size: 16px">{{ $dream['top3user'][0]['score'] }}</em>
  462. </div>
  463. @endif
  464. @if(count($dream->top3user)>2)
  465. <div class="col top2" style="background: url('/base/img/img_No3.svg') no-repeat; background-size: 100% 100%; margin-top: 10px">
  466. <img style="width: 70px; margin: 24px 0 8px 0; border-radius: 100%; background: #C6D3E2;" src="{{ $dream['top3user'][2]['avatar'] }}" /><br>
  467. {{ $dream['top3user'][2]['nickname'] }}<br>
  468. <img src="/base/img/icon_gongxian.svg" style="height: 18px; width: 18px; margin-top: 5px" />
  469. <em style="font-size: 16px">{{ $dream['top3user'][2]['score'] }}</em>
  470. </div>
  471. @endif
  472. </div>
  473. @endif
  474. </div>
  475. @endif
  476. @if(count($dream->top3user)==0)
  477. <div style="background: #f6f6f6;">
  478. <div class="row" >
  479. <div class="col" align="center">
  480. <img src="/base/img/pic_leaves.png">
  481. </div>
  482. </div>
  483. <div class="row">
  484. <div class="col" style="text-align: center; color: #191919">孤独的我还被支持呢。。。亲,帮个忙?</div>
  485. </div>
  486. </div>
  487. @endif
  488. <div class="list padding">
  489. @foreach($dream->topuser as $key => $user)
  490. @if($key>2)
  491. <div class="item" style="border-bottom: 1px solid #DFDFDF">
  492. <div style="float:left; color: #808080; font-size: 30px; font-weight: bold; margin-top: 0px">
  493. {{$key+1}}
  494. </div>
  495. <div style="padding-left:20px; float:left;">
  496. <div style="float:left;">
  497. <img style="width:40px;border-radius:100%" src="{{$user['avatar']}}" />
  498. </div>
  499. <div style="float:left; margin-left: 10px">
  500. <div style="font-size: 16px">{{$user['nickname']}}</div>
  501. <div style="color:#9E9E9E;">{{$user['signture']}}</div>
  502. </div>
  503. </div>
  504. <div style="float: right;">
  505. <div style="font-weight:500; font-size: 18px">{{$user['score']}}</div>
  506. <div style="color:#9E9E9E;">贡献</div>
  507. </div>
  508. <div style="clear: both"></div>
  509. </div>
  510. @endif
  511. @endforeach
  512. </div>
  513. </div>
  514. </div>
  515. </div>
  516. <script>
  517. $('#tab-title span').click(function(){
  518. $(this).addClass("selected").siblings().removeClass();
  519. $("#tab-content > div").hide().eq($('#tab-title span').index(this)).show();
  520. });
  521. $(function () {
  522. $('#up').hide();
  523. var str = $('#about').html();
  524. new_str = str.replace(/\n/g,"<br/>");
  525. $('#about').html(new_str);
  526. $('#up').click(function () {
  527. $(this).hide();
  528. $('#down').show();
  529. $('#about').css('white-space','nowrap');
  530. });
  531. $('#down').click(function () {
  532. $(this).hide();
  533. $('#up').show();
  534. $('#about').css('white-space','normal');
  535. });
  536. });
  537. </script>
  538. </body>
  539. </html>