...
|
...
|
@@ -69,6 +69,8 @@ |
|
|
<p>
|
|
|
{$vo.post_title}
|
|
|
</p>
|
|
|
<!--id-->
|
|
|
<input type="hidden" value="{$vo.id}" class="li_id">
|
|
|
<input type="hidden" value="{:cmf_get_file_download_url($vo.video)}" class="li_video">
|
|
|
<!--标题-->
|
|
|
<input type="hidden" value="{$vo.post_title}" class="li_post_title">
|
...
|
...
|
@@ -90,14 +92,19 @@ |
|
|
<!-- 国家 -->
|
|
|
<div class="show_9_video_asideTxt2">
|
|
|
<!--<p>国家:<span class="city_name"></span></p>-->
|
|
|
<input type="hidden" value="" id="li_id">
|
|
|
<p>取景:<span class="framing"></span></p>
|
|
|
<p>上映时间:<span class="release_time"></span></p>
|
|
|
</div>
|
|
|
<!-- 分享 -->
|
|
|
<div class="show_9_video_asideTxt3 clearfix">
|
|
|
<p>分享:</p>
|
|
|
<input type="hidden" class="collection" value="">
|
|
|
<input type="hidden" class="like" value="">
|
|
|
<img src="__TMPL__/public/assets/starImg/aicon_89.png" alt="">
|
|
|
<img src="__TMPL__/public/assets/starImg/aicon_90.png" alt="">
|
|
|
<img id="collections" src="__TMPL__/public/assets/starImg/bicon_02.png" alt="">
|
|
|
<img id="likes" src="__TMPL__/public/assets/starImg/bicon_03.png" alt="">
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
...
|
...
|
@@ -215,15 +222,24 @@ |
|
|
'z-index': "11",
|
|
|
"display": "block"
|
|
|
});
|
|
|
//标题,国家,取景,上映时间
|
|
|
//视频id,标题,国家,取景,上映时间
|
|
|
var id = li_index.children('.li_id').val();
|
|
|
var post_title = li_index.children('.li_post_title').val();
|
|
|
var city_name = li_index.children('.li_city_name').val();
|
|
|
var framing = li_index.children('.li_framing').val();
|
|
|
var release_time = li_index.children('.li_release_time').val();
|
|
|
$('#li_id').val(id);
|
|
|
$('.post_title').text(post_title);
|
|
|
$('.city_name').text(city_name);
|
|
|
$('.framing').text(framing);
|
|
|
$('.release_time').text(release_time);
|
|
|
|
|
|
//是否收藏
|
|
|
is_collections(id);
|
|
|
|
|
|
//是否点赞
|
|
|
is_likes(id);
|
|
|
|
|
|
}
|
|
|
// 点击播放
|
|
|
function bofang() {
|
...
|
...
|
@@ -232,6 +248,49 @@ |
|
|
$('.play_button').hide();
|
|
|
$('.video_poster').css('z-index', '-1');
|
|
|
}
|
|
|
|
|
|
//是否收藏
|
|
|
function is_collections(article_id){
|
|
|
var host = 'http://'+window.location.host;
|
|
|
$.ajax({
|
|
|
type: 'POST',
|
|
|
url: '/portal/star/is_collections',
|
|
|
data: {
|
|
|
'id':article_id,
|
|
|
},
|
|
|
dataType: 'json',
|
|
|
async : false,
|
|
|
success: function (data) {
|
|
|
console.log(data);
|
|
|
if (data.code == 1) {
|
|
|
$('#collections').attr('src',host+'/themes/simpleboot3/public/assets/starImg/bicon_15.png')
|
|
|
} else {
|
|
|
$('#collections').attr('src',host+'/themes/simpleboot3/public/assets/starImg/bicon_02.png')
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
//是否点赞
|
|
|
function is_likes(article_id){
|
|
|
var host = 'http://'+window.location.host;
|
|
|
$.ajax({
|
|
|
type: 'POST',
|
|
|
url: '/portal/star/is_likes',
|
|
|
data: {
|
|
|
'id':article_id,
|
|
|
},
|
|
|
dataType: 'json',
|
|
|
async : false,
|
|
|
success: function (data) {
|
|
|
if (data.code == 1) {
|
|
|
$('#likes').attr('src',host+'/themes/simpleboot3/public/assets/starImg/bicon_16.png')
|
|
|
} else {
|
|
|
$('#likes').attr('src',host+'/themes/simpleboot3/public/assets/starImg/bicon_03.png')
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
</script>
|
|
|
</body>
|
|
|
|
...
|
...
|
|