diff --git a/api/health.js b/api/health.js index fa1d0a8..ad8c63a 100644 --- a/api/health.js +++ b/api/health.js @@ -70,4 +70,12 @@ export function getFoodDetails(id) { */ export function getRecipe(params) { return request.get("/wellness/recipe", params) +} + +/** + * 康养生活-展会轮播图 + * @returns + */ +export function getBanner() { + return request.get("/wellness/exhibition/banner") } \ No newline at end of file diff --git a/pkg_product/views/healthList.vue b/pkg_product/views/healthList.vue index 210316e..6c60cdf 100644 --- a/pkg_product/views/healthList.vue +++ b/pkg_product/views/healthList.vue @@ -36,9 +36,9 @@ :key="index" > @@ -168,7 +168,7 @@ // 康养食材 import { fetchCity } from '@/api/wenwan' import { wellnessFood, wellnessPlaceList } from '@/api/product' -import { getWellnessPlace, getWellnessExhibition } from '@/api/health' +import { getWellnessPlace, getWellnessExhibition, getBanner } from '@/api/health' import { getProducts } from '@/api/store' import { pageListenMixins } from '@/mixins/pageListenMixins' export default { @@ -195,8 +195,8 @@ export default { }, methods: { init() { - wellnessFood().then(({data}) => { - this.bannerList = data.banner + getBanner().then(({data}) => { + this.bannerList = data }) fetchCity(4).then(({data}) => { this.asideList = data.group