Browse Source

Update tradeOrder.ts

lex-xin 8 tháng trước cách đây
mục cha
commit
239af3831a
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      src/student/trade/tradeOrder.ts

+ 4 - 0
src/student/trade/tradeOrder.ts

@@ -136,6 +136,10 @@ export const formatOrderDetail = async (item: any, amount?: IAmount) => {
                     (amount.couponAmount - amount.discountPrice)) / item.goodNum
                 ).toFixed(2)
               )
+          } else {
+            tempPrice = Number(
+              tempPrice / item.goodNum
+              ).toFixed(2)
           }
           // 判断是否有会员
           let startTime = new Date()