fix(payment): show both order ID and order number in result pages

Display order ID (#24) and order number (sub2_xxx) as separate rows
in payment result and status panel success views.
This commit is contained in:
erio
2026-04-09 17:29:18 +08:00
parent e42838eb82
commit cb9dcaec2e
4 changed files with 13 additions and 3 deletions
@@ -14,7 +14,11 @@
<div class="space-y-2 text-sm">
<div class="flex justify-between">
<span class="text-gray-500 dark:text-gray-400">{{ t('payment.orders.orderId') }}</span>
<span class="font-medium text-gray-900 dark:text-white">{{ paidOrder.out_trade_no || '#' + paidOrder.id }}</span>
<span class="font-medium text-gray-900 dark:text-white">#{{ paidOrder.id }}</span>
</div>
<div v-if="paidOrder.out_trade_no" class="flex justify-between">
<span class="text-gray-500 dark:text-gray-400">{{ t('payment.orders.orderNo') }}</span>
<span class="font-medium text-gray-900 dark:text-white">{{ paidOrder.out_trade_no }}</span>
</div>
<div class="flex justify-between">
<span class="text-gray-500 dark:text-gray-400">{{ t('payment.orders.amount') }}</span>
+1
View File
@@ -5123,6 +5123,7 @@ export default {
title: 'My Orders',
empty: 'No orders yet',
orderId: 'Order ID',
orderNo: 'Order No.',
amount: 'Amount',
payAmount: 'Paid',
status: 'Status',
+2 -1
View File
@@ -5319,7 +5319,8 @@ export default {
orders: {
title: '我的订单',
empty: '暂无订单',
orderId: '订单号',
orderId: '订单 ID',
orderNo: '订单编号',
amount: '金额',
payAmount: '实付',
status: '状态',
@@ -30,7 +30,11 @@
<div class="space-y-3 text-sm">
<div class="flex justify-between">
<span class="text-gray-500 dark:text-gray-400">{{ t('payment.orders.orderId') }}</span>
<span class="font-medium text-gray-900 dark:text-white">{{ order.out_trade_no || '#' + order.id }}</span>
<span class="font-medium text-gray-900 dark:text-white">#{{ order.id }}</span>
</div>
<div v-if="order.out_trade_no" class="flex justify-between">
<span class="text-gray-500 dark:text-gray-400">{{ t('payment.orders.orderNo') }}</span>
<span class="font-medium text-gray-900 dark:text-white">{{ order.out_trade_no }}</span>
</div>
<div class="flex justify-between">
<span class="text-gray-500 dark:text-gray-400">{{ t('payment.orders.amount') }}</span>