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 @@