fix(c2c): 隐藏订单详情页的买入/卖出标签
订单信息卡片中移除"买入"/"卖出"类型标签, 仅保留"我发布的"标记(当用户是maker时显示)。 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
6ccc192bc6
commit
6ec829a804
|
|
@ -309,43 +309,27 @@ class _C2cOrderDetailPageState extends ConsumerState<C2cOrderDetailPage> {
|
|||
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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue