This commit is contained in:
liu
2026-08-27 21:18:01 +08:00
parent 260d8086bf
commit 2317c9d973
5 changed files with 309 additions and 75 deletions
+3 -3
View File
@@ -3,7 +3,7 @@ import Taro, { useDidShow, useReachBottom } from '@tarojs/taro'
import { View, Text, ScrollView } from '@tarojs/components'
import { Empty } from '@antmjs/vantui'
import useAuthStore from '@/stores/auth/useAuthStore'
import { getPaymentListApi, PAY_METHOD_NAMES, PAY_STATUS_NAMES } from '@/services/payment'
import { getPaymentListApi, getPayStatusName, PAY_METHOD_NAMES } from '@/services/payment'
import type { Payment, PayStatus } from '@/services/payment'
import './index.less'
@@ -115,7 +115,7 @@ export default function PaymentRecordsPage() {
<View className='payment-item__header'>
<Text className='payment-item__no'>{record.payment_no}</Text>
<Text className={`payment-item__status payment-item__status--${record.status}`}>
{PAY_STATUS_NAMES[record.status]}
{getPayStatusName(record)}
</Text>
</View>
<View className='payment-item__body'>
@@ -128,7 +128,7 @@ export default function PaymentRecordsPage() {
<Text className='payment-item__bills'> {record.bills_count ?? 0} </Text>
</View>
</View>
{record.status === 2 && !!record.audit_remark && (
{record.status === 2 && record.pay_type !== 2 && !!record.audit_remark && (
<Text className='payment-item__reject'>{record.audit_remark}</Text>
)}
</View>