crowdFunding.js 1.22 KB
// 获取订单总数、今年新增订单数、收入总额、活动总数
const getTotal = params => {
  return window.$HTTP.get('CrowdFunding/getTotal', params)
}


// 获取月份
const getMonth = params => {
  return window.$HTTP.get('/CrowdFunding/getMonth', params)
}

// 获取商品统计——xx月前5品类
const getGoodsTop5Monthly = params => {
  return window.$HTTP.get('CrowdFunding/getGoodsTop5Monthly', params)
}

// 活动统计_xx月车型排名钱5
const getVehicleBrandTop5Monthly = params => {
  return window.$HTTP.get('CrowdFunding/getVehicleBrandTop5Monthly', params)
}

// 获取商品统计——整体品类排名
const getAllGoodsDistribution = params => {
  return window.$HTTP.get('CrowdFunding/getAllGoodsDistribution', params)
}

// 活动统计_整体车型排名
const getVehicleBrandRanking = params => {
  return window.$HTTP.get('CrowdFunding/getVehicleBrandRanking', params)
}

// 近12个月订单量、订单收入趋势
const getOrderMonthlyTrend = params => {
  return window.$HTTP.get('CrowdFunding/getOrderMonthlyTrend', params)
}

export default {
  getTotal,
  getGoodsTop5Monthly,
  getMonth,
  getVehicleBrandTop5Monthly,
  getAllGoodsDistribution,
  getVehicleBrandRanking,
  getOrderMonthlyTrend
}