4 Commits
Author SHA1 Message Date
safavimohadeseh78andCursor 9f7a98e064 feat(fund): show rial value of piggy-bank gold
The gram balance alone does not show what the holding is worth.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-15 18:42:54 +03:30
safavimohadeseh78 db29b7d0d3 Revert "fix(physical-receive): use product unit and send product_id"
This reverts commit 6e898323d4.
2026-09-15 13:41:47 +03:30
safavimohadeseh78andCursor 6e898323d4 fix(physical-receive): use product unit and send product_id
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-15 13:39:31 +03:30
safavimohadeseh78 3e4c0e018e fix(ui): center page loading spinner and use accent spin color
Apply shared app-page-content-loading layout and theme-aligned spin dots across the app.
2026-08-31 02:36:42 -04:00
2 changed files with 29 additions and 0 deletions
+16
View File
@@ -352,3 +352,19 @@ body {
.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover{ .ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover{
color: white !important; color: white !important;
} }
.ant-spin-dot-item,
.ant-spin-dot i {
background-color: @primary-color !important;
}
/* لودینگ محتوای صفحه — وسط ناحیه محتوا (موبایل و دسکتاپ یکسان) */
.app-page-content-loading {
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
width: 100%;
min-height: min(52vh, 22rem);
padding: 2rem 1rem;
}
+13
View File
@@ -21,6 +21,9 @@
<div class="ml-1 text-base text-black">{{ info?.wallet[0]?.gold }}</div> <div class="ml-1 text-base text-black">{{ info?.wallet[0]?.gold }}</div>
گرم گرم
</div> </div>
<div v-if="rialEquivalent !== null" class="mt-1 text-xs text-gray-400">
{{ usePriceWithoutType(rialEquivalent) }} ریال
</div>
<div class="text-gray-400">موجودی قلک {{ info?.title }}</div> <div class="text-gray-400">موجودی قلک {{ info?.title }}</div>
<div class="w-full p-5"> <div class="w-full p-5">
<div class="w-full flex gap-3"> <div class="w-full flex gap-3">
@@ -145,6 +148,8 @@ import TransactionSkeleton from '@/components/TransactionSkeleton.vue'
import DialogVant from '@/components/DialogVant.vue' import DialogVant from '@/components/DialogVant.vue'
import { useFundUserStore } from '@/store/fundStore' import { useFundUserStore } from '@/store/fundStore'
import BasicIcon from '@/components/BasicPacks/BasicIcon.vue' import BasicIcon from '@/components/BasicPacks/BasicIcon.vue'
import { getLastPrices, lastPrice } from '@/utils/price'
import { usePriceWithoutType } from '@/utils/usePrice'
const info = ref<Fund>() const info = ref<Fund>()
const items = ref<Transaction[]>([]) const items = ref<Transaction[]>([])
@@ -159,8 +164,16 @@ let fundStore = useFundUserStore()
let walletStore = useWalletStore() 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(() => { onMounted(() => {
initInfo() initInfo()
if (!lastPrice.value) getLastPrices()
// initTable() // initTable()
}) })