From 0dadadc68dd40d91ea884a98e2814a6956dc70d8 Mon Sep 17 00:00:00 2001 From: sa0ChunLuyu Date: Tue, 1 Oct 2024 17:15:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20=E5=A5=97=E9=A4=90=20?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=AF=B9=E6=AF=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- h5/pages.json | 9 +- h5/pages/buy/contrast/contrast.vue | 487 +++++++++++++++++++++++++ h5/pages/main/combo/combo.vue | 14 +- h5/static/assets/contrast/add@2x.png | Bin 0 -> 6184 bytes h5/static/assets/contrast/close@2x.png | Bin 0 -> 2168 bytes h5/store/index.js | 1 + 6 files changed, 508 insertions(+), 3 deletions(-) create mode 100644 h5/pages/buy/contrast/contrast.vue create mode 100644 h5/static/assets/contrast/add@2x.png create mode 100644 h5/static/assets/contrast/close@2x.png diff --git a/h5/pages.json b/h5/pages.json index 3adaa90..bb4ff7f 100644 --- a/h5/pages.json +++ b/h5/pages.json @@ -1,6 +1,5 @@ { - "pages": [ - { + "pages": [{ "path": "pages/main/index/index", "style": { "navigationBarTitleText": "海南现代妇女儿童医院", @@ -157,6 +156,12 @@ "style": { "navigationBarTitleText": "体检预约" } + }, + { + "path": "pages/buy/contrast/contrast", + "style": { + "navigationBarTitleText": "数据对比" + } } ], "globalStyle": { diff --git a/h5/pages/buy/contrast/contrast.vue b/h5/pages/buy/contrast/contrast.vue new file mode 100644 index 0000000..08a0fba --- /dev/null +++ b/h5/pages/buy/contrast/contrast.vue @@ -0,0 +1,487 @@ + + + \ No newline at end of file diff --git a/h5/pages/main/combo/combo.vue b/h5/pages/main/combo/combo.vue index 031f41d..28e574c 100644 --- a/h5/pages/main/combo/combo.vue +++ b/h5/pages/main/combo/combo.vue @@ -169,6 +169,18 @@ const buyClick = async (item) => { url: "/pages/main/tj/tjxq" + query, }); }; + +const toComboCompare = async (item) => { + for(let i in $store.combo_compare){ + if(!$store.combo_compare[Number(i)]){ + $store.combo_compare[Number(i)] = item.combo_id; + break; + } + } + uni.navigateTo({ + url: "/pages/buy/contrast/contrast" + }); +};