123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
-
- import request from '@/utils/request';
- // 首页数据概览
- export function viewModelApi() {
- return request({
- url: '/admin/platform/statistics/home/index',
- method: 'GET',
- });
- }
- // 用户曲线图
- export function chartUserApi() {
- return request({
- url: '/admin/statistics/home/chart/user',
- method: 'get',
- });
- }
- // 用户购买统计
- export function chartBuyApi() {
- return request({
- url: '/admin/statistics/home/chart/user/buy',
- method: 'get',
- });
- }
- // 订单量趋势 30天
- export function chartOrder30Api() {
- return request({
- url: '/admin/statistics/home/chart/order',
- method: 'get',
- });
- }
- // 订单量趋势 月
- export function chartOrderMonthApi() {
- return request({
- url: '/admin/statistics/home/chart/order/month',
- method: 'get',
- });
- }
- // 订单量趋势 周
- export function chartOrderWeekApi() {
- return request({
- url: '/admin/statistics/home/chart/order/week',
- method: 'get',
- });
- }
- // 订单量趋势 年
- export function chartOrderYearApi() {
- return request({
- url: '/admin/statistics/home/chart/order/year',
- method: 'get',
- });
- }
- // 首页经营数据
- export function businessData() {
- return request({
- url: '/admin/platform/statistics/home/operating/data',
- method: 'get',
- });
- }
- /**
- * 用户渠道数据
- * @param pram
- */
- export function userChannelData() {
- return request({
- url: `/admin/platform/statistics/home/channel`,
- method: 'GET',
- });
- }
|