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
@@ -6,7 +6,7 @@
</div>
<div v-if="!isBoursecuProject()" class="flex mt-2 justify-center text-tertiary w-full z-20">
{{ metalAssetLabel }}:
<div class="text-l mr-2 font-bold">{{ (userStore?.userInfo?.wallet?.count_gold ?? 0).toFixed(3) }} گرم</div>
<div class="text-l mr-2 font-bold">{{ (userStore?.userInfo?.wallet?.count_gold ?? 0).toFixed(3) }} {{ weightUnit }}</div>
<BasicIcon @click="$emit('openGoldModal')" icon="vuesax-linear:info-circle" size="18" color="tertiary" />
</div>
<div class="flex mt-2 justify-center text-tertiary w-full z-20">
@@ -23,10 +23,11 @@ import { useUserStore } from '@/store/userStore'
import BasicIcon from '@/components/BasicPacks/BasicIcon.vue'
import {usePriceWithoutType} from "../../../../utils/usePrice";
import { isBoursecuProject } from '@/utils/config'
import { getMetalAssetLabel } from '@/utils/productDealMethod'
import { getMetalAssetLabel, getWeightUnit } from '@/utils/productDealMethod'
const userStore = useUserStore()
const metalAssetLabel = computed(() => getMetalAssetLabel())
const weightUnit = computed(() => getWeightUnit())
defineEmits<{
openGoldModal: []