From e3cda98a98b87afc6334e5183350be6982f59207 Mon Sep 17 00:00:00 2001 From: lcc <805383944@qq.com> Date: Wed, 18 Jun 2025 23:18:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=80=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/src/api/home/index.js | 11 ++ .../src/views/car/product/components/edit.vue | 4 +- .../car/product/components/editCoupon.vue | 20 ++-- admin/src/views/car/product/coupon.vue | 36 +++++- admin/src/views/car/product/index.vue | 60 +++++++++- .../analysis/components/statistics-card.vue | 112 ++++-------------- 6 files changed, 142 insertions(+), 101 deletions(-) create mode 100644 admin/src/api/home/index.js diff --git a/admin/src/api/home/index.js b/admin/src/api/home/index.js new file mode 100644 index 0000000..2c0a609 --- /dev/null +++ b/admin/src/api/home/index.js @@ -0,0 +1,11 @@ +import request from '@/utils/request'; + +export async function pageIndex(params) { + const res = await request.get('/home/data', { + params + }); + if (res.data.code === 0) { + return res.data.data; + } + return Promise.reject(new Error(res.data.message)); +} diff --git a/admin/src/views/car/product/components/edit.vue b/admin/src/views/car/product/components/edit.vue index 0c32e73..751a9fd 100644 --- a/admin/src/views/car/product/components/edit.vue +++ b/admin/src/views/car/product/components/edit.vue @@ -115,7 +115,7 @@ > - + - + - @@ -92,11 +89,13 @@