product attribute

This commit is contained in:
Edward Yang 2022-08-23 16:24:42 +08:00
parent fc9c826b0c
commit 05410da29e
3 changed files with 39 additions and 3 deletions

View File

@ -18,16 +18,16 @@
<div class="bg-light p-4">
<div class="row">
<div class="col-xxl-20 col-xl-3 col-lg-4 col-md-4 d-flex align-items-center mb-3">
<label class="filter-title">商品名称</label>
<label class="filter-title">{{ __('product.name') }}</label>
<input type="text" v-model="filter.name" class="form-control" placeholder="name">
</div>
<div class="col-xxl-20 col-xl-3 col-lg-4 col-md-4 d-flex align-items-center mb-3">
<label class="filter-title">sku</label>
<label class="filter-title">{{ __('product.sku') }}</label>
<input type="text" v-model="filter.sku" class="form-control" placeholder="sku">
</div>
<div class="col-xxl-20 col-xl-3 col-lg-4 col-md-4 d-flex align-items-center mb-3">
<label class="filter-title">分类</label>
<label class="filter-title">{{ __('product.category') }}</label>
<select v-model="filter.category_id" class="form-control">
<option value="0">全部</option>
@foreach ($categories as $_category)

View File

@ -0,0 +1,18 @@
<?php
/**
* product.php
*
* @copyright 2022 opencart.cn - All Rights Reserved
* @link http://www.guangdawangluo.com
* @author Edward Yang <yangjin@opencart.cn>
* @created 2022-08-02 14:22:41
* @modified 2022-08-02 14:22:41
*/
return [
'name' => 'Name',
'sku' => 'SKU',
'price' => 'Price',
'brand' => 'Brand',
'category' => 'Category',
];

View File

@ -0,0 +1,18 @@
<?php
/**
* product.php
*
* @copyright 2022 opencart.cn - All Rights Reserved
* @link http://www.guangdawangluo.com
* @author Edward Yang <yangjin@opencart.cn>
* @created 2022-08-02 14:22:41
* @modified 2022-08-02 14:22:41
*/
return [
'name' => '名称',
'sku' => 'SKU',
'price' => '价格',
'brand' => '品牌',
'category' => '分类',
];