home.js 1000 Bytes
import { http } from '@/main'
const timePeriodStatistics = params => {
  params.method = 'scrm.api.shopmall.order.timePeriodStatistics'
  return http({
    url: 'rop-scrm-shopmall/router',
    method: 'GET',
    data: params,
    sign: true
  })
}

const couponStatistical = params => {
  params.method = 'scrm.api.coupon.statistical.marketing.effect'
  return http({
    url: 'rop-scrm-coupon/router',
    method: 'GET',
    data: params,
    sign: true
  })
}

const equityStatistical = params => {
  params.method = 'scrm.api.equity.statistical.marketing.effect'
  return http({
    url: 'rop-scrm-equity/router',
    method: 'GET',
    data: params,
    sign: true
  })
}

const merchantStatistical = params => {
  params.method = 'scrm.api.shopmall.activity.get.merchant.statistics'
  return http({
    url: 'rop-scrm-shopmall/router',
    method: 'GET',
    data: params,
    sign: true
  })
}

export default { timePeriodStatistics, couponStatistical, equityStatistical, merchantStatistical }