index.html 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <!DOCTYPE html>
  2. <html lang="zh-cn">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1">
  6. <title>晋江人力资本有限公司</title>
  7. <link rel="stylesheet" href="__HCSS__/style.css">
  8. <link rel="stylesheet" href="/static/common/css/swiper.min.css">
  9. <style>
  10. .container {width:1255px;height:605px;background-image:url("__HIMAGES__/index.jpg");background-size:100% 100%;background-repeat:no-repeat;position:relative;}
  11. .inner-box {width:890px;height:546px;position:absolute;left:336px;top:32px;background:white;}
  12. .lw-title {height:40px;position:relative;}
  13. .lw-title .main-title {color:#737373;font-weight:bold;height:22px;line-height:22px;}
  14. .lw-title .main-title .big {font-size:18px;}
  15. .lw-title .main-title .little {font-size:14px;}
  16. .lw-title .sub-title {font-size:12px;color:#E08212;height:12px;line-height:12px;}
  17. .lw-title .more a{color:#1280dd;font-size:14px;position:absolute;right:10px;top:16px;}
  18. .title-review {margin-top:20px;margin-left:22px;}
  19. .review {width:266px;margin-left:8px;}
  20. .review .review-box {width:266px;height:470px;background:#F6F6F6;border:1px solid #FEFEFE;border-radius:20px;padding-top:5px;}
  21. .review-box .img-box {width:224px;margin:5px auto;}
  22. .review-box .img-box .img {width:224px;height:116px;border-radius:20px;background-size:cover;background-position: center;}
  23. .review-box .img-box p {font-size:12px;overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 2;line-clamp: 2;-webkit-box-orient: vertical;height:32px;line-height:16px;}
  24. .right {margin-right:30px;}
  25. .booked-box {width:570px;height:322px;background:#F6F6F6;border:1px solid #FEFEFE;border-radius:20px;overflow-x:hidden;overflow-y: scroll;}
  26. .booked-title {margin-top:20px;}
  27. .booked-box table {width:535px;margin-left:20px;font-size:14px;margin-top:10px;}
  28. .booked-box table td{padding-right:5px;}
  29. .booked-box table .thead td{border-bottom:2px solid #9DCAFC;}
  30. .booked-box table .tbody td{border-bottom:1px solid #CFCFCD;vertical-align:top;padding-top:5px;}
  31. .contact-box {width:570px;height:98px;background:#F6F6F6;border:1px solid #FEFEFE;border-radius:20px;display:flex;align-items:flex-end;}
  32. .contact-title {margin-top:10px;}
  33. .contact-box img {width:74px;height:74px;margin-bottom:12px;margin-left:15px;}
  34. .contact-box span {margin-bottom:12px;margin-left:2px;font-size:15px;}
  35. .jucai { position: absolute;right: -20px;bottom: -27px;}
  36. .layui-layer-imgtit a {max-width:100% !important;}
  37. .layui-layer-imgbar {display:block !important;}
  38. </style>
  39. </head>
  40. <body>
  41. <div class="container">
  42. <div class="inner-box">
  43. <div class="review fl">
  44. <div class="lw-title title-review">
  45. <div class="main-title">
  46. <span class="big">往期</span>
  47. <span class="little">回顾</span>
  48. </div>
  49. <div class="sub-title">
  50. ACTIVE REVIEW
  51. </div>
  52. <div class="more fr">
  53. <a href="{:url('previous/index')}">查看更多>></a>
  54. </div>
  55. </div>
  56. <div class="review-box">
  57. <div class="swiper-container" id="swiper1">
  58. <div class="swiper-wrapper">
  59. {volist name="previous_list" id="previous"}
  60. <div class="swiper-slide">
  61. {volist name="previous" id="vo"}
  62. <div class="img-box">
  63. <div class="img" data-url="{$vo.image}" data-title="{$vo.title}" style="background-image:url('{$vo.image}')"></div>
  64. <p>{$vo.title}</p>
  65. </div>
  66. {/volist}
  67. </div>
  68. {/volist}
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. <div class="right fr">
  74. <div class="booked">
  75. <div class="lw-title booked-title">
  76. <div class="main-title">
  77. <span class="big">已预约</span>
  78. <span class="little">活动</span>
  79. </div>
  80. <div class="sub-title">
  81. BOOKED ACTIVITIES
  82. </div>
  83. </div>
  84. <div class="booked-box">
  85. <table cellpadding="0" cellspacing="0" id="booked-box">
  86. <tr class="thead">
  87. <td style="width:111px;">时间</td>
  88. <td style="width:253px">内容</td>
  89. <td style="width:95px">场地</td>
  90. <td style="width:56px;padding-right:0;">参加人数</td>
  91. </tr>
  92. {volist name="reserved" id="vo"}
  93. <tr class="tbody">
  94. <td>{$vo.time}</td>
  95. <td>{$vo.content}</td>
  96. <td>{$vo.address}</td>
  97. <td>{$vo.num}</td>
  98. </tr>
  99. {/volist}
  100. </table>
  101. </div>
  102. </div>
  103. <div class="contact">
  104. <div class="lw-title contact-title">
  105. <div class="main-title">
  106. <span class="big">联系</span>
  107. <span class="little">我们</span>
  108. </div>
  109. <div class="sub-title">
  110. CONTACT US
  111. </div>
  112. </div>
  113. <div class="contact-box">
  114. <img src="__HIMAGES__/qrcode_contact.png" alt="">
  115. <span>扫码添加好友或者拨打19906096782了解详情,预约场地活动。</span>
  116. </div>
  117. </div>
  118. </div>
  119. <img src="__HIMAGES__/jucai.png" class="jucai">
  120. </div>
  121. </div>
  122. <script src="__COMMON_JS__/jquery-1.12.4.min.js"></script>
  123. <script src="/static/common/js/swiper.min.js"></script>
  124. <script src="__COMMON_JS__/layer/layer.js"></script>
  125. <script>
  126. var swiper1 = new Swiper('#swiper1',{autoplay: 5000});
  127. $('.img').click(function(){
  128. let url = $(this).data('url');
  129. let title = $(this).data('title');
  130. let json = {
  131. "title": title, //相册标题
  132. "id": 1, //相册id
  133. "start": 0, //初始显示的图片序号,默认0
  134. "data": [ //相册包含的图片,数组格式
  135. {
  136. "alt": title,
  137. "pid": 2, //图片id
  138. "src": url, //原图地址
  139. "thumb": "" //缩略图地址
  140. }
  141. ]
  142. };
  143. layer.photos({
  144. photos: json
  145. });
  146. $('.layui-layer-imgbar').show();
  147. });
  148. const boxHeight = $('#booked-box').height();
  149. const bookHeight = $('.booked-box').height();
  150. const scrollheight = boxHeight - bookHeight + 20;
  151. let boxTop = 0;
  152. setInterval(function(){
  153. if (boxTop >= scrollheight) {
  154. boxTop = 0;
  155. }
  156. boxTop++;
  157. $('.booked-box').scrollTop(boxTop);
  158. },50)
  159. </script>
  160. </body>
  161. </html>