You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.2 KiB
JavaScript
36 lines
1.2 KiB
JavaScript
6 years ago
|
// 获取TA的评论
|
||
|
function getTafb(t){
|
||
|
var taid=$('#taid').val();
|
||
|
var strframe='<iframe id="frame" src="/api/api.php?method=taiframe&id='+taid+'" width="757" height="0" frameborder="0" marginheight="0" marginwidth="0" style="vertical-align:top;"></iframe>';
|
||
|
$('.taReviews').append(strframe);
|
||
|
$('iframe#frame').load(function()
|
||
|
{
|
||
|
var strbody = $('#frame').contents().find('#noresult').html();
|
||
|
if( typeof strbody != 'undefined'){
|
||
|
$('.taReviews').remove();
|
||
|
$(".rmpic").show();
|
||
|
return;
|
||
|
}
|
||
|
var serr=$('#frame').contents().find('#CDSWIDERR').html();
|
||
|
if(typeof serr !='undefined'){
|
||
|
//无相关评论
|
||
|
$('.taReviews').remove();
|
||
|
$(".rmpic").show();
|
||
|
}else{
|
||
|
var taRtngH=0;
|
||
|
if(t=='info'){
|
||
|
var ofram = $('#frame').contents();
|
||
|
var taChoice= ofram.find('.cdsInformation').html();
|
||
|
var taRtng=ofram.find('.cdsTrvlRtng').html();
|
||
|
$(".rmpic").remove();
|
||
|
$("#taRtng").html(taChoice+taRtng);
|
||
|
ofram.find('.cdsInformation').parent('.cdsWrap').remove();
|
||
|
ofram.find('.cdsTrvlRtng').remove();
|
||
|
var taRtngH=$('#taRtng').height();
|
||
|
$("#taRtng").addClass("taRtng");
|
||
|
}
|
||
|
var taHeight = $('#frame').contents().find('#CDSPOP').height();
|
||
|
$('iframe#frame').height(taHeight)
|
||
|
}
|
||
|
});
|
||
|
}
|