diff --git a/package.json b/package.json index e04d775..de46b2e 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "axios": "0.24.0", "clipboard": "2.0.8", "core-js": "3.19.1", - "echarts": "4.9.0", + "echarts": "^4.9.0", "element-ui": "2.15.8", "file-saver": "2.0.5", "fuse.js": "6.4.3", diff --git a/src/api/system/homepage.js b/src/api/system/homepage.js new file mode 100644 index 0000000..0f571c5 --- /dev/null +++ b/src/api/system/homepage.js @@ -0,0 +1,24 @@ +import request from '@/utils/request' + +//最近一周每天的商品交易趋势 +export function selectGodWeekTransactionGoodsVO() { + return request({ + url: '/system/homeStatistics/selectGodWeekTransactionGoodsVO', + method: 'get', + }) +} +//首页新增最近一周每天的预约订单交易趋势 +export function selectAodWeekTransactionAppointmentOrderVO() { + return request({ + url: '/system/homeStatistics/selectAodWeekTransactionAppointmentOrderVO', + method: 'get', + }) +} + +//首页新增热卖商品Top10排名榜功能 +export function selectHotGoodsList() { + return request({ + url: '/system/homeStatistics/selectHotGoodsList', + method: 'get', + }) +} \ No newline at end of file diff --git a/src/views/index.vue b/src/views/index.vue index a0321bf..869a0fb 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -3,112 +3,77 @@
-
{{List.goodsCount}}
+
{{ List.goodsCount }}
商品总数量
-
{{List.patientCount}}
+
{{ List.patientCount }}
会员总数量
-
{{List.appointmentOrderCount}}
+
{{ List.appointmentOrderCount }}
预约订单总数量
-
+
-
{{List.goodsOrderCount}}
+
{{ List.goodsOrderCount }}
商品订单总数量
-
+
今日上架商品数量 - {{summaryTodayList.goodsCount}} + {{ summaryTodayList.goodsCount }}
-
+
今日新增会员数 - {{summaryTodayList.patientCount}} + {{ summaryTodayList.patientCount }}
今日订单数 - {{summaryTodayList.orderCount}} + {{ summaryTodayList.orderCount }}
今日交易额 - {{summaryTodayList.totalPrice}} + {{ summaryTodayList.totalPrice }}
- -
- - + +
热卖商品TOP10
+ + + + + + +