fix withdraw and desposit ui

This commit is contained in:
2026-06-15 15:48:10 +03:30
parent f7b86a5fa1
commit 57a8fb9854
11 changed files with 438 additions and 100 deletions
+3 -3
View File
@@ -67,13 +67,13 @@
is-line
title="کیف پول طلا"
class="mt-2"
:value="selectedCustomer?.wallet[0]?.gold ?? '_'"
:value="getGoldBalance(selectedCustomer?.wallet) || '_'"
/>
<BasicInfoItem
is-line
title="کیف پول ریالی"
class="mt-1"
:value="selectedCustomer?.wallet[0]?.cash ?? '_'"
:value="getCashBalance(selectedCustomer?.wallet) || '_'"
/>
</div>
<div class="flex flex-col gap-2 bg-blue-50 p-2 rounded-lg">
@@ -142,6 +142,7 @@ import { usePrice } from '@core/utils/usePrice'
import { getLastPrice } from '@/api/price'
import type { last } from '@/model/price'
import { createOrder } from '@/api/order'
import { getCashBalance, getGoldBalance } from '@/components/mobile/utils/wallet'
//loading
const loading = ref<boolean>(false)
@@ -217,7 +218,6 @@ async function getPrices() {
async function changeUser(val: Customer) {
selectedCustomer.value = cloneDeep(val)
console.log(selectedCustomer.value.wallet[0])
}
function stopGetPrice() {