change some bug

This commit is contained in:
2026-06-08 12:34:10 +03:30
parent 5091cb3e41
commit 95516ee2d8
6 changed files with 188 additions and 207 deletions
@@ -7,11 +7,11 @@
<div class="mt-5">
<BasicInfoItem
class="flex justify-between"
title="مجموعه کل دارایی طلایی"
:title="`مجموعه کل دارایی ${settingsStore.metalTypeLabel}`"
is-line
:info="`در این قسمت مجموع کل وزن طلای آبشده (${(walletInfo?.gold ?? 0)?.toFixed(3)}) + ارزش دارایی ها (${(walletInfo?.treasure_sum ?? 0)?.toFixed(3)} ) را مشاهده میفرمایید.`"
infoHead="مجموع کل دارایی طلایی"
:value="parseFloat((walletInfo?.gold_sum ?? 0).toFixed(2)) + ' گرم'"
:info="`در این قسمت مجموع کل وزن ${settingsStore.metalTypeLabel} آبشده (${(walletInfo?.gold ?? 0)?.toFixed(3)}) + ارزش دارایی ها (${(walletInfo?.treasure_sum ?? 0)?.toFixed(3)} ) را مشاهده میفرمایید.`"
:infoHead="`مجموع کل دارایی ${settingsStore.metalTypeLabel}`"
:value="parseFloat((walletInfo?.gold_sum ?? 0).toFixed(2)) + ' ' + weightUnit"
/>
<a-divider class="!my-1" />
<BasicInfoItem
@@ -23,9 +23,9 @@
<a-divider class="!my-1" />
<BasicInfoItem
class="flex justify-between"
title="دارایی کیف پول طلایی"
:title="`دارایی کیف پول ${settingsStore.metalTypeLabel}`"
is-line
:value="(walletInfo?.count_gold_wallet ?? 0) + ' گرم'"
:value="(walletInfo?.count_gold_wallet ?? 0) + ' ' + weightUnit"
/>
<a-divider v-if="nameProject === 'goldsun'" class="!my-1" />
<BasicInfoItem
@@ -62,6 +62,8 @@ import { computed } from 'vue'
import BasicActionSheet from '@/components/BasicPacks/BasicActionSheet.vue'
import BasicInfoItem from '@/components/BasicPacks/BasicInfoItem.vue'
import { useConfigStore } from '@/store/configStore'
import { useSettingsStore } from '@/store/settingsStore'
import { getWeightUnit } from '@/utils/productDealMethod'
import {usePrice} from "@/utils/usePrice";
const props = defineProps<{
@@ -76,6 +78,8 @@ const emit = defineEmits<{
const config = useConfigStore()
const nameProject = config.config.name
const settingsStore = useSettingsStore()
const weightUnit = computed(() => getWeightUnit())
const visible = computed({
get: () => props.show,