From 23b11c4bff5d4057dd8ee2bf6a328b02f7d9e97c Mon Sep 17 00:00:00 2001 From: wangxiaowei <1121133807@qq.com> Date: Fri, 24 Oct 2025 14:22:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E9=A2=84=E7=BA=A6popup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bundle/reserve/reserve.vue | 114 +++++++++++++++++++++++++++++++++++-- components/uni-popup.vue | 1 + static/icon/up.png | Bin 0 -> 535 bytes 3 files changed, 111 insertions(+), 4 deletions(-) create mode 100644 static/icon/up.png diff --git a/bundle/reserve/reserve.vue b/bundle/reserve/reserve.vue index 23f7dec..3c4f3cc 100644 --- a/bundle/reserve/reserve.vue +++ b/bundle/reserve/reserve.vue @@ -16,7 +16,7 @@ 立即预约 - + @@ -51,7 +51,7 @@ 合计: - + 费用明细 @@ -61,6 +61,68 @@ + + + + + + + 费用明细 + + + + + + 场地费 + + + + + + 场地费(¥100元/小时) + x3 + + + + + + 灯光费 + + + + + + 灯光费(¥50元/小时) + x3 + + + + + + + 实付金额 + + + + + + + + + + + 合计: + + + 费用明细 + + + + 立即预定({{countSelectedTime}}小时) + + + + @@ -116,13 +178,13 @@ ], selectedTime: [], - countSelectedTime: 0 + countSelectedTime: 0, + billPopup: false, }; }, onLoad(args) { this.getData(); - }, methods: { @@ -171,6 +233,7 @@ this.currentTime = index; }, + // 计算时长 handleSelectTime(time) { const idx = this.selectedTime.indexOf(time) if (idx > -1) { @@ -181,6 +244,18 @@ // 计算时长 this.countSelectedTime = this.selectedTime.length * 1 + }, + + // 显示费用明细 + handleShowBill() { + this.billPopup = true; + this.timePopup = false; + }, + + // 显示选择时间 + handleShowTime() { + this.billPopup = false; + this.timePopup = true; } } }; @@ -367,4 +442,35 @@ } } } + + .bill-info { + border-radius: 16rpx; + margin: 32rpx 30rpx 22rpx; + padding: 48rpx 30rpx 30rpx; + + .title1 { + font-size: 30rpx; + color: #303133; + line-height: 42rpx; + } + + .title2 { + margin-top: 12rpx; + font-weight: 400; + font-size: 24rpx; + color: #909399; + line-height: 34rpx; + } + + .line { + border: 2rpx solid #F6F7F9; + margin: 34rpx 0 30rpx; + } + + .title3 { + font-size: 30rpx; + color: #303133; + line-height: 42rpx; + } + } diff --git a/components/uni-popup.vue b/components/uni-popup.vue index 7fc7b05..d4d4e22 100644 --- a/components/uni-popup.vue +++ b/components/uni-popup.vue @@ -1,5 +1,6 @@