diff --git a/api/health.js b/api/health.js index 795864f..47ceac1 100644 --- a/api/health.js +++ b/api/health.js @@ -34,4 +34,22 @@ export function getWellnessExhibition(params) { */ export function getWellnessExhibitionDetails(id) { return request.get("/wellness/exhibition/" + id) +} + +/** + * 康养生活-养生榜单 + * @param {*} params + * @returns + */ +export function getRank(params) { + return request.get("/wellness/place/ranking", params) +} + +/** + * 康养生活-养生食材列表 + * @param {*} params + * @returns + */ +export function getFood(params) { + return request.get("/wellness/place/food", params) } \ No newline at end of file diff --git a/pkg_product/views/healthFoods.vue b/pkg_product/views/healthFoods.vue index 5f27c83..f9fa1e3 100644 --- a/pkg_product/views/healthFoods.vue +++ b/pkg_product/views/healthFoods.vue @@ -5,8 +5,10 @@ 养生食材 - 昆明市 - + {{ cityName }} + + + @@ -18,31 +20,40 @@ + - 蜂蜜榜 + {{ rank[0].title }} - + {{ index + 1 }} - + + + - {{ item.label }} - {{ item.intro }} + {{ item.productTitle }} + {{ item.productDesc }} + - 药膳榜 + {{ rank[1].title }} - + {{ index + 1 }} - + + + - {{ item.label }} - {{ item.intro }} + {{ item.productTitle }} + {{ item.productDesc }} @@ -75,6 +86,7 @@