change prices &...

This commit is contained in:
2026-06-03 11:57:40 +03:30
parent f4b98576f5
commit b055cd4a5d
16 changed files with 305 additions and 25 deletions
@@ -652,6 +652,24 @@ onMounted(async () => {
})
async function initPrice() {
try {
// chartLoading.value = true
await getLastPrices()
// await setIntervalGetPrice()
loading.value = true
price.value = lastPrice.value
/*props.ProductItem.price = lastPrice.value?.buy * props.ProductItem?.amount
props.ProductItem.sellPrice = lastPrice.value?.sell * props.ProductItem?.amount*/
props.ProductItem.price = lastPrice?.value?.price? (lastPrice?.value?.price + props.ProductItem?.cash_fee_buy) * props.ProductItem?.amount: 0
props.ProductItem.sellPrice = lastPrice?.value?.price? (lastPrice?.value?.price - props.ProductItem?.percent_fee_sell) * props.ProductItem?.amount:0
} catch (e) {
console.log(e)
} finally {
loading.value = false
// chartLoading.value = false
}
}
/*async function initPrice() {
try {
// chartLoading.value = true
await getLastPrices()
@@ -666,7 +684,7 @@ async function initPrice() {
loading.value = false
// chartLoading.value = false
}
}
}*/
// onMounted(() => {
// initPrice()