Browse Source

处理商品规格表单字段

wechat_public_accounts
linyaostalker 5 years ago
parent
commit
7cd213840d
  1. 4
      vendor/antgoods/goods/src/models/ars/Attribute.php
  2. 2
      vendor/antgoods/goods/src/views/attribute/_form.php

4
vendor/antgoods/goods/src/models/ars/Attribute.php

@ -52,8 +52,8 @@ class Attribute extends \yii\db\ActiveRecord
{ {
return [ return [
'id' => 'id', 'id' => 'id',
'name' => '属性名',
'value' => '属性值',
'name' => '规格名称',
'value' => '规格内容(每项以逗号隔开)',
'type' => '类型', 'type' => '类型',
'sort_order' => '排序', 'sort_order' => '排序',
'is_delete' => '是否删除,1为已删除', 'is_delete' => '是否删除,1为已删除',

2
vendor/antgoods/goods/src/views/attribute/_form.php

@ -16,8 +16,6 @@ use yii\bootstrap4\ActiveForm;
<?= $form->field($model, 'value')->textarea(['rows' => 6]) ?> <?= $form->field($model, 'value')->textarea(['rows' => 6]) ?>
<?= $form->field($model, 'type')->textInput() ?>
<?= $form->field($model, 'sort_order')->textInput() ?> <?= $form->field($model, 'sort_order')->textInput() ?>
<div class="form-group"> <div class="form-group">

Loading…
Cancel
Save