Commit 3e1ab9b5 authored by 章建武's avatar 章建武

dep

parent 00671e44
...@@ -55,13 +55,6 @@ class GroupCultureController extends Controller ...@@ -55,13 +55,6 @@ class GroupCultureController extends Controller
} else { } else {
return error($attachment_avatar->getError()); return error($attachment_avatar->getError());
} }
if($param['type'] == 1){
$param['title'] = '时尚与城市';
}elseif($param['type'] == 2){
$param['title'] = '时尚与安全';
}else{
$param['title'] = '时尚与公益';
}
$result = $model::create($param); $result = $model::create($param);
$url = URL_BACK; $url = URL_BACK;
...@@ -104,13 +97,6 @@ class GroupCultureController extends Controller ...@@ -104,13 +97,6 @@ class GroupCultureController extends Controller
$param['pic_path'] = $file_avatar->url; $param['pic_path'] = $file_avatar->url;
} }
} }
if($param['type'] == 1){
$param['title'] = '时尚与城市';
}elseif($param['type'] == 2){
$param['title'] = '时尚与安全';
}else{
$param['title'] = '时尚与公益';
}
$result = $data->save($param); $result = $data->save($param);
return $result ? success() : error(); return $result ? success() : error();
} }
......
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
$('#user_level_id').select2(); $('#user_level_id').select2();
</script> </script>
<div class="form-group"> <div class="form-group">
<label for="type" class="col-sm-2 control-label">标题</label> <label for="type" class="col-sm-2 control-label">分类</label>
<div class="col-sm-10 col-md-4"> <div class="col-sm-10 col-md-4">
<select name="type" id="type" class="form-control select2"> <select name="type" id="type" class="form-control select2">
{foreach name='type' item='item'} {foreach name='type' item='item'}
...@@ -72,6 +72,13 @@ ...@@ -72,6 +72,13 @@
</select> </select>
</div> </div>
</div> </div>
<div class="form-group">
<label for="title" class="col-sm-2 control-label">标题</label>
<div class="col-sm-10 col-md-4">
<input id="title" name="title" value="{$data.title|default=''}"
placeholder="请输入标题" required type="text" class="form-control field-text">
</div>
</div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-2 control-label">内容:</label> <label class="col-sm-2 control-label">内容:</label>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment