From 3d3efa89bfd4c30f3a09dddc0628c184e8886369 Mon Sep 17 00:00:00 2001 From: modendeveloper Date: Wed, 9 Oct 2024 00:09:59 +0800 Subject: [PATCH] =?UTF-8?q?Feat=EF=BC=9A=E5=BA=B7=E5=85=BB=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/health.js | 18 ++++++++ pkg_product/views/healthFoods.vue | 64 ++++++++++++++++++++++------- pkg_product/views/healthSanctum.vue | 2 +- 3 files changed, 69 insertions(+), 15 deletions(-) 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 @@