支付
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user