修复:商品组件显示起订量错误,根据数量设置价格 时起订量一直显示0
This commit is contained in:
parent
dcdfd1facc
commit
84d6777d0f
|
|
@ -168,7 +168,7 @@
|
|||
@endhookwrapper
|
||||
@hookwrapper('product.detail.price')
|
||||
<div class="price-wrap d-flex align-items-end" v-if="price_setting === 'sku'">
|
||||
<div class="new-price fs-1 lh-1 fw-bold me-2">@{{ product.trade_term || 'DAP' }}:</div>
|
||||
<div class="new-price fs-1 lh-1 fw-bold me-2">{{$product['trade_term'] ?? 'DAP'}}:</div>
|
||||
<div class="new-price fs-1 lh-1 fw-bold me-2">@{{ product.price_format }}</div>
|
||||
<div class="new-price fs-1 lh-1 fw-bold me-2">-</div>
|
||||
<div class="old-price fs-1 lh-1 fw-bold me-2" v-if="product.price != product.origin_price && product.origin_price !== 0">@{{ product.origin_price_format }}</div>
|
||||
|
|
@ -184,7 +184,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="price-wrap d-flex align-items-end" v-if="price_setting === 'num'" style="border-top: 1px solid #aaaaaa;border-bottom: 1px solid #aaaaaa;padding: 10px;">
|
||||
<div class="item" style="color: #1a9bff;font-size: 18px;height: 54px;line-height: 54px;">@{{ product.trade_term || 'DAP' }}:</div>
|
||||
<div class="item" style="color: #1a9bff;font-size: 18px;height: 54px;line-height: 54px;">{{$product['trade_term'] ?? 'DAP'}}:</div>
|
||||
<div class="item" v-for="(item,index) in numPrices" style="flex: 1">
|
||||
<div class="num" v-if="index < numPrices.length - 1" style="
|
||||
white-space: nowrap;
|
||||
|
|
|
|||
|
|
@ -67,20 +67,16 @@
|
|||
<span class="price-new">{{ $product['price_format'] }}</span>
|
||||
@endif
|
||||
|
||||
@if(!empty($product['unit_format']))
|
||||
{{--@if(!empty($product['unit_format']))
|
||||
<span style="color:#aaa">/{{ $product['unit_format'] }}</span>
|
||||
@endif
|
||||
@endif--}}
|
||||
</div>
|
||||
<!--yt修改-->
|
||||
|
||||
@if ((int)$product['minimum_order'] > 0 || ($product['numprices'] != [] ? $product['numprices'][0]['num'] : 0) > 0)
|
||||
@if ((int)$product['minimum_order'] > 0)
|
||||
<div class="product-price">
|
||||
@if ($product['price_setting'] === 'num')
|
||||
<span class="price-new">{{$product['numprices'] != [] ? $product['numprices'][0]['num'] : 1}} {{ $product['unit_format'] ?? '' }}</span>
|
||||
@else
|
||||
<span class="price-new">{{$product['minimum_order'] ?? 0}} {{ $product['unit_format'] ?? '' }}</span>
|
||||
@endif
|
||||
<span style="color:#aaa;margin-left:4px">({{__('admin/product.minimum_order')}})</span>
|
||||
<span class="price-new">{{$product['minimum_order'] ?? 0}} {{ $product['unit_format'] ?? '' }}</span>
|
||||
<span style="color:#aaa;margin-left:4px">({{__('admin/product.minimum_order')}})</span>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue