|
|
1
|
+<!DOCTYPE html>
|
|
|
2
|
+<html lang="en">
|
|
|
3
|
+
|
|
|
4
|
+<head>
|
|
|
5
|
+ <meta charset="UTF-8" />
|
|
|
6
|
+ <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
|
|
|
7
|
+ <meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
|
|
8
|
+ <link rel="stylesheet" href="__TMPL__/public/assets/css/swiper-3.4.2.min.css" />
|
|
|
9
|
+ <link rel="stylesheet" href="__TMPL__/public/assets/css/base.css" />
|
|
|
10
|
+ <link rel="stylesheet" href="__TMPL__/public/assets/css/index.css" />
|
|
|
11
|
+ <link rel="stylesheet" href="__TMPL__/public/assets/css/mask.css" />
|
|
|
12
|
+ <title>星球影院</title>
|
|
|
13
|
+ <style>
|
|
|
14
|
+ .video_poster {
|
|
|
15
|
+ position: absolute;
|
|
|
16
|
+ top: 0;
|
|
|
17
|
+ width: 100%;
|
|
|
18
|
+ height: 97%;
|
|
|
19
|
+ }
|
|
|
20
|
+ </style>
|
|
|
21
|
+</head>
|
|
|
22
|
+
|
|
|
23
|
+<body>
|
|
|
24
|
+ <include file="public@header"/>
|
|
|
25
|
+ <div class="mask">
|
|
|
26
|
+ </div>
|
|
|
27
|
+ <!-- 视频 -->
|
|
|
28
|
+ <div class="fourth_video">
|
|
|
29
|
+ <div class="fourth_video_center">
|
|
|
30
|
+ <div class="video_bg">
|
|
|
31
|
+ <img class="video_poster iop" src="" alt="">
|
|
|
32
|
+ <video src="" id="video" width="100%" style="height: 3.4rem;" controlsList="nodownload"></video>
|
|
|
33
|
+ </div>
|
|
|
34
|
+ <div class="fourth_video_start">
|
|
|
35
|
+ <img onclick="bofang()" src="__TMPL__/public/assets/images/aicon_30.png" alt="" />
|
|
|
36
|
+ </div>
|
|
|
37
|
+ </div>
|
|
|
38
|
+ </div>
|
|
|
39
|
+ <!-- 专辑搜索 -->
|
|
|
40
|
+ <div class="index_seventh_contant">
|
|
|
41
|
+ <!-- 顶部 -->
|
|
|
42
|
+ <div class="show_9_video_asideTie clearfix">
|
|
|
43
|
+ <p>专辑</p>
|
|
|
44
|
+ <div class="select">
|
|
|
45
|
+ <input type="hidden" value="{$cityName}" id="cityName">
|
|
|
46
|
+ <form method="GET" action="/portal/region/getMoreVideo">
|
|
|
47
|
+ <input type="text" class="show_city" value="所有" readonly="readonly">
|
|
|
48
|
+ <img src="__TMPL__/public/assets/images/down2.png" alt="" />
|
|
|
49
|
+ <ul>
|
|
|
50
|
+ <li>所有</li>
|
|
|
51
|
+ <volist name="city_name" id="vo">
|
|
|
52
|
+ <li value="{$vo.id}">{$vo.name}</li>
|
|
|
53
|
+ </volist>
|
|
|
54
|
+ <input type="hidden" value="0" name="city_id" id="city_id">
|
|
|
55
|
+ </ul>
|
|
|
56
|
+ </form>
|
|
|
57
|
+ </div>
|
|
|
58
|
+ </div>
|
|
|
59
|
+ <div class="index_seventh_swiper">
|
|
|
60
|
+ <div class="star_gall_img swiper-container">
|
|
|
61
|
+ <!-- 轮播图 -->
|
|
|
62
|
+ <ul class="swiper-wrapper curren video_active">
|
|
|
63
|
+ <volist name="res['data']" id="vo">
|
|
|
64
|
+ <li class="swiper-slide">
|
|
|
65
|
+ <div class="idnex_seventh_swiper_contant">
|
|
|
66
|
+ <div class="idnex_seventh_swiper_contant_img">
|
|
|
67
|
+ <img class="li_img" src="{:cmf_get_image_url($vo.thumbnail)}" alt="" />
|
|
|
68
|
+ </div>
|
|
|
69
|
+ <div class="idnex_seventh_swiper_contant_title txt-cut" style="-webkit-line-clamp: 2;">
|
|
|
70
|
+ {$vo.post_title}
|
|
|
71
|
+ </div>
|
|
|
72
|
+ </div>
|
|
|
73
|
+
|
|
|
74
|
+ <input type="hidden" value="{:cmf_get_file_download_url($vo.video)}" class="li_video">
|
|
|
75
|
+ <!--标题-->
|
|
|
76
|
+ <input type="hidden" value="{$vo.post_title}" class="li_post_title">
|
|
|
77
|
+ <!--国家-->
|
|
|
78
|
+ <input type="hidden" value="{$vo.city_name}" class="li_city_name">
|
|
|
79
|
+ <!--取景-->
|
|
|
80
|
+ <input type="hidden" value="{$vo.framing}" class="li_framing">
|
|
|
81
|
+ <!--上映时间-->
|
|
|
82
|
+ <input type="hidden" value="{$vo.release_time}" class="li_release_time">
|
|
|
83
|
+ </li>
|
|
|
84
|
+ </volist>
|
|
|
85
|
+ </ul>
|
|
|
86
|
+ </div>
|
|
|
87
|
+ </div>
|
|
|
88
|
+ </div>
|
|
|
89
|
+ <!-- 影片信息 -->
|
|
|
90
|
+ <div class="index_seventh_bottom">
|
|
|
91
|
+ <div class="index_seventh_bottom_one"><span class="post_title"></span></div>
|
|
|
92
|
+ <div class="index_seventh_bottom_two">国家:<span class="city_name"></span></div>
|
|
|
93
|
+ <div class="index_seventh_bottom_three">取景:<span class="framing"></span></div>
|
|
|
94
|
+ <div class="index_seventh_bottom_four">上映时间:<span class="release_time"></span></div>
|
|
|
95
|
+ <div class="index_seventh_bottom_five">
|
|
|
96
|
+ <div class="index_seventh_bottom_title">分享:</div>
|
|
|
97
|
+ <div class="index_seventh_bottom_img1">
|
|
|
98
|
+ <img src="__TMPL__/public/assets/images/cicon_71@2x.png" alt="" />
|
|
|
99
|
+ </div>
|
|
|
100
|
+ <div class="index_seventh_bottom_img1">
|
|
|
101
|
+ <img src="__TMPL__/public/assets/images/cicon_72@2x.png" alt="" />
|
|
|
102
|
+ </div>
|
|
|
103
|
+ </div>
|
|
|
104
|
+ </div>
|
|
|
105
|
+
|
|
|
106
|
+ <include file="public@footer"/>
|
|
|
107
|
+</body>
|
|
|
108
|
+<script src="__TMPL__/public/assets/js/base.js"></script>
|
|
|
109
|
+<script src="__TMPL__/public/assets/js/jquery-2.1.0.js"></script>
|
|
|
110
|
+<script src="__TMPL__/public/assets/js/swiper.min.js"></script>
|
|
|
111
|
+<script>
|
|
|
112
|
+ // 星域秀场视频
|
|
|
113
|
+ var video = document.getElementById("video");
|
|
|
114
|
+
|
|
|
115
|
+ function bofang() {
|
|
|
116
|
+ video.play();
|
|
|
117
|
+ $("#video").attr("controls", "controls");
|
|
|
118
|
+ $(".fourth_video_start").hide();
|
|
|
119
|
+ $('.video_poster').css('z-index', '-1');
|
|
|
120
|
+ }
|
|
|
121
|
+ // swiper
|
|
|
122
|
+
|
|
|
123
|
+ var swiper = new Swiper(".swiper-container", {
|
|
|
124
|
+ slidesPerView: 3,
|
|
|
125
|
+ paginationClickable: true,
|
|
|
126
|
+ spaceBetween: 8,
|
|
|
127
|
+ freeMode: true
|
|
|
128
|
+ });
|
|
|
129
|
+ $(".select input").click(function() {
|
|
|
130
|
+ if ($(this).next("img").attr("src") == "__TMPL__/public/assets/images/down2.png") {
|
|
|
131
|
+ $(this)
|
|
|
132
|
+ .next("img")
|
|
|
133
|
+ .attr("src", "__TMPL__/public/assets/images/upjian.png");
|
|
|
134
|
+ $(".select ul").toggle();
|
|
|
135
|
+ } else {
|
|
|
136
|
+ $(this)
|
|
|
137
|
+ .next("img")
|
|
|
138
|
+ .attr("src", "__TMPL__/public/assets/images/down2.png");
|
|
|
139
|
+ $(".select ul").toggle();
|
|
|
140
|
+ }
|
|
|
141
|
+ });
|
|
|
142
|
+ //默认第一个视频
|
|
|
143
|
+ switch_video(0);
|
|
|
144
|
+
|
|
|
145
|
+ //点击切换
|
|
|
146
|
+ $('.curren li').click(function(){
|
|
|
147
|
+ var index = $(this).index();
|
|
|
148
|
+ $('.curren').children('li').find('.li_img').css('opacity','0.3');
|
|
|
149
|
+ $('.curren').children('li').find('.txt-cut').css('color','rgba(153, 153, 153, 1)');
|
|
|
150
|
+ switch_video(index);
|
|
|
151
|
+ });
|
|
|
152
|
+ $(".select ul li").click(function() {
|
|
|
153
|
+ $(".select input").val($(this).text());
|
|
|
154
|
+ $(".select ul").hide();
|
|
|
155
|
+ var index = $(this).index();
|
|
|
156
|
+ $(".curren")
|
|
|
157
|
+ .eq(index)
|
|
|
158
|
+ .addClass("video_active")
|
|
|
159
|
+ .siblings()
|
|
|
160
|
+ .removeClass("video_active");
|
|
|
161
|
+ });
|
|
|
162
|
+
|
|
|
163
|
+ //切换视频
|
|
|
164
|
+ function switch_video(index){
|
|
|
165
|
+ //视频路径
|
|
|
166
|
+ var li_index = $('.curren').children('li').eq(index);
|
|
|
167
|
+ //选中颜色
|
|
|
168
|
+ li_index.find('.li_img').css('opacity','1');
|
|
|
169
|
+ li_index.find('.txt-cut').css('color','rgba(9, 255, 142, 1)');
|
|
|
170
|
+
|
|
|
171
|
+ //视频
|
|
|
172
|
+ var oneVideo = li_index.children('.li_video').val();
|
|
|
173
|
+ $('#video').attr('src',oneVideo);
|
|
|
174
|
+
|
|
|
175
|
+ // 视频封面图
|
|
|
176
|
+ var oneCover = li_index.find('.li_img').attr('src');
|
|
|
177
|
+ $('.video_poster').attr('src',oneCover);
|
|
|
178
|
+// $('.video_poster').css('z-index', '10');
|
|
|
179
|
+
|
|
|
180
|
+ $('.fourth_video_start').css({
|
|
|
181
|
+ 'z-index': "11",
|
|
|
182
|
+ "display":"block"
|
|
|
183
|
+ });
|
|
|
184
|
+
|
|
|
185
|
+ //标题,国家,取景,上映时间
|
|
|
186
|
+ var post_title = li_index.children('.li_post_title').val();
|
|
|
187
|
+ var city_name = li_index.children('.li_city_name').val();
|
|
|
188
|
+ var framing = li_index.children('.li_framing').val();
|
|
|
189
|
+ var release_time = li_index.children('.li_release_time').val();
|
|
|
190
|
+ $('.post_title').text(post_title);
|
|
|
191
|
+ $('.city_name').text(city_name);
|
|
|
192
|
+ $('.framing').text(framing);
|
|
|
193
|
+ $('.release_time').text(release_time);
|
|
|
194
|
+ }
|
|
|
195
|
+</script>
|
|
|
196
|
+
|
|
|
197
|
+</html> |