fix buy check

This commit is contained in:
2024-03-12 19:17:29 +08:00
parent fb45d8fcff
commit 1817341b20

View File

@@ -60,7 +60,7 @@ const currentGoods = ref<ResponsePointGoodModel>()
const buyCount = ref(1) const buyCount = ref(1)
const selectedAddress = ref<AddressInfo>() const selectedAddress = ref<AddressInfo>()
const canDoBuy = computed(() => { const canDoBuy = computed(() => {
return currentGoods.value && currentGoods.value.price * buyCount.value < currentPoint.value return currentGoods.value && currentGoods.value.price * buyCount.value <= currentPoint.value
}) })
const addressOptions = computed(() => { const addressOptions = computed(() => {