Authored by dongjunjie

总览接口修改

... ... @@ -78,7 +78,7 @@
export default {
components:{
comGrid1: grid
comGrid: grid
},
data() {
return {
... ... @@ -137,18 +137,19 @@
methods:{
//获取店铺的经营指标:一个自然日内有效订单商品件数、有效订单商品金额
fetchData1: function() {
console.log('1');
$.ajax({
type:"post",
url:"/report/getShopBusinessOverview",
dataType: 'json',
data: {
dataType:'json',
data:{
dateId: util.dateFormat(new Date(),"YYYYMMdd")
},
success: function(rs) {
success:function(rs) {
this.buyNumbers = rs.data.buyNumbers;
this.orderAmount = rs.data.orderAmount;
},
error: function(error) {
error:function(error) {
console.log(error)
}
})
... ... @@ -156,20 +157,21 @@
//获取店铺的品牌排名,当前等级、排名、上升名词
fetchData2: function() {
console.log('2');
$.ajax({
type:"post",
url:"/report/getShopBrandRank",
dataType: 'json',
data: {
dataType:'json',
data:{
dateId: util.dateFormat(new Date(),"YYYYMMdd")
},
success: function(rs) {
success:function(rs) {
this.rankNow = rs.data.rankNow;
this.rankChange = rs.data.rankChange;
this.rankLevel = rs.data.rankLevel;
this.rankDate = rs.data.dateId;
},
error: function(error) {
error:function(error) {
console.log(error)
}
})
... ...
... ... @@ -9,7 +9,7 @@ module.exports={
domain:"{bigdata}",
url: "/bigdata/getShopBusinessOverview",
params:{
dateId:{type:"String"}
dateId:{type:String}
}
},
... ... @@ -18,7 +18,7 @@ module.exports={
domain:"{bigdata}",
url: "/bigdata/getShopBrandRank",
params:{
dateId:{type:"String"}
dateId:{type:String}
}
},
... ...