From e951ed48ac58bfdbc88923d82affab7b7a858766 Mon Sep 17 00:00:00 2001 From: zmj <1493694146@qq.com> Date: Fri, 8 Dec 2023 00:06:02 +0800 Subject: [PATCH] *** --- src/api.js | 30 ++- src/components/areaList.vue | 4 +- src/view/Businesses.vue | 81 +++--- src/view/commodity.vue | 72 ++++-- src/view/order.vue | 483 ++++++++++++++++++++++++++++++++++-- 5 files changed, 594 insertions(+), 76 deletions(-) diff --git a/src/api.js b/src/api.js index 0c2470a..c5e9d9b 100644 --- a/src/api.js +++ b/src/api.js @@ -65,5 +65,33 @@ export function getUserTradeCountApi(params) { export function getProductCategoryListApi(params) { return instacne.get('/api/dataview/product_category_list', { params }) } -// api/dataview/view_count?areaCode=510524&streetCode=510524100 + + +export function getProductListApi(params) { + return instacne.get('/api/dataview/product_list', { params }) +} + +export function merchant_listApi(params) { + return instacne.get('/api/dataview/merchant_list', { params }) +} + +export function order_listApi(params) { + return instacne.get('/api/dataview/order_list', { params }) +} +export function order_list_count_titleApi(params) { + return instacne.get('/api/dataview/order_list_count_title', { params }) +} +export function refund_order_listApi(params) { + return instacne.get('/api/dataview/refund_order_list', { params }) +} +export function take_order_listApi(params) { + return instacne.get('/api/dataview/take_order_list', { params }) +} + + +export function take_order_count_titleApi(params) { + return instacne.get('/api/dataview/take_order_count_title', { params }) +} +// +// /api/dataview/take_order_count_title?areaCode=510524&streetCode=510524100&status&page=1&limit=20 diff --git a/src/components/areaList.vue b/src/components/areaList.vue index d8fd1ae..c273cd1 100644 --- a/src/components/areaList.vue +++ b/src/components/areaList.vue @@ -23,9 +23,9 @@ const choseTownFn = (id, name) => { props.choseArea = false emit('offAreaList', name) - router.go(0) + // router.go(0) - // router.replace('/townDetail?code=' + id) + router.replace('/townDetail?code=' + id) } onMounted(() => { diff --git a/src/view/Businesses.vue b/src/view/Businesses.vue index 2ded8b6..d7c346f 100644 --- a/src/view/Businesses.vue +++ b/src/view/Businesses.vue @@ -4,10 +4,10 @@