作者 景龙
1 个管道 的构建 通过 耗费 11 秒

测试视频分享定位

... ... @@ -106,6 +106,8 @@
<input type="hidden" value="" id="li_id">
<p>取景:<span class="framing"></span></p>
<p>上映时间:<span class="release_time"></span></p>
<!--视频索引-->
<input type="hidden" value="0" class="video_index">
</div>
<!-- 分享 -->
<div class="show_9_video_asideTxt3 clearfix">
... ... @@ -176,6 +178,7 @@
$('.curren').children('li').children('.li_img').css('opacity', '0.3');
$('.curren').children('li').children('p').css('color', 'rgba(153, 153, 153, 1)');
switch_video(index);
$('.video_index').val(index);
});
//鼠标滑过
... ...
... ... @@ -20,7 +20,21 @@
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/jquery.qrcode/1.0/jquery.qrcode.min.js"></script>
<script>
var url = window.location.href;
var pathname = window.location.pathname;
var video_index = $('.video_index').val();
var city_id = getUrlParam('city_id');
// 分享链接
var url;
if(pathname == '/portal/region/getMoreVideo'){
if(city_id == ''){
url = window.location.href+'?video_index='+video_index;
}else{
url = window.location.href+'&video_index='+video_index;
}
}else{
url = window.location.href;
}
/* 生成二维码 */
$("#qrcode").qrcode({
text: url, //设置二维码内容
... ...
... ... @@ -133,6 +133,9 @@
<!-- <div class="index_seventh_bottom_two">国家:<span class="city_name"></span></div> -->
<div class="index_seventh_bottom_three">取景:<span class="framing"></span></div>
<div class="index_seventh_bottom_four">上映时间:<span class="release_time"></span></div>
<!--视频索引-->
<input type="hidden" value="0" class="video_index">
<div class="index_seventh_bottom_five">
<div class="index_seventh_bottom_title">分享:</div>
<div class="index_seventh_bottom_img1">
... ... @@ -233,8 +236,9 @@
$(".select ul").toggle();
}
});
var video_index = getUrlParam('video_index');
//默认第一个视频
switch_video(0);
switch_video(video_index);
//点击切换
$('.curren li').click(function() {
... ... @@ -242,6 +246,7 @@
$('.curren').children('li').find('.li_img').css('opacity', '0.3');
$('.curren').children('li').find('.txt-cut').css('color', 'rgba(153, 153, 153, 1)');
switch_video(index);
$('.video_index').val(index);
});
// $(".select ul li").click(function() {
... ...
... ... @@ -2,8 +2,21 @@
<script src="http://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
<script>
$(function () {
var pathname = window.location.pathname;
var video_index = $('.video_index').val();
var city_id = getUrlParam('city_id');
// 分享链接
var url = window.location.href;
var url;
if(pathname == '/portal/region/getMoreVideo'){
if(city_id == ''){
url = window.location.href+'?video_index='+video_index;
}else{
url = window.location.href+'&video_index='+video_index;
}
}else{
url = window.location.href;
}
// 分享标题
var title_title = $(document).attr('title');
// 分享简介
... ...