lex-xin il y a 4 mois
Parent
commit
9e66f4c233

+ 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
         });