From c963ad1ca2878504925f59aeb1d472441788930b Mon Sep 17 00:00:00 2001
From: wangxiaowei <1121133807@qq.com>
Date: Fri, 22 Aug 2025 17:55:13 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/coupon/coupon.vue | 0
src/components/coupon/group-coupon.vue | 0
src/pages-sub/coupon/coupon.vue | 49 ++++
src/pages-sub/reserve-room/detail.vue | 389 +++++++++++++++----------
src/pages-sub/reserve-room/result.vue | 50 ++++
src/pages-sub/reserve-room/room.vue | 27 +-
src/pages.json | 17 ++
src/pages/index/index.vue | 2 +-
8 files changed, 357 insertions(+), 177 deletions(-)
create mode 100644 src/components/coupon/coupon.vue
create mode 100644 src/components/coupon/group-coupon.vue
create mode 100644 src/pages-sub/coupon/coupon.vue
create mode 100644 src/pages-sub/reserve-room/result.vue
diff --git a/src/components/coupon/coupon.vue b/src/components/coupon/coupon.vue
new file mode 100644
index 0000000..e69de29
diff --git a/src/components/coupon/group-coupon.vue b/src/components/coupon/group-coupon.vue
new file mode 100644
index 0000000..e69de29
diff --git a/src/pages-sub/coupon/coupon.vue b/src/pages-sub/coupon/coupon.vue
new file mode 100644
index 0000000..1601843
--- /dev/null
+++ b/src/pages-sub/coupon/coupon.vue
@@ -0,0 +1,49 @@
+
+{
+ "layout": "default",
+ "style": {
+ "navigationStyle": "custom"
+ }
+}
+
+
+
+
+
+
+
+
+
+
+ 可用团购券
+ 2张
+
+
+
+
+
+
+
+
diff --git a/src/pages-sub/reserve-room/detail.vue b/src/pages-sub/reserve-room/detail.vue
index 4aa395f..e64ae07 100644
--- a/src/pages-sub/reserve-room/detail.vue
+++ b/src/pages-sub/reserve-room/detail.vue
@@ -8,173 +8,171 @@
-
-
-
-
- {{ isGroupBuying ? '团购套餐' : '预约' }}
-
-
-
+
-
-
-
-
-
-
- 这里是茶室的名称茶室的名称
-
-
- 文艺小清新
+
+
+
+
+
+
+
+ 这里是茶室的名称茶室的名称
+
+
+ 文艺小清新
+
+
+ 全息投影
+
-
- 全息投影
+
+ “环境幽静,谈商务放松好场所”
+ 已售 10+
+
+
+
+
+
+
+
+ 须知
+ 需预约
+
+
+ 保障
+ 随时退
+
+
-
- “环境幽静,谈商务放松好场所”
- 已售 10+
-
-
-
-
+
+
+
+
+ 使用说明
+
+
+
-
+
+
+
+ 预定时间
+
+ 3小时起订
+
+
+ {{ totalHour > 0 ? `${totalHour}小时` : '请选择' }}
+
+
+
+
+
+
+
+
+
+
+ 优惠券
+
+ 优惠券
+
+ 无可用
+
+
+
+
+
+
+
+
+
- 须知
- 需预约
-
-
- 保障
- 随时退
-
-
-
-
-
-
-
-
- 使用说明
-
-
-
-
-
-
-
- 预定时间
-
- 3小时起订
-
-
- {{ totalHour > 0 ? `${totalHour}小时` : '请选择' }}
-
-
-
-
-
-
-
-
-
-
- 优惠券
-
- 优惠券
-
- 无可用
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ item.name }}
+
+
+
+
+ {{ item.name }}
+
+
+
+ 可用202.22
+
+
-
-
- 可用202.22
-
+
+
+
+
+
+
+
+
+ 更多支付(团购券)
+
+ 1张可用
+
+
-
+
+
+
+
+
+
+
+ 套餐详情
+
+
+
-
-
+
+
+ 购买须知
+
+
+
+
-
- 更多支付(团购券)
-
- 1张可用
-
-
+
+
+
+
+
+
+ 合计:
+
+
+
+
+
+
+
+ 费用明细
+
-
-
-
-
-
-
-
- 套餐详情
-
-
-
-
-
-
-
- 购买须知
-
-
-
-
-
-
-
-
-
-
-
-
- 合计:
-
-
-
-
-
-
-
- 费用明细
-
+
+ {{ isGroupBuying ? '立即购买' : '立即预定' }}
-
- {{ isGroupBuying ? '立即购买' : '立即预定' }}
-
-
+
-
-
+
+
+
+
+
选择时间
-
+
+
+
+
+
+
+
+ 费用明细
+
+
+ 茶室费
+ ¥640.00
+
+
+
+ 茶室费(¥160元/小时)
+ x4
+
+
+
+
+ 茶室费
+ -¥640.00
+
+
+ 优惠券
+ -¥20
+
+
+ 优惠券
+ -¥20
+
+
+
+
+
+
+
+
+ 实付金额
+ ¥640.00
+
+
+
+
+
+
+
+
+
+
+
+ 支付
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+ 可用202.22
+
+
+
+
+
+
+
+ 确定付款
+
+
+
diff --git a/src/pages-sub/reserve-room/room.vue b/src/pages-sub/reserve-room/room.vue
index 1a5efae..5983e22 100644
--- a/src/pages-sub/reserve-room/room.vue
+++ b/src/pages-sub/reserve-room/room.vue
@@ -7,15 +7,9 @@
}
-
-
-
-
-
- 预约茶室
-
-
-
+
+
+
@@ -26,10 +20,10 @@
-
-
+
+
-
+
(0)
- let OSS = inject('OSS')
+ const navbarHeight = inject('navbarHeight')
+ const rightPadding = inject('capsuleOffset')
+ const OSS = inject('OSS')
- const rightPadding = ref('')
const swiperList = ref([
`${OSS}images/banner1.png`,
`${OSS}images/banner1.png`,
@@ -144,8 +137,6 @@
const { mescrollInit, downCallback } = useMescroll(onPageScroll, onReachBottom) // 调用mescroll的hook
onLoad(() => {
- navbarHeight.value = getNavBarHeight()
- rightPadding.value = getCapsuleOffset()
})
const reserveRoom = {
diff --git a/src/pages.json b/src/pages.json
index b617330..59ac520 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -118,6 +118,14 @@
{
"root": "pages-sub",
"pages": [
+ {
+ "path": "coupon/coupon",
+ "type": "page",
+ "layout": "default",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
{
"path": "demo/index",
"type": "page",
@@ -134,6 +142,15 @@
"navigationStyle": "custom"
}
},
+ {
+ "path": "reserve-room/result",
+ "type": "page",
+ "layout": "default",
+ "style": {
+ "navigationBarTitleText": "结果通知",
+ "navigationBarBackgroundColor": "#FFF"
+ }
+ },
{
"path": "reserve-room/room",
"type": "page",
diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue
index 0125111..617a4ad 100644
--- a/src/pages/index/index.vue
+++ b/src/pages/index/index.vue
@@ -10,7 +10,7 @@
-
+