Browse Source

antgoods移动注册资源,修复商品表单错误

wechat_public_accounts
linyaostalker 5 years ago
parent
commit
6f40f8f248
  1. 2
      antgoods/assets/AppAsset.php
  2. 21
      antgoods/assets/GoodsAttributeAsset.php
  3. 20
      antgoods/assets/GoodsFilterAttributeAsset.php
  4. 20
      antgoods/assets/GoodsSkuEditAsset.php
  5. 2
      antgoods/views/goods/attribute.php
  6. 2
      antgoods/views/goods/filter_attribute.php
  7. 3
      antgoods/views/goods/goods.php
  8. 2
      antgoods/views/goods/sku_edit.php
  9. 6
      antgoods/views/goods/update.php
  10. 2
      antgoods/views/layouts/main.php

2
antgoods/assets/AppAsset.php

@ -1,6 +1,6 @@
<?php
namespace backend\assets;
namespace antgoods\assets;
use yii\web\AssetBundle;

21
antgoods/assets/GoodsAttributeAsset.php

@ -0,0 +1,21 @@
<?php
namespace antgoods\assets;
use yii\web\AssetBundle;
/**
* Main backend application asset bundle.
*/
class GoodsAttributeAsset extends AssetBundle
{
public $css = [
];
public $js = [
// 'custom/sku.49a56a9198d9c3ec233c.js'
'custom/sku.52802ed907a316501cd7.js'
];
public $depends = [
'yii\web\YiiAsset',
];
}

20
antgoods/assets/GoodsFilterAttributeAsset.php

@ -0,0 +1,20 @@
<?php
namespace antgoods\assets;
use yii\web\AssetBundle;
/**
* Main backend application asset bundle.
*/
class GoodsFilterAttributeAsset extends AssetBundle
{
public $css = [
];
public $js = [
'custom/sku.9a46222d01b3d601e5ad.js'
];
public $depends = [
'yii\web\YiiAsset',
];
}

20
antgoods/assets/GoodsSkuEditAsset.php

@ -0,0 +1,20 @@
<?php
namespace antgoods\assets;
use yii\web\AssetBundle;
/**
* Main backend application asset bundle.
*/
class GoodsSkuEditAsset extends AssetBundle
{
public $css = [
];
public $js = [
'custom/sku_item.6649e882bedbeb22ea3d.js'
];
public $depends = [
'yii\web\YiiAsset',
];
}

2
antgoods/views/goods/attribute.php

@ -1,7 +1,7 @@
<?php
use antgoods\models\ars\Attribute;
use antgoods\web\GoodsAttributeAsset;
use antgoods\assets\GoodsAttributeAsset;
$param = [];
$value = [];

2
antgoods/views/goods/filter_attribute.php

@ -1,7 +1,7 @@
<?php
use antgoods\models\ars\Attribute;
use antgoods\web\GoodsFilterAttributeAsset;
use antgoods\assets\GoodsFilterAttributeAsset;
$param = [];
$value = [];

3
antgoods/views/goods/goods.php

@ -6,6 +6,7 @@ use antgoods\models\ars\ShopCategory;
use antgoods\models\ars\Supplier;
use linyao\widgets\Select2;
use yii\bootstrap4\Html;
use antgoods\models\ars\Goods;
/* @var $this yii\web\View */
/* @var $model antgoods\models\ars\Goods */
@ -49,7 +50,7 @@ use yii\bootstrap4\Html;
<?= $form->field($model, 'brief')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'is_sale')->radioList($model::$isSale) ?>
<?= $form->field($model, 'is_sale')->radioList(Goods::$isSale) ?>
<?= $form->field($model, 'sort_order')->textInput() ?>

2
antgoods/views/goods/sku_edit.php

@ -1,6 +1,6 @@
<?php
use antgoods\web\GoodsSkuEditAsset;
use antgoods\assets\GoodsSkuEditAsset;
$this->title = '添加SKU';
$this->params['breadcrumbs'][] = ['label' => '商品列表', 'url' => ['index']];

6
antgoods/views/goods/update.php

@ -44,6 +44,12 @@ Yii::$app->params['bsVersion'] = '4.x';
'goodsModel' => $model,
]),
],
[
'label' => '<i class="fas fa-ad"></i> 详情上传',
'content' => $this->render('new_editor', ['model' => $model,
'form' => $form,
]),
],
[
'label' => '<i class="fas fa-picture-o"></i> 图片上传',
'content' => $this->render('picture', [

2
antgoods/views/layouts/main.php

@ -3,7 +3,7 @@
/* @var $this \yii\web\View */
/* @var $content string */
use backend\assets\AppAsset;
use antgoods\assets\AppAsset;
use yii\helpers\Html;
use yii\widgets\Breadcrumbs;
use common\widgets\Alert;

Loading…
Cancel
Save