Browse Source

Update trade-detail.tsx

lex-xin 5 months ago
parent
commit
2fefd16c75
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/views/trade/trade-detail.tsx

+ 1 - 2
src/views/trade/trade-detail.tsx

@@ -62,13 +62,12 @@ export default defineComponent({
 
       const result: any = this.result
       const orderDetailList = result.orderDetailList || []
-
       orderDetailList.forEach((item: any) => {
         let tempPrice = item?.expectPrice || item.actualPrice
         if (item?.couponAmount) {
             tempPrice = Number(
               (
-                (tempPrice - result.couponAmount) / item.goodNum
+                (tempPrice - item.couponAmount) / item.goodNum
               ).toFixed(2)
             )
         } else {