From 2978ac25f7369ea9f65076cbf2ac4b639522388e Mon Sep 17 00:00:00 2001
From: kk <875203880@qq.com>
Date: Sat, 11 Jul 2026 16:56:15 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=BC=80=E9=97=A8=E7=8A=B6?=
=?UTF-8?q?=E6=80=81=E6=A0=B7=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/door-panel/door-panel.vue | 35 ++++++++++++++++++------
1 file changed, 27 insertions(+), 8 deletions(-)
diff --git a/src/components/door-panel/door-panel.vue b/src/components/door-panel/door-panel.vue
index 9f6c26b..c4ac7d9 100644
--- a/src/components/door-panel/door-panel.vue
+++ b/src/components/door-panel/door-panel.vue
@@ -39,7 +39,9 @@
完成订单
- 返回首页
+
+ 返回首页
+
@@ -74,7 +76,9 @@
完成订单
- 返回首页
+
+ 返回首页
+
@@ -109,8 +113,10 @@
加载订单信息...
- 查看订单详情
- 返回首页
+
+ 查看订单详情
+ 返回首页
+
@@ -235,8 +241,14 @@ export default {
// 跳转订单详情
goOrderDetail() {
- const orderId = this.orderInfo.order_id || this.orderInfo.order_no;
- uni.navigateTo({ url: `/pages/order/detail?order_id=${orderId}` });
+ if (this.orderInfo) {
+ const orderId = this.orderInfo.order_id || this.orderInfo.order_no;
+ uni.navigateTo({ url: `/pages/order/detail?order_id=${orderId}` });
+ } else if (this.flowId) {
+ uni.navigateTo({ url: `/pages/order/detail?flow_id=${this.flowId}` });
+ } else {
+ uni.showToast({ title: '无法获取订单信息', icon: 'none' });
+ }
},
// 关闭遮罩
@@ -541,9 +553,17 @@ export default {
padding: 16rpx 0;
}
+/* ====== 按钮区域 ====== */
+.door-btn-area {
+ margin-top: 64rpx;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 24rpx;
+}
+
/* ====== 查看订单详情按钮 ====== */
.door-btn-detail {
- margin-top: 32rpx;
font-size: 30rpx;
color: #fff;
padding: 24rpx 80rpx;
@@ -555,7 +575,6 @@ export default {
/* ====== 关闭按钮 ====== */
.door-btn-close {
- margin-top: 24rpx;
font-size: 30rpx;
color: rgba(255, 255, 255, 0.85);
padding: 24rpx 100rpx;