前台商品详情页添加品牌显示

This commit is contained in:
pushuo 2023-01-05 18:41:12 +08:00
parent 4f5b2821e6
commit fe0f922de0
2 changed files with 8 additions and 3 deletions

View File

@ -78,9 +78,9 @@
</div>
</div>
<div class="col-12 col-md-3 right-column">
<div class="card shadow-sm">
<div class="card shadow-sm fixed-top-line">
<div class="card-body p-lg-4">
<div class="card total-wrap fixed-top-line">
<div class="card total-wrap">
<div class="p-lg-0"><h5 class="mb-3">{{ __('shop/carts.product_total') }}</h5></div>
<div class="card-body p-lg-0">
<ul class="list-group list-group-flush">

View File

@ -11,7 +11,6 @@
@section('content')
<div class="container" id="product-app" v-cloak>
<x-shop-breadcrumb type="product" :value="$product['id']" />
<div class="row mb-5 mt-3 mt-md-0" id="product-top">
@ -64,6 +63,12 @@
<template v-else>{{ __('shop/products.out_stock') }}</template>
</div>
</div>
@if ($product['brand_id'])
<div class="d-flex">
<span class="title text-muted">{{ __('product.brand') }}:</span>
<a href="{{ shop_route('brands.show', $product['brand_id']) }}">{{ $product['brand_name'] }}</a>
</div>
@endif
<div class="d-flex"><span class="title text-muted">SKU:</span>@{{ product.sku }}</div>
<div class="d-flex" v-if="product.model"><span class="title text-muted">{{ __('shop/products.model') }}:</span> @{{ product.model }}</div>
</div>