Browse Source

fix(create-order): 修复订单详情支付信息显示逻辑

- 在 paymentDetailList 方法中添加对 list 长度的判断
- 确保在非后台订单且存在支付信息时才处理支付详情

Signed-off-by: tangshizhe <48740614+tangshizhe@users.noreply.github.com>
tangshizhe 1 month ago
parent
commit
357a8d771e

+ 1 - 1
src/views/create-order/components/order-detail-submodule/PaymentInfo.vue

@@ -306,7 +306,7 @@ export default {
     },
     paymentDetailList () {
       const list = this.returnRes?.returnInfo || [];
-      if(!this.isBackstageOrder) {
+      if(!this.isBackstageOrder && list.length) {
         const { pay_time, pay_money, order_status } = this.orderData || {};
         list[0].pay_time = pay_time || '-'
         list[0].pay_money = pay_money || '-'