Handy_Cao 1 год назад
Родитель
Сommit
855cbc2c64

+ 4 - 4
src/packages/mobile/views/order/position/components/pricing/detail2/components/delivery/Index.vue

@@ -192,12 +192,12 @@ const usedMargin = computed(() => {
 const serivcefee = computed(() => {
     const { buyOrSell } = props.selectedRow.tHDetailEx
     const { tradefees = [], agreeunit = 0 } = quote.value ?? {}
-    const { FeeAlgorithm = 1, ExchangeValue = 0.0, MemberDefaultValue = 0.0 } = tradefees.find((e) => e.FeeID === (buyOrSell === BuyOrSell.Buy ? 101 : 102)) ?? {}
-    // 比例
-    if (FeeAlgorithm === 1) {
+    const { FeeAlgorithm = 1, ExchangeValue = 0.0, MemberDefaultValue = 0.0 } = tradefees.find((e) => e.FeeID === (buyOrSell === BuyOrSell.Buy ? 105 : 106)) ?? {}
+    // 固定
+    if (FeeAlgorithm === 2) {
         return enableqty.value * agreeunit * (ExchangeValue+MemberDefaultValue)
     }
-    // 固定
+    // 比例
     return props.selectedRow.tHDetailEx.holderAmount * (ExchangeValue+MemberDefaultValue)
 })