|
|
@ -0,0 +1,35 @@ |
|
|
|
<?php |
|
|
|
|
|
|
|
use yii\helpers\Url; |
|
|
|
|
|
|
|
/* @var $this yii\web\View */ |
|
|
|
/* @var $model backend\modules\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, 'ruleverify' => $model->ruleVerify]), |
|
|
|
], |
|
|
|
])->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, 'ruleverify' => $model->ruleVerify]), |
|
|
|
], |
|
|
|
])->label('商品详情图') ?>
|