index.html 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. .jucai { position: absolute;right: -20px;bottom: -27px;}
  28. .layui-layer-imgtit a {max-width:100% !important;}
  29. </style>
  30. </head>
  31. <body>
  32. <div class="container">
  33. <div class="inner-box">
  34. <div class="review">
  35. <div class="title-review">
  36. <ul>
  37. {foreach $month_list as $key=>$month}
  38. <li class="{eq name='key' value='$month_index'}active{/eq}"><a href="{:url('previous/index')}?month={$key}">{$month}</a></li>
  39. {/foreach}
  40. </ul>
  41. </div>
  42. <div class="review-box">
  43. {empty name="previous"}
  44. <img src="__HIMAGES__/no_more.png" class="no-more">
  45. {else/}
  46. {volist name="previous" id="item"}
  47. <div class="review-item">
  48. {volist name="item" id="vo"}
  49. <div class="flex-box">
  50. <div class="img-box">
  51. <div class="img" data-url="{$vo.image}" data-title="{$vo.title}" style="background-image:url('{$vo.image}')"></div>
  52. <p>{$vo.title}</p>
  53. </div>
  54. </div>
  55. {/volist}
  56. </div>
  57. {/volist}
  58. {/empty}
  59. </div>
  60. </div>
  61. <div class="back-box">
  62. <a href="{:url('index/index')}" class="back-text">返回</a>
  63. </div>
  64. <img src="__HIMAGES__/jucai.png" class="jucai">
  65. </div>
  66. </div>
  67. <script src="__COMMON_JS__/jquery-1.12.4.min.js"></script>
  68. <script src="__COMMON_JS__/layer/layer.js"></script>
  69. <script>
  70. $('.img').click(function(){
  71. let url = $(this).data('url');
  72. let title = $(this).data('title');
  73. let json = {
  74. "title": title, //相册标题
  75. "id": 1, //相册id
  76. "start": 0, //初始显示的图片序号,默认0
  77. "data": [ //相册包含的图片,数组格式
  78. {
  79. "alt": title,
  80. "pid": 2, //图片id
  81. "src": url, //原图地址
  82. "thumb": "" //缩略图地址
  83. }
  84. ]
  85. };
  86. layer.photos({
  87. photos: json
  88. });
  89. $('.layui-layer-imgbar').show();
  90. });
  91. </script>
  92. </body>
  93. </html>