share1.blade.php 26 KB

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