Browse Source

修改后台商品分类新建的参数定义

wechat_public_accounts
linyaostalker 5 years ago
parent
commit
6b1d34be10
  1. 2
      vendor/antgoods/goods/src/controllers/CategoryController.php
  2. 1
      vendor/antgoods/goods/src/controllers/GoodsController.php
  3. 31
      vendor/antgoods/goods/src/views/goods/new_editor.php

2
vendor/antgoods/goods/src/controllers/CategoryController.php

@ -79,6 +79,8 @@ class CategoryController extends Controller
public function actionCreate() public function actionCreate()
{ {
$model = new Category(); $model = new Category();
$model->is_show = Category::IS_SHOW_DISPLAY;
$model->sort_order = 0;
if ($model->load(Yii::$app->request->post())) { if ($model->load(Yii::$app->request->post())) {

1
vendor/antgoods/goods/src/controllers/GoodsController.php

@ -304,6 +304,7 @@ class GoodsController extends Controller
/** /**
* @return array * @return array
* @throws \Throwable
* 添加sku * 添加sku
*/ */
public function actionAddSku() public function actionAddSku()

31
vendor/antgoods/goods/src/views/goods/new_editor.php

@ -0,0 +1,31 @@
<?php
/**
* Created by PhpStorm.
* User: livan
* Date: 2018/7/9
* Time: 14:22
*/
use yii\helpers\Html;
?>
<div>
<div class="row">
<div class="col-lg-3">
<?= $form->field($model, 'description')->widget('common\widgets\ueditor\Ueditor',[
'options'=>[
'initialFrameWidth' => 760,//宽度
'initialFrameHeight' => 500,//高度
]
]) ?>
</div>
</div>
<div class="form-group">
<?= Html::submitButton('保存', ['class' => 'btn btn-success']) ?>
</div>
</div>
Loading…
Cancel
Save