Improve boursecu UX: banners, support FAB, wallet deposit guide, fund/physical layouts, nav, and sidebar credit.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -17,6 +17,14 @@
|
||||
<span>مقدار موجودی</span>
|
||||
<span class="font-bold">{{ displayGold }}</span>
|
||||
<span>{{ quantityUnit }}</span>
|
||||
<div
|
||||
v-if="minDeliveryQuantity > 0"
|
||||
class="mt-0.5 w-full text-xs text-gray-500"
|
||||
>
|
||||
حداقل مقدار تحویل:
|
||||
<span class="font-bold text-gray-700">{{ displayMinDelivery }}</span>
|
||||
{{ quantityUnit }}
|
||||
</div>
|
||||
<div
|
||||
v-if="getProductUnitWeightLabel(item.product)"
|
||||
class="mt-0.5 text-xs text-gray-500"
|
||||
@@ -90,6 +98,18 @@ const displayGold = computed(() => {
|
||||
return isCountBased.value ? usePriceWithoutType(gold, false) : formatGoldAmount(gold)
|
||||
})
|
||||
|
||||
const minDeliveryQuantity = computed(() => {
|
||||
const min = Number(props.item.product.min_physical_delivery_quantity ?? 0)
|
||||
return Number.isFinite(min) && min > 0 ? min : 0
|
||||
})
|
||||
|
||||
const displayMinDelivery = computed(() => {
|
||||
if (minDeliveryQuantity.value <= 0) return ''
|
||||
return isCountBased.value
|
||||
? usePriceWithoutType(minDeliveryQuantity.value, false)
|
||||
: formatGoldAmount(minDeliveryQuantity.value)
|
||||
})
|
||||
|
||||
const config = useConfigStore()
|
||||
|
||||
function selectCountInput(e: FocusEvent) {
|
||||
|
||||
Reference in New Issue
Block a user