share1.blade.php 25 KB

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