From 3d2afc611e8ff3d23866cb43f7ce416c2785ea59 Mon Sep 17 00:00:00 2001 From: linyaostalker <602604991@qq.com> Date: Wed, 18 Dec 2019 11:09:34 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=E8=A7=84=E6=A0=BC=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=A2=9E=E5=8A=A0=E8=A7=84=E6=A0=BC=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E6=A3=80=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/goods/views/attribute/_search.php | 13 +++++++ .../modules/goods/views/goods/sku_edit.php | 5 +-- backend/views/layouts/sidebar.php | 38 +++++++++---------- 3 files changed, 34 insertions(+), 22 deletions(-) diff --git a/backend/modules/goods/views/attribute/_search.php b/backend/modules/goods/views/attribute/_search.php index 0a9d3be..a25765b 100755 --- a/backend/modules/goods/views/attribute/_search.php +++ b/backend/modules/goods/views/attribute/_search.php @@ -29,6 +29,19 @@ use \blobt\widgets\DateRangePicker; ]) ?> +
+ field($model, 'name', [ + "template" => "{input}{error}", + "inputOptions" => [ + "placeholder" => "规格名称", + "class" => "form-control", + ], + "errorOptions" => [ + "class" => "error-tips" + ] + ]) + ?> +
field($model, "created_at_range", [ "template" => "{input}{error}", diff --git a/backend/modules/goods/views/goods/sku_edit.php b/backend/modules/goods/views/goods/sku_edit.php index 6c5e13f..2baa1aa 100755 --- a/backend/modules/goods/views/goods/sku_edit.php +++ b/backend/modules/goods/views/goods/sku_edit.php @@ -5,12 +5,11 @@ use backend\modules\goods\web\GoodsSkuEditAsset; $this->title = '添加SKU'; $this->params['breadcrumbs'][] = ['label' => '商品列表', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; -//GoodsSkuEditAsset::register($this); +GoodsSkuEditAsset::register($this); ?>
-render('@app/web/custom/sku_item.html') ?> \ No newline at end of file + \ No newline at end of file diff --git a/backend/views/layouts/sidebar.php b/backend/views/layouts/sidebar.php index 0274089..efe095e 100755 --- a/backend/views/layouts/sidebar.php +++ b/backend/views/layouts/sidebar.php @@ -15,11 +15,11 @@ use iron\widgets\Menu; echo Menu::widget([ 'items' => [ // ['label' => 'MAIN NAVIGATION', 'is_header' => true], -// ['label' => '商城管理', 'url' => '#', 'icon' => 'far fa-store', 'items' => [ -// ['label' => '运营数据', 'url' => ['site/index', 'tag' => 'new']], -// ['label' => '基础配置', 'url' => ['config/index', 'tag' => 'new']], -// ] -// ], + ['label' => '商城管理', 'url' => '#', 'icon' => 'far fa-store', 'items' => [ + ['label' => '运营数据', 'url' => ['site/index', 'tag' => 'new']], + ['label' => '基础配置', 'url' => ['config/index', 'tag' => 'new']], + ] + ], ['label' => '商品管理', 'url' => '#', 'icon' => 'far fa-box', 'items' => [ ['label' => '后台商品分类', 'url' => ['/goods/category/index']], ['label' => '规格管理', 'url' => ['/goods/attribute/index']], @@ -29,20 +29,20 @@ use iron\widgets\Menu; ['label' => '商品列表', 'url' => ['/goods/goods/index']], ] ], -// ['label' => '订单管理', 'url' => '#', 'icon' => 'far fa-list-alt', 'items' => [ -// ['label' => '订单列表', 'url' => ['/shop/order/index', 'tag' => 'new']], -// ], -// ], -// ['label' => '配送服务', 'url' => '#', 'icon' => 'far fa-shipping-fast', 'items' => [ -// ['label' => '上门自提', 'url' => ['/shop/taking-site/index']], -// ['label' => '运费模板', 'url' => ['/shop/express-template/index']], -// ] -// ], -// ['label' => '售后管理', 'url' => '#', 'icon' => 'far fa-retweet', 'items' => [ -// ['label' => '售后管理', 'url' => ['/shop/after-sale/index']], -// ['label' => '评论', 'url' => ['/shop/comment/index']], -// ] -// ], + ['label' => '订单管理', 'url' => '#', 'icon' => 'far fa-list-alt', 'items' => [ + ['label' => '订单列表', 'url' => ['/shop/order/index', 'tag' => 'new']], + ], + ], + ['label' => '配送服务', 'url' => '#', 'icon' => 'far fa-shipping-fast', 'items' => [ + ['label' => '上门自提', 'url' => ['/shop/taking-site/index']], + ['label' => '运费模板', 'url' => ['/shop/express-template/index']], + ] + ], + ['label' => '售后管理', 'url' => '#', 'icon' => 'far fa-retweet', 'items' => [ + ['label' => '售后管理', 'url' => ['/shop/after-sale/index']], + ['label' => '评论', 'url' => ['/shop/comment/index']], + ] + ], ] ]);