|
@@ -56,13 +56,13 @@ function changeTab(day){
|
56
|
56
|
}
|
57
|
57
|
$(".text").input();
|
58
|
58
|
getBrandAnalysisList(1);
|
59
|
|
- getPlacementDetailList(1);
|
|
59
|
+ /*getPlacementDetailList(1);
|
60
|
60
|
getPieData(cur_type);
|
61
|
61
|
getRatingCharts(cur_type);
|
62
|
62
|
getNetChart(cur_type,'');
|
63
|
63
|
getDoubanChart(cur_type);
|
64
|
64
|
getRankList(cur_type);
|
65
|
|
- changeTagName();
|
|
65
|
+ changeTagName();*/
|
66
|
66
|
}
|
67
|
67
|
|
68
|
68
|
function changeType(type){
|
|
@@ -89,56 +89,43 @@ function getBrandAnalysisList(page){
|
89
|
89
|
var pageSize = "10", data = {
|
90
|
90
|
"pageNo": page,
|
91
|
91
|
"pageSize": pageSize,
|
92
|
|
- "name": $("#keyword").val(),
|
|
92
|
+ "keyword": $("#keyword").val(),
|
|
93
|
+ "type": $("#type").val(),
|
93
|
94
|
"second_ind":$("#second_ind").val(),
|
94
|
95
|
"beginDate": $("#start_time").val(),
|
95
|
96
|
"endDate": $("#end_time").val()
|
96
|
97
|
}, html = "";
|
97
|
98
|
$("#brand_analysis_page, #brand_analysis_list").empty();
|
98
|
|
- ajax("ajax_brand_analysis_list.do",data,function(res){
|
99
|
|
- if(res.code == 1 && res.list.length > 0){
|
100
|
|
- $.each(res.list, function(index, item){
|
|
99
|
+ ajax("ajax_special_analysis_list.do",data,function(res){
|
|
100
|
+ if(res.code == 1 && res.data.records.length > 0){
|
|
101
|
+ $.each(res.data.records, function(index, item){
|
101
|
102
|
if(index == 0){
|
102
|
103
|
cur_brand = item.brand;
|
103
|
104
|
}
|
104
|
|
- //eg:1|歌手/1|快乐大本营/1|快乐大本营
|
105
|
|
- var types = item.types ? item.types.split("/") : [];
|
106
|
|
- var count_1 = [],count_2 = [],count_3 = [],count_4 = [];
|
107
|
|
- for(var i in types){
|
108
|
|
- if(types[i].split('|')[0] == "1")
|
109
|
|
- count_1.push(types[i].split('|')[1]);
|
110
|
|
- else if(types[i].split('|')[0] == "2")
|
111
|
|
- count_2.push(types[i].split('|')[1]);
|
112
|
|
- else if(types[i].split('|')[0] == "3")
|
113
|
|
- count_3.push(types[i].split('|')[1]);
|
114
|
|
- else if(types[i].split('|')[0] == "4")
|
115
|
|
- count_4.push(types[i].split('|')[1]);
|
116
|
|
- }
|
117
|
|
- count_1 = unique(count_1);
|
118
|
|
- count_2 = unique(count_2);
|
119
|
|
- count_3 = unique(count_3);
|
120
|
|
- count_4 = unique(count_4);
|
121
|
105
|
html += "<tr data-brand='"+item.brand+"'>"+
|
122
|
106
|
"<td>"+$.orderNum(page,pageSize,index)+"</td>"+
|
123
|
|
- "<td>"+item.brand+"</td>"+
|
124
|
|
- "<td>"+(item.second_ind ? item.second_ind : '-')+"</td>"+ //"<td>"+(item.advertiser ? item.advertiser : '-')+"</td>"+
|
125
|
|
- "<td>"+(item.model_count ? item.model_count : '-')+"</td>"+
|
126
|
|
- "<td>"+count_1.length+"</td>"+
|
127
|
|
- "<td>"+count_2.length+"</td>"+
|
128
|
|
- "<td>"+count_3.length+"</td>"+
|
129
|
|
- "<td>"+count_4.length+"</td>"+
|
130
|
|
- "<td>"+item.sum_frequency+"</td>"+
|
131
|
|
- "<td>"+item.sum_length+"</td>"+
|
132
|
|
- "<td>"+item.sum_price+"</td>"+
|
|
107
|
+ "<td>"+item.mediaName+"</td>"+
|
|
108
|
+ "<td>"+item.showTime+"</td>"+
|
|
109
|
+ "<td>"+item.showDate+"</td>"+
|
|
110
|
+ "<td>"+item.showEnv+"</td>"+
|
|
111
|
+ "<td>"+item.tvName+"</td>"+
|
|
112
|
+ "<td>"+item.showDuration+"</td>"+
|
|
113
|
+ "<td>"+item.productName+"</td>"+
|
|
114
|
+ "<td>"+item.brandName+"</td>"+
|
|
115
|
+ "<td>"+item.firstInd+"</td>"+
|
|
116
|
+ "<td>"+item.secondInd+"</td>"+
|
|
117
|
+ "<td>"+item.advMaster+"</td>"+
|
|
118
|
+ "<td>"+item.phone+"</td>"+
|
|
119
|
+ "<td>"+item.price+"</td>"+
|
133
|
120
|
"<td><input type='checkbox' class='checkbox {click:itemCheck}' name='item' "+($.cookie.get("benchCheckNum").indexOf(item.brand) != -1 ? 'checked':'')+" value='"+item.brand+"' /><label></label></td>"+
|
134
|
121
|
"</tr>";
|
135
|
122
|
});
|
136
|
123
|
$("#brand_analysis_list").html(html);
|
137
|
124
|
$.radio();
|
138
|
125
|
$.checkbox();
|
139
|
|
- var newpage = new createPage(res.count,page,pageSize,3,"brandAnalysisPageGo");
|
|
126
|
+ var newpage = new createPage(res.data.total,page,pageSize,3,"brandAnalysisPageGo");
|
140
|
127
|
$("#brand_analysis_page").html(newpage.pageHtml);
|
141
|
|
- $('#brand_analysis_count').html(res.count);
|
|
128
|
+ $('#brand_analysis_count').html(res.data.count);
|
142
|
129
|
/**
|
143
|
130
|
* 点击事件
|
144
|
131
|
*/
|
|
@@ -160,12 +147,12 @@ brandAnalysisPageGo = getBrandAnalysisList;
|
160
|
147
|
|
161
|
148
|
function getPlacementDetailList(page){
|
162
|
149
|
page = page || 1;
|
163
|
|
- var pageSize = "10",name = $("#keyword").val(),beginDate = $("#start_time").val(),
|
|
150
|
+ var pageSize = "10",keyword = $("#keyword").val(),beginDate = $("#start_time").val(),
|
164
|
151
|
endDate = $("#end_time").val(),data = {
|
|
152
|
+ "type": $("#type").val(),
|
165
|
153
|
"pageNo": page,
|
166
|
154
|
"pageSize": pageSize,
|
167
|
|
- "brand":cur_brand,
|
168
|
|
- "name": name,
|
|
155
|
+ "keyword": keyword,
|
169
|
156
|
"beginDate": beginDate,
|
170
|
157
|
"endDate": endDate
|
171
|
158
|
}, html = "";
|
|
@@ -423,7 +410,7 @@ function getDoubanChart(type){
|
423
|
410
|
|
424
|
411
|
|
425
|
412
|
/**
|
426
|
|
- * 节目及品牌软性广告投放排名
|
|
413
|
+ * 产品专题广告投放排名
|
427
|
414
|
*/
|
428
|
415
|
function getRankList(type){
|
429
|
416
|
var data = {
|
|
@@ -432,7 +419,7 @@ function getRankList(type){
|
432
|
419
|
"beginDate": $("#start_time").val(),
|
433
|
420
|
"endDate": $("#end_time").val()
|
434
|
421
|
},html="";
|
435
|
|
- ajax("list_program_brand_rank.do",data,function(res){
|
|
422
|
+ ajax("list_special_product_rank.do",data,function(res){
|
436
|
423
|
if(res.code == 1 && res.data){
|
437
|
424
|
if(res.data.programRankList.length > 0){
|
438
|
425
|
var list = sortProgramRankList(res.data.programRankList,program_arr);
|