ϵսʿPious Wa 幕后花絮'+highlights_html+'
';
$('.highlights').append(highlights_html);
}
//简评
var access = result['assess'] ? result['assess'] : '';
access = access.replace(/\r\n|\r|\n/g,'
');
if(access){
if(access.length > 200){
access = access.slice(0,198) + '...';
}else{
var access = access;
}
}
var access_html = '';
if(access!=''){
access_html += ''+access+'
';
}
if(access_html != ''){
access_html = ''+access_html+'
';
$('.access').append(access_html);
}
//活动奖项
var award = '';
if(type == 'tv'){
award = result['get_awards'];
}else if(type == 'movie'){
award = result['award'];
}else{
award = result['achievement'];
}
//解析$award
award = award.replace(/\r\n|\r|\n/g,'
');
if(award){
if(award.length > 200){
award = award.slice(0,198) + '...';
}else{
award = award;
}
}
var award_html = '';
award_html += award;
if(award_html != ''){
award_html = '';
$('.award').append(award_html);
}
//分集介绍
var tv_plot = result['tv_plot'] ? result['tv_plot'] : '';
//按照第几集去解析
var matches = tv_plot.split(/第\d+集/g);
//共多少集
var len = matches.length;
var total_plot_html = ''
var plot_html = '';
if(len > 0){
for(k=0;k第'+tab+'集';
}
for(var key = 0; key ');
if(key == 0) {continue;}
k = key -1 ;
var style = 'display: none;';
if(key == 1){style = 'display: block;';}
plot_html += '';
}
}
if(plot_html != ''){
plot_html = ' '+plot_html;
$('.plot').append(plot_html);
//分集剧情
$('#jtab li').on('click',function(e){
e.preventDefault();
x @ Y +e.srcElement.id;
var num = $('.curr_plot')[0].id;
var none_id = 'jtabCon'+num;
$('.curr_plot')[0].setAttribute('class','');
$('#'+e.srcElement.id)[0].setAttribute('class','curr_plot curr');
$('#'+none_id).css('display','none');
$('#'+id).css('display','block');
//console.log(e.srcElement.id);
});
}
if(type == 'star'){
//电影作品年表
var year_movie = '';
var year_tv = '';
var html_temp = '';
$.ajax({
dataType:'jsonp',
type:'get',
url:'//interface.sina.cn/ent/ku/works.d.json?keywords='+keywords+'&type=tv',
success:function(movieResult) {
var movieTemp = movieResult['result']['data'];
var html_temp