fix(withdraw): 修复经销商提现页面类型定义和渲染逻辑

- 将 activeTab 状态类型从 string | number 限定为 string
- 统一 Tab 切换处理中的值转换逻辑,避免类型不一致问题
- 修复条件判断中的字符串比较,确保类型安全
- 调整组件渲染方式,改为按需渲染当前选中的标签页内容
- 更新骑手页面工资统计标题为配送提成以匹配实际业务逻辑
This commit is contained in:
2026-03-07 02:01:10 +08:00
parent 546d90cc28
commit 76e76c62ef
2 changed files with 6 additions and 6 deletions

View File

@@ -130,7 +130,7 @@ const DealerIndex: React.FC = () => {
{dealerUser && (
<View className="mx-4 -mt-6 rounded-xl p-4 relative z-10" style={cardGradients.elevated}>
<View className="mb-4">
<Text className="font-semibold text-gray-800"></Text>
<Text className="font-semibold text-gray-800"></Text>
</View>
<View className="grid grid-cols-3 gap-3">
<View className="text-center p-3 rounded-lg flex flex-col" style={{