From 04dc971f566d4300ed3d2787d7a1cfbbcf3cdafd Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Wed, 17 Jul 2024 11:20:37 +0800 Subject: [PATCH] (Update townDetail components with optimized API parameters and added sotre_id for improved accuracy) --- src/api.js | 14 +- src/components/index/bottomCenter.vue | 62 +------ src/components/index/bottomLeft.vue | 9 +- src/components/index/bottomRight.vue | 6 +- src/components/index/topCenter.vue | 16 +- src/components/index/topLeft.vue | 202 +++++++++++----------- src/components/index/topRight.vue | 5 +- src/components/townDetail/bottomRight.vue | 6 +- src/components/townDetail/topLeft.vue | 12 +- src/view/index.vue | 48 +++-- 10 files changed, 183 insertions(+), 197 deletions(-) diff --git a/src/api.js b/src/api.js index 076f320..d5cc6dc 100644 --- a/src/api.js +++ b/src/api.js @@ -70,7 +70,8 @@ export function getUserNumApi(params) { export function getOrderNumApi(params) { - return instacne.get('/statistics/store_order_day', { params }) + // return instacne.get('/statistics/store_order_day', { params }) + return instacne.get('/statistics/demo/bottomLeft', { params }) } export function getSalesRankApi(params) { return instacne.get('/statistics/sales_ranking', { params }) @@ -87,6 +88,9 @@ export function getTodayOrderAmountApi(params) { return instacne.get('/statistics/store_order_day_two', { params }) } +export function getDemoTodayOrderAmountApi(params) { + return instacne.get('/statistics/demo/store_order_day_two', { params }) +} export function getProductCountApi(params) { return instacne.get('/statistics/product_count', { params }) @@ -95,11 +99,15 @@ export function getProductCountApi(params) { export function getViewCountApi(params) { return instacne.get('/statistics/index', { params }) } - +export function getDemoViewCountApi(params) { + return instacne.get('/statistics/demo/index', { params }) +} export function getUserTradeCountApi(params) { return instacne.get('/statistics/user_trade_count', { params }) } - +export function getDemoUserTradeCountApi(params) { + return instacne.get('/statistics/demo/user_trade_count', { params }) +} export function getProductCategoryListApi(params) { return instacne.get('/api/dataview/product_category_list', { params }) } diff --git a/src/components/index/bottomCenter.vue b/src/components/index/bottomCenter.vue index 165aa49..5e47b09 100644 --- a/src/components/index/bottomCenter.vue +++ b/src/components/index/bottomCenter.vue @@ -4,12 +4,12 @@