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 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ combo_info[k].name }}
+ ¥ {{ combo_info[k].price }}
+ 立即预约
+
+
+
+
+
+ 添加套餐
+
+
+
+
+ 基本信息
+
+
+ {{ i.title }}
+ {{ ii }}
+
+
+
+ 项目信息
+
+ 隐藏相同项目
+
+
+
+
+
+
+
+ 科
+ 室
+ 检
+ 查
+
+
+
+
+
+
+ 科
+ 室
+ 检
+ 查
+
+
+
+ {{ ii ? i.name : '-' }}
+
+
+
+
+
+
+
\ 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"
+ });
+};
@@ -296,7 +308,7 @@ const buyClick = async (item) => {
- 对比
+ 对比
预约
diff --git a/h5/static/assets/contrast/add@2x.png b/h5/static/assets/contrast/add@2x.png
new file mode 100644
index 0000000..96fbb82
Binary files /dev/null and b/h5/static/assets/contrast/add@2x.png differ
diff --git a/h5/static/assets/contrast/close@2x.png b/h5/static/assets/contrast/close@2x.png
new file mode 100644
index 0000000..533e54b
Binary files /dev/null and b/h5/static/assets/contrast/close@2x.png differ
diff --git a/h5/store/index.js b/h5/store/index.js
index bc88a59..035f941 100644
--- a/h5/store/index.js
+++ b/h5/store/index.js
@@ -8,6 +8,7 @@ export const useStore = defineStore('counter', {
yytjInfo: {},
config: false,
groupInfo: {}, // 团检信息
+ combo_compare: [null, null, null], // 套餐对比
save: {
hospital: 1,
doctor: 1,