|
@ -0,0 +1,41 @@ |
|
|
|
|
|
<?php |
|
|
|
|
|
|
|
|
|
|
|
use yii\helpers\Html; |
|
|
|
|
|
use yii\bootstrap4\ActiveForm; |
|
|
|
|
|
use antgoods\goods\models\ars\Category; |
|
|
|
|
|
use antgoods\goods\models\ars\Brand; |
|
|
|
|
|
use antgoods\goods\models\ars\ShopCategory; |
|
|
|
|
|
use antgoods\goods\models\ars\Supplier; |
|
|
|
|
|
use yii\helpers\Url; |
|
|
|
|
|
|
|
|
|
|
|
/* @var $this yii\web\View */ |
|
|
|
|
|
/* @var $model antgoods\goods\models\ars\Goods */ |
|
|
|
|
|
/* @var $form yii\widgets\ActiveForm */ |
|
|
|
|
|
?>
|
|
|
|
|
|
<?= $form->field($model, 'coverImageId')->hiddenInput()->label('') ?>
|
|
|
|
|
|
<?= $form->field($model, 'coverImagePath')->widget(\iron\widgets\Upload::className(), [ |
|
|
|
|
|
'url' => 'upload', |
|
|
|
|
|
'deleteUrl' => 'img-id-del', |
|
|
|
|
|
'dragdropWidth'=> 800, |
|
|
|
|
|
'afterSave' => 'save-file', |
|
|
|
|
|
'maxCount' => 1, |
|
|
|
|
|
'fillInAttribute' => 'coverImageId', |
|
|
|
|
|
'model' => $model, |
|
|
|
|
|
'previewConfig' => [ |
|
|
|
|
|
'url' => Url::to(['image-file', 'fileidstr' => $model->coverImageId]), |
|
|
|
|
|
], |
|
|
|
|
|
])->label('商品封面图') ?>
|
|
|
|
|
|
|
|
|
|
|
|
<?= $form->field($model, 'detailImageId')->hiddenInput()->label('') ?>
|
|
|
|
|
|
<?= $form->field($model, 'detailImagePath')->widget(\iron\widgets\Upload::className(), [ |
|
|
|
|
|
'url' => 'upload', |
|
|
|
|
|
'deleteUrl' => 'img-id-del', |
|
|
|
|
|
'dragdropWidth'=> 800, |
|
|
|
|
|
'afterSave' => 'save-file', |
|
|
|
|
|
'maxCount' => 5, |
|
|
|
|
|
'fillInAttribute' => 'detailImageId', |
|
|
|
|
|
'model' => $model, |
|
|
|
|
|
'previewConfig' => [ |
|
|
|
|
|
'url' => Url::to(['image-file', 'fileidstr' => $model->detailImageId]), |
|
|
|
|
|
], |
|
|
|
|
|
])->label('商品详情图') ?>
|