From 6ec829a80425a07d07f330a8a1056b6e3279a824 Mon Sep 17 00:00:00 2001 From: hailin Date: Sat, 31 Jan 2026 21:43:50 -0800 Subject: [PATCH] =?UTF-8?q?fix(c2c):=20=E9=9A=90=E8=97=8F=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E8=AF=A6=E6=83=85=E9=A1=B5=E7=9A=84=E4=B9=B0=E5=85=A5?= =?UTF-8?q?/=E5=8D=96=E5=87=BA=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 订单信息卡片中移除"买入"/"卖出"类型标签, 仅保留"我发布的"标记(当用户是maker时显示)。 Co-Authored-By: Claude Opus 4.5 --- .../pages/c2c/c2c_order_detail_page.dart | 38 ++++++------------- 1 file changed, 11 insertions(+), 27 deletions(-) diff --git a/frontend/mining-app/lib/presentation/pages/c2c/c2c_order_detail_page.dart b/frontend/mining-app/lib/presentation/pages/c2c/c2c_order_detail_page.dart index e91b81fd..7b080103 100644 --- a/frontend/mining-app/lib/presentation/pages/c2c/c2c_order_detail_page.dart +++ b/frontend/mining-app/lib/presentation/pages/c2c/c2c_order_detail_page.dart @@ -309,43 +309,27 @@ class _C2cOrderDetailPageState extends ConsumerState { child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - Row( - children: [ - Container( + if (isMaker) + Padding( + padding: const EdgeInsets.only(bottom: 16), + child: Container( padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4), decoration: BoxDecoration( - color: (order.isBuy ? _green : _red).withOpacity(0.1), + color: _orange.withOpacity(0.1), borderRadius: BorderRadius.circular(4), ), - child: Text( - order.typeText, + child: const Text( + '我发布的', style: TextStyle( fontSize: 12, fontWeight: FontWeight.bold, - color: order.isBuy ? _green : _red, + color: _orange, ), ), ), - const SizedBox(width: 8), - if (isMaker) - Container( - padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4), - decoration: BoxDecoration( - color: _orange.withOpacity(0.1), - borderRadius: BorderRadius.circular(4), - ), - child: const Text( - '我发布的', - style: TextStyle( - fontSize: 12, - fontWeight: FontWeight.bold, - color: _orange, - ), - ), - ), - ], - ), - const SizedBox(height: 16), + ) + else + const SizedBox(height: 0), _buildInfoRow('订单编号', order.orderNo, canCopy: true), // 卖方收款ID(卖单=maker,买单=taker) if (order.isSell)