From a33c4d14acbf6fcc7802ff6340f1e8d0c9ca1dd5 Mon Sep 17 00:00:00 2001 From: ihzero Date: Mon, 13 Feb 2023 16:19:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E7=AB=A0=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/healthy/index.vue | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/pages/healthy/index.vue b/src/pages/healthy/index.vue index e7d28a7..0268d60 100644 --- a/src/pages/healthy/index.vue +++ b/src/pages/healthy/index.vue @@ -12,7 +12,7 @@ - @@ -90,7 +90,7 @@ } }) this.article_banner = resDate.article_banner - } catch (err) {} + } catch (err) {} }, //获取文章分类 async getDate(){ @@ -125,6 +125,18 @@ this.mescroll.endErr() }) }, + //跳转页面 + jump(type, url, id) { + if (type == 2) { + uni.navigateTo({ + url: '/pages/web_view/index?url=' + url + }) + } else { + this.$u.route('/pages/article_details/article_details', { + id: id + }) + } + }, jumpByOption(e) { if (!!e.jump_link) { if (e.jump_type == 1) {