1404/11/18-delete required rule in referral code &

hidden home page
This commit is contained in:
2026-02-07 17:25:59 +03:30
parent e630c07d92
commit c6c7635041
4 changed files with 62 additions and 44 deletions
+18
View File
@@ -172,6 +172,24 @@ async function loadProduct() {
loading.value = false
}
}
watch(lastPrice, async () => {
// console.log(items);
if (lastPrice.value && product.value.similar) {
product.value.similar.forEach((val) => {
// console.log(lastPrice.value)
if (val.group_type == 'آبشده') {
val.price = lastPrice.value?.price_last
val.sellPrice = lastPrice.value?.sell
} else {
val.price = parseInt(val.amount * lastPrice.value?.price_last)
val.sellPrice = parseInt(val.amount * lastPrice.value?.sell)
// console.log(lastPrice.value?.price_last + "*" + val.amount + ' ' + val.price)
}
})
}
}, { deep: true })
async function initPrice() {
try {