From b1ab7d94e04156bf17bb0098192bc6762b34574e Mon Sep 17 00:00:00 2001 From: linyaostalker <602604991@qq.com> Date: Sat, 7 Dec 2019 10:05:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=8F=91=E5=95=86=E5=93=81=E7=89=A9?= =?UTF-8?q?=E6=B5=81=E4=BF=A1=E6=81=AF=E7=BC=96=E8=BE=91=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/modules/goods/views/goods/express.php | 79 ++++++++++++------- 1 file changed, 52 insertions(+), 27 deletions(-) diff --git a/backend/modules/goods/views/goods/express.php b/backend/modules/goods/views/goods/express.php index 022f640..c97839e 100755 --- a/backend/modules/goods/views/goods/express.php +++ b/backend/modules/goods/views/goods/express.php @@ -1,35 +1,60 @@ -field($model, 'coverImageId')->hiddenInput()->label('') ?> -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('商品封面图') ?> - -field($model, 'detailImageId')->hiddenInput()->label('') ?> -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('商品详情图') ?> +field($model, 'is_taking')->widget(Icheck::className(), ['items' => Goods::$isTaking, 'type' => 'radio']) ?> + +field($model, 'is_express')->widget(Icheck::className(), ['items' => Goods::$isExpress, 'type' => 'radio']) ?> + +
+ field($model, 'express_type')->widget(Icheck::className(), ['items' => Goods::$expressType, 'type' => 'radio']) ?> + +
+ field($model, 'uniform_postage')->textInput() ?> +
+ +
+ field($model, 'express_template')->widget(Select2::className(), ["items" => ExpressTemplate::modelColumn()]) ?> +
+
+ +registerJs($js); + +?> \ No newline at end of file