|
@ -174,7 +174,11 @@ function loadData(loadArr){
|
|
$("#pieChartsPanel").show();
|
|
$("#pieChartsPanel").show();
|
|
$("#pieChartsPanel").addClass("show");
|
|
$("#pieChartsPanel").addClass("show");
|
|
$(".wz-num").text(index_83);
|
|
$(".wz-num").text(index_83);
|
|
$(".zd-num").text(index_5);
|
|
|
|
|
|
$(".zd-num").text(index_5);
|
|
|
|
var allindex=(index_83+index_5)*0.01;
|
|
|
|
console.log(allindex+" "+index_83/allindex +" "+index_5/allindex)
|
|
|
|
$(".wz-num-p").text((index_83/allindex).toFixed(2)+"%");
|
|
|
|
$(".zd-num-p").text((index_5/allindex).toFixed(2)+"%");
|
|
var arr = [{
|
|
var arr = [{
|
|
name: '健康文章',
|
|
name: '健康文章',
|
|
value: index_83
|
|
value: index_83
|
|
@ -214,6 +218,11 @@ function loadData(loadArr){
|
|
$("#pieChartsPanel").addClass("show");
|
|
$("#pieChartsPanel").addClass("show");
|
|
$(".wz-num").text(index_83);
|
|
$(".wz-num").text(index_83);
|
|
$(".zd-num").text(index_5);
|
|
$(".zd-num").text(index_5);
|
|
|
|
var allindex=(index_83+index_5)*0.01;
|
|
|
|
console.log(allindex+" "+index_83/allindex +" "+index_5/allindex)
|
|
|
|
$(".wz-num-p").text((index_83/allindex).toFixed(2)+"%");
|
|
|
|
$(".zd-num-p").text((index_5/allindex).toFixed(2)+"%");
|
|
|
|
|
|
var arr = [{
|
|
var arr = [{
|
|
name: '健康文章',
|
|
name: '健康文章',
|
|
value: index_83
|
|
value: index_83
|
|
@ -315,8 +324,13 @@ function handleSecondPanelData(data){
|
|
xDatas = [],
|
|
xDatas = [],
|
|
yDatas = [],
|
|
yDatas = [],
|
|
names = [],
|
|
names = [],
|
|
colors = ['#12b7f5', '#cd67fd'];
|
|
|
|
|
|
colors = ['#12b7f5', '#cd67fd'];
|
|
for(var p in data){
|
|
for(var p in data){
|
|
|
|
if(selectedDateType=="3"){
|
|
|
|
_.each(data[p], function(o){
|
|
|
|
o.range=o.range.substr(0,7)
|
|
|
|
});
|
|
|
|
}
|
|
names.push(indexName[p]);
|
|
names.push(indexName[p]);
|
|
var xData = _.map(data[p], function(o){
|
|
var xData = _.map(data[p], function(o){
|
|
return o.range;
|
|
return o.range;
|
|
@ -337,8 +351,13 @@ function handleSecondPanelData(data){
|
|
if(selectedDateType == 3){
|
|
if(selectedDateType == 3){
|
|
var d1 = lastIndex > 0 ? xData[yData.length - lastIndex] : xData[yData.length - 10],
|
|
var d1 = lastIndex > 0 ? xData[yData.length - lastIndex] : xData[yData.length - 10],
|
|
d2 = xData[yData.length -1];
|
|
d2 = xData[yData.length -1];
|
|
$("#startValue").text(d1.substr(0,4)+"年"+d1.substr(5,2)+"月");
|
|
|
|
$("#endValue").text(d2.substr(0,4)+"年"+d2.substr(5,2)+"月");
|
|
|
|
|
|
if(d1){
|
|
|
|
$("#startValue").text(d1.substr(0,4)+"年"+d1.substr(5,2)+"月");
|
|
|
|
$("#endValue").text(d2.substr(0,4)+"年"+d2.substr(5,2)+"月");
|
|
|
|
}else{
|
|
|
|
$("#startValue").text(d1);
|
|
|
|
$("#endValue").text(d2);
|
|
|
|
}
|
|
}else{
|
|
}else{
|
|
$("#startValue").text(lastIndex > 0 ? xData[yData.length - lastIndex] : xData[yData.length - 10]);
|
|
$("#startValue").text(lastIndex > 0 ? xData[yData.length - lastIndex] : xData[yData.length - 10]);
|
|
$("#endValue").text(xData[yData.length -1]);
|
|
$("#endValue").text(xData[yData.length -1]);
|
|
@ -393,7 +412,7 @@ function handleZCGKData(data){
|
|
$("#pieChartsPanel2 .title").text("注册率概况");
|
|
$("#pieChartsPanel2 .title").text("注册率概况");
|
|
$(".jf-num").text(data.wxUser);
|
|
$(".jf-num").text(data.wxUser);
|
|
$(".wjf-num").text(data.reginNum);
|
|
$(".wjf-num").text(data.reginNum);
|
|
$(".num").text((data.registeRange || 0)+"%");
|
|
|
|
|
|
$(".num").text(data.registeRange || 0);
|
|
var arr = [{
|
|
var arr = [{
|
|
name: '关注平台人数',
|
|
name: '关注平台人数',
|
|
value: data.wxUser
|
|
value: data.wxUser
|
|
@ -467,7 +486,9 @@ function bindEvents(){
|
|
initReqParams();
|
|
initReqParams();
|
|
loadData([1,2]);
|
|
loadData([1,2]);
|
|
//记录返回链接信息
|
|
//记录返回链接信息
|
|
reqList.push({
|
|
|
|
|
|
|
|
|
|
reqList=[];
|
|
|
|
reqList.push({
|
|
level: level,
|
|
level: level,
|
|
lowLevel: lowLevel,
|
|
lowLevel: lowLevel,
|
|
areaCode: areaCode,
|
|
areaCode: areaCode,
|