From 49e5ed4b5cddc950cc9a7a32e278d11f473ebb6a Mon Sep 17 00:00:00 2001 From: duan <1004387497@qq.com> Date: Wed, 19 Jun 2024 18:08:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=96=E5=8D=96=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/components/diamond.vue | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pages/index/components/diamond.vue b/pages/index/components/diamond.vue index dbcb39a..84c895b 100644 --- a/pages/index/components/diamond.vue +++ b/pages/index/components/diamond.vue @@ -31,11 +31,15 @@ }, methods: { clickdistrict(item) { + console.log(item,'调试') switch (item.jumpType) { - case 'absolute': - uni.pro.navigateTo('webview/webview', { - url: item.absUrl - }); + case 'absolute': + uni.pro.navigateTo('webview/webview', { + url: item.absUrl + }); + break; + case 'scan_applet': + uni.navigateToMiniProgram(JSON.parse(item.value)) break; case 'relative': uni.setStorage({