From b3b5f3f6e48158a5ed716605fb69afa44d45043e Mon Sep 17 00:00:00 2001 From: linxi Date: Fri, 11 Oct 2024 14:57:18 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A2472=20=E3=80=90=E5=95=86=E5=9F=8E?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E3=80=91=E7=82=B9=E5=87=BB=E5=B1=95?= =?UTF-8?q?=E4=BC=9A=E8=BD=AE=E6=92=AD=E5=9B=BE=EF=BC=8C=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E5=88=B0=E5=B1=95=E4=BC=9A=E8=AF=A6=E6=83=85?= =?UTF-8?q?=EF=BC=8C=E5=B9=B6=E4=B8=94=E5=90=8E=E5=8F=B0=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E7=9A=84=E8=BD=AE=E6=92=AD=E5=9B=BE=EF=BC=8C=E5=92=8C=E5=89=8D?= =?UTF-8?q?=E7=AB=AF=E6=98=BE=E7=A4=BA=E7=9A=84=E4=B8=8D=E6=98=AF=E5=90=8C?= =?UTF-8?q?=E4=B8=80=E5=BC=A0=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/health.js | 8 ++++++++ pkg_product/views/healthList.vue | 10 +++++----- 2 files changed, 13 insertions(+), 5 deletions(-) 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