From 0f12de15867c6dd1b4fc79dbce3e88e74ce2bd04 Mon Sep 17 00:00:00 2001 From: 15820893422 <1978476055@qq.com> Date: Fri, 28 Jun 2024 14:41:45 +0800 Subject: [PATCH] 1 --- .env.development | 4 +- src/api/order.js | 7 + src/router/index.js | 6 + src/views/user-consumption/index.vue | 215 +++++++++++++++++++++++++++ 4 files changed, 230 insertions(+), 2 deletions(-) create mode 100644 src/views/user-consumption/index.vue diff --git a/.env.development b/.env.development index c88d252..8c09030 100644 --- a/.env.development +++ b/.env.development @@ -3,11 +3,11 @@ ENV = 'development' # http://192.168.1.43:8324/admin # http://mer.crmeb.net/admin # base api -VUE_APP_BASE_API = 'http://192.168.1.3:8080' +VUE_APP_BASE_API = 'http://192.168.1.24:8080' # VUE_APP_BASE_API = 'https://api.tropjoin.com/' # socket 连接地址 -VUE_APP_WS_URL = 'ws://http://192.168.1.3:8080' +VUE_APP_WS_URL = 'ws://http://192.168.1.24:8080' # VUE_APP_WS_URL = 'ws://https://api.tropjoin.com/' # vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable, diff --git a/src/api/order.js b/src/api/order.js index 37e4662..3b3bed3 100644 --- a/src/api/order.js +++ b/src/api/order.js @@ -7,6 +7,13 @@ import request from './request' export function orderListApi(data) { return request.get('order/lst', data) } +/** +/** + * @description 用户消费统计 -- 列表 + */ +export function orderStatApi(data) { + return request.get('order/stat', data) +} /** * @description 退款订单 -- 详情 */ diff --git a/src/router/index.js b/src/router/index.js index d42256b..9c0e4ff 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -66,6 +66,12 @@ export const constantRoutes = [ component: () => import("@/views/dashboard/index"), name: "Dashboard", meta: { title: "控制台", icon: "dashboard", affix: true } + }, + { + path: `${roterPre}/user-consumption`, + component: () => import("@/views/user-consumption/index"), + name: "user-consumption", + meta: { title: "用户消费统计" } } ] }, diff --git a/src/views/user-consumption/index.vue b/src/views/user-consumption/index.vue new file mode 100644 index 0000000..6253d3f --- /dev/null +++ b/src/views/user-consumption/index.vue @@ -0,0 +1,215 @@ + + + + +