From 38e691529fa1db52a31a120b65d608b85b7fac19 Mon Sep 17 00:00:00 2001 From: linyaostalker <602604991@qq.com> Date: Thu, 28 Nov 2019 17:25:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=80=89=E6=8B=A9=E4=B8=8A?= =?UTF-8?q?=E7=BA=A7=E5=88=86=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vendor/antgoods/goods/src/views/category/_form.php | 3 +++ vendor/antgoods/goods/src/views/shop-category/_form.php | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/vendor/antgoods/goods/src/views/category/_form.php b/vendor/antgoods/goods/src/views/category/_form.php index 344b234..9febac5 100644 --- a/vendor/antgoods/goods/src/views/category/_form.php +++ b/vendor/antgoods/goods/src/views/category/_form.php @@ -4,6 +4,7 @@ use yii\helpers\Html; use yii\bootstrap4\ActiveForm; use blobt\widgets\Icheck; use yii\helpers\Url; +use antgoods\goods\models\ars\Category; /* @var $this yii\web\View */ /* @var $model antgoods\goods\models\ars\Category */ @@ -16,6 +17,8 @@ use yii\helpers\Url; field($model, 'name')->textInput(['maxlength' => true]) ?> + field($model, 'pid')->dropDownList(array_merge([0 => '一级分类'], Category::modelColumn())) ?> + field($model, 'sort_order')->textInput() ?> field($model, 'iconImageId')->hiddenInput()->label('') ?> diff --git a/vendor/antgoods/goods/src/views/shop-category/_form.php b/vendor/antgoods/goods/src/views/shop-category/_form.php index c5502de..98447db 100644 --- a/vendor/antgoods/goods/src/views/shop-category/_form.php +++ b/vendor/antgoods/goods/src/views/shop-category/_form.php @@ -6,7 +6,7 @@ use blobt\widgets\Icheck; use yii\helpers\Url; use antgoods\goods\models\ars\Attribute; use linyao\widgets\Select2; -use antgoods\goods\models\ars\Category; +use antgoods\goods\models\ars\ShopCategory; /* @var $this yii\web\View */ /* @var $model antgoods\goods\models\ars\ShopCategory */ @@ -21,7 +21,7 @@ use antgoods\goods\models\ars\Category; field($model, 'keywords')->textInput(['maxlength' => true]) ?> - field($model, 'pid')->dropDownList(array_merge([0 => '一级分类'], Category::modelColumn())) ?> + field($model, 'pid')->dropDownList(array_merge([0 => '一级分类'], ShopCategory::modelColumn())) ?> field($model, 'desc')->textInput(['maxlength' => true]) ?>