From 48db0c93608e19fb301a12b93653d14117602489 Mon Sep 17 00:00:00 2001 From: linyaostalker <602604991@qq.com> Date: Wed, 20 Nov 2019 18:47:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86yii=E7=9A=84activeform=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=B8=BAbootstrap4=E7=9A=84activeform?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vendor/antgoods/goods/src/views/attribute/_form.php | 2 +- vendor/antgoods/goods/src/views/brand/_form.php | 2 +- vendor/antgoods/goods/src/views/category/_form.php | 2 +- vendor/antgoods/goods/src/views/goods/_form.php | 8 ++++++-- vendor/antgoods/goods/src/views/shopcategory/_form.php | 2 +- vendor/antgoods/goods/src/views/supplier/_form.php | 2 +- 6 files changed, 11 insertions(+), 7 deletions(-) diff --git a/vendor/antgoods/goods/src/views/attribute/_form.php b/vendor/antgoods/goods/src/views/attribute/_form.php index 75c5ddf..6984a47 100644 --- a/vendor/antgoods/goods/src/views/attribute/_form.php +++ b/vendor/antgoods/goods/src/views/attribute/_form.php @@ -1,7 +1,7 @@ field($model, 'description')->textarea(['rows' => 6]) ?> - field($model, 'image')->textInput() ?> + field($model, 'image')->widget(\iron\widgets\Upload::className(), [ + 'url' => 'upload', + 'deleteUrl' => 'imageDel', + 'dragdropWidth'=> 800 + ]) ?> field($model, 'model_id')->textInput() ?> diff --git a/vendor/antgoods/goods/src/views/shopcategory/_form.php b/vendor/antgoods/goods/src/views/shopcategory/_form.php index 1c3efe6..155b9d3 100644 --- a/vendor/antgoods/goods/src/views/shopcategory/_form.php +++ b/vendor/antgoods/goods/src/views/shopcategory/_form.php @@ -1,7 +1,7 @@