| | |
| | | </view> |
| | | <view class="record-bottom"> |
| | | <text>{{ displayTime(item) }} {{ item.cardMasked || '' }}</text> |
| | | <text :class="'status ' + statusClass(item.status)">{{ statusText(item.status) }}</text> |
| | | <text :class="'status ' + statusClass(item)">{{ statusText(item) }}</text> |
| | | </view> |
| | | <text v-if="item.reason" class="reason">{{ item.reason }}</text> |
| | | <text v-if="statusReason(item)" class="reason">{{ statusReason(item) }}</text> |
| | | </view> |
| | | </scroll-view> |
| | | </view> |
| | |
| | | } |
| | | return this.formatTime(item.appliedAt) |
| | | }, |
| | | statusText(status) { |
| | | isTransferFailed(item) { |
| | | return item.status === 'TRANSFER_FAILED' || (item.status === 'PENDING' |
| | | && item.processedAt && String(item.payoutMessage || '').indexOf('主账户划账失败') === 0) |
| | | }, |
| | | statusReason(item) { |
| | | return this.isTransferFailed(item) ? item.payoutMessage : item.reason |
| | | }, |
| | | statusText(item) { |
| | | const status = item.status |
| | | if (status === 'APPROVED') return '已到账' |
| | | if (status === 'REJECTED') return '已驳回' |
| | | if (this.isTransferFailed(item)) return '划账失败' |
| | | if (status === 'TRANSFERRING') return '划账处理中' |
| | | if (status === 'TRANSFERRED') return '待发起取现' |
| | | if (status === 'PROCESSING') return '到账处理中' |
| | | return '待审核' |
| | | }, |
| | | statusClass(status) { |
| | | statusClass(item) { |
| | | const status = item.status |
| | | if (status === 'APPROVED') return 'paid' |
| | | if (status === 'REJECTED') return 'rejected' |
| | | if (status === 'REJECTED' || this.isTransferFailed(item)) return 'rejected' |
| | | if (status === 'PROCESSING') return 'pending' |
| | | return 'pending' |
| | | } |