Feat:康养部分接口对接(圣地,食材为对接)
This commit is contained in:
@@ -68,7 +68,7 @@
|
||||
</view> -->
|
||||
<view class="v12-justify-start v12-align-center news-wrap v12-radius-100">
|
||||
<view class="v12-font-bold v12-primary v12-white-text v12-mr-2 v12-pa-2 v12-radius-100 news-title">最新展会</view>
|
||||
<view class="v12-font-28 v12-dark-text one-t" @click="toExpo">中国昆明第九届国际大健康暨养生养老博览会</view>
|
||||
<view class="v12-font-28 v12-dark-text one-t" @click="toExpo(sanctum.id)">{{ sanctum.name }}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="body-box">
|
||||
@@ -103,24 +103,24 @@
|
||||
<view
|
||||
v-if="tabIndex === 0"
|
||||
class="item item-store"
|
||||
@click="goStore(item.id)"
|
||||
@click="goStore(item.id, item.cityName)"
|
||||
>
|
||||
<image
|
||||
:src="item.cover + (item.coverType === 2 ? '?vframe/jpg/offset/1' : '')"
|
||||
:src="item.icon"
|
||||
class="cover"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
<view class="name one-t">{{ item.content }}</view>
|
||||
<view class="price store flex ai-center" style="width: 100%;">
|
||||
<image
|
||||
<!-- <view class="name one-t">{{ item.content }}</view> -->
|
||||
<view class="store flex ai-center" style="width: 100%;">
|
||||
<!-- <image
|
||||
:src="item.logo"
|
||||
class="flex-0"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
<view class="one-t">{{ item.name }}</view>
|
||||
/> -->
|
||||
<view class="one-t v12-font-28" style="color: #033333">{{ item.cityName }}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view
|
||||
<!-- <view
|
||||
v-else
|
||||
class="item"
|
||||
@click="goGoods(item.id)"
|
||||
@@ -132,7 +132,7 @@
|
||||
/>
|
||||
<view class="name more-t">{{ item.storeName }}</view>
|
||||
<view class="price">¥{{ item.price }}</view>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
</scroll-view>
|
||||
<view class="tc" v-else>
|
||||
@@ -158,6 +158,7 @@
|
||||
// 康养食材
|
||||
import { fetchCity } from '@/api/wenwan'
|
||||
import { wellnessFood, wellnessPlaceList } from '@/api/product'
|
||||
import { getWellnessPlace, getWellnessExhibition } from '@/api/health'
|
||||
import { getProducts } from '@/api/store'
|
||||
import { pageListenMixins } from '@/mixins/pageListenMixins'
|
||||
export default {
|
||||
@@ -175,7 +176,8 @@ export default {
|
||||
asideIndex: 0,
|
||||
dataList: [],
|
||||
pageKeyId: Object.freeze('wellnessFoodIndex'),
|
||||
label: ''
|
||||
label: '',
|
||||
sanctum: {}
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
@@ -191,10 +193,13 @@ export default {
|
||||
this.label = this.asideList[this.asideIndex].label
|
||||
this.searchReq()
|
||||
})
|
||||
getWellnessExhibition().then(({data}) => {
|
||||
this.sanctum = data.records[0]
|
||||
})
|
||||
},
|
||||
toExpo() {
|
||||
toExpo(id) {
|
||||
uni.navigateTo({
|
||||
url: '/pkg_product/views/expoDetails'
|
||||
url: '/pkg_product/views/expoDetails?id=' + id
|
||||
})
|
||||
},
|
||||
changeTab(index) {
|
||||
@@ -221,15 +226,17 @@ export default {
|
||||
provinceId: this.asideList.length > 0 ? this.asideList[this.asideIndex].provinceId : ''
|
||||
}
|
||||
if (this.tabIndex === 0) {
|
||||
wellnessPlaceList(param).then(({data}) => {
|
||||
this.handleData(data)
|
||||
})
|
||||
} else {
|
||||
param.isWellnessFood = 1
|
||||
getProducts(param).then(({data}) => {
|
||||
this.handleData(data)
|
||||
})
|
||||
}
|
||||
// wellnessPlaceList(param).then(({data}) => {
|
||||
// this.handleData(data)
|
||||
// })
|
||||
this.dataList = this.asideList[this.asideIndex].city
|
||||
}
|
||||
// else {
|
||||
// param.isWellnessFood = 1
|
||||
// getProducts(param).then(({data}) => {
|
||||
// this.handleData(data)
|
||||
// })
|
||||
// }
|
||||
},
|
||||
handleData(data) {
|
||||
const that = this
|
||||
@@ -258,9 +265,9 @@ export default {
|
||||
this.label = label
|
||||
this.searchReq()
|
||||
},
|
||||
goStore(id) {
|
||||
goStore(id, name) {
|
||||
uni.navigateTo({
|
||||
url: '/pagesInn/inn/innHome?id=' + id + '&from=wellness'
|
||||
url: '/pkg_product/views/healthSanctum?city=' + id +'&cityName=' + name
|
||||
})
|
||||
},
|
||||
goGoods(id) {
|
||||
|
||||
Reference in New Issue
Block a user