share1.blade.php 26 KB

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