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']) ?> +
+
+