增加hook

This commit is contained in:
tanxiaoyong 2023-03-20 17:43:55 +08:00 committed by Edward Yang
parent 835a7b3098
commit b7195e2d01
1 changed files with 2 additions and 0 deletions

View File

@ -55,12 +55,14 @@
@hookwrapper('product.detail.name')
<h1 class="mb-4 product-name">{{ $product['name'] }}</h1>
@endhookwrapper
@hookwrapper('product.detail.price')
<div class="price-wrap d-flex align-items-end">
<div class="new-price fs-1 lh-1 fw-bold me-2">@{{ product.price_format }}</div>
<div class="old-price text-muted text-decoration-line-through" v-if="product.price != product.origin_price && product.origin_price !== 0">
@{{ product.origin_price_format }}
</div>
</div>
@endhookwrapper
<div class="stock-and-sku mb-4">
@hookwrapper('product.detail.quantity')
<div class="d-flex">