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..c5021a6 --- /dev/null +++ b/src/api/system/homepage.js @@ -0,0 +1,24 @@ +import request from '@/utils/request' + +//最近一周每天的商品交易趋势 +export function getWeekGoodsTradeTrend () { + return request({ + url: '/system/homeStatistics/getWeekGoodsTradeTrend ', + method: 'get', + }) +} +//首页新增最近一周每天的预约订单交易趋势 +export function getWeekTradeAppointmentTrend() { + return request({ + url: '/system/homeStatistics/getWeekTradeAppointmentTrend', + method: 'get', + }) +} + +//首页新增热卖商品Top10排名榜功能 +export function selectHotGoodsList() { + return request({ + url: '/system/homeStatistics/selectHotGoodsList', + method: 'get', + }) +} \ No newline at end of file diff --git a/src/api/system/index.js b/src/api/system/index.js new file mode 100644 index 0000000..6290c61 --- /dev/null +++ b/src/api/system/index.js @@ -0,0 +1,20 @@ +import request from '@/utils/request' + +// 查询首页基本信息 + +export function informationStatistics(query) { + return request({ + url: '/system/homeStatistics/informationStatistics', + method: 'get', + params: query + }) +} +// 查询首页今日概述 +export function summaryToday(query) { + return request({ + url: '/system/homeStatistics/summaryToday', + method: 'get', + params: query + }) + } + diff --git a/src/layout/index.vue b/src/layout/index.vue index c41bd8b..de6dd7f 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -92,7 +92,7 @@ export default { @import "~@/assets/styles/mixin.scss"; @import "~@/assets/styles/variables.scss"; .bj { - background-image: url("../assets/images/body.png"); + // background-image: url("../assets/images/body.png"); -moz-background-size: 100% 100%; background-size: 100% 100%; } diff --git a/src/views/index.vue b/src/views/index.vue index f5ff6d3..e2b51bd 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -1,75 +1,499 @@