|
@@ -8,8 +8,8 @@
|
|
|
<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 {margin-top:10px;height:40px;background: #F6F6F6;border-radius: 20px;overflow:hidden;}
|
|
|
+ .title-review ul {display:flex;justify-content:flex-start;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;}
|
|
@@ -17,16 +17,14 @@
|
|
|
.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 .flex-box {width: calc((100% - 10px) / 4);height:148px;margin-bottom: 5px;}
|
|
|
+ .review-box .img-box {width:200px;height:148px;margin:0 auto;}
|
|
|
+ .review-box .img-box .img {width:200px;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;}
|
|
|
.jucai { position: absolute;right: -20px;bottom: -27px;}
|
|
|
.layui-layer-imgtit a {max-width:100% !important;}
|
|
|
- .layui-layer-imgbar {display:block !important;}
|
|
|
</style>
|
|
|
</head>
|
|
|
<body>
|
|
@@ -35,28 +33,78 @@
|
|
|
<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 $year_list as $key=>$year}
|
|
|
+ <li class="{eq name='year_id' value='$year.id'}active{/eq}"><a href="{:url('previous/index')}?year_id={$year.id}">{$year.name}</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 class="review-item">
|
|
|
+ <div class="flex-box">
|
|
|
+ <div class="img-box">
|
|
|
+ <div class="img" data-month="1" style="background-image:url('__HIMAGES__/month/1.png')"></div>
|
|
|
</div>
|
|
|
- {/volist}
|
|
|
</div>
|
|
|
- {/volist}
|
|
|
- {/empty}
|
|
|
+ <div class="flex-box">
|
|
|
+ <div class="img-box">
|
|
|
+ <div class="img" data-month="2" style="background-image:url('__HIMAGES__/month/2.png')"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="flex-box">
|
|
|
+ <div class="img-box">
|
|
|
+ <div class="img" data-month="3" style="background-image:url('__HIMAGES__/month/3.png')"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="flex-box">
|
|
|
+ <div class="img-box">
|
|
|
+ <div class="img" data-month="4" style="background-image:url('__HIMAGES__/month/4.png')"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="review-item">
|
|
|
+ <div class="flex-box">
|
|
|
+ <div class="img-box">
|
|
|
+ <div class="img" data-month="5" style="background-image:url('__HIMAGES__/month/5.png')"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="flex-box">
|
|
|
+ <div class="img-box">
|
|
|
+ <div class="img" data-month="6" style="background-image:url('__HIMAGES__/month/6.png')"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="flex-box">
|
|
|
+ <div class="img-box">
|
|
|
+ <div class="img" data-month="7" style="background-image:url('__HIMAGES__/month/7.png')"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="flex-box">
|
|
|
+ <div class="img-box">
|
|
|
+ <div class="img" data-month="8" style="background-image:url('__HIMAGES__/month/8.png')"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="review-item">
|
|
|
+ <div class="flex-box">
|
|
|
+ <div class="img-box">
|
|
|
+ <div class="img" data-month="9" style="background-image:url('__HIMAGES__/month/9.png')"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="flex-box">
|
|
|
+ <div class="img-box">
|
|
|
+ <div class="img" data-month="10" style="background-image:url('__HIMAGES__/month/10.png')"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="flex-box">
|
|
|
+ <div class="img-box">
|
|
|
+ <div class="img" data-month="11" style="background-image:url('__HIMAGES__/month/11.png')"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="flex-box">
|
|
|
+ <div class="img-box">
|
|
|
+ <div class="img" data-month="12" style="background-image:url('__HIMAGES__/month/12.png')"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="back-box">
|
|
@@ -69,25 +117,8 @@
|
|
|
<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();
|
|
|
+ const month = $(this).data('month');
|
|
|
+ location.href = "{:url('previous/list')}?year_id={$year_id}&month=" + month;
|
|
|
});
|
|
|
</script>
|
|
|
</body>
|