title = $model->isNewRecord ? '添加冠军' : '编辑冠军'; $this->params['breadcrumbs'][] = ['label' => '冠军', 'url' => [\Yii::$app->urlManager->createUrl(["admin/mall/goods/index"])]]; $this->params['breadcrumbs'][] = $this->title; ?>
title ?>
'images', 'id' => 'cover_pic', 'name' => 'cover_pic', 'label' => '封面', 'value' => $model->goodsHub ? $model->goodsHub->cover_pic : '', 'tip' => '图片大小750×750', 'required' => true, 'imageCompressEnable' => 1, 'imageCompressBorder' => 750, ]) ?>
'goods_attrs', 'attr' => $attr, 'attr_groups' => $attr_groups, 'open_integral' => false]) ?>
降序,值越大排序越靠前
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, ]) ?> 'images', 'id' => 'banner_urls', 'name' => 'banner_urls', 'label' => '冠军详情图', 'value' => $model->goodsHub ? $model->goodsHub->banner_urls : '', // 'tip' => '图片大小750×750', 'required' => true, 'imageCompressEnable' => 1, 'imageCompressBorder' => 750, ]) ?> goodsHub->video_url)) { $json_de = json_decode($model->goodsHub->video_url, true); $temp_arr = []; foreach ($json_de as $key => $val) { $explode = explode('/', $val); $end = end($explode); //12G $temp_arr[] = [ 'name' => $end, 'url' => $val, ]; } $model->goodsHub->video_url = json_encode($temp_arr, JSON_UNESCAPED_UNICODE); } ?> 'video', 'multiple' => false, 'id' => 'video_url_data_url', 'name' => 'video_url_data_url', 'label' => '冠军视频', 'value' => $video_url_data_url ? $video_url_data_url : '', 'tip' => '视频最大50M', 'required' => false ]) ?>
'images', 'id' => 'video_url_data_img', 'name' => 'video_url_data_img', 'label' => '冠军视频图片', 'value' => $video_url_data_img, // 'tip' => '图片大小750×750', 'imageCompressEnable' => 1, 'imageCompressBorder' => 750, ]) ?> 'file', 'multiple' => true, 'id' => 'video_url', 'name' => 'video_url', 'label' => '冠军视频列表', 'value' => $model->goodsHub ? $model->goodsHub->video_url : '', 'tip' => '视频最大50M', 'required' => false ]) ?> true, 'accept' => 'images', 'id' => 'video_banner_urls', 'name' => 'video_banner_urls', 'label' => '冠军视频封面图', 'value' => $model->goodsHub ? $model->goodsHub->video_banner_urls : '', 'tip' => '图片大小750×750', 'required' => true, // 'imageCompressEnable' => 1, // 'imageCompressBorder' => 750, ]) ?> 'images', 'id' => 'signing_head_img', 'name' => 'signing_head_img', 'label' => '签约头部图片', 'value' => $model->goodsHub ? $model->goodsHub->signing_head_img : '', // 'tip' => '图片大小750×750', 'imageCompressEnable' => 1, 'imageCompressBorder' => 750, ]) ?> 'images', 'id' => 'signing_foot_img', 'name' => 'signing_foot_img', 'label' => '签约底部图片', 'value' => $model->goodsHub ? $model->goodsHub->signing_foot_img : '', // 'tip' => '图片大小750×750', 'imageCompressEnable' => 1, 'imageCompressBorder' => 750, ]) ?>
registerJs($this->blocks['js_script_wrap'], \yii\web\View::POS_END); ?>