|
|
|
@ -10,14 +10,14 @@ function queryCompositeDetail_hotel(data) { |
|
|
|
|
if (data.length>0) { |
|
|
|
|
$("#total").html(data[0].comments_total); |
|
|
|
|
$("#total_tb").html(judgeRatio(data[0].total_equal_rate)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#goodNum").html('好评' + data[0].positive_comments_count); |
|
|
|
|
$("#goodRate").html(data[0].positive_comments_rate + "%"); |
|
|
|
|
$("#good_tb").html(judgeRatio(data[0].positive_equal_rate)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#badNum").html('差评' + data[0].negative_comments_count); |
|
|
|
|
$("#bad_tb").html(judgeRatio(data[0].negative_equal_rate)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(".grade").html(data[0].common_mark + '分'); |
|
|
|
|
|
|
|
|
|
composite_detail_good.push(data[0].positive_equal_count); |
|
|
|
@ -25,7 +25,7 @@ function queryCompositeDetail_hotel(data) { |
|
|
|
|
composite_detail_bad.push(data[0].negative_equal_count); |
|
|
|
|
var equal_total = parseInt(data[0].positive_equal_count)+parseInt(data[0].moderate_equal_count)+parseInt(data[0].negative_equal_count); |
|
|
|
|
composite_detail_total.push(equal_total); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(date_type != "3"){//年的没有环比
|
|
|
|
|
$('#total_hbname').css('display',''); |
|
|
|
|
$('#good_hbname').css('display',''); |
|
|
|
@ -33,7 +33,7 @@ function queryCompositeDetail_hotel(data) { |
|
|
|
|
$("#total_hb").html(judgeRatio(data[0].total_circle_rate)); |
|
|
|
|
$("#good_hb").html(judgeRatio(data[0].positive_circle_rate)); |
|
|
|
|
$("#bad_hb").html(judgeRatio(data[0].negative_circle_rate)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
composite_detail_good.push(data[0].positive_circle_count); |
|
|
|
|
composite_detail_middle.push(data[0].moderate_circle_count); |
|
|
|
|
composite_detail_bad.push(data[0].negative_circle_count); |
|
|
|
@ -43,7 +43,7 @@ function queryCompositeDetail_hotel(data) { |
|
|
|
|
$('#total_hbname').css('display','none'); |
|
|
|
|
$('#good_hbname').css('display','none'); |
|
|
|
|
$('#bad_hbname').css('display','none'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#total_hb").html(''); |
|
|
|
|
$("#good_hb").html(''); |
|
|
|
|
$("#bad_hb").html(''); |
|
|
|
@ -276,13 +276,13 @@ function queryPeopleDimension_hotel(data) { |
|
|
|
|
if (data.length > 0) { |
|
|
|
|
$("#f_dimension_name").html(data[0].dname + ', ' + data[1].dname + ', ' + data[2].dname); |
|
|
|
|
$("#s_dimension_name").html(data[data.length - 1].dname + ', ' + data[data.length - 2].dname); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//按好评数量排序
|
|
|
|
|
var goodSort = data.sort(function (a, b) { |
|
|
|
|
return (b.znum - a.znum); |
|
|
|
|
}); |
|
|
|
|
$("#good_dimension_name").html(goodSort[0].dname + ', ' + goodSort[1].dname); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//按差评数量排序
|
|
|
|
|
var badSort = data.sort(function (a, b) { |
|
|
|
|
return (b.fnum - a.fnum); |
|
|
|
@ -488,7 +488,7 @@ function queryNegativeWord_hotel(data) { |
|
|
|
|
words += data[i].words + ","; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var num = data.length<5 ? data.length : 5; |
|
|
|
|
$("#bad_words").html('<strong class="col_qing">' + words.substr(0, words.length - 1) + |
|
|
|
|
'</strong>成为本季度游客<strong class="col_huang">差评</strong>使用频率最高的' + num + '个词'); |
|
|
|
@ -641,7 +641,7 @@ function gotohotwordList(hotWords){ |
|
|
|
|
title : "", |
|
|
|
|
anim : 2, |
|
|
|
|
shade: [0.7, '#333'], |
|
|
|
|
area : [ '1200px', '475px' ], |
|
|
|
|
area : [ '1200px', '650px' ], |
|
|
|
|
content : _CTX + "/v2/hotword/gotohotellist.do?hotWords="+encodeURI(encodeURI(hotWords))+'&date_type='+date_type+'&year='+nian+'&quarter='+jidu+'&month='+yue |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|