|
|
<?php
use yii\helpers\Url;
/* @var $this yii\web\View */ /* @var $model antgoods\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, 'ruleVerify' => $model->ruleVerify, '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, 'ruleVerify' => $model->ruleVerify, 'previewConfig' => [ 'url' => Url::to(['image-file', 'fileidstr' => $model->detailImageId]), ], ])->label('商品详情图') ?>
|