From 6b1d34be104e4eed0188312413a7d5d65e24f456 Mon Sep 17 00:00:00 2001 From: linyaostalker <602604991@qq.com> Date: Mon, 2 Dec 2019 09:24:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=8E=E5=8F=B0=E5=95=86?= =?UTF-8?q?=E5=93=81=E5=88=86=E7=B1=BB=E6=96=B0=E5=BB=BA=E7=9A=84=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/controllers/CategoryController.php | 2 ++ .../goods/src/controllers/GoodsController.php | 1 + .../goods/src/views/goods/new_editor.php | 31 +++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 vendor/antgoods/goods/src/views/goods/new_editor.php diff --git a/vendor/antgoods/goods/src/controllers/CategoryController.php b/vendor/antgoods/goods/src/controllers/CategoryController.php index c19e1c2..fe0d783 100644 --- a/vendor/antgoods/goods/src/controllers/CategoryController.php +++ b/vendor/antgoods/goods/src/controllers/CategoryController.php @@ -79,6 +79,8 @@ class CategoryController extends Controller public function actionCreate() { $model = new Category(); + $model->is_show = Category::IS_SHOW_DISPLAY; + $model->sort_order = 0; if ($model->load(Yii::$app->request->post())) { diff --git a/vendor/antgoods/goods/src/controllers/GoodsController.php b/vendor/antgoods/goods/src/controllers/GoodsController.php index 09aefe2..aef9c16 100644 --- a/vendor/antgoods/goods/src/controllers/GoodsController.php +++ b/vendor/antgoods/goods/src/controllers/GoodsController.php @@ -304,6 +304,7 @@ class GoodsController extends Controller /** * @return array + * @throws \Throwable * 添加sku */ public function actionAddSku() diff --git a/vendor/antgoods/goods/src/views/goods/new_editor.php b/vendor/antgoods/goods/src/views/goods/new_editor.php new file mode 100644 index 0000000..a35c049 --- /dev/null +++ b/vendor/antgoods/goods/src/views/goods/new_editor.php @@ -0,0 +1,31 @@ + +
+
+
+ field($model, 'description')->widget('common\widgets\ueditor\Ueditor',[ + 'options'=>[ + 'initialFrameWidth' => 760,//宽度 + 'initialFrameHeight' => 500,//高度 + + ] + + ]) ?> +
+
+ + + +
+ 'btn btn-success']) ?> +
+
+