|
@@ -145,25 +145,26 @@ const getClubEacthsData = function (type,dateType) {
|
|
contentType : 'application/json;charset=UTF-8', //contentType很重要
|
|
contentType : 'application/json;charset=UTF-8', //contentType很重要
|
|
success: function (res) {
|
|
success: function (res) {
|
|
console.log('res',res)
|
|
console.log('res',res)
|
|
- if (res.code === 0) {
|
|
|
|
|
|
+ if (res.portrait.code === 0) {
|
|
|
|
+ let data = res.portrait
|
|
if(type === 0){
|
|
if(type === 0){
|
|
- if(res.portrait.orderPortrait){
|
|
|
|
- let data = res.portrait.orderPortrait;
|
|
|
|
|
|
+ if(data.orderPortrait){
|
|
|
|
+ let data = data.orderPortrait;
|
|
getOrderEacths(data)
|
|
getOrderEacths(data)
|
|
}else{
|
|
}else{
|
|
$('#orderEacthsNone').show();
|
|
$('#orderEacthsNone').show();
|
|
$('#orderEacths').hide();
|
|
$('#orderEacths').hide();
|
|
}
|
|
}
|
|
}else{
|
|
}else{
|
|
- if(!res.portrait.behaviorType){
|
|
|
|
|
|
+ if(!data.behavior){
|
|
$('#keyWordsEacthsNone').show();
|
|
$('#keyWordsEacthsNone').show();
|
|
$('#keyWordsEacths').hide();
|
|
$('#keyWordsEacths').hide();
|
|
}
|
|
}
|
|
- if(!res.portrait.behaviorType){
|
|
|
|
|
|
+ if(!data.remarks){
|
|
$('#serviceEacthsNone').show();
|
|
$('#serviceEacthsNone').show();
|
|
$('#serviceEacths').hide();
|
|
$('#serviceEacths').hide();
|
|
}
|
|
}
|
|
- if(!res.portrait.behaviorType){
|
|
|
|
|
|
+ if(!data.pageType){
|
|
$('#visitEacthsNone').show();
|
|
$('#visitEacthsNone').show();
|
|
$('#visitEacths').hide();
|
|
$('#visitEacths').hide();
|
|
}
|
|
}
|
|
@@ -172,24 +173,24 @@ const getClubEacthsData = function (type,dateType) {
|
|
id:'keyWordsEacths',
|
|
id:'keyWordsEacths',
|
|
color:'#e15616',
|
|
color:'#e15616',
|
|
series:{
|
|
series:{
|
|
- yAxisData:res.portrait.behaviorType ? res.portrait.behaviorType : [],
|
|
|
|
- seriesData:res.portrait.behaviorValue ? res.portrait.behaviorValue : []
|
|
|
|
|
|
+ yAxisData:data.behavior.name,
|
|
|
|
+ seriesData:data.behavior.value
|
|
},
|
|
},
|
|
},
|
|
},
|
|
2:{
|
|
2:{
|
|
id:'serviceEacths',
|
|
id:'serviceEacths',
|
|
color:'#36cbcb',
|
|
color:'#36cbcb',
|
|
series:{
|
|
series:{
|
|
- yAxisData:['M22', '玻尿酸', '超声刀', '面膜', '耗材', '润月雅', 'Ross', '超声跑', '拗口似','是脚手'],
|
|
|
|
- seriesData:[1000, 2000, 3000, 4000, 5000, 6000,7000,8000,9000,10000]
|
|
|
|
|
|
+ yAxisData:data.remarks.name,
|
|
|
|
+ seriesData:data.remarks.value
|
|
},
|
|
},
|
|
},
|
|
},
|
|
3:{
|
|
3:{
|
|
id:'visitEacths',
|
|
id:'visitEacths',
|
|
color:'#3aa0ff',
|
|
color:'#3aa0ff',
|
|
series:{
|
|
series:{
|
|
- yAxisData:['搜索供应商', '楼层详情', '新品橱窗', '文章列表', '供应商主页', '二手列表','个人中心','新商品详情','商品搜索','首页'],
|
|
|
|
- seriesData:[1000, 2000, 3000, 4000, 5000, 6000,7000,8000,9000,10000]
|
|
|
|
|
|
+ yAxisData:data.remarks.name,
|
|
|
|
+ seriesData:data.remarks.value
|
|
},
|
|
},
|
|
}
|
|
}
|
|
}
|
|
}
|