|
@@ -15,7 +15,16 @@ |
|
@@ -15,7 +15,16 @@ |
15
|
position: absolute;
|
15
|
position: absolute;
|
16
|
top: 0;
|
16
|
top: 0;
|
17
|
width: 100%;
|
17
|
width: 100%;
|
18
|
- height: 97%;
|
18
|
+ height: 100%;
|
|
|
19
|
+ }
|
|
|
20
|
+
|
|
|
21
|
+ .video_bg video {
|
|
|
22
|
+ width: 100%;
|
|
|
23
|
+ height: 100%;
|
|
|
24
|
+ }
|
|
|
25
|
+
|
|
|
26
|
+ .video_bg {
|
|
|
27
|
+ background-color: black;
|
19
|
}
|
28
|
}
|
20
|
</style>
|
29
|
</style>
|
21
|
</head>
|
30
|
</head>
|
|
@@ -54,7 +63,7 @@ |
|
@@ -54,7 +63,7 @@ |
54
|
</ul>
|
63
|
</ul>
|
55
|
<input type="hidden" value="0" name="city_id" id="city_id">
|
64
|
<input type="hidden" value="0" name="city_id" id="city_id">
|
56
|
<div style="display:none;">
|
65
|
<div style="display:none;">
|
57
|
- <input type="submit" id="city_submit"/>
|
66
|
+ <input type="submit" id="city_submit" />
|
58
|
</div>
|
67
|
</div>
|
59
|
</form>
|
68
|
</form>
|
60
|
</div>
|
69
|
</div>
|
|
@@ -119,26 +128,26 @@ |
|
@@ -119,26 +128,26 @@ |
119
|
});
|
128
|
});
|
120
|
//登录
|
129
|
//登录
|
121
|
var users = $('#users').val();
|
130
|
var users = $('#users').val();
|
122
|
- if(users == 0) {
|
131
|
+ if (users == 0) {
|
123
|
//监听播放时间
|
132
|
//监听播放时间
|
124
|
video_mask('您还不是会员,可试看20秒');
|
133
|
video_mask('您还不是会员,可试看20秒');
|
125
|
var video = document.getElementById('video');
|
134
|
var video = document.getElementById('video');
|
126
|
//使用事件监听方式捕捉事件
|
135
|
//使用事件监听方式捕捉事件
|
127
|
- video.addEventListener("timeupdate", function () {
|
136
|
+ video.addEventListener("timeupdate", function() {
|
128
|
var timeDisplay;
|
137
|
var timeDisplay;
|
129
|
//用秒数来显示当前播放进度
|
138
|
//用秒数来显示当前播放进度
|
130
|
timeDisplay = Math.floor(video.currentTime);
|
139
|
timeDisplay = Math.floor(video.currentTime);
|
131
|
console.log(Math.floor(video.currentTime));
|
140
|
console.log(Math.floor(video.currentTime));
|
132
|
- video.addEventListener('play', function () {
|
141
|
+ video.addEventListener('play', function() {
|
133
|
video.currentTime = 0;
|
142
|
video.currentTime = 0;
|
134
|
});
|
143
|
});
|
135
|
//当视频播放到 15s的时候做处理
|
144
|
//当视频播放到 15s的时候做处理
|
136
|
|
145
|
|
137
|
if (timeDisplay >= 20) {
|
146
|
if (timeDisplay >= 20) {
|
138
|
- video.addEventListener('play', function () {
|
|
|
139
|
- video.currentTime = 0;
|
|
|
140
|
- }),
|
|
|
141
|
- video_mask('会员可观看完整视频');
|
147
|
+ video.addEventListener('play', function() {
|
|
|
148
|
+ video.currentTime = 0;
|
|
|
149
|
+ }),
|
|
|
150
|
+ video_mask('会员可观看完整视频');
|
142
|
video.pause();
|
151
|
video.pause();
|
143
|
}
|
152
|
}
|
144
|
}, false);
|
153
|
}, false);
|
|
@@ -148,9 +157,9 @@ |
|
@@ -148,9 +157,9 @@ |
148
|
|
157
|
|
149
|
function bofang() {
|
158
|
function bofang() {
|
150
|
video.play();
|
159
|
video.play();
|
|
|
160
|
+ $('.video_poster').hide();
|
151
|
$("#video").attr("controls", "controls");
|
161
|
$("#video").attr("controls", "controls");
|
152
|
$(".fourth_video_start").hide();
|
162
|
$(".fourth_video_start").hide();
|
153
|
- $('.video_poster').css('z-index', '-1');
|
|
|
154
|
}
|
163
|
}
|
155
|
|
164
|
|
156
|
// swiper
|
165
|
// swiper
|
|
@@ -183,21 +192,21 @@ |
|
@@ -183,21 +192,21 @@ |
183
|
$('.curren').children('li').find('.txt-cut').css('color', 'rgba(153, 153, 153, 1)');
|
192
|
$('.curren').children('li').find('.txt-cut').css('color', 'rgba(153, 153, 153, 1)');
|
184
|
switch_video(index);
|
193
|
switch_video(index);
|
185
|
});
|
194
|
});
|
186
|
-// $(".select ul li").click(function() {
|
|
|
187
|
-// $(".select input").val($(this).text());
|
|
|
188
|
-// $(".select ul").hide();
|
|
|
189
|
-// var index = $(this).index();
|
|
|
190
|
-// $(".curren")
|
|
|
191
|
-// .eq(index)
|
|
|
192
|
-// .addClass("video_active")
|
|
|
193
|
-// .siblings()
|
|
|
194
|
-// .removeClass("video_active");
|
|
|
195
|
-// });
|
195
|
+ // $(".select ul li").click(function() {
|
|
|
196
|
+ // $(".select input").val($(this).text());
|
|
|
197
|
+ // $(".select ul").hide();
|
|
|
198
|
+ // var index = $(this).index();
|
|
|
199
|
+ // $(".curren")
|
|
|
200
|
+ // .eq(index)
|
|
|
201
|
+ // .addClass("video_active")
|
|
|
202
|
+ // .siblings()
|
|
|
203
|
+ // .removeClass("video_active");
|
|
|
204
|
+ // });
|
196
|
|
205
|
|
197
|
var value = $('#cityName').val();
|
206
|
var value = $('#cityName').val();
|
198
|
- if(value != ''){
|
207
|
+ if (value != '') {
|
199
|
$('.show_city').val(value);
|
208
|
$('.show_city').val(value);
|
200
|
- }else{
|
209
|
+ } else {
|
201
|
$('.show_city').val('所有');
|
210
|
$('.show_city').val('所有');
|
202
|
}
|
211
|
}
|
203
|
|
212
|
|
|
@@ -206,7 +215,7 @@ |
|
@@ -206,7 +215,7 @@ |
206
|
var city_id = $(this).val();
|
215
|
var city_id = $(this).val();
|
207
|
$('#city_id').val(city_id);
|
216
|
$('#city_id').val(city_id);
|
208
|
$('form').submit();
|
217
|
$('form').submit();
|
209
|
- window.location.href = '/portal/region/getMoreVideo?city_id='+city_id;
|
218
|
+ window.location.href = '/portal/region/getMoreVideo?city_id=' + city_id;
|
210
|
});
|
219
|
});
|
211
|
|
220
|
|
212
|
//切换视频
|
221
|
//切换视频
|
|
@@ -222,14 +231,19 @@ |
|
@@ -222,14 +231,19 @@ |
222
|
$('#video').attr('src', oneVideo);
|
231
|
$('#video').attr('src', oneVideo);
|
223
|
|
232
|
|
224
|
// 视频封面图
|
233
|
// 视频封面图
|
225
|
- var oneCover = li_index.find('.li_img').attr('src');
|
|
|
226
|
- $('.video_poster').attr('src', oneCover);
|
|
|
227
|
- // $('.video_poster').css('z-index', '10');
|
|
|
228
|
-
|
|
|
229
|
- $('.fourth_video_start').css({
|
|
|
230
|
- 'z-index': "100",
|
|
|
231
|
- "display": "block"
|
|
|
232
|
- });
|
234
|
+ var img = li_index.find('.li_img').attr('src');
|
|
|
235
|
+ $('.video_poster').attr('src', img);
|
|
|
236
|
+ $('.video_poster').show();
|
|
|
237
|
+ $(".fourth_video_start").show();
|
|
|
238
|
+
|
|
|
239
|
+
|
|
|
240
|
+ // var oneCover = li_index.find('.li_img').attr('src');
|
|
|
241
|
+ // $('.video_poster').attr('src', oneCover);
|
|
|
242
|
+
|
|
|
243
|
+ // $('.fourth_video_start').css({
|
|
|
244
|
+ // 'z-index': "100",
|
|
|
245
|
+ // "display": "block"
|
|
|
246
|
+ // });
|
233
|
|
247
|
|
234
|
//标题,国家,取景,上映时间
|
248
|
//标题,国家,取景,上映时间
|
235
|
var post_title = li_index.children('.li_post_title').val();
|
249
|
var post_title = li_index.children('.li_post_title').val();
|