fix(dealer-orders):修复三级分销商显示逻辑并调整布局- 修正三级分销商信息显示条件,确保仅在有效用户ID时展示

- 调整结算月份文本的布局间距,增加顶部边距
This commit is contained in:
2025-10-15 02:12:11 +08:00
parent 5d8bef770b
commit dc6e8dfad7

View File

@@ -148,7 +148,7 @@ const DealerOrder: React.FC = () => {
)}
{/* 三级分销商 */}
{(order.thirdUserId && order.thirdUserId == 0) && (
{(order.thirdUserId !== undefined && order.thirdUserId > 0) && (
<Text className="text-sm text-gray-400 block">
{order.thirdNickname || `用户${order.thirdUserId}`} (¥{order.thirdMoney || '0.00'})
</Text>
@@ -162,7 +162,7 @@ const DealerOrder: React.FC = () => {
)}
</View>
<View className="flex justify-between items-center">
<View className="flex justify-between items-center mt-2">
<Text className="text-sm text-gray-400">
{order.month}
</Text>