From 7827e07958240f68b76333cc83579c9214c44462 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E4=BD=B3=E5=AE=87?= <17601616548@163.com> Date: Tue, 22 Oct 2024 11:10:19 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC=E4=B8=80=E6=AC=A1=E8=BF=9B=E5=85=A5?= =?UTF-8?q?=E5=A5=97=E9=A4=90=E5=88=97=E8=A1=A8=E6=97=B6=EF=BC=8C=E6=B8=85?= =?UTF-8?q?=E7=A9=BA=E5=A5=97=E9=A4=90=E5=AF=B9=E6=AF=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- h5/pages/buy/choose/choose.vue | 1 + h5/pages/main/tj/selectType.vue | 39 +++++++++++++++++++-------------- 2 files changed, 23 insertions(+), 17 deletions(-) diff --git a/h5/pages/buy/choose/choose.vue b/h5/pages/buy/choose/choose.vue index c38e9e6..96ec1a5 100644 --- a/h5/pages/buy/choose/choose.vue +++ b/h5/pages/buy/choose/choose.vue @@ -51,6 +51,7 @@ const buttonClick = (info) => { if (info.id) { $store.setCheckupTypeId({ id: info.id }); } + $store.setComboContrast([]); // 清空套餐对比 uni.navigateTo({ url: info.url, }); diff --git a/h5/pages/main/tj/selectType.vue b/h5/pages/main/tj/selectType.vue index 5b5e9b1..252af75 100644 --- a/h5/pages/main/tj/selectType.vue +++ b/h5/pages/main/tj/selectType.vue @@ -34,9 +34,10 @@ onShow(() => { const toDetails = (type) => { let url = ""; - if(type == 1){ + if (type == 1) { + $store.setComboContrast([]); // 清空套餐对比 url = "/pages/main/combo/combo?groupId=" + groupInfo.value.group_id; - }else{ + } else { url = "/pages/main/tj/tjzx?groupId=" + groupInfo.value.group_id; } uni.navigateTo({ @@ -45,7 +46,7 @@ const toDetails = (type) => { };