diff --git a/src/views/base/fund/info/index.vue b/src/views/base/fund/info/index.vue
index fb9eff8..1373819 100644
--- a/src/views/base/fund/info/index.vue
+++ b/src/views/base/fund/info/index.vue
@@ -21,6 +21,9 @@
{{ info?.wallet[0]?.gold }}
گرم
+
+ {{ usePriceWithoutType(rialEquivalent) }} ریال
+
موجودی قلک {{ info?.title }}
@@ -145,6 +148,8 @@ import TransactionSkeleton from '@/components/TransactionSkeleton.vue'
import DialogVant from '@/components/DialogVant.vue'
import { useFundUserStore } from '@/store/fundStore'
import BasicIcon from '@/components/BasicPacks/BasicIcon.vue'
+import { getLastPrices, lastPrice } from '@/utils/price'
+import { usePriceWithoutType } from '@/utils/usePrice'
const info = ref()
const items = ref([])
@@ -159,8 +164,16 @@ let fundStore = useFundUserStore()
let walletStore = useWalletStore()
+const rialEquivalent = computed(() => {
+ const unit = Number(lastPrice.value?.price_last ?? 0)
+ if (!unit) return null
+ const gold = Number(info.value?.wallet?.[0]?.gold ?? 0)
+ return Math.round(gold * unit)
+})
+
onMounted(() => {
initInfo()
+ if (!lastPrice.value) getLastPrices()
// initTable()
})