Feat:康养部分接口对接(圣地,食材为对接)
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
v-model="keyword"
|
||||
shape="round"
|
||||
:showAction="false"
|
||||
@search="getList"
|
||||
></u-search>
|
||||
</view>
|
||||
<view class="expo-wrap">
|
||||
@@ -15,30 +16,39 @@
|
||||
:key="index"
|
||||
@click="toDetails(item)"
|
||||
>
|
||||
{{ item.label }}
|
||||
{{ item.name }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import { getWellnessExhibition } from '@/api/health'
|
||||
export default{
|
||||
data() {
|
||||
return {
|
||||
keyword: '',
|
||||
expoList: [
|
||||
{id: 1, label: '文山州麻栗坡县东南亚中药材集散综合开发项目'},
|
||||
{id: 2, label: '文山州麻栗坡县东南亚中药材集散综合开发项目'},
|
||||
{id: 3, label: '文山州麻栗坡县东南亚中药材集散综合开发项目'},
|
||||
{id: 4, label: '文山州麻栗坡县东南亚中药材集散综合开发项目'},
|
||||
{id: 5, label: '文山州麻栗坡县东南亚中药材集散综合开发项目'},
|
||||
]
|
||||
expoList: []
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
toDetails(item) {
|
||||
uni.navigateTo({
|
||||
url: '/pkg_product/views/expoDetails?id='+item.id
|
||||
})
|
||||
},
|
||||
getList() {
|
||||
const params = {
|
||||
page: 1,
|
||||
limit: 9999,
|
||||
keyword: this.keyword
|
||||
}
|
||||
getWellnessExhibition(params).then((res) => {
|
||||
console.log(res);
|
||||
this.expoList = res.data.records
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user