Feat:康养部分接口对接(圣地,食材为对接)

This commit is contained in:
linxi
2024-10-08 18:03:46 +08:00
parent 566ef9de61
commit d8cb8ae6cb
6 changed files with 160 additions and 80 deletions
+18 -8
View File
@@ -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
})
}
}
}