Browse Source

修改商品图片字段名称

wechat_public_accounts
linyaostalker 5 years ago
parent
commit
7cfe9414f9
  1. 5
      vendor/antgoods/goods/src/views/goods/_form.php

5
vendor/antgoods/goods/src/views/goods/_form.php

@ -68,12 +68,13 @@ use antgoods\goods\models\ars\Supplier;
<?= $form->field($model, 'express_template')->textInput() ?>
<?= $form->field($model, 'image')->textInput() ?>
<?= $form->field($model, 'image')->hiddenInput()->label('') ?>
<?= $form->field($model, 'imagePath')->widget(\iron\widgets\Upload::className(), [
'url' => 'upload',
'deleteUrl' => 'imageDel',
'dragdropWidth'=> 800,
'afterSave' => 'savefile',
'maxCount' => 1,
'successScript' => "
success: function(data)
{
@ -95,7 +96,7 @@ use antgoods\goods\models\ars\Supplier;
},
});
",
]) ?>
])->label('图片') ?>
<div class="form-group">
<?= Html::submitButton('保存', ['class' => 'btn btn-success']) ?>

Loading…
Cancel
Save