From d7a743ba09a195ef6955c87cb86342cdbe718745 Mon Sep 17 00:00:00 2001 From: adonis Date: Sun, 11 Oct 2026 22:44:10 +0330 Subject: [PATCH] feat(trade): separate gross price, fee and net payable into three colored rows --- src/views/base/gold/index.vue | 38 +++++++++++++++++++++++++++-------- 1 file changed, 30 insertions(+), 8 deletions(-) diff --git a/src/views/base/gold/index.vue b/src/views/base/gold/index.vue index 5fa1b77..7b364a5 100644 --- a/src/views/base/gold/index.vue +++ b/src/views/base/gold/index.vue @@ -147,15 +147,33 @@ موجودی کیف پول ناکافی می باشد. -
-
-
کارمزد ({{ feeDeductsFromGold ? `از طلا` : `از ریال` }}):
-
-
{{ feeDisplayText }}
-
+
+ +
+ مبلغ اصل معامله: + + {{ usePriceWithoutType(Math.round(finalPrice ?? 0)) }} ریال +
-
- {{ feeFormHint }} + + +
+ + {{ isBuy ? `کارمزد خرید (${feePercentLabel}):` : `کسر ${feePercentLabel} کارمزد از فروش:` }} + + + {{ isBuy ? `+ ${feeDisplayText}` : `− ${feeDisplayText}` }} + +
+ + +
+ + {{ isBuy ? 'مبلغ قابل پرداخت:' : 'مبلغ قابل واریز (دریافتی):' }} + + + {{ usePriceWithoutType(Math.round(payablePrice ?? 0)) }} ریال +
@@ -491,6 +509,10 @@ const feeDisplayText = computed(() => : `${usePriceWithoutType(Math.round(feeInRial.value))} ریال` ) +const feePercentLabel = computed(() => + feeInGrams.value > 0 ? `${formatFixed(serviceFeePercentage.value * 100, 2)}%` : 'رایگان' +) + const displayTradeGoldAmount = computed(() => formatTradeGramDisplay(orderGoldAmount.value) )