Fix:2472 【商城小程序】点击展会轮播图,没有跳转到展会详情,并且后台设置的轮播图,和前端显示的不是同一张图
This commit is contained in:
@@ -71,3 +71,11 @@ export function getFoodDetails(id) {
|
||||
export function getRecipe(params) {
|
||||
return request.get("/wellness/recipe", params)
|
||||
}
|
||||
|
||||
/**
|
||||
* 康养生活-展会轮播图
|
||||
* @returns
|
||||
*/
|
||||
export function getBanner() {
|
||||
return request.get("/wellness/exhibition/banner")
|
||||
}
|
||||
@@ -36,9 +36,9 @@
|
||||
:key="index"
|
||||
>
|
||||
<image
|
||||
:src="item.pic"
|
||||
:src="item.image"
|
||||
mode="scaleToFill"
|
||||
@click="$global.commonJump(item.uniappUrl)"
|
||||
@click="toExpo(item.exhibitionId)"
|
||||
/>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user