get_gallery_detail.html
2.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="stylesheet" href="__TMPL__/public/assets/css/swiper-3.4.2.min.css" />
<link rel="stylesheet" href="__TMPL__/public/assets/css/base.css" />
<link rel="stylesheet" href="__TMPL__/public/assets/css/index.css" />
<title>星域画廊详情</title>
<style>
body,
html {
width: 100%;
height: 100%;
}
.index_fourth .swiper-pagination-bullet-active {
background: #09FF8E;
}
.swiper-pagination-bullet {
background-color: white;
opacity: 1;
}
.index_shans {
-webkit-animation: bounce-down 1.8s linear infinite;
animation: bounce-down 1.8s linear infinite;
}
@keyframes bounce-down {
25% {
transform: translateY(-4px);
}
50%,
100% {
transform: translateY(0);
}
75% {
transform: translateY(4px);
}
}
</style>
</head>
<body>
<div class="index_fourth swiper-container">
<ul class="swiper-wrapper">
<volist name="res['m_image_url']" id="vo">
<li class="swiper-slide">
<img src="{:cmf_get_image_url($vo.url)}" alt="" />
<div class="index_fourth_top index_shans">
<div class="index_fourth_top_img">
<img src="__TMPL__/public/assets/images/cicon_102@2x.png" alt="" />
</div>
</div>
<div class="index_fourth_bottom">
<div class="index_fourth_bottom_cantant">
{$res.post_title}
</div>
</div>
</li>
</volist>
</ul>
<!--<div class="swiper-pagination"></div>-->
</div>
</body>
<script src="__TMPL__/public/assets/js/base.js"></script>
<script src="__TMPL__/public/assets/js/jquery-2.1.0.js"></script>
<script src="__TMPL__/public/assets/js/swiper.min.js"></script>
<script>
var swiper = new Swiper('.swiper-container', {
pagination: '.swiper-pagination',
paginationClickable: true,
direction: 'vertical',
onSlideChangeEnd: function(swiper) {
var snum = $('.index_fourth ul li').length;
console.log(swiper.activeIndex)
if (snum - 1 == swiper.activeIndex) {
$('.index_fourth_top').removeClass('index_shans');
} else {
$('.index_fourth_top').addClass('index_shans');
}
}
});
</script>
</html>