Fix:2472 【商城小程序】点击展会轮播图,没有跳转到展会详情,并且后台设置的轮播图,和前端显示的不是同一张图

This commit is contained in:
linxi
2024-10-11 14:57:18 +08:00
parent 857891c00b
commit b3b5f3f6e4
2 changed files with 13 additions and 5 deletions
+8
View File
@@ -71,3 +71,11 @@ export function getFoodDetails(id) {
export function getRecipe(params) { export function getRecipe(params) {
return request.get("/wellness/recipe", params) return request.get("/wellness/recipe", params)
} }
/**
* 康养生活-展会轮播图
* @returns
*/
export function getBanner() {
return request.get("/wellness/exhibition/banner")
}
+5 -5
View File
@@ -36,9 +36,9 @@
:key="index" :key="index"
> >
<image <image
:src="item.pic" :src="item.image"
mode="scaleToFill" mode="scaleToFill"
@click="$global.commonJump(item.uniappUrl)" @click="toExpo(item.exhibitionId)"
/> />
</swiper-item> </swiper-item>
</swiper> </swiper>
@@ -168,7 +168,7 @@
// 康养食材 // 康养食材
import { fetchCity } from '@/api/wenwan' import { fetchCity } from '@/api/wenwan'
import { wellnessFood, wellnessPlaceList } from '@/api/product' 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 { getProducts } from '@/api/store'
import { pageListenMixins } from '@/mixins/pageListenMixins' import { pageListenMixins } from '@/mixins/pageListenMixins'
export default { export default {
@@ -195,8 +195,8 @@ export default {
}, },
methods: { methods: {
init() { init() {
wellnessFood().then(({data}) => { getBanner().then(({data}) => {
this.bannerList = data.banner this.bannerList = data
}) })
fetchCity(4).then(({data}) => { fetchCity(4).then(({data}) => {
this.asideList = data.group this.asideList = data.group