You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
123 lines
3.8 KiB
123 lines
3.8 KiB
<?php
|
|
|
|
use yii\bootstrap4\Html;
|
|
use yii\bootstrap4\ActiveForm;
|
|
use kartik\tabs\TabsX;
|
|
|
|
/* @var $this yii\web\View */
|
|
/* @var $model backend\modules\goods\models\ars\Goods */
|
|
|
|
$this->title = '编辑商品: ' . $model->name;
|
|
$this->params['breadcrumbs'][] = ['label' => '商品管理', 'url' => ['index']];
|
|
$this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]];
|
|
$this->params['breadcrumbs'][] = '编辑 ';
|
|
Yii::$app->params['bsVersion'] = '4.x';
|
|
?>
|
|
<style>
|
|
.btn-success, .btn-float {
|
|
bottom: 120px;
|
|
}
|
|
.btn-success {
|
|
position: fixed;
|
|
display: block;
|
|
top: unset;
|
|
right: 50px;
|
|
bottom: 60px;
|
|
width: 60px;
|
|
height: 60px;
|
|
line-height: 60px;
|
|
padding: 0;
|
|
border-radius: 50%;
|
|
font-size: 1.6em;
|
|
box-shadow: 0 0 20px 5px rgba(0, 0, 0, .2);
|
|
z-index: 10000;
|
|
}
|
|
.btn-info {
|
|
position: fixed;
|
|
display: block;
|
|
top: unset;
|
|
right: 50px;
|
|
bottom: 130px;
|
|
width: 60px;
|
|
height: 60px;
|
|
line-height: 60px;
|
|
padding: 0;
|
|
border-radius: 50%;
|
|
font-size: 1.6em;
|
|
box-shadow: 0 0 20px 5px rgba(0, 0, 0, .2);
|
|
z-index: 10000;
|
|
}
|
|
</style>
|
|
<div class="goods-update">
|
|
<div class="goods-form">
|
|
<?php
|
|
$form = ActiveForm::begin(['options' => ['class' => 'container-fluid']]);
|
|
|
|
echo TabsX::widget([
|
|
'bordered' => true,
|
|
'items' => [
|
|
[
|
|
'label' => '<i class="fas fa-user"></i> 基本信息',
|
|
'content' => $this->render('goods', [
|
|
'model' => $model,
|
|
'form' => $form,
|
|
'judgeGoodsCategory' => $judgeGoodsCategory
|
|
]),
|
|
],
|
|
[
|
|
'label' => '<i class="fas fa-list-alt"></i> 筛选规格',
|
|
'content' => $this->render('filter_attribute', [
|
|
'filterModel' => $filterAttributeModel,
|
|
'filterAttrValue' => [],
|
|
]),
|
|
],
|
|
[
|
|
'label' => '<i class="fas fa-list-alt"></i> 商品规格',
|
|
'content' => $this->render('attribute', [
|
|
'model' => $attributeModel,
|
|
'attrValue' => $attrValue,
|
|
'goodsModel' => $model,
|
|
]),
|
|
],
|
|
[
|
|
'label' => '<i class="fas fa-shipping-fast"></i> 物流信息',
|
|
'content' => $this->render('express', ['model' => $model,
|
|
'form' => $form,
|
|
]),
|
|
],
|
|
[
|
|
'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', [
|
|
'model' => $model,
|
|
'form' => $form,
|
|
]),
|
|
],
|
|
],
|
|
'position' => TabsX::POS_ABOVE,
|
|
'encodeLabels' => false
|
|
]);
|
|
?>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<?= Html::submitButton('<i class="fa fa-check"></i>', ['class' => 'btn-float btn btn-success']) ?>
|
|
<?= Html::a('<i class="fa fa-times"></i>', ['index'], ['class' => 'btn-float btn btn-info']) ?>
|
|
</div>
|
|
|
|
<?php ActiveForm::end(); ?>
|
|
</div>
|
|
|
|
<?php
|
|
// $this->render('_form', [
|
|
// 'model' => $model,
|
|
// ])
|
|
?>
|
|
|
|
</div>
|