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(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Row(
|
if (isMaker)
|
||||||
children: [
|
Padding(
|
||||||
Container(
|
padding: const EdgeInsets.only(bottom: 16),
|
||||||
|
child: Container(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
|
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: (order.isBuy ? _green : _red).withOpacity(0.1),
|
color: _orange.withOpacity(0.1),
|
||||||
borderRadius: BorderRadius.circular(4),
|
borderRadius: BorderRadius.circular(4),
|
||||||
),
|
),
|
||||||
child: Text(
|
child: const Text(
|
||||||
order.typeText,
|
'我发布的',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
color: order.isBuy ? _green : _red,
|
color: _orange,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(width: 8),
|
)
|
||||||
if (isMaker)
|
else
|
||||||
Container(
|
const SizedBox(height: 0),
|
||||||
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),
|
|
||||||
_buildInfoRow('订单编号', order.orderNo, canCopy: true),
|
_buildInfoRow('订单编号', order.orderNo, canCopy: true),
|
||||||
// 卖方收款ID(卖单=maker,买单=taker)
|
// 卖方收款ID(卖单=maker,买单=taker)
|
||||||
if (order.isSell)
|
if (order.isSell)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue