Authored by ZhongW

Merge branch 'hotfix_YBW-8059' into gray

... ... @@ -29,16 +29,26 @@
dateId: util.dateFormat(new Date(),"YYYYMMdd")
}).then(function (response) {
var data = response.data.data;
//全站销售地域
//全站销售地域
var yohoTop = echarts.init(document.getElementById('yohoTop'));
var yohoOption = this.getXOption(data.yoho.x, data.yoho.y, "全站销售地域Top10:");
yohoTop.setOption(yohoOption);
if(data.yoho.y.length==0){
var yohoOption = this.getXOption(data.yoho.x, data.yoho.y, "全站销售地域Top10:暂无数据");
}else{
var yohoOption = this.getXOption(data.yoho.x, data.yoho.y, "全站销售地域Top10:");
}
yohoTop.setOption(yohoOption);
//店铺销售地域
//店铺销售地域
var shopTop = echarts.init(document.getElementById('shopTop'));
var shopOption = this.getXOption(data.shop.x, data.shop.y, "店铺销售地域Top10:");
if(data.shop.y.length==0){
var shopOption = this.getXOption(data.shop.x, data.shop.y, "店铺销售地域Top10:暂无数据");
}else{
var shopOption = this.getXOption(data.shop.x, data.shop.y, "店铺销售地域Top10:");
}
shopTop.setOption(shopOption);
});
});
},
getXOption(provinces, data, title){
var option = {
... ...