title = $model->isNewRecord ? '添加商品' : '编辑商品'; $this->params['breadcrumbs'][] = ['label' => '商品' , 'url' => [\Yii::$app->urlManager->createUrl(["admin/integral/mall/goods/index"])]]; $this->params['breadcrumbs'][] = $this->title; ?>
title ?>
$item):?> >
'images', 'id' => 'cover_pic', 'name' => 'cover_pic', 'label' => '封面', 'value' => $model->goodsHub ? $model->goodsHub->cover_pic : '', 'tip' => '图片大小750×750', 'required' => true, 'imageCompressEnable' => 1, 'imageCompressBorder' => 750, ])?> true, 'accept' => 'images', 'id' => 'pic_urls', 'name' => 'pic_urls', 'label' => '商品轮播图(多张)', 'value' => $model->goodsHub ? $model->goodsHub->pic_urls : '', 'tip' => '图片大小750×750', 'required' => true, 'imageCompressEnable' => 1, 'imageCompressBorder' => 750, ])?> 'video', 'id' => 'video_url', 'name' => 'video_url', 'label' => '商品视频', 'value' => $model->goodsHub ? $model->goodsHub->video_url : '', 'tip' => '视频最大50M', 'required' => false ])?>
0则不限购
'goods_attrs', 'attr' => $attr, 'attr_groups' => $attr_groups, 'open_integral' => true])?>
升序,值越小排序越靠前
registerJs($this->blocks['js_script_wrap'], \yii\web\View::POS_END); ?>