Browse Source

refactor:修改不合理的字段

antshop
linyaostalker 5 years ago
parent
commit
0d5ad49a0d
  1. 2
      backend/modules/goods/views/category/_form.php
  2. 4
      backend/modules/goods/views/goods/_form.php
  3. 4
      backend/modules/goods/views/goods/picture.php
  4. 2
      backend/modules/goods/views/shop-category/_form.php

2
backend/modules/goods/views/category/_form.php

@ -31,7 +31,7 @@ use backend\modules\goods\models\ars\Category;
'fillInAttribute' => 'iconImageId', 'fillInAttribute' => 'iconImageId',
'model' => $model, 'model' => $model,
'previewConfig' => [ 'previewConfig' => [
'url' => Url::to(['image-file', 'fileidstr' => $model->iconImageId]),
'url' => Url::to(['image-file', 'fileIdStr' => $model->iconImageId]),
], ],
])->label('类目图片') ?> ])->label('类目图片') ?>

4
backend/modules/goods/views/goods/_form.php

@ -79,7 +79,7 @@ use yii\helpers\Url;
'fillInAttribute' => 'coverImageId', 'fillInAttribute' => 'coverImageId',
'model' => $model, 'model' => $model,
'previewConfig' => [ 'previewConfig' => [
'url' => Url::to(['image-file', 'fileidstr' => $model->coverImageId]),
'url' => Url::to(['image-file', 'fileIdStr' => $model->coverImageId]),
], ],
])->label('商品封面图') ?> ])->label('商品封面图') ?>
@ -93,7 +93,7 @@ use yii\helpers\Url;
'fillInAttribute' => 'detailImageId', 'fillInAttribute' => 'detailImageId',
'model' => $model, 'model' => $model,
'previewConfig' => [ 'previewConfig' => [
'url' => Url::to(['image-file', 'fileidstr' => $model->detailImageId]),
'url' => Url::to(['image-file', 'fileIdStr' => $model->detailImageId]),
], ],
])->label('商品详情图') ?> ])->label('商品详情图') ?>

4
backend/modules/goods/views/goods/picture.php

@ -16,7 +16,7 @@ use yii\helpers\Url;
'fillInAttribute' => 'coverImageId', 'fillInAttribute' => 'coverImageId',
'model' => $model, 'model' => $model,
'previewConfig' => [ 'previewConfig' => [
'url' => Url::to(['image-file', 'fileidstr' => $model->coverImageId, 'ruleverify' => $model->ruleVerify]),
'url' => Url::to(['image-file', 'fileIdStr' => $model->coverImageId, 'ruleverify' => $model->ruleVerify]),
], ],
])->label('商品封面图') ?> ])->label('商品封面图') ?>
@ -30,6 +30,6 @@ use yii\helpers\Url;
'fillInAttribute' => 'detailImageId', 'fillInAttribute' => 'detailImageId',
'model' => $model, 'model' => $model,
'previewConfig' => [ 'previewConfig' => [
'url' => Url::to(['image-file', 'fileidstr' => $model->detailImageId, 'ruleverify' => $model->ruleVerify]),
'url' => Url::to(['image-file', 'fileIdStr' => $model->detailImageId]),
], ],
])->label('商品详情图') ?> ])->label('商品详情图') ?>

2
backend/modules/goods/views/shop-category/_form.php

@ -37,7 +37,7 @@ use backend\modules\goods\models\ars\ShopCategory;
'fillInAttribute' => 'iconImageId', 'fillInAttribute' => 'iconImageId',
'model' => $model, 'model' => $model,
'previewConfig' => [ 'previewConfig' => [
'url' => Url::to(['image-file', 'fileidstr' => $model->iconImageId]),
'url' => Url::to(['image-file', 'fileIdStr' => $model->iconImageId]),
], ],
])->label('类目图片') ?> ])->label('类目图片') ?>

Loading…
Cancel
Save