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)