123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <!DOCTYPE html>
- <html lang="zh-cn">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width,initial-scale=1">
- <title>晋江人力资本有限公司</title>
- <link rel="stylesheet" href="__HCSS__/style.css">
- <style>
- .container {width:1255px;height:605px;background-image:url("__HIMAGES__/index.jpg");background-size:100% 100%;background-repeat:no-repeat;position:relative;}
- .inner-box {width:890px;height:546px;position:absolute;left:336px;top:32px;background:white;}
- .title-review {margin-top:10px;height:40px;background: #F6F6F6;border-radius: 20px;}
- .title-review ul {display:flex;justify-content:space-around;height: 40px;align-items: center;}
- .title-review ul li {height: 40px;line-height: 40px;width: 72px;text-align: center;}
- .title-review ul li.active {background:#F27F0C;}
- .title-review ul li a {color:#A2A2A2;font-weight:bold;}
- .title-review ul li.active a{color:white;}
- .review {width:870px;margin:0 auto;}
- .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;}
- .review-box .review-item {display:flex;}
- .review-box .flex-box {width: calc((100% - 10px) / 3);height:148px;margin-bottom: 5px;}
- .review-box .img-box {width:224px;height:148px;margin:0 auto;}
- .review-box .img-box .img {width:224px;height:116px;border-radius:20px;background-size:cover;background-position: center;}
- .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;}
- .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;}
- .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;}
- .no-more {display:block;margin:150px auto 0 auto;}
- </style>
- </head>
- <body>
- <div class="container">
- <div class="inner-box">
- <div class="review">
- <div class="title-review">
- <ul>
- {foreach $month_list as $key=>$month}
- <li class="{eq name='key' value='$month_index'}active{/eq}"><a href="{:url('previous/index')}?month={$key}">{$month}</a></li>
- {/foreach}
- </ul>
- </div>
- <div class="review-box">
- {empty name="previous"}
- <img src="__HIMAGES__/no_more.png" class="no-more">
- {else/}
- {volist name="previous" id="item"}
- <div class="review-item">
- {volist name="item" id="vo"}
- <div class="flex-box">
- <div class="img-box">
- <div class="img" data-url="{$vo.image}" data-title="{$vo.title}" style="background-image:url('{$vo.image}')"></div>
- <p>{$vo.title}</p>
- </div>
- </div>
- {/volist}
- </div>
- {/volist}
- {/empty}
- </div>
- </div>
- <div class="back-box">
- <a href="{:url('index/index')}" class="back-text">返回</a>
- </div>
- </div>
- </div>
- <script src="__COMMON_JS__/jquery-1.12.4.min.js"></script>
- <script src="__COMMON_JS__/layer/layer.js"></script>
- <script>
- $('.img').click(function(){
- let url = $(this).data('url');
- let title = $(this).data('title');
- let json = {
- "title": title, //相册标题
- "id": 1, //相册id
- "start": 0, //初始显示的图片序号,默认0
- "data": [ //相册包含的图片,数组格式
- {
- "alt": title,
- "pid": 2, //图片id
- "src": url, //原图地址
- "thumb": "" //缩略图地址
- }
- ]
- };
- layer.photos({
- photos: json
- });
- $('.layui-layer-imgbar').show();
- });
- </script>
- </body>
- </html>
|