优化:商品详情页面部分内容调整
This commit is contained in:
parent
5663f321dc
commit
dcdfd1facc
|
|
@ -55,7 +55,7 @@
|
|||
width: 84px!important;
|
||||
}
|
||||
.trade-term-img{
|
||||
width: 500px!important;
|
||||
width: 400px!important;
|
||||
}
|
||||
.popover{
|
||||
--bs-popover-max-width: 550px!important;
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ return [
|
|||
'piece' => 'piece',
|
||||
'batches' => 'batches',
|
||||
'pieces_per_batch' => ':num :unit per batch',
|
||||
'sales_method_piece_unit' => 'Sell by :unit',
|
||||
'sales_method_piece_unit' => 'Sell by piece',
|
||||
'total_num' => ':num :unit in total',
|
||||
'multiple_error' => 'The purchase quantity must be a multiple of :num',
|
||||
'quantity_error_mini' => 'Purchase quantity error, the total purchase quantity of [:goods_name] must be greater than or equal to [:num]',
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ return [
|
|||
'piece' => '件',
|
||||
'batches' => '批',
|
||||
'pieces_per_batch' => '每批:num:unit',
|
||||
'sales_method_piece_unit' => '按:unit卖',
|
||||
'sales_method_piece_unit' => '按件卖',
|
||||
'total_num' => '共:num:unit',
|
||||
'multiple_error' => '采购数量必须是:num的倍数',
|
||||
'quantity_error_mini' => '采购数量错误,【:goods_name】的采购总数量必须大于等于【:num】',
|
||||
|
|
|
|||
|
|
@ -168,16 +168,23 @@
|
|||
@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.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 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>
|
||||
@if($product['unit'])
|
||||
<div style="font-size: 15px;color: #999999;">/ {{explode('/',$product['unit'])[0]}} |</div>
|
||||
@endif
|
||||
<div v-if="minimum_order > 0" style="font-size: 15px;color: #101010;">
|
||||
@if($product['sales_method'] == 'piece')
|
||||
{{ $product['minimum_order'] }} {{$product['unit']}}<span style="color: #999999;">({{__('product.minimum_order')}})</span>
|
||||
@else
|
||||
{{ ($product['piece_to_batch'] * $product['minimum_order']) }} {{$product['unit']}}<span style="color: #999999;">({{__('product.minimum_order')}})</span>
|
||||
@endif
|
||||
</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="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" v-for="(item,index) in numPrices" style="flex: 1">
|
||||
<div class="num" v-if="index < numPrices.length - 1" style="
|
||||
white-space: nowrap;
|
||||
|
|
@ -248,11 +255,11 @@
|
|||
@endif
|
||||
</div>
|
||||
|
||||
@if(!empty($product['unit']))
|
||||
{{--@if(!empty($product['unit']))
|
||||
<div class="d-flex">
|
||||
<span class="title text-muted" style="width: auto!important;">{{__('product.unit_of_measurement')}}:</span> {{ $product['unit'] }}
|
||||
</div>
|
||||
@endif
|
||||
@endif--}}
|
||||
|
||||
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue