title = '编辑轮播图'; $this->params['breadcrumbs'][] = ['label' => '轮播图' , 'url' => [\Yii::$app->urlManager->createUrl(["admin/wechat/mp-slide"])]]; }else{ $this->title = '编辑配置'; $this->params['breadcrumbs'][] = ['label' => '配置' , 'url' => [\Yii::$app->urlManager->createUrl(["admin/wechat/mp-slide"])]]; if($id == 12){ $skip_k = [0,1,2,3,4,5,7,8,9]; }else{ $skip_k = [6]; } } $this->params['breadcrumbs'][] = $this->title; $url_type_labels = Banner::urlTypeLabels(); foreach ($url_type_labels as $k=>$v){ if(in_array($k,$skip_k)){ unset($url_type_labels[$k]); } } $status_labels = Banner::statusLabels(); $media_labels = Banner::mediaLabels(); $type = Banner::type(); ?>
title ?>
value="title ?>">
'images', 'id' => 'img_url_upload', 'name' => 'img_url', 'label' => '主图', 'value' => $model->img_url, 'tip' => '图片大小750×330', 'imageCompressEnable' => 1, 'imageCompressBorder' => 750 ])?>
$val):?> url_type == $key ? 'checked=""' : ''?>>
升序,值越小排序越靠前
'video', 'id' => 'video_url_upload', 'name' => 'video_url', 'label' => '视频', 'value' => $model->video_url, 'tip' => '' ])?>
status == 0 ? 'checked=""' : ''?>> status == 1 ? 'checked=""' : ''?>>
'images', 'id' => 'img_url_uploads11231', 'name' => 'other_img_url', 'label' => '附图', 'value' => $model->other_img_url, // 'tip' => '图片大小750×330', 'imageCompressEnable' => 1, 'imageCompressBorder' => 750 ])?>
$links, "link_input_class" => ".page-url", "link_select_btn" => '.pick-link-btn'])?> registerJs($this->blocks['js_script_wrap'], \yii\web\View::POS_END); ?>