浏览代码

修改显示

lex-xin 4 月之前
父节点
当前提交
9e66f4c233
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      miniprogram/pages/orders/order-result.ts
  2. 1 1
      miniprogram/pages/orders/orders.ts

+ 1 - 1
miniprogram/pages/orders/order-result.ts

@@ -68,7 +68,7 @@ Page({
             ...item,
             shortUrl: item.activationCodeInfo.shortUrl,
             originalPrice: this.formatPrice(item.paymentCashAmount, 'ALL'),
-            typeName: this.formatPeriod(item.goodsNum, item.activationCodeInfo.type)
+            typeName: this.formatPeriod(item.activationCodeInfo?.times || 1, item.activationCodeInfo.type)
           })
         })
         const firstGoods = tempGoods[0]

+ 1 - 1
miniprogram/pages/orders/orders.ts

@@ -84,7 +84,7 @@ Page({
           const studentPaymentOrderDetails = item.studentPaymentOrderDetails || [];
           studentPaymentOrderDetails.forEach((student: any) => {
             student.originalPrice = this.formatPrice(student.paymentCashAmount, 'ALL');
-            student.typeName = this.formatPeriod(student.goodsNum, student.activationCodeInfo?.type);
+            student.typeName = this.formatPeriod(student.activationCodeInfo?.times || 1, student.activationCodeInfo?.type);
           })
           item.studentPaymentOrderDetails = studentPaymentOrderDetails
         });