diff --git a/order-app/src/api/home.js b/order-app/src/api/home.js index 023639c..5a896f7 100644 --- a/order-app/src/api/home.js +++ b/order-app/src/api/home.js @@ -2,4 +2,9 @@ import http from '../common/http.js' //轮播图 export const getSwipperListApi = ()=>{ return http.get("/api/home/getSwipperList") +} + +//首页热推 +export const getHotListApi = ()=>{ + return http.get("/api/home/getHotList") } \ No newline at end of file diff --git a/order-app/src/pages/index/index.vue b/order-app/src/pages/index/index.vue index 8cf039b..22ae1ed 100644 --- a/order-app/src/pages/index/index.vue +++ b/order-app/src/pages/index/index.vue @@ -1,5 +1,6 @@