index.html 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. <style>
  9. .container {width:1255px;height:605px;background-image:url("__HIMAGES__/index.jpg");background-size:100% 100%;background-repeat:no-repeat;position:relative;}
  10. .inner-box {width:890px;height:546px;position:absolute;left:336px;top:32px;background:white;}
  11. .title-review {margin-top:10px;height:40px;background: #F6F6F6;border-radius: 20px;}
  12. .title-review ul {display:flex;justify-content:space-around;height: 40px;align-items: center;}
  13. .title-review ul li {height: 40px;line-height: 40px;width: 72px;text-align: center;}
  14. .title-review ul li.active {background:#F27F0C;}
  15. .title-review ul li a {color:#A2A2A2;font-weight:bold;}
  16. .title-review ul li.active a{color:white;}
  17. .review {width:870px;margin:0 auto;}
  18. .review .review-box {width:870px;height:470px;background:#F6F6F6;border:1px solid #FEFEFE;border-radius:20px;padding-top:9px;overflow-y:auto;margin-top:10px;}
  19. .review-box .review-item {display:flex;}
  20. .review-box .flex-box {width: calc((100% - 10px) / 3);height:148px;margin-bottom: 5px;}
  21. .review-box .img-box {width:224px;height:148px;margin:0 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. .back-box {position:absolute;left:388px;bottom:-15px;width:114px;height:48px;background:white;border-radius:20px;box-shadow:0 5px 2px #8A9CB2;display:flex;justify-content:center;align-items:center;}
  25. .back-box .back-text {width:104px;height:38px;line-height:38px;background:#F27F0C;border-radius:20px;color:white;font-size:20px;font-weight:bold;text-align:center;}
  26. .no-more {display:block;margin:150px auto 0 auto;}
  27. </style>
  28. </head>
  29. <body>
  30. <div class="container">
  31. <div class="inner-box">
  32. <div class="review">
  33. <div class="title-review">
  34. <ul>
  35. {foreach $month_list as $key=>$month}
  36. <li class="{eq name='key' value='$month_index'}active{/eq}"><a href="{:url('previous/index')}?month={$key}">{$month}</a></li>
  37. {/foreach}
  38. </ul>
  39. </div>
  40. <div class="review-box">
  41. {empty name="previous"}
  42. <img src="__HIMAGES__/no_more.png" class="no-more">
  43. {else/}
  44. {volist name="previous" id="item"}
  45. <div class="review-item">
  46. {volist name="item" id="vo"}
  47. <div class="flex-box">
  48. <div class="img-box">
  49. <div class="img" data-url="{$vo.image}" data-title="{$vo.title}" style="background-image:url('{$vo.image}')"></div>
  50. <p>{$vo.title}</p>
  51. </div>
  52. </div>
  53. {/volist}
  54. </div>
  55. {/volist}
  56. {/empty}
  57. </div>
  58. </div>
  59. <div class="back-box">
  60. <a href="{:url('index/index')}" class="back-text">返回</a>
  61. </div>
  62. </div>
  63. </div>
  64. <script src="__COMMON_JS__/jquery-1.12.4.min.js"></script>
  65. <script src="__COMMON_JS__/layer/layer.js"></script>
  66. <script>
  67. $('.img').click(function(){
  68. let url = $(this).data('url');
  69. let title = $(this).data('title');
  70. let json = {
  71. "title": title, //相册标题
  72. "id": 1, //相册id
  73. "start": 0, //初始显示的图片序号,默认0
  74. "data": [ //相册包含的图片,数组格式
  75. {
  76. "alt": title,
  77. "pid": 2, //图片id
  78. "src": url, //原图地址
  79. "thumb": "" //缩略图地址
  80. }
  81. ]
  82. };
  83. layer.photos({
  84. photos: json
  85. });
  86. $('.layui-layer-imgbar').show();
  87. });
  88. </script>
  89. </body>
  90. </html>